提交 b559b8a3 authored 作者: 邓砥奕's avatar 邓砥奕

更新

上级 e28f96b0
...@@ -28,6 +28,7 @@ public class AllotBackBill { ...@@ -28,6 +28,7 @@ public class AllotBackBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(name = "配发单主键id") @ApiModelProperty(name = "配发单主键id")
...@@ -60,21 +61,21 @@ public class AllotBackBill { ...@@ -60,21 +61,21 @@ public class AllotBackBill {
@ApiModelProperty(value = "出库附件文件名") @ApiModelProperty(value = "出库附件文件名")
private String fileName; private String fileName;
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "出库附件文件地址URL") @ApiModelProperty(value = "出库附件文件地址URL")
private String fileUrl; private String fileUrl;
@ApiModelProperty(value = "入库附件文件名") @ApiModelProperty(value = "入库附件文件名")
private String receiveFileName; private String receiveFileName;
@Column(columnDefinition = "TEXT") @Column(name = "receive_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "入库附件文件地址URL") @ApiModelProperty(value = "入库附件文件地址URL")
private String receiveFileUrl; private String receiveFileUrl;
@ApiModelProperty(value = "账单文件名") @ApiModelProperty(value = "账单文件名")
private String billFileName; private String billFileName;
@Column(columnDefinition = "TEXT") @Column(name = "bill_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "账单文件地址URL") @ApiModelProperty(value = "账单文件地址URL")
private String billFileUrl; private String billFileUrl;
...@@ -106,14 +107,14 @@ public class AllotBackBill { ...@@ -106,14 +107,14 @@ public class AllotBackBill {
@ApiModelProperty(value = "已接收装备数量") @ApiModelProperty(value = "已接收装备数量")
private Integer receiveCount; private Integer receiveCount;
@Column(columnDefinition = "TEXT") @Column(name = "back_check_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "退回出库检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配") @ApiModelProperty(value = "退回出库检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配")
private String backCheckDetail; private String backCheckDetail;
@ApiModelProperty(value = "退回出库检查结果") @ApiModelProperty(value = "退回出库检查结果")
private String backCheckResult; private String backCheckResult;
@Column(columnDefinition = "TEXT") @Column(name = "receive_check_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "退回接收方检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配") @ApiModelProperty(value = "退回接收方检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配")
private String receiveCheckDetail; private String receiveCheckDetail;
......
...@@ -36,6 +36,7 @@ public class AllotBill { ...@@ -36,6 +36,7 @@ public class AllotBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 配发标题 * 配发标题
...@@ -110,7 +111,7 @@ public class AllotBill { ...@@ -110,7 +111,7 @@ public class AllotBill {
/** /**
* 出库附件文件地址URL * 出库附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "出库附件文件地址URL") @ApiModelProperty(value = "出库附件文件地址URL")
private String fileUrl; private String fileUrl;
/** /**
...@@ -121,7 +122,7 @@ public class AllotBill { ...@@ -121,7 +122,7 @@ public class AllotBill {
/** /**
* 入库附件文件地址URL * 入库附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "receive_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "入库附件文件地址URL") @ApiModelProperty(value = "入库附件文件地址URL")
private String receiveFileUrl; private String receiveFileUrl;
/** /**
...@@ -132,7 +133,7 @@ public class AllotBill { ...@@ -132,7 +133,7 @@ public class AllotBill {
/** /**
* 账单文件地址URL * 账单文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "bill_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "账单文件地址URL") @ApiModelProperty(value = "账单文件地址URL")
private String billFileUrl; private String billFileUrl;
/** /**
...@@ -182,7 +183,7 @@ public class AllotBill { ...@@ -182,7 +183,7 @@ public class AllotBill {
/** /**
* 配发出库检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配 * 配发出库检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "allot_check_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "配发出库检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配") @ApiModelProperty(value = "配发出库检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配")
private String allotCheckDetail; private String allotCheckDetail;
/** /**
...@@ -193,7 +194,7 @@ public class AllotBill { ...@@ -193,7 +194,7 @@ public class AllotBill {
/** /**
* 配发接收方检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配 * 配发接收方检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "receive_check_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "配发接收方检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配") @ApiModelProperty(value = "配发接收方检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配")
private String receiveCheckDetail; private String receiveCheckDetail;
/** /**
......
...@@ -32,6 +32,7 @@ public class DeviceApplyBill { ...@@ -32,6 +32,7 @@ public class DeviceApplyBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 申请文号 * 申请文号
...@@ -81,7 +82,7 @@ public class DeviceApplyBill { ...@@ -81,7 +82,7 @@ public class DeviceApplyBill {
/** /**
* 列装库主键idx数量(,作为分隔符),例如1x2,2x3,意为列装库id为1的申请2件,id为2的申请3件 * 列装库主键idx数量(,作为分隔符),例如1x2,2x3,意为列装库id为1的申请2件,id为2的申请3件
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "apply_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "列装库主键idx数量(,作为分隔符),例如1x2,2x3,意为列装库id为1的申请2件,id为2的申请3件") @ApiModelProperty(value = "列装库主键idx数量(,作为分隔符),例如1x2,2x3,意为列装库id为1的申请2件,id为2的申请3件")
private String applyDetail; private String applyDetail;
/** /**
......
...@@ -64,7 +64,7 @@ public enum LogType { ...@@ -64,7 +64,7 @@ public enum LogType {
APPLY_3(23,APPLY.id, DEVICE_APPLY_CONFIRM.id, ARCHIVE.id, "装备申请批复驳回"), APPLY_3(23,APPLY.id, DEVICE_APPLY_CONFIRM.id, ARCHIVE.id, "装备申请批复驳回"),
DESTROY_1(24,DESTROY.id, ORIGIN_STATUS.id, DESTROY_BUSINESS_NEED_CONFIRM.id, "发起销毁"), DESTROY_1(24,DESTROY.id, ORIGIN_STATUS.id, WAIT_UPLOAD_BILL_FILE.id, "发起销毁"),
DESTROY_3(26,DESTROY.id, DESTROY_BUSINESS_NEED_CONFIRM.id, ARCHIVE.id, "销毁出库审核失败"), DESTROY_3(26,DESTROY.id, DESTROY_BUSINESS_NEED_CONFIRM.id, ARCHIVE.id, "销毁出库审核失败"),
......
...@@ -19,6 +19,7 @@ public class SystemVariable { ...@@ -19,6 +19,7 @@ public class SystemVariable {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(value = "变量名") @ApiModelProperty(value = "变量名")
......
...@@ -52,7 +52,7 @@ public class DeviceCheckStat extends BaseEntity { ...@@ -52,7 +52,7 @@ public class DeviceCheckStat extends BaseEntity {
/** /**
* 统计信息以JSON形式存储 * 统计信息以JSON形式存储
*/ */
@Column(columnDefinition="TEXT") @Column(name = "stat_info",columnDefinition="TEXT")
private String statInfo; private String statInfo;
/** /**
......
...@@ -85,12 +85,19 @@ public class DeviceDestroyController { ...@@ -85,12 +85,19 @@ public class DeviceDestroyController {
@ApiOperation(value = "提交销毁表单", notes = "可以通过这个接口提交销毁表单发起销毁流程") @ApiOperation(value = "提交销毁表单", notes = "可以通过这个接口提交销毁表单发起销毁流程")
@PostMapping(value = "/form") @PostMapping(value = "/form")
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public ResponseEntity selectRepairBill(@Validated @RequestBody DeviceDestroyFormVo formVo) { public ResponseEntity selectRepairBill(@Validated @RequestBody DeviceDestroyFormVo formVo) throws ParseException {
//生成销毁账单 //生成销毁账单
User currentUserInfo = AuthenticationUtils.getAuthentication().getCurrentUserInfo(); User currentUserInfo = AuthenticationUtils.getAuthentication().getCurrentUserInfo();
DeviceDestroyBill destroyBill = DeviceDestroyBill.formVoToBill(formVo, currentUserInfo); DeviceDestroyBill destroyBill = DeviceDestroyBill.formVoToBill(formVo, currentUserInfo);
//更改账单状态
destroyBill.setDestroyStatus(DestroyStatus.CONFIRM_SUCCESS.getStatus());
//设置销毁时间
destroyBill.setDestroyTime(new Date());
//保存销毁账单 //保存销毁账单
DeviceDestroyBill deviceDestroyBillEntitySaved = deviceDestroyBillService.addEntity(destroyBill); DeviceDestroyBill deviceDestroyBillEntitySaved = deviceDestroyBillService.addEntity(destroyBill);
//为账单新增文号
deviceDestroyBillEntitySaved.setDocNumber(this.deviceDestroyBillService.getNewDocNumber());
deviceDestroyBillService.updateEntity(deviceDestroyBillEntitySaved);
//生成日志所需的文件列表 //生成日志所需的文件列表
ArrayList<FileVo> billList = ListUtil.createList( ArrayList<FileVo> billList = ListUtil.createList(
new FileVo("出库确认单", deviceDestroyBillEntitySaved.getFileName(), deviceDestroyBillEntitySaved.getFileUrl()) new FileVo("出库确认单", deviceDestroyBillEntitySaved.getFileName(), deviceDestroyBillEntitySaved.getFileUrl())
...@@ -99,10 +106,12 @@ public class DeviceDestroyController { ...@@ -99,10 +106,12 @@ public class DeviceDestroyController {
formVo.getDevices().forEach(d -> { formVo.getDevices().forEach(d -> {
deviceLogService.addLog(new DeviceLogDto(d, "发起销毁", billList)); deviceLogService.addLog(new DeviceLogDto(d, "发起销毁", billList));
}); });
//生成销毁审核任务 //更改对应装备的状态为销毁
handleDeviceDetail(deviceDestroyBillEntitySaved, null, 0);
//生成上传销毁单任务
TaskBto task = taskService.start(initTaskBto(deviceDestroyBillEntitySaved)); TaskBto task = taskService.start(initTaskBto(deviceDestroyBillEntitySaved));
myWebSocket.sendMessage1(); myWebSocket.sendMessage1();
return ResultUtil.success(task.getBillId()); return ResponseEntity.ok(deviceDestroyBillEntitySaved.getId());
} }
@ApiOperation(value = "查询可销毁装备列表", notes = "通过这个接口查询可销毁装备接口") @ApiOperation(value = "查询可销毁装备列表", notes = "通过这个接口查询可销毁装备接口")
...@@ -258,7 +267,7 @@ public class DeviceDestroyController { ...@@ -258,7 +267,7 @@ public class DeviceDestroyController {
//生成Task //生成Task
TaskBto taskBto = new TaskBto( TaskBto taskBto = new TaskBto(
StatusEnum.DESTROY_BUSINESS_NEED_CONFIRM.id, StatusEnum.WAIT_UPLOAD_BILL_FILE.id,
"销毁业务", "销毁业务",
0, 0,
".", ".",
...@@ -267,7 +276,7 @@ public class DeviceDestroyController { ...@@ -267,7 +276,7 @@ public class DeviceDestroyController {
userUtils.getCurrentUnitId(), userUtils.getCurrentUnitId(),
1, 1,
"", "",
ListUtil.createList(destroyBill.getStartUserAId(), destroyBill.getStartUserBId())); ListUtil.createList(destroyBill.getStartUserAId(), destroyBill.getStartUserAId()));
return taskBto; return taskBto;
} }
......
...@@ -43,6 +43,7 @@ public class DeviceDestroyBill { ...@@ -43,6 +43,7 @@ public class DeviceDestroyBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 发起销毁业务经办人id(A岗) * 发起销毁业务经办人id(A岗)
...@@ -67,7 +68,7 @@ public class DeviceDestroyBill { ...@@ -67,7 +68,7 @@ public class DeviceDestroyBill {
/** /**
* 出库附件文件地址URL * 出库附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "出库附件文件地址URL") @ApiModelProperty(value = "出库附件文件地址URL")
private String fileUrl; private String fileUrl;
/** /**
...@@ -78,13 +79,13 @@ public class DeviceDestroyBill { ...@@ -78,13 +79,13 @@ public class DeviceDestroyBill {
/** /**
* 出库附件文件地址URL * 出库附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "destroy_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "销毁附件文件地址URL") @ApiModelProperty(value = "销毁附件文件地址URL")
private String destroyFileUrl; private String destroyFileUrl;
/** /**
* 装备销毁出库详情(装备主键id+核对结果(0缺失1无误2新增,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的新增 * 装备销毁出库详情(装备主键id+核对结果(0缺失1无误2新增,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的新增
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "destroy_device_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "装备销毁出库详情(装备主键id+核对结果(0缺失1无误2新增,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的新增") @ApiModelProperty(value = "装备销毁出库详情(装备主键id+核对结果(0缺失1无误2新增,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的新增")
private String destroyDeviceDetail; private String destroyDeviceDetail;
/** /**
......
...@@ -16,7 +16,7 @@ import java.util.List; ...@@ -16,7 +16,7 @@ import java.util.List;
@Data @Data
public class DeviceDestroyFormVo { public class DeviceDestroyFormVo {
@NotNull(message = "confirmUserId不能为空") // @NotNull(message = "confirmUserId不能为空")
@ApiModelProperty(value = "待审核人ID", example = "1") @ApiModelProperty(value = "待审核人ID", example = "1")
private Integer confirmUserId; private Integer confirmUserId;
......
...@@ -24,6 +24,7 @@ public class DeviceChange { ...@@ -24,6 +24,7 @@ public class DeviceChange {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(name = "旧装备id") @ApiModelProperty(name = "旧装备id")
......
...@@ -34,6 +34,7 @@ public class DeviceLibrary { ...@@ -34,6 +34,7 @@ public class DeviceLibrary {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 入库单id * 入库单id
...@@ -143,7 +144,7 @@ public class DeviceLibrary { ...@@ -143,7 +144,7 @@ public class DeviceLibrary {
/** /**
* 图片url地址 * 图片url地址
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "image_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "图片url地址") @ApiModelProperty(value = "图片url地址")
private String imageUrl; private String imageUrl;
/** /**
......
...@@ -38,6 +38,7 @@ public class DeviceLog { ...@@ -38,6 +38,7 @@ public class DeviceLog {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 日志类型(默认0为装备日志,1为设备日志) * 日志类型(默认0为装备日志,1为设备日志)
...@@ -57,7 +58,7 @@ public class DeviceLog { ...@@ -57,7 +58,7 @@ public class DeviceLog {
/** /**
* 相关附件信息(Ǵ作为每个附件分隔符,Ǒ作为附件内部分隔符,例如name1Ǒurl1Ǒ配发单Ǵname2Ǒurl2Ǒ入库确认单Ǵ) * 相关附件信息(Ǵ作为每个附件分隔符,Ǒ作为附件内部分隔符,例如name1Ǒurl1Ǒ配发单Ǵname2Ǒurl2Ǒ入库确认单Ǵ)
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "相关附件信息(Ǵ作为每个附件分隔符,Ǒ作为附件内部分隔符,例如name1Ǒurl1Ǒ配发单Ǵname2Ǒurl2Ǒ入库确认单Ǵ)") @ApiModelProperty(value = "相关附件信息(Ǵ作为每个附件分隔符,Ǒ作为附件内部分隔符,例如name1Ǒurl1Ǒ配发单Ǵname2Ǒurl2Ǒ入库确认单Ǵ)")
private String fileDetail; private String fileDetail;
/** /**
......
...@@ -32,6 +32,7 @@ public class MatchingDeviceBill { ...@@ -32,6 +32,7 @@ public class MatchingDeviceBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 发起人id * 发起人id
...@@ -46,7 +47,7 @@ public class MatchingDeviceBill { ...@@ -46,7 +47,7 @@ public class MatchingDeviceBill {
/** /**
* 设备主键id以x拼接 * 设备主键id以x拼接
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "device_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "设备主键id以x拼接") @ApiModelProperty(value = "设备主键id以x拼接")
private String deviceDetail; private String deviceDetail;
/** /**
...@@ -62,7 +63,7 @@ public class MatchingDeviceBill { ...@@ -62,7 +63,7 @@ public class MatchingDeviceBill {
/** /**
* 附件url地址 * 附件url地址
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "附件url地址") @ApiModelProperty(value = "附件url地址")
private String fileUrl; private String fileUrl;
/** /**
......
...@@ -32,6 +32,7 @@ public class MatchingDeviceLibrary { ...@@ -32,6 +32,7 @@ public class MatchingDeviceLibrary {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 绑定装备的主键id * 绑定装备的主键id
......
...@@ -28,6 +28,7 @@ public class MatchingRepairBill { ...@@ -28,6 +28,7 @@ public class MatchingRepairBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(name = "配套设备id") @ApiModelProperty(name = "配套设备id")
...@@ -39,7 +40,7 @@ public class MatchingRepairBill { ...@@ -39,7 +40,7 @@ public class MatchingRepairBill {
@ApiModelProperty(name = "维修单名字") @ApiModelProperty(name = "维修单名字")
private String fileName; private String fileName;
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(name = "维修单URL") @ApiModelProperty(name = "维修单URL")
private String fileUrl; private String fileUrl;
......
...@@ -10,10 +10,7 @@ import org.springframework.data.annotation.LastModifiedBy; ...@@ -10,10 +10,7 @@ import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener; import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.EntityListeners; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/** /**
...@@ -36,6 +33,7 @@ public class BaseEntity { ...@@ -36,6 +33,7 @@ public class BaseEntity {
*/ */
@Id @Id
@GeneratedValue @GeneratedValue
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
......
...@@ -3,17 +3,13 @@ package com.tykj.dev.misc.base; ...@@ -3,17 +3,13 @@ package com.tykj.dev.misc.base;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;
import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy; import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener; import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.EntityListeners; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/** /**
...@@ -34,6 +30,7 @@ public class BaseEntityNoDelete { ...@@ -34,6 +30,7 @@ public class BaseEntityNoDelete {
*/ */
@Id @Id
@GeneratedValue @GeneratedValue
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
......
...@@ -36,6 +36,7 @@ public class PackingLibrary { ...@@ -36,6 +36,7 @@ public class PackingLibrary {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id") @ApiModelProperty(value = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 经办人省A岗id * 经办人省A岗id
...@@ -139,7 +140,7 @@ public class PackingLibrary { ...@@ -139,7 +140,7 @@ public class PackingLibrary {
/** /**
* 图片url地址 * 图片url地址
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "image_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "图片url地址") @ApiModelProperty(value = "图片url地址")
private String imageUrl; private String imageUrl;
/** /**
...@@ -150,7 +151,7 @@ public class PackingLibrary { ...@@ -150,7 +151,7 @@ public class PackingLibrary {
/** /**
* 附件url地址 * 附件url地址
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "附件url地址") @ApiModelProperty(value = "附件url地址")
private String fileUrl; private String fileUrl;
/** /**
......
...@@ -32,6 +32,7 @@ public class RepairBackBill { ...@@ -32,6 +32,7 @@ public class RepairBackBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 维修退回标题 * 维修退回标题
...@@ -101,7 +102,7 @@ public class RepairBackBill { ...@@ -101,7 +102,7 @@ public class RepairBackBill {
/** /**
* 出库附件文件地址URL * 出库附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "出库附件文件地址URL") @ApiModelProperty(value = "出库附件文件地址URL")
private String fileUrl; private String fileUrl;
/** /**
...@@ -112,7 +113,7 @@ public class RepairBackBill { ...@@ -112,7 +113,7 @@ public class RepairBackBill {
/** /**
* 入库附件文件地址URL * 入库附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "receive_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "入库附件文件地址URL") @ApiModelProperty(value = "入库附件文件地址URL")
private String receiveFileUrl; private String receiveFileUrl;
/** /**
...@@ -123,7 +124,7 @@ public class RepairBackBill { ...@@ -123,7 +124,7 @@ public class RepairBackBill {
/** /**
* 账单文件地址URL * 账单文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "bill_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "账单文件地址URL") @ApiModelProperty(value = "账单文件地址URL")
private String billFileUrl; private String billFileUrl;
/** /**
...@@ -149,7 +150,7 @@ public class RepairBackBill { ...@@ -149,7 +150,7 @@ public class RepairBackBill {
/** /**
* 维修完成出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配 * 维修完成出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "back_check_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "维修完成出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配") @ApiModelProperty(value = "维修完成出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配")
private String backCheckDetail; private String backCheckDetail;
/** /**
...@@ -160,7 +161,7 @@ public class RepairBackBill { ...@@ -160,7 +161,7 @@ public class RepairBackBill {
/** /**
* 维修完成接收入库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配 * 维修完成接收入库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "back_recive_check_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "维修完成接收入库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配") @ApiModelProperty(value = "维修完成接收入库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配")
private String backReciveCheckDetail; private String backReciveCheckDetail;
/** /**
......
...@@ -32,6 +32,7 @@ public class RepairBill { ...@@ -32,6 +32,7 @@ public class RepairBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 申请文号 * 申请文号
......
...@@ -32,6 +32,7 @@ public class RepairDetail { ...@@ -32,6 +32,7 @@ public class RepairDetail {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(name = "父id") @ApiModelProperty(name = "父id")
......
...@@ -31,6 +31,7 @@ public class RepairSendBill { ...@@ -31,6 +31,7 @@ public class RepairSendBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 维修标题 * 维修标题
...@@ -99,13 +100,13 @@ public class RepairSendBill { ...@@ -99,13 +100,13 @@ public class RepairSendBill {
@ApiModelProperty(value = "维修状态(0:维修任务待审核,1:维修任务审核失败,2:维修装备送到上级中,3:上级接收维修装备待审核,4:上级接收维修装备审核失败,5:维修中,6:维修完成退回中,7:维修完成)") @ApiModelProperty(value = "维修状态(0:维修任务待审核,1:维修任务审核失败,2:维修装备送到上级中,3:上级接收维修装备待审核,4:上级接收维修装备审核失败,5:维修中,6:维修完成退回中,7:维修完成)")
private Integer repairStatus; private Integer repairStatus;
@Column(columnDefinition = "TEXT") @Column(name = "repair_device_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "Ǵ作为分隔符,维修装备的主键id加备注,例如x1Ǵ备注1Ǵx2Ǵ备注2Ǵx,意为id为1的装备在维修,备注为备注1,id为2的装备在维修,备注为备注2") @ApiModelProperty(value = "Ǵ作为分隔符,维修装备的主键id加备注,例如x1Ǵ备注1Ǵx2Ǵ备注2Ǵx,意为id为1的装备在维修,备注为备注1,id为2的装备在维修,备注为备注2")
private String repairDeviceDetail; private String repairDeviceDetail;
/** /**
* 送修装备出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配 * 送修装备出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "repair_device_check_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "送修装备出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配") @ApiModelProperty(value = "送修装备出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配")
private String repairDeviceCheckDetail; private String repairDeviceCheckDetail;
/** /**
...@@ -116,7 +117,7 @@ public class RepairSendBill { ...@@ -116,7 +117,7 @@ public class RepairSendBill {
/** /**
* 送修装备接收入库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配 * 送修装备接收入库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "repair_recive_check_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "送修装备接收入库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配") @ApiModelProperty(value = "送修装备接收入库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配")
private String repairReciveCheckDetail; private String repairReciveCheckDetail;
/** /**
...@@ -132,7 +133,7 @@ public class RepairSendBill { ...@@ -132,7 +133,7 @@ public class RepairSendBill {
/** /**
* 出库附件文件地址URL * 出库附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "出库附件文件地址URL") @ApiModelProperty(value = "出库附件文件地址URL")
private String fileUrl; private String fileUrl;
/** /**
...@@ -143,7 +144,7 @@ public class RepairSendBill { ...@@ -143,7 +144,7 @@ public class RepairSendBill {
/** /**
* 入库附件文件地址URL * 入库附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "receive_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "入库附件文件地址URL") @ApiModelProperty(value = "入库附件文件地址URL")
private String receiveFileUrl; private String receiveFileUrl;
/** /**
...@@ -154,7 +155,7 @@ public class RepairSendBill { ...@@ -154,7 +155,7 @@ public class RepairSendBill {
/** /**
* 账单文件地址URL * 账单文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "bill_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "账单文件地址URL") @ApiModelProperty(value = "账单文件地址URL")
private String billFileUrl; private String billFileUrl;
/** /**
......
...@@ -42,6 +42,7 @@ public class DeviceRetiredBill { ...@@ -42,6 +42,7 @@ public class DeviceRetiredBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 省A岗id * 省A岗id
...@@ -61,7 +62,7 @@ public class DeviceRetiredBill { ...@@ -61,7 +62,7 @@ public class DeviceRetiredBill {
/** /**
* 列装库主键id(x作为分隔符),例如1x2,意为列装库id为1和2的退装 * 列装库主键id(x作为分隔符),例如1x2,意为列装库id为1和2的退装
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "retired_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "列装库主键id(x作为分隔符),例如x1x2,意为列装库id为1和2的退装") @ApiModelProperty(value = "列装库主键id(x作为分隔符),例如x1x2,意为列装库id为1和2的退装")
private String retiredDetail; private String retiredDetail;
/** /**
......
...@@ -3,8 +3,6 @@ package com.tykj.dev.rfid.entity.domin; ...@@ -3,8 +3,6 @@ package com.tykj.dev.rfid.entity.domin;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;
import org.springframework.data.jpa.domain.support.AuditingEntityListener; import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.*; import javax.persistence.*;
...@@ -20,6 +18,7 @@ public class AccessControlName { ...@@ -20,6 +18,7 @@ public class AccessControlName {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(value = "门禁名称") @ApiModelProperty(value = "门禁名称")
......
...@@ -29,6 +29,7 @@ public class InputOutputDevice { ...@@ -29,6 +29,7 @@ public class InputOutputDevice {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
......
...@@ -32,6 +32,7 @@ public class InventoryTime { ...@@ -32,6 +32,7 @@ public class InventoryTime {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(value = "盘存时间") @ApiModelProperty(value = "盘存时间")
......
...@@ -30,6 +30,7 @@ public class LibraryWarningLog { ...@@ -30,6 +30,7 @@ public class LibraryWarningLog {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 告警单位 * 告警单位
......
...@@ -36,6 +36,7 @@ public class LibraryWarningLogDetail { ...@@ -36,6 +36,7 @@ public class LibraryWarningLogDetail {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 告警日志ID * 告警日志ID
......
...@@ -42,6 +42,7 @@ public class RfidChangeBill { ...@@ -42,6 +42,7 @@ public class RfidChangeBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 经办人id(A岗) * 经办人id(A岗)
...@@ -100,7 +101,7 @@ public class RfidChangeBill { ...@@ -100,7 +101,7 @@ public class RfidChangeBill {
/** /**
* 附件文件地址URL * 附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "附件文件地址URL") @ApiModelProperty(value = "附件文件地址URL")
private String fileUrl; private String fileUrl;
......
...@@ -39,6 +39,7 @@ public class RfidChangeLog { ...@@ -39,6 +39,7 @@ public class RfidChangeLog {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 对应装备IDid * 对应装备IDid
......
...@@ -108,7 +108,7 @@ public class DeviceScrapController { ...@@ -108,7 +108,7 @@ public class DeviceScrapController {
DeviceLogDto deviceLogDto = new DeviceLogDto(id,"发起报废",null); DeviceLogDto deviceLogDto = new DeviceLogDto(id,"发起报废",null);
deviceLogService.addLog(deviceLogDto); deviceLogService.addLog(deviceLogDto);
} }
return ResponseEntity.ok("发起报废成功"); return ResponseEntity.ok(taskBto.getBillId());
} }
@ApiOperation(value = "上传报废单", notes = "上传报废单") @ApiOperation(value = "上传报废单", notes = "上传报废单")
......
...@@ -32,6 +32,7 @@ public class ScrapBill { ...@@ -32,6 +32,7 @@ public class ScrapBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(value = "维修单id") @ApiModelProperty(value = "维修单id")
...@@ -61,19 +62,19 @@ public class ScrapBill { ...@@ -61,19 +62,19 @@ public class ScrapBill {
@ApiModelProperty(value = "报废单文件名") @ApiModelProperty(value = "报废单文件名")
private String fileName; private String fileName;
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "报废单文件URL") @ApiModelProperty(value = "报废单文件URL")
private String fileUrl; private String fileUrl;
@Column(columnDefinition = "TEXT") @Column(name = "scrap_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "报废装备主键Id以x拼接") @ApiModelProperty(value = "报废装备主键Id以x拼接")
private String scrapDetail; private String scrapDetail;
@Column(columnDefinition = "TEXT") @Column(name = "models",columnDefinition = "TEXT")
@ApiModelProperty(value = "报废型号,以,拼接") @ApiModelProperty(value = "报废型号,以,拼接")
private String models; private String models;
@Column(columnDefinition = "TEXT") @Column(name = "names",columnDefinition = "TEXT")
@ApiModelProperty(value = "报废名称,以,拼接") @ApiModelProperty(value = "报废名称,以,拼接")
private String names; private String names;
......
...@@ -32,6 +32,7 @@ public class SelfCheckBill { ...@@ -32,6 +32,7 @@ public class SelfCheckBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 自查周期(1:月度,2:季度,3:年度,0:未设定周期) * 自查周期(1:月度,2:季度,3:年度,0:未设定周期)
...@@ -81,7 +82,7 @@ public class SelfCheckBill { ...@@ -81,7 +82,7 @@ public class SelfCheckBill {
/** /**
* 自查详情(装备主键id+核对结果(0缺失1无误2新增,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的新增 * 自查详情(装备主键id+核对结果(0缺失1无误2新增,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的新增
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "check_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "自查详情(装备主键id+核对结果(0缺失1无误2新增,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的新增") @ApiModelProperty(value = "自查详情(装备主键id+核对结果(0缺失1无误2新增,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的新增")
private String checkDetail; private String checkDetail;
/** /**
...@@ -126,7 +127,7 @@ public class SelfCheckBill { ...@@ -126,7 +127,7 @@ public class SelfCheckBill {
/** /**
* 自查未入库新增装备详情(RFID卡号以.为分隔符) * 自查未入库新增装备详情(RFID卡号以.为分隔符)
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "new_device_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "自查未入库新增装备详情(RFID卡号以.为分隔符)") @ApiModelProperty(value = "自查未入库新增装备详情(RFID卡号以.为分隔符)")
private String newDeviceDetail; private String newDeviceDetail;
......
...@@ -6,7 +6,6 @@ import com.tykj.dev.misc.base.BaseEntity; ...@@ -6,7 +6,6 @@ import com.tykj.dev.misc.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.SQLDelete;
import org.springframework.data.jpa.domain.support.AuditingEntityListener; import org.springframework.data.jpa.domain.support.AuditingEntityListener;
...@@ -32,6 +31,7 @@ public class DeviceRepel extends BaseEntity { ...@@ -32,6 +31,7 @@ public class DeviceRepel extends BaseEntity {
*/ */
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
...@@ -64,7 +64,7 @@ public class DeviceRepel extends BaseEntity { ...@@ -64,7 +64,7 @@ public class DeviceRepel extends BaseEntity {
* *
*/ */
@ApiModelProperty(value = "正文") @ApiModelProperty(value = "正文")
@Column(columnDefinition = "TEXT") @Column(name = "files",columnDefinition = "TEXT")
private String files; private String files;
......
...@@ -32,6 +32,7 @@ public class DeviceRepelDetail extends BaseEntity { ...@@ -32,6 +32,7 @@ public class DeviceRepelDetail extends BaseEntity {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
......
...@@ -24,6 +24,7 @@ import javax.persistence.*; ...@@ -24,6 +24,7 @@ import javax.persistence.*;
public class RepelDeviceUnit { public class RepelDeviceUnit {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
private Integer deviceId; private Integer deviceId;
......
package com.tykj.dev.device.sendback.entity.domain; package com.tykj.dev.device.sendback.entity.domain;
import com.fasterxml.jackson.core.type.TypeReference;
import com.tykj.dev.device.sendback.entity.vo.ModelCount; import com.tykj.dev.device.sendback.entity.vo.ModelCount;
import com.tykj.dev.misc.base.BaseEntity; import com.tykj.dev.misc.base.BaseEntity;
import com.tykj.dev.misc.utils.JacksonUtil;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
...@@ -11,10 +9,7 @@ import lombok.Data; ...@@ -11,10 +9,7 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.springframework.data.jpa.domain.support.AuditingEntityListener; import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.List; import java.util.List;
/** /**
...@@ -36,6 +31,7 @@ public class RepelTaskStatistical extends BaseEntity { ...@@ -36,6 +31,7 @@ public class RepelTaskStatistical extends BaseEntity {
*/ */
@Id @Id
@ApiModelProperty(value = "数据id") @ApiModelProperty(value = "数据id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
......
...@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.checkerframework.checker.units.qual.A;
import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where; import org.hibernate.annotations.Where;
import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.CreatedBy;
...@@ -34,6 +33,7 @@ public class SendBackBill { ...@@ -34,6 +33,7 @@ public class SendBackBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 清退标题 * 清退标题
......
...@@ -36,6 +36,7 @@ public class SendBackBillDetail { ...@@ -36,6 +36,7 @@ public class SendBackBillDetail {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 申请文号 * 申请文号
......
...@@ -4,8 +4,6 @@ import com.tykj.dev.device.library.repository.DeviceLibraryDao; ...@@ -4,8 +4,6 @@ import com.tykj.dev.device.library.repository.DeviceLibraryDao;
import com.tykj.dev.device.library.subject.domin.DeviceLibrary; import com.tykj.dev.device.library.subject.domin.DeviceLibrary;
import com.tykj.dev.device.sendback.entity.domain.DeviceRepel; import com.tykj.dev.device.sendback.entity.domain.DeviceRepel;
import com.tykj.dev.device.sendback.entity.domain.DeviceRepelDetail; import com.tykj.dev.device.sendback.entity.domain.DeviceRepelDetail;
import com.tykj.dev.device.sendback.entity.domain.RepelDeviceUnit;
import com.tykj.dev.device.sendback.entity.domain.RepelTaskStatistical;
import com.tykj.dev.device.sendback.entity.vo.DeviceChooseRepel; import com.tykj.dev.device.sendback.entity.vo.DeviceChooseRepel;
import com.tykj.dev.device.sendback.entity.vo.DirectlyUnderNavigation; import com.tykj.dev.device.sendback.entity.vo.DirectlyUnderNavigation;
import com.tykj.dev.device.sendback.entity.vo.RepelStatisticsVo; import com.tykj.dev.device.sendback.entity.vo.RepelStatisticsVo;
...@@ -16,7 +14,6 @@ import com.tykj.dev.device.task.subject.bto.TaskBto; ...@@ -16,7 +14,6 @@ import com.tykj.dev.device.task.subject.bto.TaskBto;
import com.tykj.dev.device.user.subject.entity.Units; import com.tykj.dev.device.user.subject.entity.Units;
import com.tykj.dev.device.user.subject.service.UnitsService; import com.tykj.dev.device.user.subject.service.UnitsService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -98,7 +95,7 @@ public class RepelQueryServiceImpl implements RepelQueryService { ...@@ -98,7 +95,7 @@ public class RepelQueryServiceImpl implements RepelQueryService {
@Override @Override
public List<DeviceLibrary> toRepelList(Integer unitId) { public List<DeviceLibrary> toRepelList(Integer unitId) {
Units units= unitsService.findById(unitId); Units units= unitsService.findById(unitId);
return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),12); return deviceLibraryDao.findAllByOwnUnitAndLocationUnitAndLifeStatus(units.getName(),units.getName(),15);
} }
@Override @Override
......
...@@ -36,6 +36,7 @@ public class StorageBill { ...@@ -36,6 +36,7 @@ public class StorageBill {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(name = "id",columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 申请文号 * 申请文号
...@@ -89,7 +90,7 @@ public class StorageBill { ...@@ -89,7 +90,7 @@ public class StorageBill {
/** /**
* 账单文件地址URL * 账单文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "账单文件地址URL") @ApiModelProperty(value = "账单文件地址URL")
private String fileUrl; private String fileUrl;
/** /**
...@@ -100,7 +101,7 @@ public class StorageBill { ...@@ -100,7 +101,7 @@ public class StorageBill {
/** /**
* 入库附件文件地址URL * 入库附件文件地址URL
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "receive_file_url",columnDefinition = "TEXT")
@ApiModelProperty(value = "入库附件文件地址URL") @ApiModelProperty(value = "入库附件文件地址URL")
private String receiveFileUrl; private String receiveFileUrl;
/** /**
...@@ -116,7 +117,7 @@ public class StorageBill { ...@@ -116,7 +117,7 @@ public class StorageBill {
/** /**
* 入库详情(列装主键idx列装数量x装备主键id(字符,作为不同列装的分隔符)),例如1x2x3x4,2x1x5,意为列装库中id为1的入库2件(装备id分别为3,4),列装库中id为2的入库1件(装备id为5) * 入库详情(列装主键idx列装数量x装备主键id(字符,作为不同列装的分隔符)),例如1x2x3x4,2x1x5,意为列装库中id为1的入库2件(装备id分别为3,4),列装库中id为2的入库1件(装备id为5)
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "storage_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "入库详情(装备主键id+核对结果(0缺失1无误2不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配") @ApiModelProperty(value = "入库详情(装备主键id+核对结果(0缺失1无误2不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配")
private String storageDetail; private String storageDetail;
/** /**
......
...@@ -37,6 +37,7 @@ public class Task { ...@@ -37,6 +37,7 @@ public class Task {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id") @ApiModelProperty(value = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(value = "任务状态") @ApiModelProperty(value = "任务状态")
...@@ -79,22 +80,22 @@ public class Task { ...@@ -79,22 +80,22 @@ public class Task {
@ApiModelProperty(value = "所属单位") @ApiModelProperty(value = "所属单位")
private Integer ownUnit; private Integer ownUnit;
@Column(columnDefinition = "TEXT") @Column(name = "top_flag_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "用户置顶信息") @ApiModelProperty(value = "用户置顶信息")
private String topFlagDetail; private String topFlagDetail;
@Column(columnDefinition = "TEXT") @Column(name = "user_read_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "用户阅读信息") @ApiModelProperty(value = "用户阅读信息")
private String userReadDetail; private String userReadDetail;
@ApiModelProperty(value = "数字类型,用于代表指针目前的下标") @ApiModelProperty(value = "数字类型,用于代表指针目前的下标")
private Integer currentPoint; private Integer currentPoint;
@Column(columnDefinition = "TEXT") @Column(name = "custom_info",columnDefinition = "TEXT")
@ApiModelProperty(value = "自定义信息,针对不同业务需要保存一些自定信息") @ApiModelProperty(value = "自定义信息,针对不同业务需要保存一些自定信息")
private String customInfo; private String customInfo;
@Column(columnDefinition = "TEXT") @Column(name = "involve_users",columnDefinition = "TEXT")
@ApiModelProperty(value = "工作涉及人员id(x作为分隔符),例如x1x2x,意为id为1,2的用户参与了该任务") @ApiModelProperty(value = "工作涉及人员id(x作为分隔符),例如x1x2x,意为id为1,2的用户参与了该任务")
private String involveUsers; private String involveUsers;
......
...@@ -37,6 +37,7 @@ public class TaskLog { ...@@ -37,6 +37,7 @@ public class TaskLog {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 业务id * 业务id
...@@ -51,7 +52,7 @@ public class TaskLog { ...@@ -51,7 +52,7 @@ public class TaskLog {
/** /**
* 相关附件信息(Ǵ作为每个附件分隔符,Ǒ作为附件内部分隔符,例如name1Ǒurl1Ǒ配发单Ǵname2Ǒurl2Ǒ入库确认单Ǵ) * 相关附件信息(Ǵ作为每个附件分隔符,Ǒ作为附件内部分隔符,例如name1Ǒurl1Ǒ配发单Ǵname2Ǒurl2Ǒ入库确认单Ǵ)
*/ */
@Column(columnDefinition = "TEXT") @Column(name = "file_detail",columnDefinition = "TEXT")
@ApiModelProperty(value = "相关附件信息(Ǵ作为每个附件分隔符,Ǒ作为附件内部分隔符,例如name1Ǒurl1Ǒ配发单Ǵname2Ǒurl2Ǒ入库确认单Ǵ)") @ApiModelProperty(value = "相关附件信息(Ǵ作为每个附件分隔符,Ǒ作为附件内部分隔符,例如name1Ǒurl1Ǒ配发单Ǵname2Ǒurl2Ǒ入库确认单Ǵ)")
private String fileDetail; private String fileDetail;
/** /**
......
...@@ -10,10 +10,7 @@ import lombok.Data; ...@@ -10,10 +10,7 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.modelmapper.ModelMapper; import org.modelmapper.ModelMapper;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date; import java.util.Date;
/** /**
...@@ -35,6 +32,7 @@ public class TrainTheme { ...@@ -35,6 +32,7 @@ public class TrainTheme {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "培训id") @ApiModelProperty(value = "培训id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer trainId; private Integer trainId;
/** /**
......
...@@ -28,6 +28,7 @@ public class TrainUser { ...@@ -28,6 +28,7 @@ public class TrainUser {
@Id @Id
@ApiModelProperty(value = "数据ID", name = "id", example = "12321L") @ApiModelProperty(value = "数据ID", name = "id", example = "12321L")
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
......
...@@ -10,10 +10,7 @@ import org.modelmapper.ModelMapper; ...@@ -10,10 +10,7 @@ import org.modelmapper.ModelMapper;
import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.annotation.LastModifiedDate;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/** /**
* @author zjm * @author zjm
...@@ -33,6 +30,7 @@ public class WorkHandover { ...@@ -33,6 +30,7 @@ public class WorkHandover {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "工作交接id") @ApiModelProperty(value = "工作交接id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer workHandoverId; private Integer workHandoverId;
/** /**
......
...@@ -390,7 +390,7 @@ public class LogAspect { ...@@ -390,7 +390,7 @@ public class LogAspect {
if (deviceDestroyBillService != null) { if (deviceDestroyBillService != null) {
DeviceDestroyBill deviceDestroyBill = deviceDestroyBillService.getOne(outPutTask.getBillId()); DeviceDestroyBill deviceDestroyBill = deviceDestroyBillService.getOne(outPutTask.getBillId());
getFieldsParam(deviceDestroyBill); getFieldsParam(deviceDestroyBill);
if ((this.oldStatus.equals(StatusEnum.ORIGIN_STATUS.id) && this.newStatus.equals(StatusEnum.DESTROY_BUSINESS_NEED_CONFIRM.id))) { if ((this.oldStatus.equals(StatusEnum.ORIGIN_STATUS.id) && this.newStatus.equals(StatusEnum.WAIT_UPLOAD_BILL_FILE.id))) {
this.fileVos.add(new FileVo("出库确认单", deviceDestroyBill.getFileName(), deviceDestroyBill.getFileUrl())); this.fileVos.add(new FileVo("出库确认单", deviceDestroyBill.getFileName(), deviceDestroyBill.getFileUrl()));
} }
if ((this.oldStatus.equals(StatusEnum.WAIT_UPLOAD_BILL_FILE.id) && this.newStatus.equals(StatusEnum.END.id))) { if ((this.oldStatus.equals(StatusEnum.WAIT_UPLOAD_BILL_FILE.id) && this.newStatus.equals(StatusEnum.END.id))) {
......
...@@ -30,6 +30,7 @@ public class Area { ...@@ -30,6 +30,7 @@ public class Area {
*/ */
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
......
...@@ -5,6 +5,7 @@ import lombok.AllArgsConstructor; ...@@ -5,6 +5,7 @@ import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Transient; import javax.persistence.Transient;
...@@ -27,6 +28,7 @@ public class Groups { ...@@ -27,6 +28,7 @@ public class Groups {
* 组id * 组id
*/ */
@Id @Id
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
......
...@@ -6,10 +6,7 @@ import lombok.AllArgsConstructor; ...@@ -6,10 +6,7 @@ import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/** /**
* @author zjm * @author zjm
...@@ -30,6 +27,7 @@ public class Permissions { ...@@ -30,6 +27,7 @@ public class Permissions {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "数据ID", name = "permissionsId", example = "12321L") @ApiModelProperty(value = "数据ID", name = "permissionsId", example = "12321L")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
// @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO) // @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO)
// @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator") // @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator")
private Integer permissionsId; private Integer permissionsId;
......
...@@ -27,6 +27,7 @@ public class Role { ...@@ -27,6 +27,7 @@ public class Role {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "数据ID", name = "roleId", example = "12321L") @ApiModelProperty(value = "数据ID", name = "roleId", example = "12321L")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
// @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO) // @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO)
// @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator") // @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator")
private Integer roleId; private Integer roleId;
......
...@@ -6,10 +6,7 @@ import lombok.AllArgsConstructor; ...@@ -6,10 +6,7 @@ import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/** /**
* @author zjm * @author zjm
...@@ -30,6 +27,7 @@ public class RolePermissions { ...@@ -30,6 +27,7 @@ public class RolePermissions {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "数据ID", name = "rpId", example = "12321L") @ApiModelProperty(value = "数据ID", name = "rpId", example = "12321L")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
// @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO) // @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO)
// @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator") // @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator")
private Integer rpId; private Integer rpId;
......
...@@ -33,6 +33,7 @@ public class Units { ...@@ -33,6 +33,7 @@ public class Units {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "单位id", name = "unitId", example = "12321L") @ApiModelProperty(value = "单位id", name = "unitId", example = "12321L")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
// @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO) // @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO)
// @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator") // @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator")
private Integer unitId; private Integer unitId;
......
...@@ -6,10 +6,7 @@ import lombok.AllArgsConstructor; ...@@ -6,10 +6,7 @@ import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date; import java.util.Date;
/** /**
...@@ -28,6 +25,7 @@ public class UserLog { ...@@ -28,6 +25,7 @@ public class UserLog {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "id", name = "id") @ApiModelProperty(value = "id", name = "id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
@ApiModelProperty(value = "用户id", name = "userId") @ApiModelProperty(value = "用户id", name = "userId")
private Integer userId; private Integer userId;
......
...@@ -6,10 +6,7 @@ import lombok.AllArgsConstructor; ...@@ -6,10 +6,7 @@ import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/** /**
* @author zjm * @author zjm
...@@ -30,6 +27,7 @@ public class UserRole { ...@@ -30,6 +27,7 @@ public class UserRole {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "数据ID", name = "urId", example = "12321L") @ApiModelProperty(value = "数据ID", name = "urId", example = "12321L")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
// @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO) // @GeneratedValue(generator="UserIdentityGenerator",strategy = GenerationType.AUTO)
// @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator") // @GenericGenerator(name = "UserIdentityGenerator", strategy = "UserIdentityGenerator")
private Integer urId; private Integer urId;
......
...@@ -32,6 +32,7 @@ public class DeviceUseReport { ...@@ -32,6 +32,7 @@ public class DeviceUseReport {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "主键id") @ApiModelProperty(name = "主键id")
@Column(columnDefinition = "integer NOT NULL AUTO_INCREMENT")
private Integer id; private Integer id;
/** /**
* 报告标题 * 报告标题
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论