Commit cdd6aedd by 徐高华

导购任务-查询绑定导购

parent 5067819f
......@@ -364,4 +364,7 @@ public interface StaffApiService {
com.gic.api.base.commons.ServiceResponse<StaffActiveAllocationDTO> staffActiveAllocation(String wxEnterpriseId,String staffIds);
void updateStaffHead(String wxEnterpriseId ,String staffId, String headUrl);
List<StaffDTO> listByParams(String enterpriseId , String params, String wxEnterpriseId) ;
}
......@@ -194,4 +194,6 @@ public interface StaffMapper {
void updateOccupyFlagByStaffId(@Param("staffId") String staffId);
void updateStaffHead(@Param("staffId")String staffId, @Param("headUrl")String headUrl);
List<StaffDTO> listByParams(List<String> wxEnterpriseIdList, String params);
}
\ No newline at end of file
......@@ -1448,4 +1448,12 @@ public class StaffApiServiceImpl implements StaffApiService {
public void updateStaffHead(String wxEnterpriseId ,String staffId, String headUrl) {
this.staffService.updateStaffHead(wxEnterpriseId,staffId,headUrl) ;
}
@Override
public List<StaffDTO> listByParams(String enterpriseId, String params , String wxEnterpriseId) {
List<TabHaobanWxEnterprise> list = this.wxEnterpriseRelatedService.listByEnterpriseId(enterpriseId) ;
List<String> wxEnterpriseIdList = list.stream().map(o->o.getWxEnterpriseId()).collect(Collectors.toList());
params = "%"+params+"%" ;
return this.staffMapper.listByParams(wxEnterpriseIdList , params) ;
}
}
......@@ -679,4 +679,16 @@
where staff_id= #{staffId}
</update>
<select id="listByParams" resultType="com.gic.haoban.manage.api.dto.StaffDTO">
select
<include refid="Base_Column_List"/>
FROM tab_haoban_staff
WHERE
wx_enterprise_id in (
<foreach collection="list" item="item" separator=",">
#{item}
</foreach> )
and (staff_name like #{params}) and status_flag = 1 limit 100
</select>
</mapper>
\ No newline at end of file
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