xhxu 4 лет назад
Родитель
Сommit
cf6dff5e42
3 измененных файлов: 8 добавлений и 3 удалений
  1. +2
    -2
      mallinkAdmin/src/main/java/com/iformall/controller/app/WxAppinfoController.java
  2. +2
    -1
      mallinkBApi/src/main/java/com/iformall/controller/WxInfoController.java
  3. +4
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxAppinfo.java

+ 2
- 2
mallinkAdmin/src/main/java/com/iformall/controller/app/WxAppinfoController.java Просмотреть файл

@@ -175,14 +175,14 @@ public class WxAppinfoController extends BaseController {
// return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); // return new ResultData(ErrorCode.SYS_PARAMETER_ERROR);
// } // }
WxAppinfo cAppInfo = wxAppinfoService.getCAppInfoFromRedis(ifParentUpdateAloneTenantInfo().getTenantId(), null); WxAppinfo cAppInfo = wxAppinfoService.getCAppInfoFromRedis(ifParentUpdateAloneTenantInfo().getTenantId(), null);
return new ResultData(cAppInfo);
return new ResultData(new WxAppinfo(cAppInfo.getMouldType()));
} }


@PostMapping("updateAppMouldType") @PostMapping("updateAppMouldType")
@SystemControllerLog(description = "修改小程序首页风格") @SystemControllerLog(description = "修改小程序首页风格")
public ResultData updateAppMouldType(@RequestBody WxAppinfo appinfo) { public ResultData updateAppMouldType(@RequestBody WxAppinfo appinfo) {
logger.debug("[" + getIpAddr() + "] WxAppinfoController::updateAppMouldType"); logger.debug("[" + getIpAddr() + "] WxAppinfoController::updateAppMouldType");
if(appinfo == null || appinfo.getId() == null || appinfo.getMouldType() == null){
if(appinfo.getMouldType() == null){
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL);
} }
// WxAppinfo updateAppinfo = new WxAppinfo(); // WxAppinfo updateAppinfo = new WxAppinfo();


+ 2
- 1
mallinkBApi/src/main/java/com/iformall/controller/WxInfoController.java Просмотреть файл

@@ -531,6 +531,7 @@ public class WxInfoController extends BaseController {
// return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); // return new ResultData(ErrorCode.SYS_PARAMETER_ERROR);
// } // }
WxAppinfo cAppInfo = wxAppinfoService.getCAppInfoFromRedis(getTenantInfo().getTenantId(), null); WxAppinfo cAppInfo = wxAppinfoService.getCAppInfoFromRedis(getTenantInfo().getTenantId(), null);
return new ResultData(cAppInfo);

return new ResultData(new WxAppinfo(cAppInfo.getMouldType()));
} }
} }

+ 4
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxAppinfo.java Просмотреть файл

@@ -46,4 +46,8 @@ public class WxAppinfo extends BaseTenantEntity {
private Integer enable; private Integer enable;
@io.swagger.annotations.ApiModelProperty(value="app平台 EnumAppPlat ",name="plat") @io.swagger.annotations.ApiModelProperty(value="app平台 EnumAppPlat ",name="plat")
private Integer plat; private Integer plat;

public WxAppinfo(Integer mouldType){
this.mouldType = mouldType;
}
} }

Загрузка…
Отмена
Сохранить