Commit 5360b06c by guojuxing

查询未分组门店分组接口

parent 81b640af
......@@ -118,4 +118,12 @@ public interface TabStoreGroupMapper {
int isRepeatName(@Param("storeGroupName") String storeGroupName, @Param("storeGroupId") Integer storeGroupId, @Param("enterpriseId") Integer enterpriseId);
TabStoreGroup getStoreGroupByName(@Param("storeGroupName") String storeGroupName, @Param("enterpriseId") Integer enterpriseId);
/**
* 查询未分组门店 分组数据
* @param enterpriseId
* @return
*/
TabStoreGroup selectUnGroupedStore(@Param("enterpriseId") Integer enterpriseId);
}
\ No newline at end of file
......@@ -31,4 +31,11 @@ public interface StoreGroupService {
* @param storeGroupId
*/
void updateSort(Integer sort, Integer storeGroupId);
/**
* 查询未分组门店 分组
* @param enterpriseId
* @return
*/
TabStoreGroup selectUnGroupedStore(Integer enterpriseId);
}
......@@ -69,4 +69,9 @@ public class StoreGroupServiceImpl implements StoreGroupService{
record.setSort(sort);
tabStoreGroupMapper.updateByPrimaryKeySelective(record);
}
@Override
public TabStoreGroup selectUnGroupedStore(Integer enterpriseId) {
return tabStoreGroupMapper.selectUnGroupedStore(enterpriseId);
}
}
......@@ -249,4 +249,13 @@
tab_store_group where status = 1 and enterprise_id = #{enterpriseId} and store_group_name = #{storeGroupName}
limit 1
</select>
<select id="selectUnGroupedStore" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from
tab_store_group where status = 1 and enterprise_id = #{enterpriseId} and is_default = 1 and group_level = 1
limit 1
</select>
</mapper>
\ No newline at end of file
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