Forráskód Böngészése

配件销售单搜索师傅增加2个参数

FengChaoYu 1 hete
szülő
commit
81c7837704

+ 6 - 0
mall-server-api/src/main/java/com/gree/mall/manager/zfire/bean/WorkerParamBean.java

@@ -25,4 +25,10 @@ public class WorkerParamBean extends ZfireParamBean {
 
     @ApiModelProperty(value = "是否忽略网点权限")
     private Boolean ignoreWebsitRole;
+
+    @ApiModelProperty(value = "师傅手机号")
+    private String workerMobile;
+
+    @ApiModelProperty(value = "师傅名称")
+    private String workerName;
 }

+ 6 - 0
mall-server-sync-api/src/main/resources/mapper/CommonMapper.xml

@@ -108,6 +108,12 @@
                 #{item}
             </foreach>
         </if>
+        <if test="ex.workerMobile != null">
+            AND a.mobile = #{ex.workerMobile}
+        </if>
+        <if test="ex.workerName != null">
+            AND a.nick_name LIKE CONCAT('%',#{ex.workerName},'%')
+        </if>
         and a.apply_type='WORKER'
         <if test="ex.isGroupByWorkerId != null and ex.isGroupByWorkerId == true">
             GROUP BY a.worker_number