|
@ -71,6 +71,7 @@ import com.yxt.messagecenter.api.message.MessagePushTransferDto; |
|
|
import com.yxt.messagecenter.api.message.PushMessageQuery; |
|
|
import com.yxt.messagecenter.api.message.PushMessageQuery; |
|
|
import com.yxt.messagecenter.api.message.PushSmsDto; |
|
|
import com.yxt.messagecenter.api.message.PushSmsDto; |
|
|
import com.yxt.messagecenter.api.messagelist.MessageListDto; |
|
|
import com.yxt.messagecenter.api.messagelist.MessageListDto; |
|
|
|
|
|
import org.apache.poi.hpsf.Decimal; |
|
|
import org.apache.tomcat.util.threads.ThreadPoolExecutor; |
|
|
import org.apache.tomcat.util.threads.ThreadPoolExecutor; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.scheduling.annotation.Scheduled; |
|
|
import org.springframework.scheduling.annotation.Scheduled; |
|
@ -305,6 +306,11 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
orderSid = loancontract.getSalesOrderSid(); |
|
|
orderSid = loancontract.getSalesOrderSid(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
LoanSolutionsDetailsssVo solutionsDetailsssVo = new LoanSolutionsDetailsssVo(); |
|
|
|
|
|
ResultBean<SolutionsDetailsVo> solutionsDetailsVoResultBean = loanSolutionsService.selectDetailss(orderSid); |
|
|
|
|
|
if (solutionsDetailsVoResultBean.getData() != null) { |
|
|
|
|
|
BeanUtil.copyProperties(solutionsDetailsVoResultBean.getData(), solutionsDetailsssVo); |
|
|
|
|
|
} |
|
|
if (StringUtils.isBlank(dto.getMainRepayDate())) { |
|
|
if (StringUtils.isBlank(dto.getMainRepayDate())) { |
|
|
return rb.setMsg("请选择主金融产品首期还款日!"); |
|
|
return rb.setMsg("请选择主金融产品首期还款日!"); |
|
|
} |
|
|
} |
|
@ -317,6 +323,18 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
if (StringUtils.isBlank(dto.getMainLastRepay())) { |
|
|
if (StringUtils.isBlank(dto.getMainLastRepay())) { |
|
|
return rb.setMsg("请填写主金融产品末期月还!"); |
|
|
return rb.setMsg("请填写主金融产品末期月还!"); |
|
|
} |
|
|
} |
|
|
|
|
|
BigDecimal mainRepay = new BigDecimal(dto.getMainMidRepay()); |
|
|
|
|
|
if (null != solutionsDetailsssVo) { |
|
|
|
|
|
BigDecimal op = new BigDecimal(solutionsDetailsssVo.getLoanPayMoney()); |
|
|
|
|
|
BigDecimal z = op.add(new BigDecimal("50")); |
|
|
|
|
|
BigDecimal f = op.add(new BigDecimal("-50")); |
|
|
|
|
|
if (mainRepay.compareTo(z) > 0) { |
|
|
|
|
|
return rb.setMsg("填写的主产品月还与金融方案月还正负差值不能大于50"); |
|
|
|
|
|
} |
|
|
|
|
|
if (mainRepay.compareTo(f) < 0) { |
|
|
|
|
|
return rb.setMsg("填写的主产品月还与金融方案月还正负差值不能大于50"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
if (dto.getIsOtherPolicy().equals("1")) { |
|
|
if (dto.getIsOtherPolicy().equals("1")) { |
|
|
if (StringUtils.isBlank(dto.getOtherRepayDate())) { |
|
|
if (StringUtils.isBlank(dto.getOtherRepayDate())) { |
|
|
return rb.setMsg("请选择其他融首期还款日!"); |
|
|
return rb.setMsg("请选择其他融首期还款日!"); |
|
@ -330,6 +348,18 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
if (StringUtils.isBlank(dto.getOtherLastRepay())) { |
|
|
if (StringUtils.isBlank(dto.getOtherLastRepay())) { |
|
|
return rb.setMsg("请填写其他融末期月还!"); |
|
|
return rb.setMsg("请填写其他融末期月还!"); |
|
|
} |
|
|
} |
|
|
|
|
|
BigDecimal otherRepay = new BigDecimal(dto.getOtherMidRepay()); |
|
|
|
|
|
if (null != solutionsDetailsssVo) { |
|
|
|
|
|
BigDecimal op = new BigDecimal(solutionsDetailsssVo.getOtherPolicyMonthlyRepay()); |
|
|
|
|
|
BigDecimal z = op.add(new BigDecimal("50")); |
|
|
|
|
|
BigDecimal f = op.add(new BigDecimal("-50")); |
|
|
|
|
|
if (otherRepay.compareTo(z) > 0) { |
|
|
|
|
|
return rb.setMsg("填写的其他融月还与金融方案其他融月还正负差值不能大于50"); |
|
|
|
|
|
} |
|
|
|
|
|
if (otherRepay.compareTo(f) < 0) { |
|
|
|
|
|
return rb.setMsg("填写的其他融月还与金融方案其他融月还正负差值不能大于50"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
if (null != loanRepaymentSchedule) { |
|
|
if (null != loanRepaymentSchedule) { |
|
|
scheduleSid = loanRepaymentSchedule.getSid(); |
|
|
scheduleSid = loanRepaymentSchedule.getSid(); |
|
|