|
@@ -6,6 +6,7 @@ import com.jeeplus.sys.utils.StringUtils;
|
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
|
import com.jeeplus.test.cw.contractRegistration.domain.CwWorkContractBorrow;
|
|
|
import com.jeeplus.test.cw.contractRegistration.domain.CwWorkContractBorrowMessage;
|
|
|
+import com.jeeplus.test.cw.contractRegistration.mapper.ContractInfoMapper;
|
|
|
import com.jeeplus.test.cw.contractRegistration.mapper.CwWorkContractBorrowMapper;
|
|
|
import com.jeeplus.test.cw.contractRegistration.mapper.CwWorkContractBorrowMessageMapper;
|
|
|
import com.jeeplus.test.cw.contractRegistration.service.dto.CwWorkContractBorrowDto;
|
|
@@ -30,10 +31,14 @@ public class CwWorkContractBorrowService {
|
|
|
@Resource
|
|
|
private CwWorkContractBorrowMessageMapper messageMapper;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private ContractInfoMapper infoMapper;
|
|
|
+
|
|
|
public String saveInfo(CwWorkContractBorrowDto workContractBorrowDto) throws Exception {
|
|
|
if (StringUtils.isNotEmpty(workContractBorrowDto.getId())) {
|
|
|
CwWorkContractBorrow info = borrowMapper.selectById( workContractBorrowDto.getId());
|
|
|
if (info != null) {
|
|
|
+ infoMapper.updateBorrowTypeById(info.getContractInfoId(),workContractBorrowDto.getBorrowType());
|
|
|
return update(workContractBorrowDto, info.getContractInfoId());
|
|
|
}
|
|
|
}
|
|
@@ -86,6 +91,7 @@ public class CwWorkContractBorrowService {
|
|
|
}
|
|
|
|
|
|
public void updateStatusByContractInfoId(CwWorkContractBorrowDto workContractBorrowDto) {
|
|
|
+ infoMapper.updateBorrowTypeById(workContractBorrowDto.getId(),workContractBorrowDto.getBorrowType());
|
|
|
borrowMapper.updateStatusByContractInfoId(workContractBorrowDto.getId(), workContractBorrowDto.getBorrowType());
|
|
|
}
|
|
|
|