Selaa lähdekoodia

合同详情修改

yusm 4 kuukautta sitten
vanhempi
commit
32c52fbcd9

+ 6 - 0
fhKeeper/formulahousekeeper/management-crm/src/main/java/com/management/platform/service/impl/ContractServiceImpl.java

@@ -1679,6 +1679,12 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract> i
     public HttpRespMsg getContractDetail(HttpServletRequest request, Integer id) {
         HttpRespMsg respMsg = new HttpRespMsg();
         Contract contract = contractMapper.selectById(id);
+        if (contract.getTypeId()!=null){
+            ContractType contractType = contractTypeMapper.selectById(contract.getTypeId());
+            if (contractType!=null){
+                contract.setTypeName(contractType.getTypeName());
+            }
+        }
         List<ContractCustom> selectedList = contractCustomMapper.selectList(new QueryWrapper<ContractCustom>().eq("contract_id", contract.getId()));
         if (selectedList != null && !selectedList.isEmpty()) {
             contract.setCustomData(selectedList.get(0));