批次明细关键字模糊查询接口修改

This commit is contained in:
hy2250089 2020-03-25 15:10:10 +08:00
父節點 a152f9164d
當前提交 51b3204991
共有 2 個檔案被更改,包括 5 行新增1 行删除

查看文件

@ -71,6 +71,9 @@
FROM mt_alone_product_process_batch_det det
LEFT JOIN mt_alone_product_process prodproc ON det.product_process_id = prodproc.id AND det.company_id = prodproc.company_id
<where>
<if test="keywords != null and keywords != ''">
AND prodproc.product_process_name0 LIKE CONCAT('%', #{keywords}, '%')
</if>
<if test="productProcessId != null">
AND det.product_process_id = #{productProcessId}
</if>

查看文件

@ -86,7 +86,8 @@ public class ProductProcessBatchDetController {
*/
@ApiOperation(value = "批次生产加工单下的明细查询", notes = "批次生产加工单下的明细查询")
@ApiImplicitParams({
@ApiImplicitParam(name = "productProcessId", value = "批次生产加工单id", paramType = "query", dataType = "int", required = true)
@ApiImplicitParam(name = "productProcessId", value = "批次生产加工单id", paramType = "query", dataType = "int", required = true),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String", required = false)
})
@OperateLog(description = "批次生产加工单下的明细查询", type = "查询")
@GetMapping("/listByProductProcess")