| | |
| | | }else{ |
| | | model.setStatus(Constants.TWO); |
| | | } |
| | | model.setStatus(Constants.ZERO);//待执行 |
| | | model.setRemark(getRemarlByParam(model)); |
| | | ywContractMapper.insert(model); |
| | | dealDetailListBiz(model);//处理条款信息 |
| | |
| | | addBill.setType(Constants.TWO); |
| | | addBill.setStatus(Constants.ZERO); |
| | | addBill.setTotleFee(addBill.getReceivableFee()); |
| | | addBill.setCompanyId(param.getCompanyId()); |
| | | if(Constants.equalsInteger(addBill.getFeeType(),Constants.ONE)){ |
| | | addBill.setStartDate(addBill.getPlanPayDate()); |
| | | addBill.setEndDate(addBill.getPlanPayDate()); |
| | |
| | | } |
| | | } |
| | | for(int i=0;i<billList2.size();i++){ |
| | | if(Constants.equalsInteger(billList1.get(i).getCostType(),Constants.ONE)) { |
| | | if(Constants.equalsInteger(billList2.get(i).getCostType(),Constants.ONE)) { |
| | | billList2.get(i).setSortnum(num); |
| | | num++; |
| | | } |
| | |
| | | if(model.getBillList()!=null && model.getBillList().size()>0){ |
| | | for(YwContractBill bill: model.getBillList()){ |
| | | //付款状态:0=待收款;1=已结清;2=部分结清;3=待付款;4=待退款;5=已关闭 |
| | | if( Constants.formatBigdecimal(bill.getReceivableFee()).compareTo(new BigDecimal(0)) ==0){ |
| | | //如果还没开始,账单直接关闭 |
| | | continue; |
| | | } |
| | | if(Constants.equalsInteger(bill.getPayStatus(),Constants.ZERO) |
| | | ||Constants.equalsInteger(bill.getPayStatus(),Constants.THREE)){ |
| | | if(bill.getStartDate().getTime()>nowEnd){ |
| | | if(bill.getStartDate().getTime()>nowEnd ){ |
| | | //如果还没开始,账单直接关闭 |
| | | continue; |
| | | } |