Commit eadf1cc3 by 陶光胜

通过电话号码查询商户

parent 34b5bb15
......@@ -25,4 +25,6 @@ public interface StoreAuthorizationApiService {
ServiceResponse<Void> saveStore(StoreDTO storeDTO);
ServiceResponse<Void> cancelStore(Integer storeInfoId, Integer enterpriseId);
ServiceResponse<Void> cancelStoreAll(Integer fromEnterpriseId, Integer enterpriseId);
}
......@@ -68,5 +68,8 @@ public interface TabStoreMapper {
int cancelAuthStore(@Param("storeInfoIdList") List<Integer> storeInfoIdList, @Param("toEnterpriseId") Integer toEnterpriseId);
int cancelAuthStoreAll(@Param("fromEnterpriseId") Integer fromEnterpriseId,
@Param("toEnterpriseId") Integer toEnterpriseId);
List<Integer> listStoreInfoIdByStoreIds(@Param("ids") List<Integer> ids, @Param("enterpriseId") Integer enterpriseId);
}
\ No newline at end of file
......@@ -93,6 +93,8 @@ public interface StoreService {
int cancelAuthStore(List<Integer> storeInfoIdList, Integer toEnterpriseId);
int cancelAuthStoreAll(Integer fromEnterpriseId, Integer toEnterpriseId);
Integer getStoreOwnerByStoreInfoId(Integer enterpriseId, Integer storeInfoId);
Integer getStoreIdByStoreInfoId(Integer enterpriseId, Integer storeInfoId);
......
......@@ -429,6 +429,11 @@ public class StoreServiceImpl implements StoreService {
}
@Override
public int cancelAuthStoreAll(Integer fromEnterpriseId, Integer toEnterpriseId) {
return this.tabStoreMapper.cancelAuthStoreAll(fromEnterpriseId, toEnterpriseId);
}
@Override
public Integer getStoreOwnerByStoreInfoId(Integer enterpriseId, Integer storeInfoId) {
return this.tabStoreInfoMapper.getStoreOwnerByStoreInfoId(enterpriseId, storeInfoId);
}
......
......@@ -156,6 +156,12 @@ public class StoreAuthorizationApiServiceImpl implements StoreAuthorizationApiSe
return ServiceResponse.success();
}
@Override
public ServiceResponse<Void> cancelStoreAll(Integer fromEnterpriseId, Integer enterpriseId) {
this.storeService.cancelAuthStoreAll(fromEnterpriseId, enterpriseId);
return ServiceResponse.success();
}
private void queryStoreByPage(Long count, StoreSearchDTO storeSearchDTO, Integer toEnterpriseId, Integer enterpriseId, String key){
if(StringUtils.isBlank(key)){
key = ToolUtil.randomUUID();
......
......@@ -182,6 +182,10 @@
#{storeInfoId}
</foreach>
</update>
<update id="cancelAuthStoreAll">
update tab_store set status=0 where enterprise_id=#{toEnterpriseId} and status=1
and from_enterprise_id = #{fromEnterpriseId}
</update>
<select id="listStoreInfoIdByStoreIds" resultType="java.lang.Integer">
select store_info_id
from tab_store where own_type = 0 and enterprise_id = #{enterpriseId}
......
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