Commit d58b1161 by 284718418@qq.com

1、修改BUG382对排班制考勤进行修改,修改成员后,在考勤排班页修改考勤月份,人员信息、班次信息显示的是修改前的内容

2、修改BUG106自定义共工号没有和其他模块关联
parent 7c740db9
......@@ -162,7 +162,7 @@ public class YgglMainLzb extends Model<YgglMainLzb> {
private Integer isJrkq;
@ApiModelProperty(value="公司内部工号 就是公司内部自己设置的工号",example="101")
private Integer jobNum;
private String jobNum;
@ApiModelProperty(value="工作地点 ",example="工作地点")
private String workAddress;
......
......@@ -31,6 +31,7 @@ import org.springframework.http.ResponseEntity;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.util.StringUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
......@@ -1407,9 +1408,10 @@ public class YgglController {
.update(new UpdateWrapper<YgglMainEmp>().lambda()
.eq(YgglMainEmp::getEmpNum, empNum)
.eq(YgglMainEmp::getOrgCode, userBean.getOrgCode()));
//设置员工自定义工号工号
String jobNum = StringUtils.isEmpty(ygglMainEmp.getCustomNum())?ygglMainEmp.getEmpNum().toString():ygglMainEmp.getCustomNum();
YgglMainLzb.builder().jobStatus(jobStatus.LIZHIZHONG.getType()).lzTime(lzygQueryDto.getLzTime())
.lzyy(lzygQueryDto.getLzyy()).lzbz(lzygQueryDto.getLzbz()).build()
.lzyy(lzygQueryDto.getLzyy()).lzbz(lzygQueryDto.getLzbz()).jobNum(jobNum).build()
.update(new UpdateWrapper<YgglMainLzb>().lambda()
.eq(YgglMainLzb::getEmpNum, empNum)
.eq(YgglMainLzb::getOrgCode, userBean.getOrgCode()));
......
......@@ -59,4 +59,7 @@ public class LzbDto extends Page implements Serializable{
@ApiModelProperty(value="实际离职时间",example="离职备注")
private Date sjlz;
@ApiModelProperty(value="公司内部工号 就是公司内部自己设置的工号",example="101")
private String jobNum;
}
......@@ -189,7 +189,8 @@
a.phone `phone`,
a.lzbz `bz`,
a.lzyy lzyy,
a.sjlz_time sjlz
a.sjlz_time sjlz,
a.job_num
FROM
yggl_main_lzb a
LEFT JOIN zzgl_bmgw_m b ON a.bmgw_id = b.id
......@@ -202,7 +203,7 @@
</if>
<if test ="null != q.query and q.query !=''">
AND
(a.name like CONCAT('%',#{q.query},'%') OR a.emp_num like CONCAT('%',#{q.query},'%'))
(a.name like CONCAT('%',#{q.query},'%') OR a.emp_num like CONCAT('%',#{q.query},'%') OR a.job_num like CONCAT('%',#{q.query},'%'))
</if>
ORDER BY a.job_status ASC
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment