专家项目/专家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();
List<Expert> expertList = expertService.query().in("seusername",randomUsers).list();
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.setExpprojectid(id);
expandpro.setSsdep(expandproService.getdepid(expertList.get(i).getSeusername()));
expandpro.setExptype(expertList.get(i).getDirectioncal());
expandpro.setPhone(expertList.get(i).getPhone());
expandpro.setEmil(expertList.get(i).getEmails());
expandpro.setPhone(sysUser.getPhone());
expandpro.setEmil(sysUser.getEmail());
expandpro.setExpname(sysUser.getRealname());
expandproService.save(expandpro);
}
str="生成完成";

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

Loading…
Cancel
Save