删除无用数据表

This commit is contained in:
liuchengqian 2023-01-10 14:30:25 +08:00
parent f7f635f092
commit c88e71d62f
7 changed files with 10 additions and 227 deletions

View File

@ -21,10 +21,6 @@ import java.util.Map;
import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject; import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject;
import static com.xkrs.utils.FileUtil.getUploadInfo; import static com.xkrs.utils.FileUtil.getUploadInfo;
/**
* @author XinYi Song
* 文件上传
*/
@RestController @RestController
public class FileController { public class FileController {
@ -36,6 +32,7 @@ public class FileController {
/** /**
* 上传多张图片 * 上传多张图片
*
* @param files * @param files
* @return * @return
*/ */
@ -46,8 +43,7 @@ public class FileController {
return outputEncapsulationObject(PromptMessageEnum.PARAM_NULL, "result or fileType is null", locale); return outputEncapsulationObject(PromptMessageEnum.PARAM_NULL, "result or fileType is null", locale);
} }
List list = new ArrayList(); List list = new ArrayList();
for (MultipartFile file : for (MultipartFile file : files) {
files) {
boolean m = FileUtil.checkFileSize(file.getSize(), 100, "M"); boolean m = FileUtil.checkFileSize(file.getSize(), 100, "M");
if (m == false) { if (m == false) {
return outputEncapsulationObject(PromptMessageEnum.DATA_WRONG, "图片大小不能超过100M", locale); return outputEncapsulationObject(PromptMessageEnum.DATA_WRONG, "图片大小不能超过100M", locale);
@ -72,6 +68,7 @@ public class FileController {
/** /**
* 上传单张图片 * 上传单张图片
*
* @param file * @param file
* @return * @return
*/ */
@ -104,6 +101,7 @@ public class FileController {
/** /**
* 查询火点图片路径 * 查询火点图片路径
*
* @return * @return
*/ */
@GetMapping("/findPath") @GetMapping("/findPath")

View File

@ -8,7 +8,6 @@ import com.xkrs.model.entity.FirePointEntity;
import com.xkrs.model.entity.SysUserEntity; import com.xkrs.model.entity.SysUserEntity;
import com.xkrs.model.qo.AuditFireTypeQo; import com.xkrs.model.qo.AuditFireTypeQo;
import com.xkrs.model.qo.FirePointQo; import com.xkrs.model.qo.FirePointQo;
import com.xkrs.model.qo.ShanDongFirePointVerifyStateQo;
import com.xkrs.service.FirePointService; import com.xkrs.service.FirePointService;
import com.xkrs.service.StreetService; import com.xkrs.service.StreetService;
import com.xkrs.service.impl.FirePointServiceImpl; import com.xkrs.service.impl.FirePointServiceImpl;
@ -90,18 +89,6 @@ public class FirePointController {
} }
} }
/**
* 将山东临时火点表中的火点根据火点编号更新审核状态
* 操作1如果verifyState==1将火点编号对应的火点从山东火点表转存到火点表
* 操作2将山东火点表中的这个火点的审核状态更新
*/
@PostMapping("/updateverifystatebyfirecode")
public String updateVerifyStateByFireCode(@RequestBody ShanDongFirePointVerifyStateQo shanDongFirePointVerifyStateQo) {
String fireCode = shanDongFirePointVerifyStateQo.getFireCode();
String verifyState = shanDongFirePointVerifyStateQo.getVerifyState();
return firePointService.updateVerifyStateByFireCode(fireCode, verifyState);
}
/** /**
* 在全国火点表中根据火点编码修改审核火点状态 * 在全国火点表中根据火点编码修改审核火点状态
*/ */

View File

@ -1,151 +0,0 @@
package com.xkrs.model.entity;
import javax.persistence.*;
/**
* 护林员和火点中间表
* @author xkrs
*/
@Entity
@Table(name="fire_and_ranger")
public class FireAndRanger {
/**
* 主键id
*/
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "fire_and_ranger_seq_gen")
@SequenceGenerator(name = "fire_and_ranger_seq_gen", sequenceName = "fire_and_ranger_id_seq",allocationSize = 1)
private Integer id;
/**
* 护林员的账号手机号作为和火点的标识
*/
@Column(length = 65, columnDefinition = "varchar(65)")
private String rangerName;
/**
* 火点编码
*/
@Column(length = 65, columnDefinition = "varchar(65)")
private String fireCode;
/**
* 处理人
*/
@Column(length = 65, columnDefinition = "varchar(65)")
private String handler;
/**
* 核查人
*/
@Column(length = 65, columnDefinition = "varchar(65)")
private String verifier;
/**
* 处理时间(核查时间)
*/
@Column(length = 65, columnDefinition = "varchar(65)")
private String handlerTime;
/**
* 结束时间
*/
@Column(length = 65, columnDefinition = "varchar(65)")
private String endTime;
@Column(length = 32, columnDefinition = "varchar(32)")
private String progressType;
public FireAndRanger() {
}
public FireAndRanger(Integer id, String rangerName, String fireCode, String handler, String verifier, String handlerTime, String endTime, String progressType) {
this.id = id;
this.rangerName = rangerName;
this.fireCode = fireCode;
this.handler = handler;
this.verifier = verifier;
this.handlerTime = handlerTime;
this.endTime = endTime;
this.progressType = progressType;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getRangerName() {
return rangerName;
}
public void setRangerName(String rangerName) {
this.rangerName = rangerName;
}
public String getFireCode() {
return fireCode;
}
public void setFireCode(String fireCode) {
this.fireCode = fireCode;
}
public String getHandler() {
return handler;
}
public void setHandler(String handler) {
this.handler = handler;
}
public String getVerifier() {
return verifier;
}
public void setVerifier(String verifier) {
this.verifier = verifier;
}
public String getHandlerTime() {
return handlerTime;
}
public void setHandlerTime(String handlerTime) {
this.handlerTime = handlerTime;
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public String getProgressType() {
return progressType;
}
public void setProgressType(String progressType) {
this.progressType = progressType;
}
@Override
public String toString() {
return "FireAndRanger{" +
"id=" + id +
", rangerName='" + rangerName + '\'' +
", fireCode='" + fireCode + '\'' +
", handler='" + handler + '\'' +
", verifier='" + verifier + '\'' +
", handlerTime='" + handlerTime + '\'' +
", endTime='" + endTime + '\'' +
", progressType='" + progressType + '\'' +
'}';
}
}

View File

@ -1,38 +0,0 @@
package com.xkrs.model.qo;
import com.xkrs.model.validation.ShanDongFirePointVerifyStateQoUpdate;
import javax.validation.constraints.NotNull;
public class ShanDongFirePointVerifyStateQo {
@NotNull(message = "{FirePoint.fireCode.blank}", groups = {ShanDongFirePointVerifyStateQoUpdate.class})
private String fireCode;
@NotNull(message = "{FirePoint.verifyState.blank}", groups = {ShanDongFirePointVerifyStateQoUpdate.class})
private String verifyState;
public ShanDongFirePointVerifyStateQo() {
}
public String getFireCode() {
return fireCode;
}
public void setFireCode(String fireCode) {
this.fireCode = fireCode;
}
public String getVerifyState() {
return verifyState;
}
public void setVerifyState(String verifyState) {
this.verifyState = verifyState;
}
@Override
public String toString() {
return "ShanDongFirePointVerifyStateQo{" + "fireCode='" + fireCode + '\'' + ", verifyState='" + verifyState + '\'' + '}';
}
}

View File

@ -9,11 +9,6 @@ import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern; import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size; import javax.validation.constraints.Size;
/**
* SysUserQo
*
* @author tajochen
*/
public class SysUserQo { public class SysUserQo {
@NotNull(message = "{SysUser.id.blank}", groups = {SysUserQoUpdate.class}) @NotNull(message = "{SysUser.id.blank}", groups = {SysUserQoUpdate.class})

View File

@ -1,4 +0,0 @@
package com.xkrs.model.validation;
public interface SettingQoUpdate {
}

View File

@ -1,4 +0,0 @@
package com.xkrs.model.validation;
public interface ShanDongFirePointVerifyStateQoUpdate {
}