|
|
|
@ -10,6 +10,7 @@ import cn.estsh.i3plus.platform.common.tool.ServletRequestTool;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.tool.StringTool;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.tool.TimeTool;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.util.CommonConstWords;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoIgnoreLog;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.BaseConstWords;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
@ -88,6 +89,9 @@ public class WhiteController extends CoreBaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private ISysConfigService configService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ISysMenuService sysMenuService;
|
|
|
|
|
|
|
|
|
|
@Resource(name=CommonConstWords.IMPP_REDIS_RES)
|
|
|
|
|
private ImppRedis redisRes;
|
|
|
|
|
|
|
|
|
@ -519,11 +523,19 @@ public class WhiteController extends CoreBaseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AnnoIgnoreLog
|
|
|
|
|
@PostMapping(value = "/miss-resource/get")
|
|
|
|
|
@ApiOperation(value = "缺失资源", notes = "缺失资源")
|
|
|
|
|
public ResultBean getMissResourceByKey(String key,String soft){
|
|
|
|
|
public ResultBean getMissResourceByKey(String key,String menuCode){
|
|
|
|
|
try {
|
|
|
|
|
LocaleUtils.saveMissResource(key, AuthUtil.getSessionLanguage().toString(), CommonEnumUtil.SOFT_TYPE.descOf(soft),
|
|
|
|
|
SysMenu sysMenu = sysMenuService.getSysMenuByCode(menuCode);
|
|
|
|
|
CommonEnumUtil.SOFT_TYPE softType = CommonEnumUtil.SOFT_TYPE.valueOf(sysMenu.getSoftType());
|
|
|
|
|
if(softType == null){
|
|
|
|
|
softType = CommonEnumUtil.SOFT_TYPE.IMPP;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LocaleUtils.saveMissResource(key, AuthUtil.getSessionLanguage().toString(),
|
|
|
|
|
softType.getValue(),
|
|
|
|
|
CommonEnumUtil.SYS_LOCALE_RESOURCE_TYPE.MISSING.getValue(),
|
|
|
|
|
CommonEnumUtil.MiSS_RESOURCE_SOURCE.WEB.getValue());
|
|
|
|
|
return ResultBean.success("操作成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|