Commit b952fb3a authored by hezhen's avatar hezhen

123

parent 846e0c12
...@@ -335,15 +335,17 @@ public class BaseOrderAcceptDetailedBiz extends BaseBiz<BaseOrderAcceptDetailedM ...@@ -335,15 +335,17 @@ public class BaseOrderAcceptDetailedBiz extends BaseBiz<BaseOrderAcceptDetailedM
if (violateAmount.compareTo(BigDecimal.ZERO) > 0 && orderDetailDTO.getOrderStatus().equals(OrderDetailDTO.DELAY)){ if (violateAmount.compareTo(BigDecimal.ZERO) > 0 && orderDetailDTO.getOrderStatus().equals(OrderDetailDTO.DELAY)){
acceptDetailed.setDivisionAmount(orderDetailDTO.getViolateAmount()); acceptDetailed.setDivisionAmount(orderDetailDTO.getViolateAmount());
acceptDetailed.setDivisionType(8); acceptDetailed.setDivisionType(8);
acceptDetailed.setEntryType(orderDetailDTO.getGoodsDepositType());
insertSelective(acceptDetailed); insertSelective(acceptDetailed);
} }
BigDecimal lossSpecifiedAmount = orderDetailDTO.getLossSpecifiedAmount() == null ? BigDecimal.ZERO :orderDetailDTO.getLossSpecifiedAmount() ; //定损 BigDecimal lossSpecifiedAmount = orderDetailDTO.getLossSpecifiedAmount() == null ? BigDecimal.ZERO :orderDetailDTO.getLossSpecifiedAmount() ; //定损
if (lossSpecifiedAmount.compareTo(BigDecimal.ZERO) > 0 ){ if (lossSpecifiedAmount.compareTo(BigDecimal.ZERO) > 0 ){
acceptDetailed.setDivisionAmount(lossSpecifiedAmount); acceptDetailed.setDivisionAmount(lossSpecifiedAmount);
acceptDetailed.setDivisionType(6); acceptDetailed.setDivisionType(6);
acceptDetailed.setEntryType(orderDetailDTO.getGoodsDepositType());
insertSelective(acceptDetailed); insertSelective(acceptDetailed);
} }
BigDecimal breakRulesRegulation = orderDetailDTO.getLossSpecifiedAmount() == null ? BigDecimal.ZERO :orderDetailDTO.getBreakRulesRegulation() ; //违章 BigDecimal breakRulesRegulation = orderDetailDTO.getBreakRulesRegulation() == null ? BigDecimal.ZERO :orderDetailDTO.getBreakRulesRegulation() ; //违章
if (breakRulesRegulation.compareTo(BigDecimal.ZERO) > 0 ){ if (breakRulesRegulation.compareTo(BigDecimal.ZERO) > 0 ){
acceptDetailed.setDivisionAmount(breakRulesRegulation); acceptDetailed.setDivisionAmount(breakRulesRegulation);
acceptDetailed.setDivisionType(7); acceptDetailed.setDivisionType(7);
......
...@@ -98,6 +98,7 @@ public class OrderDetailBiz{ ...@@ -98,6 +98,7 @@ public class OrderDetailBiz{
orderDetailDTO.setOrderId(baseOrder.getId()); orderDetailDTO.setOrderId(baseOrder.getId());
orderDetailDTO.setUserId(baseOrder.getUserId()); orderDetailDTO.setUserId(baseOrder.getUserId());
orderDetailDTO.setOrderNo(baseOrder.getNo()); orderDetailDTO.setOrderNo(baseOrder.getNo());
orderDetailDTO.setGoodsDepositType(vehicleDetail.getGoodsDepositType());
if (accountDetail != null){ if (accountDetail != null){
List<OrderAccountDeduction> deductions = accountDetail.getDeductions(); List<OrderAccountDeduction> deductions = accountDetail.getDeductions();
if (CollectionUtils.isNotEmpty(deductions)){ if (CollectionUtils.isNotEmpty(deductions)){
......
...@@ -94,8 +94,8 @@ ...@@ -94,8 +94,8 @@
IF(e1.cata_id is NULL,0,1) as isParentSelected IF(e1.cata_id is NULL,0,1) as isParentSelected
</when> </when>
<when test="cataIds != null and cataIds.size() > 0"> <when test="cataIds != null and cataIds.size() > 0">
IF(e.cata_id is NULL,0,1) as isSelected, IF(c2.cata_id is NULL,0,1) as isSelected,
IF(e1.cata_id is NULL,0,1) as isParentSelected IF(c1.cata_id is NULL,0,1) as isParentSelected
</when> </when>
<otherwise> <otherwise>
0 as isSelected, 0 as isSelected,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment