Commit 1ce159a7482921523e8efbd61bdebe5374e0e5d9

Authored by yeqianyong
1 parent e7b6cd8b

楚江erp:反馈单增加搜索条件

... ... @@ -114,7 +114,7 @@ public class SampleResultFeedbackController extends DefaultBaseController {
114 114 * @param id 主键ID
115 115 * @param response 响应体
116 116 */
117   - @ApiOperation("规格变更打印")
  117 + @ApiOperation("导出反馈单数据")
118 118 @GetMapping("/export")
119 119 public void export(@NotBlank(message = "id不能为空") String id, String exportType
120 120 , HttpServletResponse response) {
... ...
... ... @@ -47,4 +47,11 @@ public class QuerySampleResultFeedbackVo extends PageVo implements BaseVo, Seria
47 47 @ApiModelProperty("订单编号")
48 48 private String orderNo;
49 49
  50 +
  51 + /**
  52 + * 搜索关键字
  53 + * 客户名称或订单编号
  54 + */
  55 + @ApiModelProperty("搜索关键字")
  56 + private String searchKey;
50 57 }
... ...
... ... @@ -56,6 +56,12 @@
56 56 <if test="vo.orderNo != null and vo.orderNo != ''">
57 57 AND o.order_no LIKE CONCAT('%', #{vo.orderNo}, '%')
58 58 </if>
  59 + <if test="vo.searchKey != null and vo.searchKey != ''">
  60 + AND (
  61 + o.order_no LIKE CONCAT('%', #{vo.searchKey}, '%')
  62 + OR c.name LIKE CONCAT('%', #{vo.searchKey}, '%')
  63 + )
  64 + </if>
59 65 </where>
60 66 </select>
61 67 </mapper>
... ...