Commit 39188a30 by 徐高华

开放平台-导购活码

parent a989bf27
package com.gic.haoban.manage.api.dto.hm;
import java.io.Serializable;
public class ClerkQrcodeDTO implements Serializable {
private String clerkId ;
private String qwQrcode ;
public String getClerkId() {
return clerkId;
}
public void setClerkId(String clerkId) {
this.clerkId = clerkId;
}
public String getQwQrcode() {
return qwQrcode;
}
public void setQwQrcode(String qwQrcode) {
this.qwQrcode = qwQrcode;
}
}
...@@ -4,10 +4,7 @@ import java.util.List; ...@@ -4,10 +4,7 @@ import java.util.List;
import com.gic.api.base.commons.ServiceResponse; import com.gic.api.base.commons.ServiceResponse;
import com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO; import com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO;
import com.gic.haoban.manage.api.dto.hm.HmBatchCountDTO; import com.gic.haoban.manage.api.dto.hm.*;
import com.gic.haoban.manage.api.dto.hm.HmBatchModifyResultDTO;
import com.gic.haoban.manage.api.dto.hm.HmQrcodeDTO;
import com.gic.haoban.manage.api.dto.hm.HmQrcodeStoreDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmBatchModifyQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmBatchModifyQDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO;
...@@ -197,4 +194,6 @@ public interface HmQrcodeApiService { ...@@ -197,4 +194,6 @@ public interface HmQrcodeApiService {
ServiceResponse<HmBatchCountDTO> getModifyResult(String wxEnterpriseId , String taskId) ; ServiceResponse<HmBatchCountDTO> getModifyResult(String wxEnterpriseId , String taskId) ;
List<ClerkQrcodeDTO> listClerkQrcode(String enterpriseId, List<String> clerkIdList);
} }
package com.gic.haoban.manage.service.dao.mapper.hm; package com.gic.haoban.manage.service.dao.mapper.hm;
import com.gic.haoban.manage.api.dto.hm.ClerkQrcodeDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO;
import com.gic.haoban.manage.service.entity.hm.TabHaobanHmQrcode; import com.gic.haoban.manage.service.entity.hm.TabHaobanHmQrcode;
import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeClerkBO; import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeClerkBO;
...@@ -208,6 +209,14 @@ public interface TabHaobanHmQrcodeMapper { ...@@ -208,6 +209,14 @@ public interface TabHaobanHmQrcodeMapper {
List<String> listHasQrcodeClerk(@Param("enterpriseId") String enterpriseId, @Param("clerkIdList") List<String> clerkIdList); List<String> listHasQrcodeClerk(@Param("enterpriseId") String enterpriseId, @Param("clerkIdList") List<String> clerkIdList);
/** /**
* 导购活码
* @param enterpriseId
* @param clerkIdList
* @return
*/
List<ClerkQrcodeDTO> listClerkQrcode(@Param("enterpriseId") String enterpriseId, @Param("clerkIdList") List<String> clerkIdList) ;
/**
* 获取导购单人活码 * 获取导购单人活码
*/ */
String getClerkQrcode(@Param("enterpriseId") String enterpriseId, @Param("clerkId")String clerkId); String getClerkQrcode(@Param("enterpriseId") String enterpriseId, @Param("clerkId")String clerkId);
......
package com.gic.haoban.manage.service.service.hm; package com.gic.haoban.manage.service.service.hm;
import com.gic.haoban.manage.api.dto.hm.ClerkQrcodeDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO;
import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeBO; import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeBO;
...@@ -173,6 +174,8 @@ public interface HmQrcodeService { ...@@ -173,6 +174,8 @@ public interface HmQrcodeService {
List<String> listHasQrcodeClerk(String enterpriseId, List<String> clerkIdList); List<String> listHasQrcodeClerk(String enterpriseId, List<String> clerkIdList);
List<ClerkQrcodeDTO> listClerkQrcode(String enterpriseId, List<String> clerkIdList);
/** /**
* 更新导购名称 * 更新导购名称
* *
......
...@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.hm.impl; ...@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.hm.impl;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.gic.haoban.manage.api.dto.hm.ClerkQrcodeDTO;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
...@@ -191,6 +192,11 @@ public class HmQrcodeServiceImpl implements HmQrcodeService { ...@@ -191,6 +192,11 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
} }
@Override @Override
public List<ClerkQrcodeDTO> listClerkQrcode(String enterpriseId, List<String> clerkIdList) {
return this.tabHaobanHmQrcodeMapper.listClerkQrcode(enterpriseId,clerkIdList);
}
@Override
public void updateClerkNameByClerkId(String enterpriseId, String clerkId, String clerkName, String clerkCode) { public void updateClerkNameByClerkId(String enterpriseId, String clerkId, String clerkName, String clerkCode) {
tabHaobanHmQrcodeMapper.updateClerkNameByClerkId(enterpriseId, clerkId, clerkName, clerkCode); tabHaobanHmQrcodeMapper.updateClerkNameByClerkId(enterpriseId, clerkId, clerkName, clerkCode);
tabHaobanHmClerkRelationMapper.updateClerkNameByClerkId(enterpriseId, clerkId, clerkName, clerkCode); tabHaobanHmClerkRelationMapper.updateClerkNameByClerkId(enterpriseId, clerkId, clerkName, clerkCode);
......
...@@ -8,6 +8,7 @@ import java.util.Map; ...@@ -8,6 +8,7 @@ import java.util.Map;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.gic.haoban.manage.api.dto.hm.*;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
...@@ -33,11 +34,6 @@ import com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO; ...@@ -33,11 +34,6 @@ import com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO;
import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO; import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO;
import com.gic.haoban.manage.api.dto.WxEnterpriseDTO; import com.gic.haoban.manage.api.dto.WxEnterpriseDTO;
import com.gic.haoban.manage.api.dto.WxEnterpriseQwDTO; import com.gic.haoban.manage.api.dto.WxEnterpriseQwDTO;
import com.gic.haoban.manage.api.dto.hm.HmBatchCountDTO;
import com.gic.haoban.manage.api.dto.hm.HmBatchModifyResultDTO;
import com.gic.haoban.manage.api.dto.hm.HmClerkDTO;
import com.gic.haoban.manage.api.dto.hm.HmQrcodeDTO;
import com.gic.haoban.manage.api.dto.hm.HmQrcodeStoreDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmBatchModifyQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmBatchModifyQDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmClerkRelationQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmClerkRelationQDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO;
...@@ -1038,4 +1034,9 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService { ...@@ -1038,4 +1034,9 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
dto.setFailList(failList); dto.setFailList(failList);
return ServiceResponse.success(dto); return ServiceResponse.success(dto);
} }
@Override
public List<ClerkQrcodeDTO> listClerkQrcode(String enterpriseId, List<String> clerkIdList) {
return this.hmQrcodeService.listClerkQrcode(enterpriseId,clerkIdList);
}
} }
...@@ -431,6 +431,16 @@ ...@@ -431,6 +431,16 @@
and hm_type = 1 and status_flag in (1,3) and hm_type = 1 and status_flag in (1,3)
</select> </select>
<select id="listClerkQrcode" resultType="com.gic.haoban.manage.api.dto.hm.ClerkQrcodeDTO">
select clerk_id clerkId , wx_qrcode qwQrcode from tab_haoban_hm_qrcode where enterprise_id=#{enterpriseId}
and clerk_id in
<foreach collection="clerkIdList" item="id" index="index" open="(" close=")" separator=",">
#{id}
</foreach>
and hm_type = 1 and status_flag in (1,3)
</select>
<select id="getClerkQrcode" resultType="java.lang.String"> <select id="getClerkQrcode" resultType="java.lang.String">
select wx_qrcode from tab_haoban_hm_qrcode where enterprise_id=#{enterpriseId} select wx_qrcode from tab_haoban_hm_qrcode where enterprise_id=#{enterpriseId}
and clerk_id = #{clerkId} and clerk_id = #{clerkId}
......
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