guoyujia 10 月之前
父節點
當前提交
f41a10be94

+ 1 - 0
src/main/java/cn/ezhizao/project/business/product/mapper/BizProductionPlanDetailMapper.java

@@ -21,6 +21,7 @@ public interface BizProductionPlanDetailMapper extends BaseMapper<BizProductionP
      * @return 生产计划明细集合
      */
     public List<BizProductionPlanDetail> getList(Map<String, Object> data);
+    public List<BizProductionPlanDetail> selectNotComplatedList(BizProductionPlanDetail bizProductionPlanDetail);
 
     /**
      * 物理删除

+ 1 - 0
src/main/java/cn/ezhizao/project/business/product/service/IBizProductionPlanDetailService.java

@@ -21,6 +21,7 @@ public interface IBizProductionPlanDetailService extends IService<BizProductionP
      * @return 生产计划明细集合
      */
     List<BizProductionPlanDetail> getList(Map<String, Object> data);
+    List<BizProductionPlanDetail> selectNotComplatedList(BizProductionPlanDetail bizProductionPlanDetail);
 
     /**
      * 物理删除

+ 6 - 0
src/main/java/cn/ezhizao/project/business/product/service/impl/BizProductionPlanDetailServiceImpl.java

@@ -33,6 +33,12 @@ public class BizProductionPlanDetailServiceImpl  extends ServiceImpl<BizProducti
     {
         return bizProductionPlanDetailMapper.getList(data);
     }
+
+    @Override
+    public List<BizProductionPlanDetail> selectNotComplatedList(BizProductionPlanDetail bizProductionPlanDetail) {
+        return bizProductionPlanDetailMapper.selectNotComplatedList(bizProductionPlanDetail);
+    }
+
     /**
      * 根据生产计划明细查询生产计划明细
      * @param bizProductionPlanDetail 生产计划明细

+ 12 - 1
src/main/resources/mybatis/business/product/BizProductionPlanDetailMapper.xml

@@ -22,7 +22,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="getDayWorkSubPlanDetailID" resultMap="BizDayWorkResult">
         select * from biz_daywork where deleted = 0 and production_plan_detail_id = #{id}
     </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 * FROM biz_production_plan_detail
         <trim prefix=" WHERE" suffix="" suffixOverrides="AND">