中英文切换与添加按钮权限
This commit is contained in:
@@ -37,6 +37,7 @@ public class ResultCommon {
|
||||
public static final String JOB_NUMBER_DOES_NOT_EXIST_EXPORT = "job.number.does.not.exist.export"; // 第{0}行,工号不存在
|
||||
public static final String DUPLICATE_JOB_NUMBER_EXPORT = "duplicate.job.number.export"; // 第{0}行,工号重复
|
||||
|
||||
|
||||
public static final String NO_CORRESPONDING_RECORD_FOUND = "no.corresponding.record.found"; // 没有找到对应的记录
|
||||
|
||||
public static final String PARAMETERS_CANNOT_BE_NULL = "parameters.cannot.be.null"; // 参数不能为空
|
||||
|
||||
+3
@@ -16,6 +16,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -69,6 +70,7 @@ public class LawsBrowsingHistoryController extends JeroController<LawsBrowsingHi
|
||||
/**
|
||||
* 全部删除
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:browsingHistory:clearBrowsingHistory")
|
||||
@AutoLog(value = "浏览记录-清除浏览记录")
|
||||
@ApiOperation(value="浏览记录-清除浏览记录", notes="浏览记录-清除浏览记录")
|
||||
@PostMapping(value = "/delete")
|
||||
@@ -83,6 +85,7 @@ public class LawsBrowsingHistoryController extends JeroController<LawsBrowsingHi
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:browsingHistory:batchDel")
|
||||
@AutoLog(value = "浏览记录-批量删除")
|
||||
@ApiOperation(value="浏览记录-批量删除", notes="浏览记录-批量删除")
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
|
||||
+5
@@ -14,6 +14,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -41,6 +42,7 @@ public class LawsStandardCollectionController extends JeroController<LawsStandar
|
||||
/**
|
||||
* 分页列表查询
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:myCollection:search")
|
||||
@AutoLog(value = "标准收藏-我的收藏分页列表查询")
|
||||
@ApiOperation(value="标准收藏-分页列表查询", notes="标准收藏-我的收藏分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
@@ -55,6 +57,7 @@ public class LawsStandardCollectionController extends JeroController<LawsStandar
|
||||
/**
|
||||
* 收藏
|
||||
*/
|
||||
@RequiresPermissions("domesticStandard:collection")
|
||||
@AutoLog(value = "标准收藏-国内收藏")
|
||||
@ApiOperation(value="标准收藏-国内收藏", notes="标准收藏-国内收藏")
|
||||
@PostMapping(value = "/domestic/add")
|
||||
@@ -75,6 +78,7 @@ public class LawsStandardCollectionController extends JeroController<LawsStandar
|
||||
/**
|
||||
* 取消收藏
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:myCollection:cancelCollect")
|
||||
@AutoLog(value = "标准收藏-国内取消收藏")
|
||||
@ApiOperation(value="标准收藏-国内取消收藏", notes="标准收藏-国内取消收藏")
|
||||
@PostMapping(value = "/domestic/delete")
|
||||
@@ -123,6 +127,7 @@ public class LawsStandardCollectionController extends JeroController<LawsStandar
|
||||
/**
|
||||
* 收藏
|
||||
*/
|
||||
@RequiresPermissions("enterpriseStandard:collection")
|
||||
@AutoLog(value = "标准收藏-企标收藏")
|
||||
@ApiOperation(value="标准收藏-企标收藏", notes="标准收藏-企标收藏")
|
||||
@PostMapping(value = "/enterprise/add")
|
||||
|
||||
+3
@@ -20,6 +20,7 @@ import com.jero.modules.system.service.ISysUserService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -56,6 +57,7 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
|
||||
/**
|
||||
* 分页列表查询
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:sentShare:search")
|
||||
@AutoLog(value = "标准分享-分页已发分享列表查询")
|
||||
@ApiOperation(value="标准分享-分页已发分享列表查询", notes="标准分享-分页已发分享列表查询")
|
||||
@GetMapping(value = "/issued/page")
|
||||
@@ -73,6 +75,7 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
|
||||
/**
|
||||
* 分页列表查询
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:receivedShare:search")
|
||||
@AutoLog(value = "标准分享-分页已收分享列表查询")
|
||||
@ApiOperation(value="标准分享-分页已收分享列表查询", notes="标准分享-分页已收分享列表查询")
|
||||
@GetMapping(value = "/received/page")
|
||||
|
||||
+7
-12
@@ -14,6 +14,7 @@ import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.common.util.MessageUtils;
|
||||
import com.jero.modules.laws.common.constant.ResultCommon;
|
||||
import com.jero.modules.laws.standard.entity.LawsDomesticStandard;
|
||||
import com.jero.modules.laws.standard.entity.LawsOverseasStandard;
|
||||
import com.jero.modules.laws.standard.service.ILawsDomesticStandardService;
|
||||
@@ -68,7 +69,7 @@ public class LawsAssessController extends JeroController<LawsAssess, ILawsAssess
|
||||
HttpServletRequest req) {
|
||||
String projectId = lawsAssess.getProjectId();
|
||||
if (StringUtils.isBlank(projectId)){
|
||||
return Result.error("请在项目内查询!");
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
lawsAssess.setDelFlag("0");
|
||||
IPage<LawsAssess> pageList = lawsAssessService.queryPage(lawsAssess, pageNo, pageSize, req);
|
||||
@@ -114,7 +115,7 @@ public class LawsAssessController extends JeroController<LawsAssess, ILawsAssess
|
||||
String domesticStandardId = lawsAssessAddVo.getDomesticStandardId();
|
||||
String overseasStandardId = lawsAssessAddVo.getOverseasStandardId();
|
||||
if (StringUtils.isNotBlank(domesticStandardId) && StringUtils.isNotBlank(overseasStandardId)){
|
||||
return Result.error("请至少选择一个标准进行调取!");
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
//查询当前项目已绑定的标准,为了不造成重复绑定
|
||||
//查询该项目下所有未删除的标准
|
||||
@@ -184,9 +185,6 @@ public class LawsAssessController extends JeroController<LawsAssess, ILawsAssess
|
||||
lawsAssesses.add(lawsAssess);
|
||||
}
|
||||
}
|
||||
if (lawsAssesses.isEmpty()){
|
||||
return Result.error("调取标准全部存在,请重新选择标准!");
|
||||
}
|
||||
lawsAssessService.saveBatch(lawsAssesses);
|
||||
return Result.OK("操作成功!");
|
||||
}
|
||||
@@ -200,7 +198,7 @@ public class LawsAssessController extends JeroController<LawsAssess, ILawsAssess
|
||||
public Result<T> copy(@Validated @RequestBody LawsAssessAddVo lawsAssessAddVo) {
|
||||
String copyProjectId = lawsAssessAddVo.getCopyProjectId();
|
||||
if (StringUtils.isBlank(copyProjectId)){
|
||||
return Result.error("请至少选择一个项目进行复制!");
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
Date now = new Date();
|
||||
List<LawsAssess> lawsAssesses = new ArrayList<>();
|
||||
@@ -236,9 +234,6 @@ public class LawsAssessController extends JeroController<LawsAssess, ILawsAssess
|
||||
assess.setUpdateTime(now);
|
||||
lawsAssesses.add(assess);
|
||||
}
|
||||
if (lawsAssesses.isEmpty()){
|
||||
return Result.error("复制项目标准全部存在,请重新选择项目!");
|
||||
}
|
||||
lawsAssessService.saveBatch(lawsAssesses);
|
||||
return Result.OK("操作成功!");
|
||||
}
|
||||
@@ -253,10 +248,10 @@ public class LawsAssessController extends JeroController<LawsAssess, ILawsAssess
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<T> delete(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("id") || StringUtils.isEmpty(map.get("id"))){
|
||||
return Result.error("请选择数据!");
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
lawsAssessService.deleteById(map.get("id"));
|
||||
return Result.OK("删除成功!");
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
}
|
||||
|
||||
|
||||
@@ -284,7 +279,7 @@ public class LawsAssessController extends JeroController<LawsAssess, ILawsAssess
|
||||
dos = lawsAssessService.list(queryWrapper);
|
||||
}
|
||||
if (dos.isEmpty()){
|
||||
throw new JeroBootException("请选择数据导出!");
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
this.assignment(dos);
|
||||
|
||||
|
||||
+10
-7
@@ -6,6 +6,9 @@ import java.util.Map;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.common.util.MessageUtils;
|
||||
import com.jero.modules.laws.common.constant.ResultCommon;
|
||||
import com.jero.modules.projectLibrary.entity.LawsEvaluationNotMet;
|
||||
import com.jero.modules.projectLibrary.service.ILawsEvaluationNotMetService;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -83,7 +86,7 @@ public class LawsEvaluationNotMetController extends JeroController<LawsEvaluatio
|
||||
@PostMapping(value = "/add")
|
||||
public Result<T> add(@Validated @RequestBody LawsEvaluationNotMet lawsEvaluationNotMet) {
|
||||
lawsEvaluationNotMetService.add(lawsEvaluationNotMet);
|
||||
return Result.OK("操作成功!");
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,7 +100,7 @@ public class LawsEvaluationNotMetController extends JeroController<LawsEvaluatio
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<T> edit(@Validated @RequestBody LawsEvaluationNotMet lawsEvaluationNotMet) {
|
||||
lawsEvaluationNotMetService.editById(lawsEvaluationNotMet);
|
||||
return Result.OK("操作成功!");
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -111,10 +114,10 @@ public class LawsEvaluationNotMetController extends JeroController<LawsEvaluatio
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<T> delete(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("id") || StringUtils.isEmpty(map.get("id"))){
|
||||
return Result.error("请选择数据!");
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
lawsEvaluationNotMetService.deleteById(map.get("id"));
|
||||
return Result.OK("删除成功!");
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -128,10 +131,10 @@ public class LawsEvaluationNotMetController extends JeroController<LawsEvaluatio
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
public Result<T> deleteBatch(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("ids") || StringUtils.isEmpty(map.get("ids"))){
|
||||
return Result.error("请选择数据!");
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
this.lawsEvaluationNotMetService.deleteByIds(Arrays.asList(map.get("ids").split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.SUCCESSFULLY_DELETED_IN_BULK));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -146,7 +149,7 @@ public class LawsEvaluationNotMetController extends JeroController<LawsEvaluatio
|
||||
public Result<LawsEvaluationNotMet> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
LawsEvaluationNotMet lawsEvaluationNotMet = lawsEvaluationNotMetService.queryById(id);
|
||||
if(lawsEvaluationNotMet==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
throw new JeroBootException(ResultCommon.NO_CORRESPONDING_DATA_FOUND);
|
||||
}
|
||||
return Result.OK(lawsEvaluationNotMet);
|
||||
}
|
||||
|
||||
+11
-4
@@ -24,6 +24,7 @@ import com.jero.modules.system.service.ISysUserService;
|
||||
import com.sun.deploy.net.URLEncoder;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -54,6 +55,7 @@ public class LawsProjectLibraryController extends JeroController<LawsProjectLibr
|
||||
/**
|
||||
* 分页列表查询
|
||||
*/
|
||||
@RequiresPermissions("vehicleItemLibrary:search")
|
||||
@AutoLog(value = "项目库-分页列表查询")
|
||||
@ApiOperation(value="项目库-分页列表查询", notes="项目库-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
@@ -69,6 +71,7 @@ public class LawsProjectLibraryController extends JeroController<LawsProjectLibr
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
@RequiresPermissions("vehicleItemLibrary:add")
|
||||
@AutoLog(value = "项目库-添加")
|
||||
@ApiOperation(value="项目库-添加", notes="项目库-添加")
|
||||
@PostMapping(value = "/add")
|
||||
@@ -81,6 +84,7 @@ public class LawsProjectLibraryController extends JeroController<LawsProjectLibr
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
@RequiresPermissions("vehicleItemLibrary:edit")
|
||||
@AutoLog(value = "项目库-编辑")
|
||||
@ApiOperation(value="项目库-编辑", notes="项目库-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
@@ -92,12 +96,13 @@ public class LawsProjectLibraryController extends JeroController<LawsProjectLibr
|
||||
/**
|
||||
* 通过id删除
|
||||
*/
|
||||
@RequiresPermissions("vehicleItemLibrary:delete")
|
||||
@AutoLog(value = "项目库-通过id删除")
|
||||
@ApiOperation(value="项目库-通过id删除", notes="项目库-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<T> delete(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("id") || StringUtils.isEmpty(map.get("id"))){
|
||||
return Result.error(MessageUtils.getLanguage().equals("EN") ? "Please select data!" : "请选择数据!");
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
lawsProjectLibraryService.deleteById(map.get("id"));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
@@ -106,6 +111,7 @@ public class LawsProjectLibraryController extends JeroController<LawsProjectLibr
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
@RequiresPermissions("vehicleItemLibrary:batchDel")
|
||||
@AutoLog(value = "项目库-批量删除")
|
||||
@ApiOperation(value="项目库-批量删除", notes="项目库-批量删除")
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
@@ -114,7 +120,7 @@ public class LawsProjectLibraryController extends JeroController<LawsProjectLibr
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
this.lawsProjectLibraryService.deleteByIds(Arrays.asList(map.get("ids").split(",")));
|
||||
return Result.error(MessageUtils.getMessage(ResultCommon.SUCCESSFULLY_DELETED_IN_BULK));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.SUCCESSFULLY_DELETED_IN_BULK));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -126,7 +132,7 @@ public class LawsProjectLibraryController extends JeroController<LawsProjectLibr
|
||||
public Result<LawsProjectLibrary> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
LawsProjectLibrary lawsProjectLibrary = lawsProjectLibraryService.queryById(id);
|
||||
if(lawsProjectLibrary==null) {
|
||||
return Result.error(MessageUtils.getLanguage().equals("EN") ? "No corresponding data found!" : "未找到对应数据");
|
||||
throw new JeroBootException(ResultCommon.NO_CORRESPONDING_DATA_FOUND);
|
||||
}
|
||||
return Result.OK(lawsProjectLibrary);
|
||||
}
|
||||
@@ -134,6 +140,7 @@ public class LawsProjectLibraryController extends JeroController<LawsProjectLibr
|
||||
/**
|
||||
* 导出excel
|
||||
*/
|
||||
@RequiresPermissions("vehicleItemLibrary:export")
|
||||
@AutoLog(value = "项目库-导出excel")
|
||||
@ApiOperation(value="项目库-导出excel", notes="项目库-导出excel")
|
||||
@GetMapping(value = "/exportXls")
|
||||
@@ -156,7 +163,7 @@ public class LawsProjectLibraryController extends JeroController<LawsProjectLibr
|
||||
dos = lawsProjectLibraryService.list(queryWrapper);
|
||||
}
|
||||
if (dos.isEmpty()){
|
||||
throw new JeroBootException("请选择数据导出!");
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
this.translate(dos);
|
||||
|
||||
|
||||
+3
@@ -14,6 +14,7 @@ import com.jero.modules.sys.entity.LawsFriendlyLinks;
|
||||
import com.jero.modules.sys.service.ILawsFriendlyLinksService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -41,6 +42,7 @@ public class LawsFriendlyLinksController extends JeroController<LawsFriendlyLink
|
||||
/**
|
||||
* 列表查询
|
||||
*/
|
||||
@RequiresPermissions("sys:friendshipLink:search")
|
||||
@AutoLog(value = "友情链接管理-列表查询")
|
||||
@ApiOperation(value="友情链接管理-列表查询", notes="友情链接管理-列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
@@ -67,6 +69,7 @@ public class LawsFriendlyLinksController extends JeroController<LawsFriendlyLink
|
||||
* @param lawsFriendlyLinks
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("sys:friendshipLink:edit")
|
||||
@AutoLog(value = "友情链接管理-编辑")
|
||||
@ApiOperation(value="友情链接管理-编辑", notes="友情链接管理-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
|
||||
+4
@@ -14,6 +14,7 @@ import com.jero.modules.sys.entity.LawsWorkingGroup;
|
||||
import com.jero.modules.sys.service.ILawsWorkingGroupService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -76,6 +77,7 @@ public class LawsWorkingGroupController extends JeroController<LawsWorkingGroup,
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
@RequiresPermissions("sys:innerWorkingGroup:tree:add")
|
||||
@AutoLog(value = "内部工作组-添加")
|
||||
@ApiOperation(value="内部工作组-添加", notes="内部工作组-添加")
|
||||
@PostMapping(value = "/add")
|
||||
@@ -95,6 +97,7 @@ public class LawsWorkingGroupController extends JeroController<LawsWorkingGroup,
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
@RequiresPermissions("sys:innerWorkingGroup:tree:edit")
|
||||
@AutoLog(value = "内部工作组-编辑")
|
||||
@ApiOperation(value="内部工作组-编辑", notes="内部工作组-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
@@ -106,6 +109,7 @@ public class LawsWorkingGroupController extends JeroController<LawsWorkingGroup,
|
||||
/**
|
||||
* 通过id删除
|
||||
*/
|
||||
@RequiresPermissions("sys:innerWorkingGroup:tree:delete")
|
||||
@AutoLog(value = "内部工作组-通过id删除")
|
||||
@ApiOperation(value="内部工作组-通过id删除", notes="内部工作组-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
|
||||
+7
@@ -26,6 +26,7 @@ import com.jero.modules.system.service.ISysUserService;
|
||||
import com.sun.deploy.net.URLEncoder;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -57,6 +58,7 @@ public class LawsWorkingGroupUserController extends JeroController<LawsWorkingGr
|
||||
/**
|
||||
* 分页列表查询
|
||||
*/
|
||||
@RequiresPermissions("sys:innerWorkingGroup:search")
|
||||
@AutoLog(value = "内部工作组人员关联表-分页列表查询")
|
||||
@ApiOperation(value="内部工作组人员关联表-分页列表查询", notes="内部工作组人员关联表-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
@@ -73,6 +75,7 @@ public class LawsWorkingGroupUserController extends JeroController<LawsWorkingGr
|
||||
/**
|
||||
* 列表查询
|
||||
*/
|
||||
@RequiresPermissions("sys:innerWorkingGroup:search")
|
||||
@AutoLog(value = "内部工作组人员关联表-列表查询")
|
||||
@ApiOperation(value="内部工作组人员关联表-列表查询", notes="内部工作组人员关联表-列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
@@ -88,6 +91,7 @@ public class LawsWorkingGroupUserController extends JeroController<LawsWorkingGr
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
@RequiresPermissions("sys:innerWorkingGroup:add")
|
||||
@AutoLog(value = "内部工作组人员关联表-添加")
|
||||
@ApiOperation(value="内部工作组人员关联表-添加", notes="内部工作组人员关联表-添加")
|
||||
@PostMapping(value = "/add")
|
||||
@@ -123,6 +127,7 @@ public class LawsWorkingGroupUserController extends JeroController<LawsWorkingGr
|
||||
/**
|
||||
* 通过id删除
|
||||
*/
|
||||
@RequiresPermissions("sys:innerWorkingGroup:delete")
|
||||
@AutoLog(value = "内部工作组人员关联表-通过id删除")
|
||||
@ApiOperation(value="内部工作组人员关联表-通过id删除", notes="内部工作组人员关联表-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
@@ -140,6 +145,7 @@ public class LawsWorkingGroupUserController extends JeroController<LawsWorkingGr
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*/
|
||||
@RequiresPermissions("sys:innerWorkingGroup:import")
|
||||
@AutoLog(value = "内部工作组人员关联表-导入")
|
||||
@ApiOperation(value="内部工作组人员关联表-导入", notes="内部工作组人员关联表-导入")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
@@ -191,6 +197,7 @@ public class LawsWorkingGroupUserController extends JeroController<LawsWorkingGr
|
||||
/**
|
||||
* 导出
|
||||
*/
|
||||
@RequiresPermissions("sys:innerWorkingGroup:export")
|
||||
@AutoLog(value = "内部工作组人员关联表-导出")
|
||||
@ApiOperation(value="内部工作组人员关联表-导出", notes="内部工作组人员关联表-导出")
|
||||
@RequestMapping(value = "/export", method = RequestMethod.GET)
|
||||
|
||||
@@ -19,12 +19,12 @@ successfully.deleted.in.bulk=successfully deleted in bulk
|
||||
cannot.duplicate.favorites=cannot duplicate favorites
|
||||
no.corresponding.data.found=no corresponding data found
|
||||
The.toplevel.group.cannot.be.deleted=The toplevel group cannot be deleted
|
||||
number.workNo.already.exists=number {0} already exists
|
||||
public static final String NO_FILES_IMPORTED = "no.files.imported"; // \u6CA1\u6709\u5BFC\u5165\u6587\u4EF6
|
||||
public static final String PLEASE_SELECT_A_WORKGROUP_TO_IMPORT = "Please.select.a.workgroup.to.import"; // \u8BF7\u9009\u62E9\u5DE5\u4F5C\u7EC4\u8FDB\u884C\u5BFC\u5165
|
||||
public static final String PLEASE_USE_A_FILE_WITH_THE_SUFFIX_XLSX = "please.use.a.file.with.the.suffix.xlsx"; // \u6587\u4EF6\u540D\u683C\u5F0F\u4E0D\u6B63\u786E, \u8BF7\u4F7F\u7528\u540E\u7F00\u540D\u4E3A.xlsx\u7684\u6587\u4EF6
|
||||
public static final String IMPORT_DATA_CANNOT_BE_EMPTY = "import.data.cannot.be.empty"; // \u5BFC\u5165\u6570\u636E\u4E0D\u80FD\u4E3A\u7A7A
|
||||
public static final String HEADER_INCONSISTENT_WITH_TEMPLATE = "header.inconsistent.with.template"; // \u8868\u5934\u4E0E\u6A21\u677F\u4E0D\u4E00\u81F4
|
||||
no.files.imported=number {0} already exists
|
||||
Please.select.a.workgroup.to.import=Please select a workgroup to import
|
||||
please.use.a.file.with.the.suffix.xlsx=please use a file with the suffix xlsx
|
||||
import.data.cannot.be.empty=import data cannot be empty
|
||||
number.workNo.already.exists=number workNo already exists
|
||||
header.inconsistent.with.template=header inconsistent with template
|
||||
|
||||
no.corresponding.record.found=\u672A\u627E\u5230\u5BF9\u5E94\u8BB0\u5F55
|
||||
parameters.cannot.be.null=\u53C2\u6570\u4E0D\u80FD\u4E3A\u7A7A
|
||||
|
||||
Reference in New Issue
Block a user