Browse Source

fix

release_toaliyun_real
winter 1 year ago
parent
commit
ddf5a4e550
4 changed files with 26 additions and 1 deletions
  1. +2
    -0
      mallinkService/src/main/java/com/iformall/mapper/WxAllBillMapper.java
  2. +7
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java
  3. +7
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java
  4. +10
    -1
      mallinkService/src/main/resources/mapper/WxAllBillMapper.xml

+ 2
- 0
mallinkService/src/main/java/com/iformall/mapper/WxAllBillMapper.java View File

@@ -55,5 +55,7 @@ public interface WxAllBillMapper extends CommonMapper<WxAllBill, Long> {
void deleteEnergyReadingBills(@Param("energyReadingCalcuteId")Long energyReadingCalcuteId,@Param("tenantId")String tenantId);
void updateContractCusName(WxAllBill wxBillRent);
void updateAllContractCusName(WxAllBill wxBillRent);

}

+ 7
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java View File

@@ -1503,6 +1503,13 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService
record.setUpdateBy(user.getId());
record.setUpdateByName(user.getName());
wxPropertyContractMapper.updateById(record);
//更新账单归属
WxAllBill bill = new WxAllBill();
bill.updateTenantInfo(record);
bill.setPropertyContractId(record.getId());
bill.setCusName(record.getCustomerName());
wxAllBillMapper.updateAllContractCusName(bill);
}

@Override


+ 7
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java View File

@@ -2103,6 +2103,13 @@ public class WxRentContractServiceImpl implements WxRentContractService {
rentContract.setUpdateByName(user.getName());
wxRentContractMapper.updateById(rentContract);
//更新账单归属
WxAllBill bill = new WxAllBill();
bill.updateTenantInfo(rentContract);
bill.setRentContractId(rentContract.getId());
bill.setCusName(rentContract.getCustomerName());
wxAllBillMapper.updateAllContractCusName(bill);
if (rentContract.getOperationType().intValue() == EnumContractOperationType.WHOLE.getCode().intValue()) {
WxPropertyContract pq = new WxPropertyContract();
pq.updateTenantInfo(rentContract);


+ 10
- 1
mallinkService/src/main/resources/mapper/WxAllBillMapper.xml View File

@@ -453,7 +453,16 @@
<if test=" null != propertyContractId">
and property_contract_id = #{propertyContractId}
</if>
</update>
<update id="updateAllContractCusName" parameterType="com.iformall.domain.po.WxAllBill">
update wx_all_bill set cus_name = #{cusName} where tenant_id = #{tenantId}
<if test=" null != rentContractId">
and rent_contract_id = #{rentContractId}
</if>
<if test=" null != propertyContractId">
and property_contract_id = #{propertyContractId}
</if>
</update>
</mapper>


Loading…
Cancel
Save