Browse Source

修改安全安全管理日志注解

zhongwei
段飞宇 1 year ago
parent
commit
92c1b6d108
  1. 14
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/AccidentController.java
  2. 2
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/CheckMonthController.java
  3. 2
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/DangerSourceController.java
  4. 2
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/EmergencyPlanController.java
  5. 2
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SafetyToolController.java
  6. 2
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SafetyToolTypeController.java
  7. 2
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SystemFileController.java

14
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/AccidentController.java

@ -74,11 +74,9 @@ public class AccidentController extends BladeController {
if (ObjectUtil.isNotEmpty(accidentEntity)) { if (ObjectUtil.isNotEmpty(accidentEntity)) {
accidentVO = AccidentWrapper.build().entityVO(accidentEntity); accidentVO = AccidentWrapper.build().entityVO(accidentEntity);
} }
} } catch (Exception e) {
catch(Exception e){
e.printStackTrace(); e.printStackTrace();
} } finally {
finally {
readLock.unlock(); readLock.unlock();
} }
return R.data(accidentVO); return R.data(accidentVO);
@ -93,11 +91,9 @@ public class AccidentController extends BladeController {
try { try {
AccidentEntity accidentEntity = BeanUtil.copy(req, AccidentEntity.class); AccidentEntity accidentEntity = BeanUtil.copy(req, AccidentEntity.class);
accidentService.updateById(accidentEntity); accidentService.updateById(accidentEntity);
} } catch (Exception e) {
catch(Exception e) {
e.printStackTrace(); e.printStackTrace();
} } finally {
finally {
writeLock.unlock(); writeLock.unlock();
} }
return R.success("操作成功"); return R.success("操作成功");
@ -117,7 +113,7 @@ public class AccidentController extends BladeController {
@ApiOperationSupport(order = 5) @ApiOperationSupport(order = 5)
@OperationAnnotation(moduleName = "安全管理", @OperationAnnotation(moduleName = "安全管理",
title = "事故管理", operatorType = OperatorType.MOBILE, businessType = BusinessType.GENCODE, title = "事故管理", operatorType = OperatorType.MOBILE, businessType = BusinessType.GENCODE,
action = "分页条件") action = "分页查询事故管理列表")
public R<IPage> pageList(AccidentDTO req, Query query) { public R<IPage> pageList(AccidentDTO req, Query query) {
AccidentEntity accidentEntity = BeanUtil.copy(req, AccidentEntity.class); AccidentEntity accidentEntity = BeanUtil.copy(req, AccidentEntity.class);
LambdaQueryWrapper<AccidentEntity> queryWrapper = Condition.getQueryWrapper(new AccidentEntity(), accidentEntity); LambdaQueryWrapper<AccidentEntity> queryWrapper = Condition.getQueryWrapper(new AccidentEntity(), accidentEntity);

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/CheckMonthController.java

@ -103,7 +103,7 @@ public class CheckMonthController extends BladeController {
@ApiOperation(value = "分页", notes = "查询条件:month,status,createDept") @ApiOperation(value = "分页", notes = "查询条件:month,status,createDept")
@OperationAnnotation(moduleName = "安全管理", @OperationAnnotation(moduleName = "安全管理",
title = "月度自查核查",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, title = "月度自查核查",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页") action = "分页查询月度自查核查数据")
public R<IPage<CheckMonthVo>> listNotDataScope(CheckMonthEntity req, Query query) { public R<IPage<CheckMonthVo>> listNotDataScope(CheckMonthEntity req, Query query) {
R<IPage<CheckMonthVo>> pageR = checkMonthlyService.pageNotDataScope(req, query); R<IPage<CheckMonthVo>> pageR = checkMonthlyService.pageNotDataScope(req, query);
IPage<CheckMonthVo> page = pageR.getData(); IPage<CheckMonthVo> page = pageR.getData();

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/DangerSourceController.java

@ -85,7 +85,7 @@ public class DangerSourceController extends BladeController {
@ApiOperation(value = "分页", notes = "查询条件:eqId,level,`dangerEle,applyType,type") @ApiOperation(value = "分页", notes = "查询条件:eqId,level,`dangerEle,applyType,type")
@OperationAnnotation(moduleName = "安全管理",title = "危险点列表",operatorType = OperatorType.MOBILE,businessType = @OperationAnnotation(moduleName = "安全管理",title = "危险点列表",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE, BusinessType.GENCODE,
action = "分页") action = "分页查询危险点列表列表")
public R<IPage<DangerSourceVO>> list(DangerSourceEntity req, Query query) { public R<IPage<DangerSourceVO>> list(DangerSourceEntity req, Query query) {
return dangerSourceService.pageCondition(req, query); return dangerSourceService.pageCondition(req, query);
} }

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/EmergencyPlanController.java

@ -81,7 +81,7 @@ public class EmergencyPlanController extends BladeController {
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@OperationAnnotation(moduleName = "安全管理",title = "应急预案文件",operatorType = OperatorType.MOBILE,businessType = @OperationAnnotation(moduleName = "安全管理",title = "应急预案文件",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE, BusinessType.GENCODE,
action = "分页条件") action = "分页查询应急预案文件列表")
@ApiOperation(value = "分页", notes = "查询条件:typeId,fileStatus,fileName") @ApiOperation(value = "分页", notes = "查询条件:typeId,fileStatus,fileName")
public R<IPage<EmergencyPlanVO>> list(EmergencyPlanListDTO req, Query query) { public R<IPage<EmergencyPlanVO>> list(EmergencyPlanListDTO req, Query query) {
return emergencyPlanService.pageCondition(req, query); return emergencyPlanService.pageCondition(req, query);

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SafetyToolController.java

@ -99,7 +99,7 @@ public class SafetyToolController extends BladeController {
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@OperationAnnotation(moduleName = "安全管理",title = "安全工具器",operatorType = OperatorType.MOBILE,businessType = @OperationAnnotation(moduleName = "安全管理",title = "安全工具器",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE, BusinessType.GENCODE,
action = "分页条件") action = "分页查询安全工具器列表")
@ApiOperation(value = "分页", notes = "查询条件:typeId,toolName,toolCode") @ApiOperation(value = "分页", notes = "查询条件:typeId,toolName,toolCode")
public R<IPage<SafetyToolVO>> list(SafetyToolDTO req, Query query) { public R<IPage<SafetyToolVO>> list(SafetyToolDTO req, Query query) {
return safetyToolService.pageCondition(req, query); return safetyToolService.pageCondition(req, query);

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SafetyToolTypeController.java

@ -98,7 +98,7 @@ public class SafetyToolTypeController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 60) @ApiOperationSupport(order = 60)
@OperationAnnotation(moduleName = "安全管理",title = "安全工器具类型",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "安全管理",title = "安全工器具类型",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页条件") action = "分页查询安全工器具类型数据")
@ApiOperation(value = "分页", notes = "查询条件:sendType,name,startSendTime,endSendTime") @ApiOperation(value = "分页", notes = "查询条件:sendType,name,startSendTime,endSendTime")
public R<IPage<SafetyToolTypeVO>> list(SafetyToolTypeListDTO req, Query query) { public R<IPage<SafetyToolTypeVO>> list(SafetyToolTypeListDTO req, Query query) {
return R.data(safetyToolTypeService.pageCondition(req, query)); return R.data(safetyToolTypeService.pageCondition(req, query));

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SystemFileController.java

@ -87,7 +87,7 @@ public class SystemFileController extends BladeController {
@ApiOperation(value = "分页", notes = "查询条件:fTypeId,fileStatus,fileName") @ApiOperation(value = "分页", notes = "查询条件:fTypeId,fileStatus,fileName")
@OperationAnnotation(moduleName = "安全管理",title = "体系文件",operatorType = OperatorType.MOBILE,businessType = @OperationAnnotation(moduleName = "安全管理",title = "体系文件",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE, BusinessType.GENCODE,
action = "分页条件") action = "分页查询体系文件数据")
public R<IPage<SystemFileVO>> list(SystemFileListDTO req, Query query) { public R<IPage<SystemFileVO>> list(SystemFileListDTO req, Query query) {
return systemFileService.pageCondition(req, query); return systemFileService.pageCondition(req, query);
} }

Loading…
Cancel
Save