Commit 239d2c85 by 徐高华

导购任务

parent df6d987d
......@@ -365,6 +365,6 @@ public interface StaffApiService {
void updateStaffHead(String wxEnterpriseId ,String staffId, String headUrl);
List<StaffDTO> listByParams(String enterpriseId , String params, String wxEnterpriseId) ;
Page<StaffDTO> listByParams(String enterpriseId , String params, String wxEnterpriseId, BasePageInfo pageInfo) ;
}
......@@ -1450,10 +1450,14 @@ public class StaffApiServiceImpl implements StaffApiService {
}
@Override
public List<StaffDTO> listByParams(String enterpriseId, String params , String wxEnterpriseId) {
public Page<StaffDTO> listByParams(String enterpriseId, String params , String wxEnterpriseId , BasePageInfo pageInfo) {
PageHelper.startPage(pageInfo.getPageNum(), pageInfo.getPageSize());
List<TabHaobanWxEnterprise> list = this.wxEnterpriseRelatedService.listByEnterpriseId(enterpriseId) ;
List<String> wxEnterpriseIdList = list.stream().map(o->o.getWxEnterpriseId()).collect(Collectors.toList());
if(StringUtils.isNotBlank(params)) {
params = "%"+params+"%" ;
return this.staffMapper.listByParams(wxEnterpriseIdList , params) ;
}
List<StaffDTO> pageList = this.staffMapper.listByParams(wxEnterpriseIdList , params) ;
return PageUtil.changePageHelperToCurrentPage(new PageInfo<>(pageList), StaffDTO.class);
}
}
......@@ -688,7 +688,10 @@
<foreach collection="list" item="item" separator=",">
#{item}
</foreach> )
and staff_name like #{params} and status_flag = 1 limit 100
<if test="null !-= params">
and staff_name like #{params}
</if>
and status_flag = 1
</select>
</mapper>
\ No newline at end of file
......@@ -9,6 +9,8 @@ public class ClerkRankVO implements Serializable {
*/
private int rank ;
private String clerkId ;
/**
* 导购名称
*/
......@@ -24,6 +26,14 @@ public class ClerkRankVO implements Serializable {
*/
private int contentNum ;
public String getClerkId() {
return clerkId;
}
public void setClerkId(String clerkId) {
this.clerkId = clerkId;
}
public int getRank() {
return rank;
}
......
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