Commit 7916047e authored by jiaorz's avatar jiaorz

发票

parent 02d4f8c3
...@@ -46,4 +46,6 @@ public class QueryOrderDTO extends PageParam { ...@@ -46,4 +46,6 @@ public class QueryOrderDTO extends PageParam {
private String orderIds; private String orderIds;
private Integer refundStatus;
} }
\ No newline at end of file
...@@ -127,7 +127,7 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp ...@@ -127,7 +127,7 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
if (value.getType()!=1){ if (value.getType()!=1){
Example example = new Example(OrderAccount.class); Example example = new Example(OrderAccount.class);
//获取退还部分押金和剩余押金的记录 //获取退还部分押金和剩余押金的记录
example.createCriteria().andEqualTo("orderId",value.getOrderId()).andIn("accountType",Lists.newArrayList(AccountTypeEnum.OUT_PART_DEPOSIT.getCode(),AccountTypeEnum.OUT_RESIDUE_DEPOSIT.getCode())); example.createCriteria().andEqualTo("orderId",value.getOrderId()).andIn("accountType",Lists.newArrayList(AccountTypeEnum.OUT_PART_DEPOSIT.getCode(),AccountTypeEnum.OUT_RESIDUE_DEPOSIT.getCode())).andEqualTo("accountStatus", 1);
List<OrderAccount> orderAccounts = orderAccountBiz.selectByExample(example); List<OrderAccount> orderAccounts = orderAccountBiz.selectByExample(example);
if (CollectionUtil.isEmpty(orderAccounts)) { if (CollectionUtil.isEmpty(orderAccounts)) {
value.setActualDeposit("定损中"); value.setActualDeposit("定损中");
......
...@@ -190,6 +190,9 @@ public class BaseOrderController extends CommonBaseController implements UserRes ...@@ -190,6 +190,9 @@ public class BaseOrderController extends CommonBaseController implements UserRes
} }
//dto.setCrtUser(Integer.valueOf(BaseContextHandler.getUserID())); //dto.setCrtUser(Integer.valueOf(BaseContextHandler.getUserID()));
dto.setUserId(Integer.valueOf(BaseContextHandler.getUserID())); dto.setUserId(Integer.valueOf(BaseContextHandler.getUserID()));
if (dto.getType() == OrderTypeEnum.RENT_VEHICLE.getCode()) {
dto.setRefundStatus(3);
}
Query query = new Query(dto); Query query = new Query(dto);
PageDataVO<OrderPageVO> pages = PageDataVO.pageInfo(query, () -> baseOrderBiz.pageByParm(query.getSuper())); PageDataVO<OrderPageVO> pages = PageDataVO.pageInfo(query, () -> baseOrderBiz.pageByParm(query.getSuper()));
pages.getData().parallelStream().forEach(data -> { pages.getData().parallelStream().forEach(data -> {
......
...@@ -71,6 +71,9 @@ ...@@ -71,6 +71,9 @@
<if test="invoiceStatus != null"> <if test="invoiceStatus != null">
and invoice_status = #{invoiceStatus} and invoice_status = #{invoiceStatus}
</if> </if>
<if test="refundStatus != null">
and refund_status = #{refundStatus}
</if>
<if test="hasMemberRight != null"> <if test="hasMemberRight != null">
and has_member_right = #{hasMemberRight} and has_member_right = #{hasMemberRight}
</if> </if>
......
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