Commit 0dbb31d9 authored by tangwei's avatar tangwei

f_accident_type create_by dept_id long改为 varchar

f_risk_level create_by long改为 varchar f_equipment charge_dept_id charge_user_id long改为 varchar f_evaluation_model create_by long改为 varchar f_fire_station create_by long改为 varchar f_fire_station_equipment create_by long改为 varchar f_fire_strength create_by long改为 varchar f_fmea identify_user long改为 varchar f_preplan_picture create_by long改为 varchar f_risk_factor create_by dept_id long改为 varchar f_risk_source create_by long改为 varchar f_water_resource create_by long改为 varchar
parent bf50fe85
...@@ -19,10 +19,10 @@ public class AccidentType extends BasicEntity { ...@@ -19,10 +19,10 @@ public class AccidentType extends BasicEntity {
@Column(name="create_by") @Column(name="create_by")
private Long createBy; private String createBy;
@Column(name="dept_id") @Column(name="dept_id")
private Long deptId; private String deptId;
private String name; private String name;
...@@ -45,22 +45,36 @@ public class AccidentType extends BasicEntity { ...@@ -45,22 +45,36 @@ public class AccidentType extends BasicEntity {
} }
public Long getCreateBy() {
return this.createBy;
public String getCreateBy() {
return createBy;
} }
public void setCreateBy(Long createBy) {
public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
public Long getDeptId() {
return this.deptId;
public String getDeptId() {
return deptId;
} }
public void setDeptId(Long deptId) {
public void setDeptId(String deptId) {
this.deptId = deptId; this.deptId = deptId;
} }
@Transient @Transient
public String getInfluence() { public String getInfluence() {
return this.influence; return this.influence;
......
...@@ -45,10 +45,10 @@ public class Equipment extends BasicEntity { ...@@ -45,10 +45,10 @@ public class Equipment extends BasicEntity {
private Boolean isIndoor; private Boolean isIndoor;
@Column(name="charge_dept_id") @Column(name="charge_dept_id")
private int chargeDeptId; private String chargeDeptId;
@Column(name="charge_user_id") @Column(name="charge_user_id")
private int chargeUserId; private String chargeUserId;
private String code; private String code;
...@@ -147,19 +147,21 @@ public class Equipment extends BasicEntity { ...@@ -147,19 +147,21 @@ public class Equipment extends BasicEntity {
this.riskSourceId = riskSourceId; this.riskSourceId = riskSourceId;
} }
public int getChargeDeptId() {
return this.chargeDeptId;
public String getChargeDeptId() {
return chargeDeptId;
} }
public void setChargeDeptId(int chargeDeptId) { public void setChargeDeptId(String chargeDeptId) {
this.chargeDeptId = chargeDeptId; this.chargeDeptId = chargeDeptId;
} }
public int getChargeUserId() { public String getChargeUserId() {
return this.chargeUserId; return chargeUserId;
} }
public void setChargeUserId(int chargeUserId) { public void setChargeUserId(String chargeUserId) {
this.chargeUserId = chargeUserId; this.chargeUserId = chargeUserId;
} }
......
...@@ -18,7 +18,7 @@ public class EvaluationModel extends BasicEntity { ...@@ -18,7 +18,7 @@ public class EvaluationModel extends BasicEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Column(name="create_by") @Column(name="create_by")
private int createBy; private String createBy;
private String name; private String name;
...@@ -54,11 +54,11 @@ public class EvaluationModel extends BasicEntity { ...@@ -54,11 +54,11 @@ public class EvaluationModel extends BasicEntity {
public EvaluationModel() { public EvaluationModel() {
} }
public int getCreateBy() { public String getCreateBy() {
return this.createBy; return this.createBy;
} }
public void setCreateBy(int createBy) { public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
......
...@@ -72,7 +72,7 @@ public class FireStation extends BasicEntity{ ...@@ -72,7 +72,7 @@ public class FireStation extends BasicEntity{
* 创建人 * 创建人
*/ */
@Column(name="create_by") @Column(name="create_by")
private int createBy; private String createBy;
@Column(name="picture") @Column(name="picture")
...@@ -165,11 +165,11 @@ public class FireStation extends BasicEntity{ ...@@ -165,11 +165,11 @@ public class FireStation extends BasicEntity{
this.orgCode = orgCode; this.orgCode = orgCode;
} }
public int getCreateBy() { public String getCreateBy() {
return createBy; return createBy;
} }
public void setCreateBy(int createBy) { public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
......
...@@ -45,7 +45,7 @@ public class FireStationFireEquipment extends BasicEntity{ ...@@ -45,7 +45,7 @@ public class FireStationFireEquipment extends BasicEntity{
* 创建人 * 创建人
*/ */
@Column(name="create_by") @Column(name="create_by")
private int createBy; private String createBy;
public Long getFireStationId() { public Long getFireStationId() {
return fireStationId; return fireStationId;
...@@ -79,11 +79,11 @@ public class FireStationFireEquipment extends BasicEntity{ ...@@ -79,11 +79,11 @@ public class FireStationFireEquipment extends BasicEntity{
this.unit = unit; this.unit = unit;
} }
public int getCreateBy() { public String getCreateBy() {
return createBy; return createBy;
} }
public void setCreateBy(int createBy) { public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
......
...@@ -78,7 +78,7 @@ public class FireStrength extends BasicEntity{ ...@@ -78,7 +78,7 @@ public class FireStrength extends BasicEntity{
* 创建人 * 创建人
*/ */
@Column(name="create_by") @Column(name="create_by")
private int createBy; private String createBy;
public String getCode() { public String getCode() {
return code; return code;
...@@ -144,11 +144,11 @@ public class FireStrength extends BasicEntity{ ...@@ -144,11 +144,11 @@ public class FireStrength extends BasicEntity{
this.orgCode = orgCode; this.orgCode = orgCode;
} }
public int getCreateBy() { public String getCreateBy() {
return createBy; return createBy;
} }
public void setCreateBy(int createBy) { public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
......
...@@ -91,7 +91,7 @@ public class Fmea extends BasicEntity { ...@@ -91,7 +91,7 @@ public class Fmea extends BasicEntity {
private String personLeader; private String personLeader;
@Column(name = "identify_user") @Column(name = "identify_user")
private Integer identifyUser; private String identifyUser;
@Column(name = "identify_method") @Column(name = "identify_method")
private String identifyMethod; private String identifyMethod;
...@@ -298,11 +298,11 @@ public class Fmea extends BasicEntity { ...@@ -298,11 +298,11 @@ public class Fmea extends BasicEntity {
this.personLeader = personLeader; this.personLeader = personLeader;
} }
public Integer getIdentifyUser() { public String getIdentifyUser() {
return identifyUser; return identifyUser;
} }
public void setIdentifyUser(Integer identifyUser) { public void setIdentifyUser(String identifyUser) {
this.identifyUser = identifyUser; this.identifyUser = identifyUser;
} }
......
...@@ -17,7 +17,7 @@ public class PreplanPicture extends BasicEntity { ...@@ -17,7 +17,7 @@ public class PreplanPicture extends BasicEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Column(name = "create_by") @Column(name = "create_by")
private int createBy; private String createBy;
@Column(name = "equipment_id") @Column(name = "equipment_id")
private Long equipmentId; private Long equipmentId;
...@@ -34,11 +34,11 @@ public class PreplanPicture extends BasicEntity { ...@@ -34,11 +34,11 @@ public class PreplanPicture extends BasicEntity {
public PreplanPicture() { public PreplanPicture() {
} }
public int getCreateBy() { public String getCreateBy() {
return this.createBy; return this.createBy;
} }
public void setCreateBy(int createBy) { public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
......
...@@ -20,10 +20,10 @@ public class RiskFactor extends BasicEntity { ...@@ -20,10 +20,10 @@ public class RiskFactor extends BasicEntity {
private Long accidentTypeId; private Long accidentTypeId;
@Column(name="create_by") @Column(name="create_by")
private int createBy; private String createBy;
@Column(name="dept_id") @Column(name="dept_id")
private Long deptId; private String deptId;
private String name; private String name;
...@@ -45,19 +45,19 @@ public class RiskFactor extends BasicEntity { ...@@ -45,19 +45,19 @@ public class RiskFactor extends BasicEntity {
this.accidentTypeId = accidentTypeId; this.accidentTypeId = accidentTypeId;
} }
public int getCreateBy() { public String getCreateBy() {
return this.createBy; return this.createBy;
} }
public void setCreateBy(int createBy) { public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
public Long getDeptId() { public String getDeptId() {
return this.deptId; return this.deptId;
} }
public void setDeptId(Long deptId) { public void setDeptId(String deptId) {
this.deptId = deptId; this.deptId = deptId;
} }
......
...@@ -19,7 +19,7 @@ public class RiskLevel extends BasicEntity { ...@@ -19,7 +19,7 @@ public class RiskLevel extends BasicEntity {
private String color; private String color;
@Column(name = "create_by") @Column(name = "create_by")
private Long createBy; private String createBy;
@Column(name = "evaluation_model_id") @Column(name = "evaluation_model_id")
private Long evaluationModelId; private Long evaluationModelId;
...@@ -64,11 +64,13 @@ public class RiskLevel extends BasicEntity { ...@@ -64,11 +64,13 @@ public class RiskLevel extends BasicEntity {
this.color = color; this.color = color;
} }
public Long getCreateBy() {
return this.createBy;
public String getCreateBy() {
return createBy;
} }
public void setCreateBy(Long createBy) { public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
......
...@@ -29,7 +29,7 @@ public class RiskSource extends BasicEntity { ...@@ -29,7 +29,7 @@ public class RiskSource extends BasicEntity {
private Boolean isIndoor; private Boolean isIndoor;
@Column(name = "create_by") @Column(name = "create_by")
private int createBy; private String createBy;
private String name; private String name;
...@@ -142,11 +142,11 @@ public class RiskSource extends BasicEntity { ...@@ -142,11 +142,11 @@ public class RiskSource extends BasicEntity {
this.code = code; this.code = code;
} }
public int getCreateBy() { public String getCreateBy() {
return this.createBy; return this.createBy;
} }
public void setCreateBy(int createBy) { public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
......
...@@ -81,7 +81,7 @@ public class WaterResource extends BasicEntity{ ...@@ -81,7 +81,7 @@ public class WaterResource extends BasicEntity{
* 创建人 * 创建人
*/ */
@Column(name="create_by") @Column(name="create_by")
private int createBy; private String createBy;
/** /**
* ue4位置 * ue4位置
...@@ -184,11 +184,11 @@ public class WaterResource extends BasicEntity{ ...@@ -184,11 +184,11 @@ public class WaterResource extends BasicEntity{
this.orgCode = orgCode; this.orgCode = orgCode;
} }
public int getCreateBy() { public String getCreateBy() {
return createBy; return createBy;
} }
public void setCreateBy(int createBy) { public void setCreateBy(String createBy) {
this.createBy = createBy; this.createBy = createBy;
} }
......
...@@ -37,7 +37,7 @@ public class FireStationController extends BaseController { ...@@ -37,7 +37,7 @@ public class FireStationController extends BaseController {
throw new Exception("数据校验失败."); throw new Exception("数据校验失败.");
ReginParams reginParams =getSelectedOrgInfo(); ReginParams reginParams =getSelectedOrgInfo();
String compCode=getOrgCode(reginParams); String compCode=getOrgCode(reginParams);
fireStation.setCreateBy(0); fireStation.setCreateBy("0");
fireStation.setCreateDate(new Date()); fireStation.setCreateDate(new Date());
fireStation.setOrgCode(compCode); fireStation.setOrgCode(compCode);
return CommonResponseUtil.success(iFireStationService.save(fireStation)); return CommonResponseUtil.success(iFireStationService.save(fireStation));
...@@ -52,7 +52,7 @@ public class FireStationController extends BaseController { ...@@ -52,7 +52,7 @@ public class FireStationController extends BaseController {
throw new Exception("数据校验失败."); throw new Exception("数据校验失败.");
for (FireStationFireEquipment fireStationFireEquipment : fireStationFireEquipments) { for (FireStationFireEquipment fireStationFireEquipment : fireStationFireEquipments) {
fireStationFireEquipment.setCreateBy(0); fireStationFireEquipment.setCreateBy("0");
fireStationFireEquipment.setCreateDate(new Date()); fireStationFireEquipment.setCreateDate(new Date());
} }
return CommonResponseUtil.success(iFireStationService.saveStationFireEquipment(fireStationFireEquipments)); return CommonResponseUtil.success(iFireStationService.saveStationFireEquipment(fireStationFireEquipments));
...@@ -136,7 +136,7 @@ public class FireStationController extends BaseController { ...@@ -136,7 +136,7 @@ public class FireStationController extends BaseController {
throw new Exception("数据校验失败."); throw new Exception("数据校验失败.");
ReginParams reginParams =getSelectedOrgInfo(); ReginParams reginParams =getSelectedOrgInfo();
String compCode=getOrgCode(reginParams); String compCode=getOrgCode(reginParams);
fireStation.setCreateBy(0); fireStation.setCreateBy("0");
fireStation.setCreateDate(new Date()); fireStation.setCreateDate(new Date());
fireStation.setOrgCode(compCode); fireStation.setOrgCode(compCode);
return CommonResponseUtil.success(iFireStationService.saveAndUpd(fireStation, file)); return CommonResponseUtil.success(iFireStationService.saveAndUpd(fireStation, file));
......
...@@ -41,7 +41,7 @@ public class FireStrengthController extends BaseController{ ...@@ -41,7 +41,7 @@ public class FireStrengthController extends BaseController{
|| StringUtils.isEmpty(fireStrength.getCode() )) || StringUtils.isEmpty(fireStrength.getCode() ))
throw new Exception("数据校验失败."); throw new Exception("数据校验失败.");
fireStrength.setCreateBy(0); fireStrength.setCreateBy("0");
fireStrength.setCreateDate(new Date()); fireStrength.setCreateDate(new Date());
return CommonResponseUtil.success(fireStengthService.savePoint(fireStrength)); return CommonResponseUtil.success(fireStengthService.savePoint(fireStrength));
} }
......
...@@ -48,7 +48,7 @@ public class WaterResourceController extends BaseController{ ...@@ -48,7 +48,7 @@ public class WaterResourceController extends BaseController{
throw new Exception("数据校验失败."); throw new Exception("数据校验失败.");
ReginParams reginParams =getSelectedOrgInfo(); ReginParams reginParams =getSelectedOrgInfo();
String compCode=getOrgCode(reginParams); String compCode=getOrgCode(reginParams);
waterResource.setCreateBy(0); waterResource.setCreateBy("0");
waterResource.setCreateDate(new Date()); waterResource.setCreateDate(new Date());
waterResource.setOrgCode(compCode); waterResource.setOrgCode(compCode);
return CommonResponseUtil.success(iWaterResourceService.save(waterResource)); return CommonResponseUtil.success(iWaterResourceService.save(waterResource));
......
...@@ -63,8 +63,8 @@ public class AccidentTypeServiceImpl implements IAccidentTypeService { ...@@ -63,8 +63,8 @@ public class AccidentTypeServiceImpl implements IAccidentTypeService {
String userId = map.get("user_id")== null ? "0":map.get("user_id").toString(); String userId = map.get("user_id")== null ? "0":map.get("user_id").toString();
String deptId = map.get("dept_id")== null ? "0":map.get("dept_id").toString(); String deptId = map.get("dept_id")== null ? "0":map.get("dept_id").toString();
param.setOrgCode(orgCode); param.setOrgCode(orgCode);
param.setDeptId(Long.parseLong(deptId)); param.setDeptId(deptId);
param.setCreateBy(Long.parseLong(userId)); param.setCreateBy(userId);
param.setCreateDate(new Date()); param.setCreateDate(new Date());
iAccidentTypeDao.save(param); iAccidentTypeDao.save(param);
} }
......
...@@ -259,7 +259,7 @@ public class EquipmentServiceImpl implements IEquipmentService { ...@@ -259,7 +259,7 @@ public class EquipmentServiceImpl implements IEquipmentService {
pp.setEquipmentId(equipmentId); pp.setEquipmentId(equipmentId);
pp.setType(type); pp.setType(type);
pp.setCreateDate(new Date()); pp.setCreateDate(new Date());
pp.setCreateBy(userId.intValue()); pp.setCreateBy(userId.intValue()+"");
} }
String path = FasConstant.UPLOAD_ROOT_PATH + File.separator + FasConstant.UPLOAD_EQUIPMENT_PATH + File.separator String path = FasConstant.UPLOAD_ROOT_PATH + File.separator + FasConstant.UPLOAD_EQUIPMENT_PATH + File.separator
...@@ -283,7 +283,7 @@ public class EquipmentServiceImpl implements IEquipmentService { ...@@ -283,7 +283,7 @@ public class EquipmentServiceImpl implements IEquipmentService {
throw new YeeException("上传图片失败"); throw new YeeException("上传图片失败");
} }
String picture = path + fileName; String picture = path + fileName;
pp.setCreateBy(userId.intValue()); pp.setCreateBy(userId.intValue()+"");
pp.setPicture(picture); pp.setPicture(picture);
if (equipment.getCreateDate() == null) { if (equipment.getCreateDate() == null) {
Optional<Equipment> date=iEquipmentDao.findById(equipment.getId()); Optional<Equipment> date=iEquipmentDao.findById(equipment.getId());
......
...@@ -91,8 +91,8 @@ public class RiskFactorServiceImpl implements IRiskFactorService { ...@@ -91,8 +91,8 @@ public class RiskFactorServiceImpl implements IRiskFactorService {
String userId = map.get("user_id") == null ? "0" : map.get("user_id").toString(); String userId = map.get("user_id") == null ? "0" : map.get("user_id").toString();
String deptId = map.get("dept_id") == null ? "0" : map.get("dept_id").toString(); String deptId = map.get("dept_id") == null ? "0" : map.get("dept_id").toString();
param.setOrgCode(orgCode); param.setOrgCode(orgCode);
param.setDeptId(Long.parseLong(deptId)); param.setDeptId(deptId);
param.setCreateBy(Integer.parseInt(userId)); param.setCreateBy(userId);
param.setCreateDate(new Date()); param.setCreateDate(new Date());
......
...@@ -64,7 +64,7 @@ public class RiskLevelServiceImpl implements IRiskLevelService { ...@@ -64,7 +64,7 @@ public class RiskLevelServiceImpl implements IRiskLevelService {
String orgCode = map.get("org_code") == null ? "":map.get("org_code").toString(); String orgCode = map.get("org_code") == null ? "":map.get("org_code").toString();
String userId = map.get("user_id")== null ? "0":map.get("user_id").toString(); String userId = map.get("user_id")== null ? "0":map.get("user_id").toString();
param.setOrgCode(orgCode); param.setOrgCode(orgCode);
param.setCreateBy(Long.parseLong(userId)); param.setCreateBy(userId);
param.setCreateDate(new Date()); param.setCreateDate(new Date());
iRiskLevelDao.save(param); iRiskLevelDao.save(param);
} }
......
...@@ -229,7 +229,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService { ...@@ -229,7 +229,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
String orgCode = map.get("org_code") == null ? "" : map.get("org_code").toString(); String orgCode = map.get("org_code") == null ? "" : map.get("org_code").toString();
String userId = map.get("user_id") == null ? "0" : map.get("user_id").toString(); String userId = map.get("user_id") == null ? "0" : map.get("user_id").toString();
riskSource.setOrgCode(orgCode); riskSource.setOrgCode(orgCode);
riskSource.setCreateBy(Integer.parseInt(userId)); riskSource.setCreateBy(userId);
Optional<RiskSource> oldRiskSource1 = iRiskSourceDao.findById(id); Optional<RiskSource> oldRiskSource1 = iRiskSourceDao.findById(id);
RiskSource oldRiskSource = null; RiskSource oldRiskSource = null;
if (oldRiskSource1.isPresent()) { if (oldRiskSource1.isPresent()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment