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

This commit is contained in:
hy2250089 2020-03-25 15:10:10 +08:00
bovenliggende a152f9164d
commit 51b3204991
2 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen

Bestand weergeven

@ -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>

Bestand weergeven

@ -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")