|
@@ -22,7 +22,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<select id="getDayWorkSubPlanDetailID" resultMap="BizDayWorkResult">
|
|
<select id="getDayWorkSubPlanDetailID" resultMap="BizDayWorkResult">
|
|
select * from biz_daywork where deleted = 0 and production_plan_detail_id = #{id}
|
|
select * from biz_daywork where deleted = 0 and production_plan_detail_id = #{id}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+ <select id="selectNotComplatedList" resultMap="BizProductionPlanDetailResult">
|
|
|
|
+ SELECT *
|
|
|
|
+ FROM biz_production_plan_detail
|
|
|
|
+ WHERE id IN
|
|
|
|
+ <foreach collection="planDetailIds" item="id" open="(" close=")" separator=",">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
|
|
+ AND deleted = 0
|
|
|
|
+ <if test="keywords != null and keywords != ''">
|
|
|
|
+ AND (product_description LIKE CONCAT('%', #{keywords}, '%') OR production_plan_no LIKE CONCAT('%', #{keywords}, '%'))
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
<select id="getList" resultMap="BizProductionPlanDetailResult">
|
|
<select id="getList" resultMap="BizProductionPlanDetailResult">
|
|
SELECT * FROM biz_production_plan_detail
|
|
SELECT * FROM biz_production_plan_detail
|
|
<trim prefix=" WHERE" suffix="" suffixOverrides="AND">
|
|
<trim prefix=" WHERE" suffix="" suffixOverrides="AND">
|