Commit 8722b2a3 by 徐高华

门店查询

parent c1bbaaa8
...@@ -15,7 +15,6 @@ public interface WxEnterpriseRelatedApiService { ...@@ -15,7 +15,6 @@ public interface WxEnterpriseRelatedApiService {
*/ */
List<String> findAllEnterpriseId(); List<String> findAllEnterpriseId();
@Deprecated
List<EnterpriseDetailDTO> listEnterpriseByWxEnterpriseId(String wxEnterpriseId); List<EnterpriseDetailDTO> listEnterpriseByWxEnterpriseId(String wxEnterpriseId);
List<EnterpriseDetailDTO> listEnterpriseByWxEnterpriseId(String wxEnterpriseId , String phoneNumber); List<EnterpriseDetailDTO> listEnterpriseByWxEnterpriseId(String wxEnterpriseId , String phoneNumber);
......
...@@ -489,11 +489,13 @@ public class AuditApiServiceImpl implements AuditApiService { ...@@ -489,11 +489,13 @@ public class AuditApiServiceImpl implements AuditApiService {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public List<String> getStoreIdList(String enterpriseId , String clerkId) { public List<String> getStoreIdList(String enterpriseId , String clerkId) {
EnterpriseSettingDTO enterpriseSetting = enterpriseService.getEnterpriseSettingByEnterpriseId(enterpriseId) ; EnterpriseSettingDTO enterpriseSetting = enterpriseService.getEnterpriseSettingByEnterpriseId(enterpriseId) ;
logger.info("门店权限,getEnableAccessControl={},{}",enterpriseSetting.getEnableAccessControl(),enterpriseId);
if (enterpriseSetting.getEnableAccessControl() != null && enterpriseSetting.getEnableAccessControl() == 1) { if (enterpriseSetting.getEnableAccessControl() != null && enterpriseSetting.getEnableAccessControl() == 1) {
String storeWidgetKey = this.powerService.getStoreWidgetId(new Date() , clerkId) ; String storeWidgetKey = this.powerService.getStoreWidgetId(new Date() , clerkId) ;
logger.info("权限控制-启用,创建人管辖门店的组件={}",storeWidgetKey); logger.info("权限控制-启用,创建人管辖门店的组件={}",storeWidgetKey);
StoreWidgetDTO widget = this.storeWidgetService.getStoreWidgetBykey(storeWidgetKey) ; StoreWidgetDTO widget = this.storeWidgetService.getStoreWidgetBykey(storeWidgetKey) ;
if(null == widget || widget.getSelectType()==0) { if(null == widget || widget.getSelectType()==0) {
logger.info("权限控制-启用,超管={}",clerkId);
return null ; return null ;
} }
List<String> storeIdList = new ArrayList<>() ; List<String> storeIdList = new ArrayList<>() ;
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
<if test = "auditStatus != null"> <if test = "auditStatus != null">
and audit_status = #{auditStatus,jdbcType=INTEGER} and audit_status = #{auditStatus,jdbcType=INTEGER}
</if> </if>
<if test=" null != searchParams"> <if test=" null != searchParams and '' !=searchParams ">
and (commit_staff_name like '%${searchParams}%' or commit_store_name like '%${searchParams}%') and (commit_staff_name like '%${searchParams}%' or commit_store_name like '%${searchParams}%')
</if> </if>
<include refid="storeSql"/> <include refid="storeSql"/>
......
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