fix: 国标外标支持根据标准号查询

This commit is contained in:
2024-02-02 10:13:31 +08:00
parent 61f4a83eee
commit c93af86c79
3 changed files with 5 additions and 2 deletions
@@ -1569,6 +1569,9 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
} else {
singleStandard = getSingleStandard(standardNo, null);
}
if (singleStandard == null) {
throw new JeroBootException(ResultCommon.NO_CORRESPONDING_DATA_FOUND);
}
history.setStandardId(id);
history.setStandardNumber(singleStandard.getStandardNumber());
history.setStandardName(singleStandard.getStandardName());
@@ -143,7 +143,7 @@ public class LawsDomesticController {
@GetMapping(value = "getByIdAndModule")
@ApiOperationSupport(order = 7)
@RequiresPermissions("domesticStandard:search")
public Result<Map<String,Object>> getByIdAndModule(@RequestParam(name="id") @ApiParam("主键") String id,
public Result<Map<String,Object>> getByIdAndModule(@RequestParam(name="id", required = false) @ApiParam("主键") String id,
@RequestParam(name="type") @ApiParam("类型(1详情,2新增编辑)") String type,
@RequestParam(name="standardNumber", required = false) @ApiParam("标准编号") String standardNumber) {
lawsCommonService.addLookHistory(id, type, MODULE_VALUE, standardNumber);
@@ -134,7 +134,7 @@ public class LawsOverseasController {
@GetMapping(value = "getByIdAndModule")
@ApiOperationSupport(order = 7)
@RequiresPermissions("overseasStandard:search")
public Result<Map<String,Object>> getByIdAndModule(@RequestParam(name="id") @ApiParam("主键") String id,
public Result<Map<String,Object>> getByIdAndModule(@RequestParam(name="id", required = false) @ApiParam("主键") String id,
@RequestParam(name="type") @ApiParam("类型(1详情,2新增编辑)") String type,
@RequestParam(name="standardNumber", required = false) @ApiParam("标准编号") String standardNumber) {
lawsCommonService.addLookHistory(id, type, MODULE_VALUE, standardNumber);