Commit 2fa1b294 by 墨竹

feat:新增根据门店查询活码

parent 810e9826
...@@ -84,5 +84,18 @@ public interface TabHaobanHmQrcodeMapper { ...@@ -84,5 +84,18 @@ public interface TabHaobanHmQrcodeMapper {
* @date 2022-07-06 15:36:20 * @date 2022-07-06 15:36:20
*/ */
List<HmQrcodeBO> listByClerkId(@Param("clerkId") String clerkId, @Param("enterpriseId") String enterpriseId); List<HmQrcodeBO> listByClerkId(@Param("clerkId") String clerkId, @Param("enterpriseId") String enterpriseId);
/**
* 根据门店id查询
*
* @param storeId 存储id
* @param overFlag 在国旗
* @return {@link List }<{@link HmQrcodeBO }>
* @author mozhu
* @date 2022-07-06 16:59:49
*/
List<HmQrcodeBO> listByStoreId(@Param("storeId") String storeId,@Param("overFlag") Integer overFlag);
} }
...@@ -11,7 +11,7 @@ import java.util.List; ...@@ -11,7 +11,7 @@ import java.util.List;
* @author mozhu * @author mozhu
* @since 2022-07-04 15:42:20 * @since 2022-07-04 15:42:20
*/ */
public interface TabHaobanHmClerkRelationService { public interface HmClerkRelationService {
/** /**
* 通过ID查询单条数据 * 通过ID查询单条数据
......
...@@ -14,7 +14,7 @@ import java.util.List; ...@@ -14,7 +14,7 @@ import java.util.List;
* @author mozhu * @author mozhu
* @since 2022-07-04 15:42:20 * @since 2022-07-04 15:42:20
*/ */
public interface TabHaobanHmQrcodeService { public interface HmQrcodeService {
/** /**
* 通过ID查询单条数据 * 通过ID查询单条数据
...@@ -67,4 +67,16 @@ public interface TabHaobanHmQrcodeService { ...@@ -67,4 +67,16 @@ public interface TabHaobanHmQrcodeService {
*/ */
List<HmQrcodeBO> listByClerkId(String clerkId,String enterpriseId); List<HmQrcodeBO> listByClerkId(String clerkId,String enterpriseId);
/**
* 通过门店id查询数据
*
* @param storeId 存储id
* @param overFlag 在国旗
* @return {@link List }<{@link HmQrcodeBO }>
* @author mozhu
* @date 2022-07-06 17:03:30
*/
List<HmQrcodeBO> listByStoreId(String storeId, Integer overFlag);
} }
...@@ -5,7 +5,7 @@ import com.gic.haoban.manage.api.dto.qdto.hm.HmClerkRelationQDTO; ...@@ -5,7 +5,7 @@ import com.gic.haoban.manage.api.dto.qdto.hm.HmClerkRelationQDTO;
import com.gic.haoban.manage.service.dao.mapper.hm.TabHaobanHmClerkRelationMapper; import com.gic.haoban.manage.service.dao.mapper.hm.TabHaobanHmClerkRelationMapper;
import com.gic.haoban.manage.service.entity.hm.TabHaobanHmClerkRelation; import com.gic.haoban.manage.service.entity.hm.TabHaobanHmClerkRelation;
import com.gic.haoban.manage.service.pojo.bo.hm.HmClerkRelationBO; import com.gic.haoban.manage.service.pojo.bo.hm.HmClerkRelationBO;
import com.gic.haoban.manage.service.service.hm.TabHaobanHmClerkRelationService; import com.gic.haoban.manage.service.service.hm.HmClerkRelationService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -17,8 +17,8 @@ import java.util.List; ...@@ -17,8 +17,8 @@ import java.util.List;
* @author mozhu * @author mozhu
* @since 2022-07-04 15:42:20 * @since 2022-07-04 15:42:20
*/ */
@Service("tabHaobanHmClerkRelationService") @Service
public class TabHaobanHmClerkRelationServiceImpl implements TabHaobanHmClerkRelationService { public class HmClerkRelationServiceImpl implements HmClerkRelationService {
@Autowired @Autowired
private TabHaobanHmClerkRelationMapper tabHaobanHmClerkRelationMapper; private TabHaobanHmClerkRelationMapper tabHaobanHmClerkRelationMapper;
......
...@@ -8,7 +8,7 @@ import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO; ...@@ -8,7 +8,7 @@ import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO;
import com.gic.haoban.manage.service.dao.mapper.hm.TabHaobanHmQrcodeMapper; import com.gic.haoban.manage.service.dao.mapper.hm.TabHaobanHmQrcodeMapper;
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.HmQrcodeBO;
import com.gic.haoban.manage.service.service.hm.TabHaobanHmQrcodeService; import com.gic.haoban.manage.service.service.hm.HmQrcodeService;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -24,8 +24,8 @@ import java.util.List; ...@@ -24,8 +24,8 @@ import java.util.List;
* @author mozhu * @author mozhu
* @since 2022-07-04 15:42:20 * @since 2022-07-04 15:42:20
*/ */
@Service("tabHaobanHmQrcodeService") @Service
public class TabHaobanHmQrcodeServiceImpl implements TabHaobanHmQrcodeService { public class HmQrcodeServiceImpl implements HmQrcodeService {
@Autowired @Autowired
private TabHaobanHmQrcodeMapper tabHaobanHmQrcodeMapper; private TabHaobanHmQrcodeMapper tabHaobanHmQrcodeMapper;
...@@ -72,4 +72,9 @@ public class TabHaobanHmQrcodeServiceImpl implements TabHaobanHmQrcodeService { ...@@ -72,4 +72,9 @@ public class TabHaobanHmQrcodeServiceImpl implements TabHaobanHmQrcodeService {
public List<HmQrcodeBO> listByClerkId(String clerkId, String enterpriseId) { public List<HmQrcodeBO> listByClerkId(String clerkId, String enterpriseId) {
return tabHaobanHmQrcodeMapper.listByClerkId(clerkId,enterpriseId); return tabHaobanHmQrcodeMapper.listByClerkId(clerkId,enterpriseId);
} }
@Override
public List<HmQrcodeBO> listByStoreId(String storeId, Integer overFlag) {
return tabHaobanHmQrcodeMapper.listByStoreId(storeId,overFlag);
}
} }
...@@ -157,6 +157,8 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService ...@@ -157,6 +157,8 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
clerkMainStoreRelatedService.getMainStoreByStaffId(staffId, dto.getWxEnterpriseId()); clerkMainStoreRelatedService.getMainStoreByStaffId(staffId, dto.getWxEnterpriseId());
//推入日志 //推入日志
staffClerkBindLogService.pushToMq(staffId, optStaffId, BindTypeEnum.BIND.getVal(), chanelCode, dto.getStaffClerkRelationId()); staffClerkBindLogService.pushToMq(staffId, optStaffId, BindTypeEnum.BIND.getVal(), chanelCode, dto.getStaffClerkRelationId());
//绑定自动创建活码
} }
return s; return s;
} }
......
...@@ -18,8 +18,8 @@ import com.gic.haoban.manage.service.config.Config; ...@@ -18,8 +18,8 @@ import com.gic.haoban.manage.service.config.Config;
import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeBO; import com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeBO;
import com.gic.haoban.manage.service.service.StaffClerkRelationService; import com.gic.haoban.manage.service.service.StaffClerkRelationService;
import com.gic.haoban.manage.service.service.WxEnterpriseService; import com.gic.haoban.manage.service.service.WxEnterpriseService;
import com.gic.haoban.manage.service.service.hm.TabHaobanHmClerkRelationService; import com.gic.haoban.manage.service.service.hm.HmClerkRelationService;
import com.gic.haoban.manage.service.service.hm.TabHaobanHmQrcodeService; import com.gic.haoban.manage.service.service.hm.HmQrcodeService;
import com.gic.wechat.api.dto.qywx.welcome.QywxExternalcontactDTO; import com.gic.wechat.api.dto.qywx.welcome.QywxExternalcontactDTO;
import com.gic.wechat.api.dto.qywx.welcome.QywxExternalcontactResultDTO; import com.gic.wechat.api.dto.qywx.welcome.QywxExternalcontactResultDTO;
import com.gic.wechat.api.service.qywx.QywxUserApiService; import com.gic.wechat.api.service.qywx.QywxUserApiService;
...@@ -42,7 +42,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService { ...@@ -42,7 +42,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
private static Logger logger = LoggerFactory.getLogger(HmQrcodeApiServiceImpl.class); private static Logger logger = LoggerFactory.getLogger(HmQrcodeApiServiceImpl.class);
@Autowired @Autowired
private TabHaobanHmQrcodeService hmQrcodeService; private HmQrcodeService hmQrcodeService;
@Autowired @Autowired
private QywxUserApiService qywxUserApiService; private QywxUserApiService qywxUserApiService;
@Autowired @Autowired
...@@ -52,7 +52,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService { ...@@ -52,7 +52,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
@Autowired @Autowired
private StaffClerkRelationService staffClerkRelationService; private StaffClerkRelationService staffClerkRelationService;
@Autowired @Autowired
private TabHaobanHmClerkRelationService hmClerkRelationService; private HmClerkRelationService hmClerkRelationService;
@Autowired @Autowired
private ClerkService clerkService; private ClerkService clerkService;
......
...@@ -242,5 +242,14 @@ ...@@ -242,5 +242,14 @@
from tab_haoban_hm_qrcode from tab_haoban_hm_qrcode
where enterprise_id = #{enterpriseId} and clerk_id = #{clerkId} and status_flag in (1,3) where enterprise_id = #{enterpriseId} and clerk_id = #{clerkId} and status_flag in (1,3)
</select> </select>
<select id="listByStoreId" resultMap="TabHaobanHmQrcodeMap">
select *
from tab_haoban_hm_qrcode
where store_id = #{storeId} and status_flag in (1,3)
<if test="overFlag != null">
and over_flag = #{overFlag}
</if>
</select>
</mapper> </mapper>
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