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

Tento commit je obsažen v:
hy2250089 2020-03-25 15:10:10 +08:00
rodič a152f9164d
revize 51b3204991
2 změnil soubory, kde provedl 5 přidání a 1 odebrání

Zobrazit soubor

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

Zobrazit soubor

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