feature:订单管理页面查询

release
gaorl 2 years ago
parent cd103bdc88
commit c6bc0370cc
  1. 7
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/controller/OrderInfoController.java
  2. 10
      order-management-consumer/src/main/resources/mybatis/mapper/OrderProcessInfoMapper.xml

@ -138,13 +138,18 @@ public class OrderInfoController {
log.error("{},请求税号为空!", LOGGER_MSG);
return R.error(OrderInfoContentEnum.TAXCODE_ISNULL);
}
if (StringUtils.isBlank(orderBatchQuery.getEntList())) {
log.error("{},当前请求的部门id为空!", LOGGER_MSG);
return R.error(OrderInfoContentEnum.ENT_ISNULL);
}
List<String> shList = NsrsbhUtils.transShListByXhfNsrsbh(orderBatchQuery.getXhfNsrsbh());
List<String> entList = NsrsbhUtils.transShListByXhfNsrsbh(orderBatchQuery.getEntList());
//查询数据库
PageUtils page = orderInfoService.selectOrderInfo(paramMap, shList, entList);
PageUtils page = orderInfoService.selectOrderInfo(paramMap, null, entList);
return R.ok().put(OrderManagementConstant.DATA, page);
} catch (Exception e) {

@ -571,20 +571,20 @@
</if>
<if test="entList != null and entList.size() == 0">
and (op.ent_id = '' or op.ent_id is null)
and op.ent_id = ''
</if>
<if test="entList != null and entList.size() == 1">
and (op.ent_id =
and op.ent_id =
<foreach collection="entList" index="index" item="item">
#{item}
</foreach> or op.ent_id is null)
</foreach>
</if>
<if test="entList != null and entList.size() > 1">
and (op.ent_id in
and op.ent_id in
<foreach collection="entList" index="index" item="item"
open="(" separator="," close=")">
#{item}
</foreach> or op.ent_id is null)
</foreach>
</if>
<if test="map.bzdh != null and map.bzdh != ''">
and op.bzdh = #{map.bzdh,jdbcType=VARCHAR}

Loading…
Cancel
Save