关键零部件绑定关系管理完善

This commit is contained in:
梁琦涛
2024-09-25 13:42:51 +08:00
parent ae1d6ab3ff
commit 29baf0811a
3 changed files with 7 additions and 7 deletions
@@ -102,7 +102,7 @@ public class LawsPartRelevanceController {
@AutoLog(value = "业务支持-关键零部件绑定关系管理-批量删除") @AutoLog(value = "业务支持-关键零部件绑定关系管理-批量删除")
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-批量删除", notes = "业务支持-关键零部件绑定关系管理-批量删除") @ApiOperation(value = "业务支持-关键零部件绑定关系管理-批量删除", notes = "业务支持-关键零部件绑定关系管理-批量删除")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
// @PostMapping(value = "/deleteBatch") @PostMapping(value = "/deleteBatch")
// @RequiresPermissions("marketStandard:deleteBatch") // @RequiresPermissions("marketStandard:deleteBatch")
public Result<T> deleteBatch(@RequestBody Map<String, String> map) { public Result<T> deleteBatch(@RequestBody Map<String, String> map) {
if (!map.containsKey("ids") || StringUtils.isEmpty(map.get("ids"))) { if (!map.containsKey("ids") || StringUtils.isEmpty(map.get("ids"))) {
@@ -155,7 +155,7 @@ public class LawsPartRelevanceController {
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-导入", notes = "业务支持-关键零部件绑定关系管理-导入") @ApiOperation(value = "业务支持-关键零部件绑定关系管理-导入", notes = "业务支持-关键零部件绑定关系管理-导入")
@ApiOperationSupport(order = 7) @ApiOperationSupport(order = 7)
@PostMapping(value = "/importExcel") @PostMapping(value = "/importExcel")
@RequiresPermissions("marketStandard:detail:operate") // @RequiresPermissions("marketStandard:detail:operate")
public Result<?> importExcel(@RequestParam("file") @ApiParam("文件") MultipartFile file) { public Result<?> importExcel(@RequestParam("file") @ApiParam("文件") MultipartFile file) {
lawsPartRelevanceService.importExcel(file); lawsPartRelevanceService.importExcel(file);
return Result.OK(ResultCommon.OK); return Result.OK(ResultCommon.OK);
@@ -171,7 +171,7 @@ public class LawsPartRelevanceController {
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-下载模版", notes = "业务支持-关键零部件绑定关系管理-下载模版") @ApiOperation(value = "业务支持-关键零部件绑定关系管理-下载模版", notes = "业务支持-关键零部件绑定关系管理-下载模版")
@ApiOperationSupport(order = 7) @ApiOperationSupport(order = 7)
@GetMapping(value = "/downloadTemplate") @GetMapping(value = "/downloadTemplate")
@RequiresPermissions("marketStandard:detail:operate") // @RequiresPermissions("marketStandard:detail:operate")
public ModelAndView downloadTemplate(HttpServletResponse response) { public ModelAndView downloadTemplate(HttpServletResponse response) {
return lawsPartRelevanceService.downloadTemplate(response); return lawsPartRelevanceService.downloadTemplate(response);
} }
@@ -118,7 +118,7 @@ public class LawsPartRelevance implements Serializable {
@NotBlank(message = "责任部门不能为空") @NotBlank(message = "责任部门不能为空")
@Dict(dictTable = "sys_depart", dicCode = "id", dicText = "depart_name") @Dict(dictTable = "sys_depart", dicCode = "id", dicText = "depart_name")
@ApiModelProperty(value = "责任部门") @ApiModelProperty(value = "责任部门")
@Excel(name = "适用市场", width = 15, dictTable = "sys_depart", dicCode = "id", dicText = "depart_name") @Excel(name = "责任部门", width = 15, dictTable = "sys_depart", dicCode = "id", dicText = "depart_name")
private String responsibleDepartment; private String responsibleDepartment;
/** /**
* 责任部门专业模块 * 责任部门专业模块
@@ -126,7 +126,7 @@ public class LawsPartRelevance implements Serializable {
@NotBlank(message = "责任部门专业模块不能为空") @NotBlank(message = "责任部门专业模块不能为空")
@ApiModelProperty(value = "责任部门专业模块") @ApiModelProperty(value = "责任部门专业模块")
@Dict(dicCode = "responsible_module") @Dict(dicCode = "responsible_module")
@Excel(name = "适用市场", width = 15, dicCode = "responsible_module") @Excel(name = "责任部门专业模块", width = 15, dicCode = "responsible_module")
private String responsibleModule; private String responsibleModule;
/** /**
* 备注 * 备注
@@ -18,6 +18,7 @@ import com.jero.modules.laws.part.mapper.LawsPartRelevanceMapper;
import com.jero.modules.laws.part.service.ILawsPartPmmPartitionInfoService; import com.jero.modules.laws.part.service.ILawsPartPmmPartitionInfoService;
import com.jero.modules.laws.part.service.ILawsPartRelevanceService; import com.jero.modules.laws.part.service.ILawsPartRelevanceService;
import com.jero.modules.laws.utils.ValidUtil; import com.jero.modules.laws.utils.ValidUtil;
import com.jero.modules.system.vo.SysDictPage;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@@ -251,10 +252,9 @@ public class LawsPartRelevanceServiceImpl extends ServiceImpl<LawsPartRelevanceM
//update-begin--Author:liusq Date:20210126 for:图片导出报错,ImageBasePath未设置-------------------- //update-begin--Author:liusq Date:20210126 for:图片导出报错,ImageBasePath未设置--------------------
ExportParams exportParams=new ExportParams(null, "关键零部件绑定关系管理"); ExportParams exportParams=new ExportParams(null, "关键零部件绑定关系管理");
exportParams.setType(ExcelType.XSSF); exportParams.setType(ExcelType.XSSF);
exportParams.setExclusions(new String[]{"pdf"});
//update-end--Author:liusq Date:20210126 for:图片导出报错,ImageBasePath未设置---------------------- //update-end--Author:liusq Date:20210126 for:图片导出报错,ImageBasePath未设置----------------------
mv.addObject(JeroController.PARAMS,exportParams); mv.addObject(JeroController.PARAMS,exportParams);
mv.addObject(NormalExcelConstants.DATA_LIST, new LawsPartRelevance()); mv.addObject(NormalExcelConstants.DATA_LIST, new ArrayList<>());
return mv; return mv;
} }
} }