feature:1。发票列表添加凭证号区间查询,2.排序联动

master
路明慧 10 months ago
parent 3e7897cdda
commit af1bf3d009
  1. 2
      order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/controller/InvoiceController.java
  2. 8
      order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/model/OrderListQuery.java
  3. 30
      order-management-invoice/src/main/resources/mybatis/mapper/OrderInvoiceInfoMapper.xml

@ -66,6 +66,8 @@ public class InvoiceController {
log.debug("{}发票明细列表查询参数:{}", LOGGER_MSG, JsonUtils.getInstance().toJsonString(orderBatchQuery));
//数据转换
Map<String, Object> paramMap = PageBeanConvertUtil.convertToMap(orderBatchQuery);
paramMap.put("pzhStart", orderBatchQuery.getPzhStart());
paramMap.put("pzhEnd", orderBatchQuery.getPzhEnd());
if (StringUtils.isBlank(orderBatchQuery.getXhfNsrsbh())) {
log.error("{},请求税号为空!", LOGGER_MSG);
return R.error(OrderValidateEnum.TAXCODE_ISNULL.getKey(), OrderValidateEnum.TAXCODE_ISNULL.getMessage());

@ -260,5 +260,13 @@ public class OrderListQuery {
* 短信交付状态 0未交付 1已交付
*/
private String shortMsgPushStatus;
/**
* 凭证号排序
*/
private String pzhStart;
/**
* 订单号排序
*/
private String pzhEnd;
}

@ -1636,6 +1636,12 @@
<if test="map.maxhjje!=null and map.maxhjje!= '' ">
and CAST(oii.kphjje AS DECIMAL(40,2)) &lt;= CAST(#{map.maxhjje,jdbcType=VARCHAR} as DECIMAL(40,2))
</if>
<if test="map.pzhStart !=null and map.pzhStart != '' ">
and CAST(oi.byzd2 AS UNSIGNED) &gt;= CAST(#{map.pzhStart,jdbcType=VARCHAR} as UNSIGNED)
</if>
<if test="map.pzhEnd !=null and map.pzhEnd != '' ">
and CAST(oi.byzd2 AS UNSIGNED) &lt;= CAST(#{map.pzhEnd,jdbcType=VARCHAR} as UNSIGNED)
</if>
</where>
</sql>
@ -1649,11 +1655,25 @@
<when test="map.orderBy !=null and map.orderBy == 'checkTime' ">
order by check_time desc
</when>
<when test="map.orderBy !=null and map.orderBy == 'pzhAsc' ">
order by CONVERT(oi.byzd2, UNSIGNED) asc,kprq DESC
</when>
<when test="map.orderBy !=null and map.orderBy == 'pzhDesc' ">
order by CONVERT(oi.byzd2, UNSIGNED) desc,kprq DESC
<when test="map.orderBy !=null and map.orderBy == '88' ">
order by CASE
WHEN oi.byzd2 IS NULL OR oi.byzd2 = '' THEN 1
ELSE 0
END,
CONVERT(oi.byzd2, UNSIGNED) asc,ddh DESC
</when>
<when test="map.orderBy !=null and map.orderBy == '99' ">
order by CASE
WHEN oi.byzd2 IS NULL OR oi.byzd2 = '' THEN 1
ELSE 0
END,
CONVERT(oi.byzd2, UNSIGNED) asc,ddh asc
</when>
<when test="map.orderBy !=null and map.orderBy == '66' ">
order by CONVERT(oi.byzd2, UNSIGNED) DESC,ddh DESC
</when>
<when test="map.orderBy !=null and map.orderBy == '77' ">
order by CONVERT(oi.byzd2, UNSIGNED) DESC,ddh asc
</when>
<otherwise>
ORDER BY kprq DESC

Loading…
Cancel
Save