Commit c4af5f2f authored by fangxinjiang's avatar fangxinjiang

项目档案合同状态更新

parent befd50bf
...@@ -114,4 +114,6 @@ public interface TEmployeeProjectMapper extends BaseMapper<TEmployeeProject> { ...@@ -114,4 +114,6 @@ public interface TEmployeeProjectMapper extends BaseMapper<TEmployeeProject> {
int updateSocialAndFundStatusById(@Param("project")TEmployeeProject project); int updateSocialAndFundStatusById(@Param("project")TEmployeeProject project);
int updateChangeById(@Param("project")TEmployeeProject project); int updateChangeById(@Param("project")TEmployeeProject project);
void updateContractStatus(@Param("empId") String empId, @Param("status")int status);
} }
...@@ -26,6 +26,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeProject; ...@@ -26,6 +26,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeProject;
import com.yifu.cloud.plus.v1.yifu.archives.vo.*; import com.yifu.cloud.plus.v1.yifu.archives.vo.*;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage; import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R; import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import org.apache.ibatis.annotations.Param;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.InputStream; import java.io.InputStream;
...@@ -258,4 +259,6 @@ public interface TEmployeeProjectService extends IService<TEmployeeProject> { ...@@ -258,4 +259,6 @@ public interface TEmployeeProjectService extends IService<TEmployeeProject> {
R<List<BusinessEmployeeExtentExcelVO>> exportByParams(THroBusinessUserQuery query); R<List<BusinessEmployeeExtentExcelVO>> exportByParams(THroBusinessUserQuery query);
void updateChangeById(TEmployeeProject oldEmpProject); void updateChangeById(TEmployeeProject oldEmpProject);
void updateContractStatus(String empId, int status);
} }
...@@ -2204,7 +2204,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -2204,7 +2204,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
@Override @Override
public Boolean updateEmpInfo(UpdateEmpVo vo) { public Boolean updateEmpInfo(UpdateEmpVo vo) {
if (Common.isNotNull(vo)){ if (Common.isNotNull(vo)){
TEmployeeInfo employeeInfo; TEmployeeInfo employeeInfo = null;
TEmployeeProject p = null; TEmployeeProject p = null;
if (Common.isNotNull(vo.getEmpIdCard())){ if (Common.isNotNull(vo.getEmpIdCard())){
if (CommonConstants.ZERO_STRING.equals(vo.getType())){ if (CommonConstants.ZERO_STRING.equals(vo.getType())){
...@@ -2254,6 +2254,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -2254,6 +2254,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
contractAudit.setRemark(vo.getRemarkTemp()); contractAudit.setRemark(vo.getRemarkTemp());
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);
//审核不同 //审核不同
}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);
......
...@@ -1716,4 +1716,9 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap ...@@ -1716,4 +1716,9 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
public void updateChangeById(TEmployeeProject oldEmpProject) { public void updateChangeById(TEmployeeProject oldEmpProject) {
baseMapper.updateChangeById(oldEmpProject); baseMapper.updateChangeById(oldEmpProject);
} }
@Override
public void updateContractStatus(String empId, int status) {
baseMapper.updateContractStatus(empId,status);
}
} }
...@@ -1061,4 +1061,9 @@ ...@@ -1061,4 +1061,9 @@
</trim> </trim>
WHERE a.id=#{project.id} WHERE a.id=#{project.id}
</update> </update>
<update id="updateContractStatus" >
update t_employee_project a
set CONTRACT_STATUS = #{status}
WHERE a.EMP_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