Commit caa1393803223af32be90971679caa5e94b459fc

Authored by 房远帅
1 parent f2b5e820

楚江ERP:订货单、撤销单列表新增订货单位或订单编号模糊搜索

@@ -93,4 +93,10 @@ public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializ @@ -93,4 +93,10 @@ public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializ
93 @ApiModelProperty("订货单类型") 93 @ApiModelProperty("订货单类型")
94 private String type; 94 private String type;
95 95
  96 + /**
  97 + * 订货单位或订单编号
  98 + */
  99 + @ApiModelProperty("订货单位或订单编号")
  100 + private String orderingUnitNameOrOrderNo;
  101 +
96 } 102 }
@@ -68,4 +68,9 @@ public class QueryPurchaseOrderRevokeVo extends PageVo implements BaseVo, Serial @@ -68,4 +68,9 @@ public class QueryPurchaseOrderRevokeVo extends PageVo implements BaseVo, Serial
68 @ApiModelProperty("状态") 68 @ApiModelProperty("状态")
69 private String status; 69 private String status;
70 70
  71 + /**
  72 + * 订货单位或订单编号
  73 + */
  74 + @ApiModelProperty("订货单位或订单编号")
  75 + private String orderingUnitNameOrOrderNo;
71 } 76 }
@@ -141,6 +141,10 @@ @@ -141,6 +141,10 @@
141 <if test="vo.type != null and vo.type != ''"> 141 <if test="vo.type != null and vo.type != ''">
142 AND tb.type = #{vo.type} 142 AND tb.type = #{vo.type}
143 </if> 143 </if>
  144 + <if test="vo.orderingUnitNameOrOrderNo != null and vo.orderingUnitNameOrOrderNo != ''">
  145 + AND (cu.name LIKE CONCAT('%', #{vo.orderingUnitNameOrOrderNo},'%')
  146 + or tb.order_no LIKE CONCAT('%', #{vo.orderingUnitNameOrOrderNo},'%'))
  147 + </if>
144 </where> 148 </where>
145 ORDER BY tb.update_time DESC 149 ORDER BY tb.update_time DESC
146 </select> 150 </select>
@@ -83,6 +83,10 @@ @@ -83,6 +83,10 @@
83 <if test="vo.status != null and vo.status != ''"> 83 <if test="vo.status != null and vo.status != ''">
84 AND tb.status = #{vo.status} 84 AND tb.status = #{vo.status}
85 </if> 85 </if>
  86 + <if test="vo.orderingUnitNameOrOrderNo != null and vo.orderingUnitNameOrOrderNo != ''">
  87 + AND (cu.name LIKE CONCAT('%', #{vo.orderingUnitNameOrOrderNo},'%')
  88 + or tb.order_no LIKE CONCAT('%', #{vo.orderingUnitNameOrOrderNo},'%'))
  89 + </if>
86 </where> 90 </where>
87 ORDER BY tb.update_time DESC 91 ORDER BY tb.update_time DESC
88 </select> 92 </select>