采购计划高级查询

dev_unify
qiuyt 8 months ago
parent 4db20f6159
commit dd2b6b10ce

@ -83,4 +83,6 @@ public class PurPlanDetailRequest extends ListPageRequest {
private Integer pageType; private Integer pageType;
private Integer productType; private Integer productType;
private String keyWords;
} }

@ -215,6 +215,18 @@
<if test="endDate != null and endDate !=''"> <if test="endDate != null and endDate !=''">
<![CDATA[ and DATE_FORMAT(pur_plan.createTime,'%Y-%m-%d') <= #{endDate}]]> <![CDATA[ and DATE_FORMAT(pur_plan.createTime,'%Y-%m-%d') <= #{endDate}]]>
</if> </if>
<if test="keyWords != '' and keyWords != null">
AND (
basic_products.nameCode LIKE concat('%', #{keyWords}, '%')
or pur_plan.billNo LIKE concat('%', #{keyWords}, '%')
or pur_plan.productType LIKE concat('%', #{keyWords}, '%')
or productId LIKE concat('%', #{keyWords}, '%')
or productName LIKE concat('%', #{keyWords}, '%')
or basic_products.ggxh LIKE concat('%', #{keyWords}, '%')
or pur_plan_detail.zczbhhzbapzbh LIKE concat('%', #{keyWords}, '%')
or basic_products.manufactory LIKE concat('%', #{keyWords}, '%')
)
</if>
and (pur_plan.status = 3 or saf.status = 3) and (pur_plan.status = 3 or saf.status = 3)
</where> </where>
</select> </select>

Loading…
Cancel
Save