姜永辉 2 lat temu
rodzic
commit
625f6c94b4

+ 16 - 1
src/main/java/com/dk/mdm/mapper/ivt/InboundMapper.xml

@@ -172,11 +172,24 @@
     <sql id="Condition">
         <where>
             <if test="intoNo != null and intoNo != ''">
-                AND tpi.into_no = #{intoNo}
+                AND tpi.into_no = LIKE concat('%',my_ex.likequery(#{intoNo}),'%')
             </if>
             <if test="intoType != null and intoType != ''">
                 AND tpi.into_type LIKE concat('%',my_ex.likequery(#{intoType}),'%')
             </if>
+            <if test="intoTypes != null and intoTypes.size()>0">
+                AND tpi.into_type =any(#{intoTypes,typeHandler=StringListTypeHandler})
+            </if>
+            <if test="searchText !=null and searchText != ''">
+                AND (
+                    tpi.into_no   LIKE concat('%',my_ex.likequery(#{searchText}),'%')
+                    or tmc.cus_phone LIKE concat('%',my_ex.likequery(#{searchText}),'%')
+                    or tmc.cus_name LIKE concat('%',my_ex.likequery(#{searchText}),'%')
+                    or tmo.org_name LIKE concat('%',my_ex.likequery(#{searchText}),'%')
+                    or tmp.sup_name LIKE concat('%',my_ex.likequery(#{searchText}),'%')
+                    or tms.staff_name LIKE concat('%',my_ex.likequery(#{searchText}),'%')
+                )
+            </if>
             <if test="fromId != null and fromId != ''">
                 AND tpi.from_id = #{fromId}::uuid
             </if>
@@ -260,6 +273,7 @@
         tmc.cus_phone                                     as "cusPhone",
         tmc.cus_from                                      as "cusFrom",
         makestaff.staff_name                              as "makeStaffName",
+        sys.f_get_name_i18n(tdktype.kind_name_i18n, 'zh_CN') AS  "intoTypeName",
         sys.f_get_name_i18n(tdk.kind_name_i18n, 'zh_CN') AS  "intoStatusName"
         FROM dkic_b.t_psi_inbound tpi
         <include refid="Join_Table"/>
@@ -284,6 +298,7 @@
         Left join dkic_b.t_mst_staff tms on tms.staff_id = tpi.staff_id
         Left join dkic_b.t_mst_staff makestaff on makestaff.staff_id = tpi.make_staff
         LEFT JOIN sys.t_data_kind tdk   ON tdk.kind_code = tpi.into_status
+        LEFT JOIN sys.t_data_kind tdktype   ON tdktype.kind_code = tpi.into_type
         Left join dkic_b.t_mst_warehouse tmw on tmw.wh_id = tpi.wh_id
         left join dkic_b.t_mst_customer tmc on tpi.cus_id = tmc.cus_id
     </sql>

+ 13 - 0
src/main/java/com/dk/mdm/model/query/ivt/InboundQuery.java

@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
 import com.dk.common.infrastructure.annotaiton.ExportTitle;
 import com.dk.common.infrastructure.handler.JsonTypeHandler;
+import com.dk.common.infrastructure.handler.StringListTypeHandler;
 import com.dk.common.infrastructure.handler.TimestampTypeHandler;
 import com.dk.common.infrastructure.handler.UuidTypeHandler;
 import com.dk.common.model.pojo.PageInfo;
@@ -67,6 +68,18 @@ public class InboundQuery extends PageInfo<InboundQuery> implements Serializable
     @ApiModelProperty(value = "入库类型 (【系统字典】采购入库、销退入库、其他入库)")
     private String intoType;
 
+    /**
+     * 小程序的查询条件
+     */
+    @ApiModelProperty(value = "小程序的查询条件")
+    private String searchText;
+
+    /**
+     * 入库类型-传入多个
+     */
+    @ApiModelProperty(value = "入库类型")
+    @TableField(typeHandler = StringListTypeHandler.class)
+    private List<String> intoTypes;
 
     /**
      * 来源单ID (采购订单、出库退货)

+ 4 - 0
src/main/java/com/dk/mdm/model/query/mst/StaffQuery.java

@@ -221,6 +221,10 @@ public class StaffQuery extends PageInfo<StaffQuery> implements Serializable {
     @ApiModelProperty(value = "登录标识")
     private Integer hrStatus;
 
+    /**
+     * 小程序的查询条件
+     */
+    @ApiModelProperty(value = "小程序的查询条件")
     private String searchText;
 
     private static final long serialVersionUID = 1L;

+ 7 - 0
src/main/java/com/dk/mdm/model/response/ivt/InboundResponse.java

@@ -386,6 +386,13 @@ public class InboundResponse extends PageInfo<InboundResponse> implements Serial
     @ApiModelProperty(value = "入库状态名称")
     private String intoStatusName;
 
+    /**
+     * 入库类型名称
+     */
+    @Excel(name = "入库类型名称")
+    @ApiModelProperty(value = "入库类型名称")
+    private String intoTypeName;
+
 
     @ApiModelProperty(value = "入库单明细")
     private List<InboundItemResponse> goodsList;