专家项目/专家BUG修改

master
王家东 4 weeks ago
parent 9281f4183a
commit bf728c3e5f
  1. 6
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java
  2. 2
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/entity/Expandpro.java

@ -203,12 +203,14 @@ public class ExpprojectController {
Expandpro expandpro =new Expandpro(); Expandpro expandpro =new Expandpro();
List<Expert> expertList = expertService.query().in("seusername",randomUsers).list(); List<Expert> expertList = expertService.query().in("seusername",randomUsers).list();
for (int i=0;i<expertList.size();i++){ for (int i=0;i<expertList.size();i++){
SysUser sysUser = sysUserService.query().eq("username",expertList.get(i).getSeusername()).one();
expandpro.setExpid(expertList.get(i).getSeusername()); expandpro.setExpid(expertList.get(i).getSeusername());
expandpro.setExpprojectid(id); expandpro.setExpprojectid(id);
expandpro.setSsdep(expandproService.getdepid(expertList.get(i).getSeusername())); expandpro.setSsdep(expandproService.getdepid(expertList.get(i).getSeusername()));
expandpro.setExptype(expertList.get(i).getDirectioncal()); expandpro.setExptype(expertList.get(i).getDirectioncal());
expandpro.setPhone(expertList.get(i).getPhone()); expandpro.setPhone(sysUser.getPhone());
expandpro.setEmil(expertList.get(i).getEmails()); expandpro.setEmil(sysUser.getEmail());
expandpro.setExpname(sysUser.getRealname());
expandproService.save(expandpro); expandproService.save(expandpro);
} }
str="生成完成"; str="生成完成";

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.ProvinceCityArea; import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils; import org.jeecg.common.util.SpringContextUtils;
import lombok.Data; import lombok.Data;
@ -53,6 +54,7 @@ public class Expandpro implements Serializable {
private String sysOrgCode; private String sysOrgCode;
/**专家id*/ /**专家id*/
@Excel(name = "专家id", width = 15) @Excel(name = "专家id", width = 15)
@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
@ApiModelProperty(value = "专家id") @ApiModelProperty(value = "专家id")
private String expid; private String expid;
/**外键id*/ /**外键id*/

Loading…
Cancel
Save