|
|
@@ -3,6 +3,8 @@ package com.goafanti.organization.service.impl;
|
|
|
import java.util.*;
|
|
|
|
|
|
import com.goafanti.common.dao.DepartmentMapper;
|
|
|
+import com.goafanti.common.dao.NewOrderChangeMapper;
|
|
|
+import com.goafanti.common.dao.TOrderNewMapper;
|
|
|
import com.goafanti.common.model.Department;
|
|
|
import com.goafanti.organization.bo.DepOut;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -22,6 +24,10 @@ public class OrganizationServiceImpl extends BaseMybatisDao<DepartmentMapper> im
|
|
|
private DepartmentMapper departmentMapper;
|
|
|
@Autowired
|
|
|
private TOrderMidMapper tOrderMidMapper;
|
|
|
+ @Autowired
|
|
|
+ private TOrderNewMapper tOrderNewMapper;
|
|
|
+ @Autowired
|
|
|
+ private NewOrderChangeMapper newOrderChangeMapper;
|
|
|
|
|
|
@Override
|
|
|
public Pagination<OrganizationListOut> listOrganizationManagement(OrganizationListOut olo, Integer pageNo,
|
|
|
@@ -187,6 +193,16 @@ public class OrganizationServiceImpl extends BaseMybatisDao<DepartmentMapper> im
|
|
|
dep.setProvince(province);
|
|
|
dep.setHideSign(hideSign);
|
|
|
dep.setWorkingHoursType(workingHoursType);
|
|
|
+ Department use = departmentMapper.selectByPrimaryKey(id);
|
|
|
+ if (!use.getFinanceId().equals(financeId)){
|
|
|
+ //切换后更换审核人
|
|
|
+ tOrderNewMapper.updateexamineName(3,id,financeId);
|
|
|
+ newOrderChangeMapper.updateexamineName(5,id,financeId);
|
|
|
+ }
|
|
|
+ if (!use.getManagerId().equals(managerId)){
|
|
|
+ tOrderNewMapper.updateexamineName(1,id,managerId);
|
|
|
+ newOrderChangeMapper.updateexamineName(1,id,managerId);
|
|
|
+ }
|
|
|
tOrderMidMapper.updateFinanceId(id,financeId);
|
|
|
int x=departmentMapper.updateByPrimaryKeySelective(dep);
|
|
|
return x;
|