| | |
| | | " UPDATE t_emp_baseinfo SET \n" + |
| | | " deptId = #{mapParams.deptId},\n" + |
| | | " deptName = #{mapParams.deptName},\n" + |
| | | " allDeptName = #{mapParams.allDeptName},\n" + |
| | | " jobId = #{mapParams.jobId},\n" + |
| | | " jobName = #{mapParams.jobName},\n" + |
| | | " modifyTime = NOW(),\n" + |
| | |
| | | @SqlParser(filter=true) |
| | | IPage<EmpBaseInfo> clbaseInfoList(@Param("page")Page<EmpBaseInfo> page,@Param("index") String index,@Param("btime") String btime,@Param("etime") String etime,@Param("name") String name,@Param("manOld") String manOld,@Param("womanOld") String womanOld,@Param("list") List<String> lists); |
| | | |
| | | @Update("<script> " + |
| | | " UPDATE t_emp_baseinfo SET seniority = CONCAT(FLOOR(TimeStampDiff(MONTH, entryDate, NOW()) / 12), '年',MOD(TimeStampDiff(MONTH, entryDate, NOW()),12),'月'),\n" + |
| | | " modifyTime = NOW() \n" + |
| | | " WHERE empStatus =0; \n" + |
| | | "</script>") |
| | | int updateSeniority(); |
| | | @Update("<script> " + |
| | | " update t_emp_baseinfo set deptName=(select DEPT_NAME from t_dept where DEPT_ID=deptId), \n" + |
| | | " allDeptName=(select allDeptName from t_dept where DEPT_ID=deptId), \n" + |
| | | " modifyTime=now(); \n" + |
| | | "</script>") |
| | | int updateDeptName(); |
| | | |
| | | |
| | | |
| | | @Update("<script> " + |
| | | " update t_emp_baseinfo set retirementReminded=#{retirementReminded}, \n" + |
| | | " modifier=#{operatorId}, \n" + |
| | | " modifyTime=now() where empId=#{empId}; \n" + |
| | | "</script>") |
| | | int updateRetirementReminded(@Param("empId") String empId,@Param("retirementReminded") String retirementReminded,@Param("operatorId") String operatorId); |
| | | } |