Commit 55fe43b5 by 陶光胜

二维码

parent c080c139
......@@ -15,6 +15,8 @@ public interface CustomStoreApiService {
ServiceResponse<Integer> openCustomStore(Integer enterpriseId, String appid, Integer customStoreId);
ServiceResponse<Integer> closeCustomStore(Integer enterpriseId, String appid);
ServiceResponse<CustomStoreDTO> getCustomStore(Integer enterpriseId, String appid);
ServiceResponse<Void> customSettingHasCommpleted(Integer enterpriseId);
......
......@@ -65,6 +65,12 @@ public class CustomStoreApiServiceImpl implements CustomStoreApiService {
}
@Override
public ServiceResponse<Integer> closeCustomStore(Integer enterpriseId, String appid) {
int i = this.customStoreService.closeCustomStore(enterpriseId, appid);
return ServiceResponse.success(i);
}
@Override
public ServiceResponse<CustomStoreDTO> getCustomStore(Integer enterpriseId, String appid) {
TabCustomStore customStore = this.customStoreService.getCustomStore(enterpriseId, appid);
return ServiceResponse.success(EntityUtil.changeEntityByJSON(CustomStoreDTO.class, customStore));
......
......@@ -35,6 +35,7 @@ public class CustomStoreController {
dto.setEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId());
dto.setStoreWidgetId(customStoreQO.getStorewidgetId());
if(customStoreQO.getSaveType() == 2){
this.customStoreApiService.closeCustomStore(UserDetailUtils.getUserDetail().getEnterpriseId(), customStoreQO.getAppId());
dto.setStatus(1);
}else {
if(customStoreQO.getCustomStoreId() == null){
......
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