提交 cca54296 authored 作者: zhoushaopan's avatar zhoushaopan

fix(自查模块): 修复了自查的数据

修复了自查的数据
上级 11993463
......@@ -381,7 +381,7 @@ public enum LogType {
DAILY_CHECKED(176,DAILY_SELF_CHECK.id,WAIT_CHECK.id,WAIT_CHECK_RESULT.id,"等待上传校验结果"),
DAILY_CHECK_END(177,DAILY_SELF_CHECK.id,WAIT_CHECK_FILE.id,END.id,"日常检查任务完结"),
DAILY_CHECK_RE(178,DAILY_SELF_CHECK.id,WAIT_CHECK_RESULT.id,WAIT_CHECK_FILE.id,"提交检查结果"),
DAILY_CHECK_RE2(179,DAILY_SELF_CHECK.id,WAIT_CHECK_FILE.id,WAIT_CHECK_FILE.id,"提交检查结果");
DAILY_CHECK_RE2(179,DAILY_SELF_CHECK.id,WAIT_CHECK_RESULT.id,WAIT_CHECK_RESULT.id,"提交检查结果");
public Integer id;
......
......@@ -40,7 +40,7 @@ public class Swagger2Config {
// .globalResponseMessage(RequestMethod.GET, getResMsg())
.select()
// 指定controller存放的目录路径
.apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
.apis(RequestHandlerSelectors.withClassAnnotation(AutoDocument.class))
.paths(PathSelectors.any())
.build()
.apiInfo(apiInfo())
......
......@@ -478,8 +478,10 @@ public class RepairController {
TaskBto saveEntity;
//当前单位其他专管员id集合
List<Integer> ids = userPublicService.findOtherUser(userUtils.getCurrentUserId());
Integer unitId = userUtils.getCurrentUnitId();
Units units1 = unitsCache.findById(unitId);
//省向国家发起的
if (level == 1) {
if (level == 1 && units1.getType() == 1) {
ownUnit = userUtils.getCurrentUnitId();
//直接发起的
if (repairBillSaveVo.getTaskId() == null) {
......
package com.tykj.dev.device.selfcheck.base;
import com.tykj.dev.device.selfcheck.service.RemindCheckService;
import com.tykj.dev.device.selfcheck.subject.domin.RemindCheck;
import com.tykj.dev.device.user.cache.UnitsCache;
import com.tykj.dev.device.user.subject.entity.Units;
import com.tykj.dev.misc.utils.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author zsp
* @create 2022/5/25 15:44
*/
@Component
@Slf4j
public class RemindCheckTask {
@Resource
private RemindCheckService remindCheckService;
@Resource
private UnitsCache unitsCache;
@Scheduled(cron = "0 0 0 * * ? ")
private void signUpDeadline() {
log.info("定时开始创建提醒任务");
List<Integer> unitId =
unitsCache.findAll().stream().map(Units::getUnitId).distinct().collect(Collectors.toList());
List<RemindCheck> remindCheckList = new ArrayList<>();
unitId.forEach(integer -> {
RemindCheck remindCheck = new RemindCheck();
String name = unitsCache.findById(integer).getName();
remindCheck.setTitle(name+"发起的日常检查任务");
remindCheck.setUnitId(integer);
remindCheck.setCreateTime(DateUtil.getLocalDate(new Date()));
remindCheckList.add(remindCheck);
});
remindCheckService.batchSave(remindCheckList);
log.info("定时创建提醒任务成功");
}
}
......@@ -6,13 +6,9 @@ import com.tykj.dev.device.library.subject.domin.DeviceLibrary;
import com.tykj.dev.device.selfcheck.service.DailyCheckBillService;
import com.tykj.dev.device.selfcheck.service.SelfCheckUnitBillService;
import com.tykj.dev.device.selfcheck.subject.domin.DailyCheckBill;
import com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill;
import com.tykj.dev.device.selfcheck.subject.domin.SelfCheckUnitBill;
import com.tykj.dev.device.selfcheck.subject.vo.SelfCheckSelectVo;
import com.tykj.dev.device.selfcheck.subject.vo.daily.*;
import com.tykj.dev.device.task.service.TaskService;
import com.tykj.dev.device.task.subject.bto.TaskBto;
import com.tykj.dev.device.user.cache.StoreCache;
import com.tykj.dev.device.user.cache.UnitsCache;
import com.tykj.dev.device.user.cache.UserCache;
import com.tykj.dev.device.user.util.UserUtils;
......@@ -126,7 +122,13 @@ public class DailyCheckController {
@PostMapping(value = "/saveDayDevice")
@Transactional(rollbackFor = Exception.class)
public ResponseEntity saveDayDevice(@RequestBody SelfCheckUnitBill selfCheckUnitBill) {
//先根据单位id查询
SelfCheckUnitBill byUnitId = service.findByUnitId(selfCheckUnitBill.getUnitId());
if (byUnitId != null){
service.deleteOne(byUnitId);
}
SelfCheckUnitBill unitBill = service.add(selfCheckUnitBill);
return ResultUtil.success(unitBill);
}
......
package com.tykj.dev.device.selfcheck.controller;
import com.tykj.dev.config.swagger.AutoDocument;
import com.tykj.dev.device.selfcheck.service.RemindCheckService;
import com.tykj.dev.device.selfcheck.subject.domin.DailyCheckBill;
import com.tykj.dev.device.selfcheck.subject.domin.RemindCheck;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
* @author zsp
* @create 2022/5/25 15:57
*/
@RestController
@RequestMapping(value = "/remindCheck")
@AutoDocument
@Api(tags = "日常检查提醒列表模块",description = "日常检查提醒列表模块")
@Slf4j
public class RemindCheckController {
@Resource
private RemindCheckService remindCheckService;
@ApiOperation(value = "查询列表", notes = "查询列表")
@GetMapping(value = "/selectList")
@Transactional(rollbackFor = Exception.class)
public ResponseEntity createBill(Integer unitId){
List<RemindCheck> remindCheckList = remindCheckService.selectList(unitId);
return ResponseEntity.ok(remindCheckList);
}
}
......@@ -396,7 +396,7 @@ public class SelfCheckController {
historyDeviceBill.setRfidCardId(deviceLibrary.getRfidCardId());
historyDeviceBill.setLocationUnit(deviceLibrary.getLocationUnit());
historyDeviceBill.setOwnUnit(deviceLibrary.getOwnUnit());
historyDeviceBill.setDeviceStatus(1);
historyDeviceBill.setCheckResult(1);
historyDeviceBill.setSeqNumber(deviceLibrary.getSeqNumber());
historyDeviceBillList.add(historyDeviceBill);
});
......@@ -418,7 +418,7 @@ public class SelfCheckController {
historyDeviceBill.setRfidCardId(deviceLibrary.getRfidCardId());
historyDeviceBill.setLocationUnit(deviceLibrary.getLocationUnit());
historyDeviceBill.setOwnUnit(deviceLibrary.getOwnUnit());
historyDeviceBill.setDeviceStatus(1);
historyDeviceBill.setCheckResult(1);
historyDeviceBill.setSeqNumber(deviceLibrary.getSeqNumber());
historyDeviceBillList.add(historyDeviceBill);
});
......@@ -438,7 +438,7 @@ public class SelfCheckController {
historyDeviceBill.setRfidCardId(deviceLibrary.getRfidCardId());
historyDeviceBill.setLocationUnit(deviceLibrary.getLocationUnit());
historyDeviceBill.setOwnUnit(deviceLibrary.getOwnUnit());
historyDeviceBill.setDeviceStatus(0);
historyDeviceBill.setCheckResult(0);
historyDeviceBill.setSeqNumber(deviceLibrary.getSeqNumber());
historyDeviceBillList.add(historyDeviceBill);
});
......@@ -517,24 +517,24 @@ public class SelfCheckController {
selfExaminationBillService.update(selfExaminationBillEntity1);
}
}
if (selfCheckSaveVo.getNewDeviceList() != null) {
//按新增不在系统的装备按rfid卡号拼接保存
List<HistoryDeviceBill> historyDeviceBillList = new ArrayList<>();
for (String s : selfCheckSaveVo.getNewDeviceList()) {
HistoryDeviceBill historyDeviceBill = new HistoryDeviceBill();
historyDeviceBill.setBillId(selfExaminationBillEntity1.getId());
historyDeviceBill.setModel("");
historyDeviceBill.setName("");
historyDeviceBill.setDeviceId(0);
historyDeviceBill.setRfidCardId(s);
historyDeviceBill.setLocationUnit("");
historyDeviceBill.setOwnUnit("");
historyDeviceBill.setDeviceStatus(0);
historyDeviceBill.setSeqNumber("");
historyDeviceBillList.add(historyDeviceBill);
}
historyDeviceBillService.batchSave(historyDeviceBillList);
}
// if (selfCheckSaveVo.getNewDeviceList() != null) {
// //按新增不在系统的装备按rfid卡号拼接保存
// List<HistoryDeviceBill> historyDeviceBillList = new ArrayList<>();
// for (String s : selfCheckSaveVo.getNewDeviceList()) {
// HistoryDeviceBill historyDeviceBill = new HistoryDeviceBill();
// historyDeviceBill.setBillId(selfExaminationBillEntity1.getId());
// historyDeviceBill.setModel("");
// historyDeviceBill.setName("");
// historyDeviceBill.setDeviceId(0);
// historyDeviceBill.setRfidCardId(s);
// historyDeviceBill.setLocationUnit("");
// historyDeviceBill.setOwnUnit("");
// historyDeviceBill.setCheckResult(0);
// historyDeviceBill.setSeqNumber("");
// historyDeviceBillList.add(historyDeviceBill);
// }
// historyDeviceBillService.batchSave(historyDeviceBillList);
// }
//添加装备日志
//进行修改日志存储慢的问题
List<DeviceLogDto> deviceLogDtos = new ArrayList<>();
......
package com.tykj.dev.device.selfcheck.repository;
import com.tykj.dev.device.selfcheck.subject.domin.RemindCheck;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import java.time.LocalDate;
import java.util.List;
/**
* @author zsp
* @create 2022/5/25 15:38
*/
public interface RemindCheckDao extends JpaSpecificationExecutor<RemindCheck>, JpaRepository<RemindCheck,Integer> {
RemindCheck findByUnitIdAndCreateTime(Integer unitId,LocalDate createTime);
List<RemindCheck> findAllByUnitId(Integer unitId);
}
package com.tykj.dev.device.selfcheck.service;
import com.tykj.dev.device.selfcheck.subject.domin.RemindCheck;
import java.time.LocalDate;
import java.util.List;
/**
* @author zsp
* @create 2022/5/25 15:36
*/
public interface RemindCheckService {
void batchSave(List<RemindCheck> remindCheckList);
void remove(Integer unitId, LocalDate createTime);
List<RemindCheck> selectList(Integer unitId);
}
......@@ -2,6 +2,8 @@ package com.tykj.dev.device.selfcheck.service;
import com.tykj.dev.device.selfcheck.subject.domin.SelfCheckUnitBill;
import java.util.List;
/**
* @author zsp
*/
......@@ -11,4 +13,6 @@ public interface SelfCheckUnitBillService {
SelfCheckUnitBill findByUnitId(Integer unitId);
void deleteOne(SelfCheckUnitBill selfCheckUnitBill);
}
......@@ -10,21 +10,16 @@ import com.tykj.dev.device.library.subject.domin.DeviceLibrary;
import com.tykj.dev.device.selfcheck.repository.DailyCheckBillDao;
import com.tykj.dev.device.selfcheck.service.DailyCheckBillService;
import com.tykj.dev.device.selfcheck.service.HistoryDailyDeviceBillService;
import com.tykj.dev.device.selfcheck.service.RemindCheckService;
import com.tykj.dev.device.selfcheck.subject.domin.DailyCheckBill;
import com.tykj.dev.device.selfcheck.subject.domin.HistoryDailyDeviceBill;
import com.tykj.dev.device.selfcheck.subject.domin.HistoryDeviceBill;
import com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill;
import com.tykj.dev.device.selfcheck.subject.vo.SelfCheckSaveVo;
import com.tykj.dev.device.selfcheck.subject.vo.SelfCheckSelectVo;
import com.tykj.dev.device.selfcheck.subject.vo.daily.*;
import com.tykj.dev.device.task.service.TaskLogService;
import com.tykj.dev.device.task.service.TaskService;
import com.tykj.dev.device.task.subject.bto.TaskBto;
import com.tykj.dev.device.task.subject.vo.TaskLogUserVo;
import com.tykj.dev.device.task.subject.vo.TaskUserVo;
import com.tykj.dev.device.user.cache.StoreCache;
import com.tykj.dev.device.user.cache.UserCache;
import com.tykj.dev.device.user.subject.entity.User;
import com.tykj.dev.device.user.util.UserUtils;
import com.tykj.dev.misc.base.BusinessEnum;
import com.tykj.dev.misc.base.StatusEnum;
......@@ -33,24 +28,15 @@ import com.tykj.dev.misc.qrcode.QrCodeBillUtil;
import com.tykj.dev.misc.qrcode.vo.DeviceCodeVO;
import com.tykj.dev.misc.qrcode.vo.TaskData;
import com.tykj.dev.misc.utils.DateUtil;
import com.tykj.dev.misc.utils.JacksonUtil;
import com.tykj.dev.misc.utils.SpringUtils;
import com.tykj.dev.misc.utils.TaskDisposeUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import javax.persistence.Transient;
import java.lang.reflect.Field;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
......@@ -85,6 +71,9 @@ public class DailyCheckBillServiceImpl implements DailyCheckBillService {
@Resource
private UserCache userCache;
@Resource
private RemindCheckService remindCheckService;
@Override
......@@ -168,6 +157,7 @@ public class DailyCheckBillServiceImpl implements DailyCheckBillService {
@Override
public void endDayBill(DailyCheckEndVo dailyCheckEndVo) {
Integer unitId = userUtils.getCurrentUnitId();
Integer taskId = dailyCheckEndVo.getTaskId();
TaskBto taskBto = taskService.get(taskId);
//如果是直接提交
......@@ -205,6 +195,7 @@ public class DailyCheckBillServiceImpl implements DailyCheckBillService {
batchSave(dailyCheckEndVo.getCheckDeviceList0(),Integer.valueOf("0"),historyDeviceBillList0,update.getId());
List<HistoryDailyDeviceBill> historyDeviceBillList1 = new ArrayList<>();
batchSave(dailyCheckEndVo.getCheckDeviceList1(),Integer.valueOf("1"),historyDeviceBillList1,update.getId());
remindCheckService.remove(unitId,startTime);
}
@Override
......
package com.tykj.dev.device.selfcheck.service.impl;
import com.tykj.dev.device.selfcheck.repository.RemindCheckDao;
import com.tykj.dev.device.selfcheck.service.RemindCheckService;
import com.tykj.dev.device.selfcheck.subject.domin.RemindCheck;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDate;
import java.util.List;
/**
* @author zsp
* @create 2022/5/25 15:38
*/
@Service
public class RemindCheckServiceImpl implements RemindCheckService {
@Resource
private RemindCheckDao remindCheckDao;
@Override
public void batchSave(List<RemindCheck> remindCheckList) {
remindCheckDao.saveAll(remindCheckList);
}
@Override
public void remove(Integer unitId, LocalDate createTime) {
RemindCheck check = remindCheckDao.findByUnitIdAndCreateTime(unitId, createTime);
if (check != null){
remindCheckDao.delete(check);
}
}
@Override
public List<RemindCheck> selectList(Integer unitId) {
return remindCheckDao.findAllByUnitId(unitId);
}
}
......@@ -7,6 +7,7 @@ import com.tykj.dev.misc.utils.JacksonUtil;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* @author zsp
......@@ -27,4 +28,9 @@ public class SelfCheckUnitBillServiceImpl implements SelfCheckUnitBillService {
public SelfCheckUnitBill findByUnitId(Integer unitId) {
return selfCheckUnitBillDao.findByUnitId(unitId);
}
@Override
public void deleteOne(SelfCheckUnitBill selfCheckUnitBill) {
selfCheckUnitBillDao.delete(selfCheckUnitBill);
}
}
......@@ -60,12 +60,12 @@ public class DailyCheckBill {
* 自查时间
*/
@ApiModelProperty(value = "自查时间(创建任务的时间)")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",shape = JsonFormat.Shape.STRING)
@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
private LocalDateTime checkStartTime;
@ApiModelProperty(value = "完成的时间(上传单据的时间)")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",shape = JsonFormat.Shape.STRING)
@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
private LocalDateTime checkEndTime;
......
......@@ -70,7 +70,7 @@ public class HistoryDeviceBill {
* 设备的状态
*/
@ApiModelProperty(value = "设备的状态",example = "0 缺失 1 正常 2 新增")
private Integer deviceStatus;
private Integer checkResult;
@ApiModelProperty(value = "业务id")
private Integer billId;
......
package com.tykj.dev.device.selfcheck.subject.domin;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import java.time.LocalDate;
/**
* @author zsp
* @create 2022/5/25 15:23
*/
@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@ApiModel("日常检查列表提醒实体")
public class RemindCheck {
/**
* 主键id
*/
@Id
@GeneratedValue
@ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id;
/**
* 提醒标题
*/
@ApiModelProperty(value = "提醒标题")
private String title;
/**
* 单位(A岗)
*/
@ApiModelProperty(value = "单位id")
private Integer unitId;
/**
* 自查时间
*/
@ApiModelProperty(value = "自查时间")
@JsonFormat(pattern = "yyyy-MM-dd",shape = JsonFormat.Shape.STRING)
@DateTimeFormat(pattern = "yyyy-MM-dd")
private LocalDate createTime;
}
......@@ -362,7 +362,7 @@ public class TaskSelectController {
//过滤出1的
List<HistoryDeviceBill> billList1 =
historyDeviceBillList.stream().filter(historyDeviceBill -> historyDeviceBill.getDeviceStatus() == 1)
historyDeviceBillList.stream().filter(historyDeviceBill -> historyDeviceBill.getCheckResult() == 1)
.collect(Collectors.toList());
// list.add(libraryEntities1);
list.add(billList1);
......
......@@ -6,6 +6,8 @@ import com.tykj.dev.device.allot.subject.domin.AllotBackBill;
import com.tykj.dev.device.allot.subject.domin.AllotBill;
import com.tykj.dev.device.confirmcheck.entity.domain.DeviceCheckDetail;
import com.tykj.dev.device.confirmcheck.repository.DeviceCheckDetailDao;
import com.tykj.dev.device.library.service.DeviceLibraryService;
import com.tykj.dev.device.library.subject.domin.DeviceLibrary;
import com.tykj.dev.device.matching.repository.MatchingDeviceLibraryDao;
import com.tykj.dev.device.matching.subject.domin.MatchingDeviceLibrary;
import com.tykj.dev.device.repair.repository.RepairBackBillDao;
......@@ -17,6 +19,8 @@ import com.tykj.dev.device.repair.subject.domin.RepairBill;
import com.tykj.dev.device.repair.subject.domin.RepairDetail;
import com.tykj.dev.device.repair.subject.domin.RepairSendBill;
import com.tykj.dev.device.selfcheck.repository.SelfCheckBillDao;
import com.tykj.dev.device.selfcheck.service.HistoryDeviceBillService;
import com.tykj.dev.device.selfcheck.subject.domin.HistoryDeviceBill;
import com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill;
import com.tykj.dev.device.user.subject.dao.UnitsDao;
import com.tykj.dev.device.user.subject.entity.Units;
......@@ -36,6 +40,7 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
......@@ -75,6 +80,12 @@ public class DataInit {
@Autowired
private com.tykj.dev.device.user.util.AuthenticationUtils AuthenticationUtils;
@Resource
private DeviceLibraryService deviceLibraryService;
@Resource
private HistoryDeviceBillService historyDeviceBillService;
private void initCheckDetailUnitName() {
// 对现有的数据补充unitId信息
allotBillDao.findAll().forEach(this::saveModifyDetail1);
......@@ -135,6 +146,39 @@ public class DataInit {
}
private void saveModifyDetail33(SelfCheckBill selfCheckBill) {
String checkDetail = selfCheckBill.getCheckDetail();
List<HistoryDeviceBill> deviceBillList = new ArrayList<>();
if (checkDetail != null) {
String[] strings = checkDetail.split("x");
for (String s1 : strings) {
if (s1.length() >= 2) {
HistoryDeviceBill historyDeviceBill = new HistoryDeviceBill();
//缺失
if ("0".equals(s1.substring(s1.length() - 1))) {
historyDeviceBill.setCheckResult(0);
}
//无误
if ("1".equals(s1.substring(s1.length() - 1))) {
historyDeviceBill.setCheckResult(1);
}
Integer deviceId = Integer.valueOf(s1.substring(0, s1.length() - 1));
historyDeviceBill.setDeviceId(deviceId);
DeviceLibrary deviceLibrary = deviceLibraryService.getOne(deviceId);
historyDeviceBill.setModel(deviceLibrary.getModel());
historyDeviceBill.setName(deviceLibrary.getName());
historyDeviceBill.setBillId(selfCheckBill.getId());
historyDeviceBill.setSeqNumber(deviceLibrary.getSeqNumber());
historyDeviceBill.setOwnUnit(deviceLibrary.getOwnUnit());
historyDeviceBill.setLocationUnit(deviceLibrary.getLocationUnit());
historyDeviceBill.setRfidCardId(deviceLibrary.getRfidCardId());
deviceBillList.add(historyDeviceBill);
}
}
historyDeviceBillService.batchSave(deviceBillList);
}
}
private void saveModifyDetail4(RepairBill allotBill) {
String receiveUnit = allotBill.getReceiveUnit();
String sendUnit = allotBill.getSendUnit();
......@@ -240,6 +284,12 @@ public class DataInit {
initCheckDetailUnitName2();
}
public void init3(){
log.info("自查开始补充-----");
selfCheckBillDao.findAll().forEach(this::saveModifyDetail33);
log.info("自查补充完成-----");
}
@Autowired
private DeviceCheckDetailDao
deviceCheckDetailDao;
......
......@@ -43,6 +43,7 @@ import java.util.concurrent.CompletableFuture;
@RestController
@Slf4j
@Api("数据纠正模块")
@AutoDocument
public class RunController {
@Resource
......@@ -102,5 +103,13 @@ public class RunController {
return ResponseEntity.ok("修改成功");
}
@ApiOperation(value = "修改单位名称从而修改配套设备的创建单位", notes = "修改单位名称从而修改配套设备的创建单位")
@GetMapping("/run/init3")
@Transactional(rollbackFor = Exception.class)
public ResponseEntity<String> init3() {
dataInit.init3();
return ResponseEntity.ok("修改成功");
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论