Просмотр исходного кода

[铜锣湾][修改][失效账单]

release_toaliyun_real
luozukai 7 лет назад
committed by Stormeye Wu
Родитель
Сommit
ed00ce5e02
3 измененных файлов: 14 добавлений и 5 удалений
  1. +7
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java
  2. +5
    -2
      mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml
  3. +2
    -1
      mallinkService/src/main/resources/mapper/WxBillRentMapper.xml

+ 7
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java Просмотреть файл

@@ -69,6 +69,8 @@ public class WxFlowServiceImpl implements WxFlowService {
private WxBillRentMapper wxBillRentMapper;
@Autowired
private WxBillPropertyMapper wxBillPropertyMapper;
@Autowired
private WxMerchantService wxMerchantService;

/**
* 获取流程key,1合同 2账单
@@ -146,13 +148,16 @@ public class WxFlowServiceImpl implements WxFlowService {
wxPropertyContract.setStatus(EnumRentContractStatus.CONTRACT_TERMINATE.getCode());
wxPropertyContractMapper.updateStatusByRentContractId(wxPropertyContract);

//账单失效
//物业账单失效
wxBillPropertyMapper.updateInvalidStatusByRent(rent);
}
//账单失效
//租赁账单失效
WxBillRent wxBillRent = new WxBillRent();
wxBillRent.setRentContractId(businessId);
wxBillRentMapper.updateInvalidStatus(wxBillRent);

//解绑商户和商铺关系
wxMerchantService.disable(wxRentContractMapper.selectByPrimaryKey(businessId).getMerchantId());
}
wxRentContractService.updateApplyStatus(rent);
}else if(contractType.intValue() == 3 || contractType.intValue() == 4){


+ 5
- 2
mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml Просмотреть файл

@@ -131,7 +131,7 @@
<update id="updateInvalidStatusByRent" parameterType="com.iformall.domain.po.WxRentContract">
update wx_bill_property set status = 6 where property_contract_id in
(select id from wx_property_contract where rent_contract_id = #{id})
and status = 4
and status in(4,2)
</update>

<delete id="deletePreviewBill" parameterType="com.iformall.domain.po.WxPropertyContract">
@@ -139,7 +139,10 @@
</delete>

<update id="update" parameterType="com.iformall.domain.po.WxBillProperty">
update wx_bill_property set receive_pay = #{receivePay} where id = #{id}
update wx_bill_property set updatetime = now()
<if test=" null != receivePay ">,receive_pay = #{receivePay}</if>
<if test=" null != needPay ">,need_pay = #{needPay}</if>
where id = #{id}
</update>

<update id="updatePreviewStatus" parameterType="com.iformall.domain.po.WxBillProperty">


+ 2
- 1
mallinkService/src/main/resources/mapper/WxBillRentMapper.xml Просмотреть файл

@@ -126,7 +126,7 @@

<update id="updateInvalidStatus" parameterType="com.iformall.domain.po.WxBillRent">
update wx_bill_rent set status = 6 where rent_contract_id = #{rentContractId}
and status = 4
and status in(4,2)
</update>

<delete id="deletePreviewBill" parameterType="com.iformall.domain.po.WxRentContract">
@@ -136,6 +136,7 @@
<update id="update" parameterType="com.iformall.domain.po.WxBillRent">
update wx_bill_rent set updatetime = now()
<if test=" null != receivePay ">,receive_pay = #{receivePay}</if>
<if test=" null != needPay ">,need_pay = #{needPay}</if>
where id = #{id}
</update>



Загрузка…
Отмена
Сохранить