Selaa lähdekoodia

fix 员工支持客服身份

Eric 10 kuukautta sitten
vanhempi
commit
8930af1824

+ 11 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/dto/search/EmployeeSearch.java

@@ -42,6 +42,9 @@ public class EmployeeSearch extends QueryInfo{
     @ApiModelProperty("用户状态")
     @ApiModelProperty("用户状态")
     private String userStatus;
     private String userStatus;
 
 
+    @ApiModelProperty("是否客服")
+    private Boolean customerService;
+
     public String getSearch() {
     public String getSearch() {
         return search;
         return search;
     }
     }
@@ -111,4 +114,12 @@ public class EmployeeSearch extends QueryInfo{
 	public void setUserStatus(String userStatus) {
 	public void setUserStatus(String userStatus) {
 		this.userStatus = userStatus;
 		this.userStatus = userStatus;
 	}
 	}
+
+    public Boolean getCustomerService() {
+        return customerService;
+    }
+
+    public void setCustomerService(Boolean customerService) {
+        this.customerService = customerService;
+    }
 }
 }

+ 4 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/EmployeeMapper.xml

@@ -60,6 +60,7 @@
         , t.introduction_ as "introduction"
         , t.introduction_ as "introduction"
         , t.demission_date_ as "demissionDate"
         , t.demission_date_ as "demissionDate"
         , t.contact_address_ as "contactAddress"
         , t.contact_address_ as "contactAddress"
+        , t.customer_service_ as "customerService"
     </sql>
     </sql>
 
 
     <select id="detail" resultType="com.yonge.cooleshow.biz.dal.vo.EmployeeVo">
     <select id="detail" resultType="com.yonge.cooleshow.biz.dal.vo.EmployeeVo">
@@ -106,6 +107,9 @@
             <if test="null != param.delFlag">
             <if test="null != param.delFlag">
                 and u.del_flag_ = #{param.delFlag}
                 and u.del_flag_ = #{param.delFlag}
             </if>
             </if>
+            <if test="param.customerService != null">
+                AND t.customer_service_ = #{param.customerService}
+            </if>
         </where>
         </where>
     </select>
     </select>