Browse Source

Merge remote-tracking branch 'origin/master'

zhongwei
haungxing 9 months ago
parent
commit
69d6fac6f3
  1. 2
      hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.xml
  2. 0
      hzims-service/hzims-middle/src/main/resources/db/4.0.0.sql.1
  3. 51
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperDefectController.java
  4. 52
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperDefectStatisticsController.java
  5. 35
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperPhenomenonController.java
  6. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/OverConfigWrapper.java
  7. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/controller/DistributeWorkOrderController.java
  8. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/GrabPackageDTO.java
  9. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/InspectionOrderContentDTO.java
  10. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/InspectionOrderDTO.java
  11. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/MaintOrderContentDTO.java
  12. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/MaintOrderDTO.java
  13. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/OrderPackageDto.java
  14. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/OtherOrderDTO.java
  15. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/Publisher.java
  16. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/RepairOrderAcptDto.java
  17. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/RepairOrderContentDTO.java
  18. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/RepairOrderPrognosisDTO.java
  19. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/TenderDto.java
  20. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/service/IDistributeWorkOrderService.java
  21. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/service/impl/DistributeWorkOrderServiceImpl.java
  22. 1976
      hzims-service/safeproduct/src/main/resources/db/2.0.0.sql.1

2
hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.xml

@ -18,7 +18,7 @@
where is_deleted = 0
and to_days(operation_time) = to_days(now())
and tenant_id = '200000'
group by module_name;
group by operationTime,module_name;
</select>
<select id="statisticsTitleByModuleName"
resultType="com.hnac.hzims.middle.systemlog.vo.StatisticsTitleResponseVo">

0
hzims-service/hzims-middle/src/main/resources/db/4.0.0.sql → hzims-service/hzims-middle/src/main/resources/db/4.0.0.sql.1

51
hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperDefectController.java

@ -72,57 +72,6 @@ public class OperDefectController extends BladeController {
return R.data(page);
}
/*
*/
/**
* 新增 代码自定义代号
*/ /*
@PostMapping("/save")
@ApiOperationSupport(order = 4)
@ApiOperation(value = "新增", notes = "传入defect")
public R save(@Valid @RequestBody OperDefectEntity defect) {
return R.status(defectService.save(defect));
}
*/
/**
* 修改 代码自定义代号
*/ /*
@PostMapping("/update")
@ApiOperationSupport(order = 5)
@ApiOperation(value = "修改", notes = "传入defect")
public R update(@Valid @RequestBody OperDefectEntity defect) {
return R.status(defectService.updateById(defect));
}
*/
/**
* 新增或修改 代码自定义代号
*/ /*
@PostMapping("/submit")
@ApiOperationSupport(order = 6)
@ApiOperation(value = "新增或修改", notes = "传入defect")
public R submit(@Valid @RequestBody OperDefectEntity defect) {
return R.status(defectService.saveOrUpdate(defect));
}
*/
/* */
/**
* 删除 代码自定义代号
*/ /*
@PostMapping("/remove")
@ApiOperationSupport(order = 7)
@ApiOperation(value = "逻辑删除", notes = "传入ids")
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
return R.status(defectService.deleteLogic(Func.toLongList(ids)));
}*/
@PostMapping("/handleProcess")
@ApiOperationSupport(order = 4)
@ApiOperation(value = "执行问题处理流程", notes = "执行问题处理流程")

52
hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperDefectStatisticsController.java

@ -107,12 +107,6 @@ public class OperDefectStatisticsController extends BladeController {
public void exportDefectList(HttpServletResponse response,@RequestBody OperDefectStatisticsVO entity) {
try {
long timeMillis = System.currentTimeMillis();
// if(ObjectUtil.isEmpty(entity.getCreateTime())&&ObjectUtil.isEmpty(entity.getCreateEndTime())){
// LocalDateTime date = LocalDateTime.now();
// LocalDateTime firstDay = date.with(TemporalAdjusters.firstDayOfMonth()).withHour(0).withMinute(0).withSecond(0);
// entity.setCreateTime(Date.from(firstDay.atZone(ZoneId.systemDefault()).toInstant()));
// entity.setCreateEndTime(new Date());
// }
response.setContentType("application/vnd.ms-excel");
response.setCharacterEncoding("UTF-8");
// 这里URLEncoder.encode可以防止中文乱码 当然和easyexcel没有关系
@ -121,18 +115,14 @@ public class OperDefectStatisticsController extends BladeController {
LambdaQueryWrapper<OperDefectStatisticsEntity> queryWrapper = statisticsService.getQueryWrapper(entity);
List<OperDefectStatisticsEntity> list = statisticsService.list(queryWrapper);
long timeMillis1 =System.currentTimeMillis()- timeMillis;
System.out.println("查询对应实例类耗时============================"+ timeMillis1);
List<OperDefectStatisticsExportVO> defectStatisticsExportVO = statisticsService.getDefectStatisticsExportVO(list);
long timeMillis2 =System.currentTimeMillis()- timeMillis;
System.out.println("参数转换耗时============================"+ timeMillis2);
if(defectStatisticsExportVO!=null && defectStatisticsExportVO.size()>0){
System.out.println("---------------- size = " + defectStatisticsExportVO.size());
// 这里需要设置不关闭流
EasyExcel.write(response.getOutputStream(), OperDefectStatisticsExportVO.class).autoCloseStream(Boolean.FALSE).sheet("缺陷统计报表")
.doWrite(defectStatisticsExportVO);
}
} catch (Exception e) {
System.out.println("exportExcel = " + e);
// 重置response
response.reset();
response.setContentType("application/json");
@ -162,48 +152,6 @@ public class OperDefectStatisticsController extends BladeController {
}
/**
* 新增 代码自定义代号
*//*
@PostMapping("/save")
@ApiOperationSupport(order = 4)
@ApiOperation(value = "新增", notes = "传入statistics")
public R save(@Valid @RequestBody OperDefectStatisticsEntity statistics) {
return R.status(statisticsService.save(statistics));
}
*//**
* 修改 代码自定义代号
*//*
@PostMapping("/update")
@ApiOperationSupport(order = 5)
@ApiOperation(value = "修改", notes = "传入statistics")
public R update(@Valid @RequestBody OperDefectStatisticsEntity statistics) {
return R.status(statisticsService.updateById(statistics));
}
*//**
* 新增或修改 代码自定义代号
*//*
@PostMapping("/submit")
@ApiOperationSupport(order = 6)
@ApiOperation(value = "新增或修改", notes = "传入statistics")
public R submit(@Valid @RequestBody OperDefectStatisticsEntity statistics) {
return R.status(statisticsService.saveOrUpdate(statistics));
}
*//**
* 删除 代码自定义代号
*//*
@PostMapping("/remove")
@ApiOperationSupport(order = 7)
@ApiOperation(value = "逻辑删除", notes = "传入ids")
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
return R.status(statisticsService.deleteLogic(Func.toLongList(ids)));
}*/
/**
* 巡检任务统计
* @return
*/

35
hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperPhenomenonController.java

@ -79,43 +79,9 @@ public class OperPhenomenonController extends BladeController {
public R<IPage<OperAppearanceEntity>> list(OperAppearanceVO phenomenon, Query query) {
LambdaQueryWrapper<OperAppearanceEntity> queryWrapper = operAppearanceService.getQueryWrapper(phenomenon);
IPage<OperAppearanceEntity> pages = operAppearanceService.page(Condition.getPage(query), queryWrapper);
// IPage<OperPhenomenonVO> vos = OperPhenomenonWrapper.build().pageVO(pages);
return R.data(pages);
}
//此端口弃用20230621
// /**
// * 新增 代码自定义代号
// */
// @PostMapping("/save")
// @ApiOperationSupport(order = 4)
// @ApiOperation(value = "提交现象,现象提交后不能修改", notes = "传入phenomenon")
// public R save(@Valid @RequestBody OperPhenomenonEntity phenomenon) {
// return R.data(phenomenonService.submit(phenomenon));
// }
/* */ /**
* 修改 代码自定义代号
*/ /*
@PostMapping("/update")
@ApiOperationSupport(order = 5)
@ApiOperation(value = "修改", notes = "传入phenomenon")
public R update(@Valid @RequestBody OperPhenomenonEntity phenomenon) {
return R.status(phenomenonService.updateById(phenomenon));
}
*/ /**
* 新增或修改 代码自定义代号
*/ /*
@PostMapping("/submit")
@ApiOperationSupport(order = 6)
@ApiOperation(value = "新增或修改", notes = "传入phenomenon")
public R submit(@Valid @RequestBody OperPhenomenonEntity phenomenon) {
return R.status(phenomenonService.saveOrUpdate(phenomenon));
}*/
/**
* 删除 代码自定义代号
*/
@ -131,7 +97,6 @@ public class OperPhenomenonController extends BladeController {
@ApiOperation(value = "处理问题甄别流程", notes = "处理问题甄别流程")
public R<Void> handleCheckProcess(@RequestBody @ObjectRequiredInvalid(attributes = {"taskId", "processInstanceId", "comment", "flag",
"variables.pass"}, message = "参数不能为空") BladeFlow flow) {
//@DictInvalid(dictKey = "")
return R.status(phenomenonService.handleCheckProcess(flow));
}

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/OverConfigWrapper.java

@ -25,7 +25,7 @@ public class OverConfigWrapper extends BaseEntityWrapper<OverConfigEntity, OverC
return vo;
}
assert vo != null;
vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null));
vo.setUserName(createUser.getName());
vo.setAscriptionUser(entity.getCreateUser());
return vo;
}

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/controller/DistributeWorkOrderController.java

@ -18,12 +18,14 @@ import java.util.List;
/**
* @author hx
* 和水务进行对接IMS无用20240308wxq
*/
@RestController
@AllArgsConstructor
@Slf4j
@RequestMapping("/token/distribute/workOrder")
@Api(value = "派发工单",tags = "派发工单")
@Deprecated
public class DistributeWorkOrderController {
private final IDistributeWorkOrderService distributeWorkOrderService;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/GrabPackageDTO.java

@ -8,6 +8,7 @@ import java.util.List;
@Data
@ApiModel(value = "抢单受理参数对象",description = "抢单受理参数对象")
@Deprecated
public class GrabPackageDTO {
@ApiModelProperty("水厂名称")

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/InspectionOrderContentDTO.java

@ -1,4 +1,4 @@
package com.hnac.hzims.operational.workOrder.dto;
@Deprecated
public class InspectionOrderContentDTO {
}

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/InspectionOrderDTO.java

@ -8,6 +8,7 @@ import java.util.List;
@Data
@ApiModel(value = "巡检工单列表",description = "巡检工单列表")
@Deprecated
public class InspectionOrderDTO {
@ApiModelProperty("异常设备数")
private Integer equAbnormal;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/MaintOrderContentDTO.java

@ -8,6 +8,7 @@ import lombok.Data;
@ApiModel(value = "MaintOrderContentDTO对象",description = "MaintOrderContentDTO对象")
@Data
@Deprecated
public class MaintOrderContentDTO {
@ApiModelProperty("润滑内容")
private String content;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/MaintOrderDTO.java

@ -10,6 +10,7 @@ import java.util.List;
@Data
@ApiModel(value = "MaintOrderDTO对象",description = "MaintOrderDTO对象")
@Deprecated
public class MaintOrderDTO {
@ApiModelProperty("所属大区")
private String belongArea;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/OrderPackageDto.java

@ -13,6 +13,7 @@ import java.util.List;
*/
@Data
@ApiModel(value = "工单包受理对象", description = "工单包受理对象")
@Deprecated
public class OrderPackageDto {
@ApiModelProperty("竞标主键ID")
private String id;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/OtherOrderDTO.java

@ -7,6 +7,7 @@ import lombok.Data;
@Data
@ApiModel(value = "OtherOrderDTO对象",description = "OtherOrderDTO对象")
@Deprecated
public class OtherOrderDTO {
@ApiModelProperty("工单类型 5防腐工单6大修工单7重置工单8临时通用工单")
private String orderType;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/Publisher.java

@ -6,6 +6,7 @@ import lombok.Data;
@Data
@ApiModel(value = "发布人信息", description = "发布人信息")
@Deprecated
public class Publisher {
@ApiModelProperty("联系地址")
private String contactAddress;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/RepairOrderAcptDto.java

@ -10,6 +10,7 @@ import java.util.List;
@Data
@ApiModel(value = "RepairOrderAcptDto对象", description = "RepairOrderAcptDto对象")
@Deprecated
public class RepairOrderAcptDto {
@ApiModelProperty("报修人")
private String createUser;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/RepairOrderContentDTO.java

@ -8,6 +8,7 @@ import lombok.Data;
@Data
@ApiModel(value = "RepairOrderContentDTO对象",description = "RepairOrderContentDTO对象")
@Deprecated
public class RepairOrderContentDTO {
@ApiModelProperty("报修人")
private String createUser;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/RepairOrderPrognosisDTO.java

@ -6,6 +6,7 @@ import lombok.Data;
@Data
@ApiModel(value = "RepairOrderPrognosisDTO对象",description = "RepairOrderPrognosisDTO对象")
@Deprecated
public class RepairOrderPrognosisDTO {
@ApiModelProperty("故障原因描述")
private String cause;

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/dto/TenderDto.java

@ -10,6 +10,7 @@ import java.util.List;
@Data
@ApiModel(value = "招标信息",description = "招标信息")
@Deprecated
public class TenderDto {
@ApiModelProperty("备注")
private String orderRemark;

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/service/IDistributeWorkOrderService.java

@ -3,7 +3,7 @@ package com.hnac.hzims.operational.workOrder.service;
import com.hnac.hzims.operational.access.entity.OperAccessTaskEntity;
import com.hnac.hzims.operational.defect.entity.OperDefectEntity;
import org.springblade.core.tool.api.R;
@Deprecated
public interface IDistributeWorkOrderService {
/**
* 派发检修任务

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/workOrder/service/impl/DistributeWorkOrderServiceImpl.java

@ -44,6 +44,7 @@ import java.util.Set;
@Slf4j
@RequiredArgsConstructor
@Service
@Deprecated
public class DistributeWorkOrderServiceImpl implements IDistributeWorkOrderService {
private final IEmInfoClient emInfoClient;
private final ISysClient sysClient;

1976
hzims-service/safeproduct/src/main/resources/db/2.0.0.sql.1

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save