소스 검색

[BUG][ID1000930][云端测试 version:.565.723:发现小B端物业押金,时间段显示错误:创建了14天周期的物业合同,账单周期在小B端显示为1年]

release_toaliyun_real
gongbiao 7 년 전
부모
커밋
02c100c36e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java

+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java 파일 보기

@@ -271,7 +271,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService
if (list.size() > 0) { if (list.size() > 0) {
wxPropertyContract = list.get(0); wxPropertyContract = list.get(0);
//找到计租方式 //找到计租方式
int dayType = wxPropertyContract.getAdjustPeriod().equals(EnumRentContractAdjustPeriod.ADJUST_PERIOD_MONTH.getCode()) ? Calendar.DAY_OF_MONTH : Calendar.MONTH;
int dayType = wxPropertyContract.getAdjustPeriod().equals(EnumRentContractAdjustPeriod.ADJUST_PERIOD_DAY.getCode()) ? Calendar.DAY_OF_MONTH : Calendar.MONTH;
final IdWorker idWorker = IdWorker.get(); final IdWorker idWorker = IdWorker.get();
WxBillPropertyDeposit wxBillDeposit = new WxBillPropertyDeposit(); WxBillPropertyDeposit wxBillDeposit = new WxBillPropertyDeposit();
wxBillDeposit.setId(idWorker.nextId()); wxBillDeposit.setId(idWorker.nextId());
@@ -331,7 +331,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService
List<WxPropertyContract> list = wxPropertyContractMapper.findList(wxPropertyContract); List<WxPropertyContract> list = wxPropertyContractMapper.findList(wxPropertyContract);
if (list.size() > 0) { if (list.size() > 0) {
wxPropertyContract = list.get(0); wxPropertyContract = list.get(0);
int dayType = wxPropertyContract.getAdjustPeriod().equals(EnumRentContractAdjustPeriod.ADJUST_PERIOD_MONTH.getCode()) ? Calendar.MONTH : Calendar.DAY_OF_MONTH;
int dayType = wxPropertyContract.getAdjustPeriod().equals(EnumRentContractAdjustPeriod.ADJUST_PERIOD_DAY.getCode()) ? Calendar.DAY_OF_MONTH : Calendar.MONTH;
int receivePeriod = wxPropertyContract.getReceivePeriod().intValue(); int receivePeriod = wxPropertyContract.getReceivePeriod().intValue();
Integer lease = wxPropertyContract.getLease(); Integer lease = wxPropertyContract.getLease();
int extralease = lease % receivePeriod; int extralease = lease % receivePeriod;


불러오는 중...
취소
저장