Commit b95b9255 by huangZW

1111

parent 73d40d8a
...@@ -18,7 +18,8 @@ public interface StaffApiService { ...@@ -18,7 +18,8 @@ public interface StaffApiService {
public List<StaffDTO> listByIds(List<String> staffIds); public List<StaffDTO> listByIds(List<String> staffIds);
public List<StaffDTO> listByWxUserId(String wxUserId);
public StaffDTO selectByNationcodeAndPhoneNumber(String wxEnterpriseId,String nationcode, String phoneNumber); public StaffDTO selectByNationcodeAndPhoneNumber(String wxEnterpriseId,String nationcode, String phoneNumber);
public ServiceResponse add(StaffDTO staff, String departmentIds); public ServiceResponse add(StaffDTO staff, String departmentIds);
......
...@@ -25,6 +25,8 @@ public interface StaffMapper { ...@@ -25,6 +25,8 @@ public interface StaffMapper {
List<TabHaobanStaff> listByIds(@Param("staffIds")List<String> staffIds); List<TabHaobanStaff> listByIds(@Param("staffIds")List<String> staffIds);
List<TabHaobanStaff> listByWxUserId(@Param("wxUserId")String wxUserId);
List<TabHaobanStaff> listLikeName(@Param("staffName")String staffName); List<TabHaobanStaff> listLikeName(@Param("staffName")String staffName);
Page<TabHaobanStaff> pageStaff(@Param("staffIds")Set<String> staffIds, @Param("activeFlag")Integer activeFlag, @Param("keyword")String keyword); Page<TabHaobanStaff> pageStaff(@Param("staffIds")Set<String> staffIds, @Param("activeFlag")Integer activeFlag, @Param("keyword")String keyword);
......
...@@ -21,6 +21,7 @@ import com.gic.redis.data.anno.RedisCache; ...@@ -21,6 +21,7 @@ import com.gic.redis.data.anno.RedisCache;
import com.gic.thirdparty.api.dto.PicUploadResDTO; import com.gic.thirdparty.api.dto.PicUploadResDTO;
import com.gic.thirdparty.api.service.QQCloudPicService; import com.gic.thirdparty.api.service.QQCloudPicService;
import com.vdurmont.emoji.EmojiParser; import com.vdurmont.emoji.EmojiParser;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
...@@ -1217,6 +1218,11 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -1217,6 +1218,11 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
return resp; return resp;
} }
@Override
public List<StaffDTO> listByWxUserId(String wxUserId) {
List<TabHaobanStaff> list = staffMapper.listByWxUserId(wxUserId);
return EntityUtil.changeEntityListByJSON(StaffDTO.class, list);
}
// private String getMobile(String phoneNumber,String nationcode){ // private String getMobile(String phoneNumber,String nationcode){
// String mobile = nationcode + phoneNumber; // String mobile = nationcode + phoneNumber;
......
...@@ -291,6 +291,15 @@ ...@@ -291,6 +291,15 @@
</foreach> </foreach>
</if> </if>
</select> </select>
<select id="listByWxUserId" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from tab_haoban_staff
where status_flag = 1
<if test="wxUserId != null">
and wx_user_id = #{wxUserId,jdbcType=VARCHAR}
</if>
</select>
<select id="listLikeName" resultMap="BaseResultMap" > <select id="listLikeName" resultMap="BaseResultMap" >
select select
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment