Commit ef00929e authored by fangxinjiang's avatar fangxinjiang

派单分项目派单状态处理

parent 1fada94e
...@@ -120,4 +120,6 @@ public interface TEmployeeInfoMapper extends BaseMapper<TEmployeeInfo> { ...@@ -120,4 +120,6 @@ public interface TEmployeeInfoMapper extends BaseMapper<TEmployeeInfo> {
* @return: int * @return: int
**/ **/
int everyDayUpdateEmployeeInfoContractStatus(); int everyDayUpdateEmployeeInfoContractStatus();
void updateContractStatus(@Param("empId") String empId, @Param("status")int status);
} }
...@@ -221,4 +221,5 @@ public interface TEmployeeInfoService extends IService<TEmployeeInfo> { ...@@ -221,4 +221,5 @@ public interface TEmployeeInfoService extends IService<TEmployeeInfo> {
**/ **/
void everyDayUpdateEmployeeContractStatus(); void everyDayUpdateEmployeeContractStatus();
void updateContractStatus(String empId, int status);
} }
...@@ -2255,6 +2255,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -2255,6 +2255,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
contractAudit.setRootName("合同审核"); contractAudit.setRootName("合同审核");
contractServicer.updateInUseStatusById(c.getEmpId(),c.getDeptNo(),c.getId()); contractServicer.updateInUseStatusById(c.getEmpId(),c.getDeptNo(),c.getId());
tEmployeeProjectService.updateContractStatus(c.getEmpId(),CommonConstants.ONE_INT); tEmployeeProjectService.updateContractStatus(c.getEmpId(),CommonConstants.ONE_INT);
baseMapper.updateContractStatus(c.getEmpId(),CommonConstants.ONE_INT);
//审核不同 //审核不同
}else if (CommonConstants.ONE_STRING.equals(vo.getType())){ }else if (CommonConstants.ONE_STRING.equals(vo.getType())){
c.setAuditStatus(CommonConstants.THREE_INT); c.setAuditStatus(CommonConstants.THREE_INT);
...@@ -2476,4 +2477,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -2476,4 +2477,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
baseMapper.everyDayUpdateEmployeeInfoContractStatus(); baseMapper.everyDayUpdateEmployeeInfoContractStatus();
tEmployeeProjectService.everyDayUpdateEmployeContractStatus(); tEmployeeProjectService.everyDayUpdateEmployeContractStatus();
} }
@Override
public void updateContractStatus(String empId, int status) {
baseMapper.updateContractStatus(empId,status);
}
} }
...@@ -1181,5 +1181,9 @@ ...@@ -1181,5 +1181,9 @@
and (ec.CONTRACT_END is null or ec.CONTRACT_END >= DATE_FORMAT(curdate(),"%Y-%m-%d")) and (ec.CONTRACT_END is null or ec.CONTRACT_END >= DATE_FORMAT(curdate(),"%Y-%m-%d"))
) )
</update> </update>
<update id="updateContractStatus" >
update t_employee_info a
set CONTRACT_STATUS = #{status}
WHERE a.id=#{empId}
</update>
</mapper> </mapper>
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