Преглед изворни кода

/、.

release_toaliyun_real
xhxu пре 4 година
родитељ
комит
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);
// }
WxAppinfo cAppInfo = wxAppinfoService.getCAppInfoFromRedis(ifParentUpdateAloneTenantInfo().getTenantId(), null);
return new ResultData(cAppInfo);
return new ResultData(new WxAppinfo(cAppInfo.getMouldType()));
}

@PostMapping("updateAppMouldType")
@SystemControllerLog(description = "修改小程序首页风格")
public ResultData updateAppMouldType(@RequestBody WxAppinfo appinfo) {
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);
}
// 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);
// }
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;
@io.swagger.annotations.ApiModelProperty(value="app平台 EnumAppPlat ",name="plat")
private Integer plat;

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

Loading…
Откажи
Сачувај