Commit b8dfa68a by 徐高华

导购活码

parent a30d7452
...@@ -176,5 +176,7 @@ public interface HmQrcodeApiService { ...@@ -176,5 +176,7 @@ public interface HmQrcodeApiService {
ServiceResponse<List<String>> listHmIdForIndex(HmQrcodeListQDTO qdto); ServiceResponse<List<String>> listHmIdForIndex(HmQrcodeListQDTO qdto);
ServiceResponse<List<String>> listHasQrcodeClerk(String enterpriseId, List<String> clerkIdList); ServiceResponse<List<String>> listHasQrcodeClerk(String enterpriseId, List<String> clerkIdList);
ServiceResponse<String> getClerkQrcode(String enterpriseId , String clerkId) ;
} }
...@@ -2,7 +2,6 @@ package com.gic.haoban.manage.service.dao.mapper.hm; ...@@ -2,7 +2,6 @@ package com.gic.haoban.manage.service.dao.mapper.hm;
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.HmQrcodeBO;
import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeClerkBO; import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeClerkBO;
import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeGroupNumBO; import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeGroupNumBO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -189,15 +188,14 @@ public interface TabHaobanHmQrcodeMapper { ...@@ -189,15 +188,14 @@ public interface TabHaobanHmQrcodeMapper {
List<String> listHmIdForIndex(HmQrcodeListQDTO qdto); List<String> listHmIdForIndex(HmQrcodeListQDTO qdto);
/** /**
* @param enterpriseId * 返回已有单人活码的clerkId
* @param clerkId
* @return
* @throws
* @Title: listHasQrcodeClerk
* @Description: 返回已有单人活码的clerkId
* @author xugh
*/ */
List<String> listHasQrcodeClerk(@Param("enterpriseId") String enterpriseId, @Param("clerkIdList") List<String> clerkIdList); List<String> listHasQrcodeClerk(@Param("enterpriseId") String enterpriseId, @Param("clerkIdList") List<String> clerkIdList);
/**
* 获取导购单人活码
*/
String getClerkQrcode(@Param("enterpriseId") String enterpriseId, @Param("clerkId")String clerkId);
/** /**
* 更新导购名称 * 更新导购名称
......
...@@ -9,6 +9,8 @@ import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeGroupNumBO; ...@@ -9,6 +9,8 @@ import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeGroupNumBO;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Param;
/** /**
* 活码(TabHaobanHmQrcode)表服务接口 * 活码(TabHaobanHmQrcode)表服务接口
...@@ -208,4 +210,6 @@ public interface HmQrcodeService { ...@@ -208,4 +210,6 @@ public interface HmQrcodeService {
* @throws * @throws
*/ */
void updateClerkInfo(Long hmId,String newClerkId); void updateClerkInfo(Long hmId,String newClerkId);
String getClerkQrcode( String enterpriseId, String clerkId);
} }
...@@ -221,4 +221,9 @@ public class HmQrcodeServiceImpl implements HmQrcodeService { ...@@ -221,4 +221,9 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
entity.setStoreCode(storeCode); entity.setStoreCode(storeCode);
this.tabHaobanHmQrcodeMapper.update(entity); this.tabHaobanHmQrcodeMapper.update(entity);
} }
@Override
public String getClerkQrcode(String enterpriseId, String clerkId) {
return this.tabHaobanHmQrcodeMapper.getClerkQrcode(enterpriseId, clerkId);
}
} }
...@@ -4,7 +4,6 @@ import java.util.ArrayList; ...@@ -4,7 +4,6 @@ import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -906,4 +905,8 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService { ...@@ -906,4 +905,8 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
public ServiceResponse<List<String>> listHasQrcodeClerk(String enterpriseId, List<String> clerkIdList) { public ServiceResponse<List<String>> listHasQrcodeClerk(String enterpriseId, List<String> clerkIdList) {
return ServiceResponse.success(hmQrcodeService.listHasQrcodeClerk(enterpriseId, clerkIdList)); return ServiceResponse.success(hmQrcodeService.listHasQrcodeClerk(enterpriseId, clerkIdList));
} }
public com.gic.api.base.commons.ServiceResponse<String> getClerkQrcode(String enterpriseId, String clerkId) {
return ServiceResponse.success(hmQrcodeService.getClerkQrcode(enterpriseId, clerkId));
}
} }
...@@ -405,8 +405,13 @@ ...@@ -405,8 +405,13 @@
</foreach> </foreach>
and hm_type = 1 and status_flag in (1,3) and hm_type = 1 and status_flag in (1,3)
</select> </select>
<select id="getClerkQrcode" resultType="java.lang.String">
select wx_qrcode from tab_haoban_hm_qrcode where enterprise_id=#{enterpriseId}
and clerk_id = #{clerkId}
and hm_type = 1 and status_flag = 1 limit 1
</select>
<update id="updateClerkNameByClerkId" parameterType="java.lang.String"> <update id="updateClerkNameByClerkId" parameterType="java.lang.String">
update tab_haoban_hm_qrcode update tab_haoban_hm_qrcode
<set> <set>
......
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