Commit 5006218e461a8c185aab4d93520d30fc35748ecb
1 parent
ca02c02a
update
Showing
3 changed files
with
219 additions
and
90 deletions
src/main/java/com/bsth/entity/schedule/SchedulePlan.java
| @@ -26,19 +26,17 @@ public class SchedulePlan { | @@ -26,19 +26,17 @@ public class SchedulePlan { | ||
| 26 | /** 关联的时刻表/模版 */ | 26 | /** 关联的时刻表/模版 */ |
| 27 | @ManyToOne(optional = false, cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | 27 | @ManyToOne(optional = false, cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) |
| 28 | private TTInfo ttInfo; | 28 | private TTInfo ttInfo; |
| 29 | - /** 关联的排班规则 */ | ||
| 30 | - @ManyToOne(optional = false, cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | 29 | + /** 关联的排班规则(这里暂时改成可以不关联规则,直接生成排班) */ |
| 30 | + @ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | ||
| 31 | private ScheduleRule1 scheduleRule1; | 31 | private ScheduleRule1 scheduleRule1; |
| 32 | 32 | ||
| 33 | /** 排班计划的开始时间 */ | 33 | /** 排班计划的开始时间 */ |
| 34 | + @Column(nullable = false) | ||
| 34 | private Date scheduleFromTime; | 35 | private Date scheduleFromTime; |
| 35 | /** 排班计划的结束时间 */ | 36 | /** 排班计划的结束时间 */ |
| 37 | + @Column(nullable = false) | ||
| 36 | private Date scheduleToTime; | 38 | private Date scheduleToTime; |
| 37 | 39 | ||
| 38 | - /** 操作人 */ | ||
| 39 | - @ManyToOne(optional = false, cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | ||
| 40 | - private SysUser user; | ||
| 41 | - | ||
| 42 | /** 使用中间表的一对多关联 明细信息 */ | 40 | /** 使用中间表的一对多关联 明细信息 */ |
| 43 | @OneToMany(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | 41 | @OneToMany(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) |
| 44 | @JoinTable( | 42 | @JoinTable( |
| @@ -48,10 +46,16 @@ public class SchedulePlan { | @@ -48,10 +46,16 @@ public class SchedulePlan { | ||
| 48 | ) | 46 | ) |
| 49 | private List<SchedulePlanInfo> schedulePlanInfoList; | 47 | private List<SchedulePlanInfo> schedulePlanInfoList; |
| 50 | 48 | ||
| 51 | - // 创建日期 | 49 | + /** 创建人 */ |
| 50 | + @ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | ||
| 51 | + private SysUser createBy; | ||
| 52 | + /** 修改人 */ | ||
| 53 | + @ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | ||
| 54 | + private SysUser updateBy; | ||
| 55 | + /** 创建日期 */ | ||
| 52 | @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") | 56 | @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") |
| 53 | private Date createDate; | 57 | private Date createDate; |
| 54 | - // 修改日期 | 58 | + /** 修改日期 */ |
| 55 | @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") | 59 | @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") |
| 56 | private Date updateDate; | 60 | private Date updateDate; |
| 57 | 61 | ||
| @@ -79,6 +83,14 @@ public class SchedulePlan { | @@ -79,6 +83,14 @@ public class SchedulePlan { | ||
| 79 | this.ttInfo = ttInfo; | 83 | this.ttInfo = ttInfo; |
| 80 | } | 84 | } |
| 81 | 85 | ||
| 86 | + public ScheduleRule1 getScheduleRule1() { | ||
| 87 | + return scheduleRule1; | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + public void setScheduleRule1(ScheduleRule1 scheduleRule1) { | ||
| 91 | + this.scheduleRule1 = scheduleRule1; | ||
| 92 | + } | ||
| 93 | + | ||
| 82 | public Date getScheduleFromTime() { | 94 | public Date getScheduleFromTime() { |
| 83 | return scheduleFromTime; | 95 | return scheduleFromTime; |
| 84 | } | 96 | } |
| @@ -95,12 +107,28 @@ public class SchedulePlan { | @@ -95,12 +107,28 @@ public class SchedulePlan { | ||
| 95 | this.scheduleToTime = scheduleToTime; | 107 | this.scheduleToTime = scheduleToTime; |
| 96 | } | 108 | } |
| 97 | 109 | ||
| 98 | - public SysUser getUser() { | ||
| 99 | - return user; | 110 | + public List<SchedulePlanInfo> getSchedulePlanInfoList() { |
| 111 | + return schedulePlanInfoList; | ||
| 100 | } | 112 | } |
| 101 | 113 | ||
| 102 | - public void setUser(SysUser user) { | ||
| 103 | - this.user = user; | 114 | + public void setSchedulePlanInfoList(List<SchedulePlanInfo> schedulePlanInfoList) { |
| 115 | + this.schedulePlanInfoList = schedulePlanInfoList; | ||
| 116 | + } | ||
| 117 | + | ||
| 118 | + public SysUser getCreateBy() { | ||
| 119 | + return createBy; | ||
| 120 | + } | ||
| 121 | + | ||
| 122 | + public void setCreateBy(SysUser createBy) { | ||
| 123 | + this.createBy = createBy; | ||
| 124 | + } | ||
| 125 | + | ||
| 126 | + public SysUser getUpdateBy() { | ||
| 127 | + return updateBy; | ||
| 128 | + } | ||
| 129 | + | ||
| 130 | + public void setUpdateBy(SysUser updateBy) { | ||
| 131 | + this.updateBy = updateBy; | ||
| 104 | } | 132 | } |
| 105 | 133 | ||
| 106 | public Date getCreateDate() { | 134 | public Date getCreateDate() { |
| @@ -115,14 +143,6 @@ public class SchedulePlan { | @@ -115,14 +143,6 @@ public class SchedulePlan { | ||
| 115 | return updateDate; | 143 | return updateDate; |
| 116 | } | 144 | } |
| 117 | 145 | ||
| 118 | - public ScheduleRule1 getScheduleRule1() { | ||
| 119 | - return scheduleRule1; | ||
| 120 | - } | ||
| 121 | - | ||
| 122 | - public void setScheduleRule1(ScheduleRule1 scheduleRule1) { | ||
| 123 | - this.scheduleRule1 = scheduleRule1; | ||
| 124 | - } | ||
| 125 | - | ||
| 126 | public void setUpdateDate(Date updateDate) { | 146 | public void setUpdateDate(Date updateDate) { |
| 127 | this.updateDate = updateDate; | 147 | this.updateDate = updateDate; |
| 128 | } | 148 | } |
src/main/java/com/bsth/entity/schedule/SchedulePlanInfo.java
| @@ -20,25 +20,47 @@ public class SchedulePlanInfo { | @@ -20,25 +20,47 @@ public class SchedulePlanInfo { | ||
| 20 | private Long id; | 20 | private Long id; |
| 21 | 21 | ||
| 22 | /** 排班计划日期 */ | 22 | /** 排班计划日期 */ |
| 23 | + @Column(nullable = false) | ||
| 23 | private Date scheduleDate; | 24 | private Date scheduleDate; |
| 24 | 25 | ||
| 25 | - /** 路牌名称 */ | ||
| 26 | - private String lpName; | ||
| 27 | - /** 线路编码 */ | ||
| 28 | - private String xlBm; | 26 | + /** 关联 bsth_c_line 主键,不做mapping */ |
| 27 | + @Column(nullable = false) | ||
| 28 | + private Integer xl; | ||
| 29 | /** 线路名称 */ | 29 | /** 线路名称 */ |
| 30 | + @Column(nullable = false) | ||
| 30 | private String xlName; | 31 | private String xlName; |
| 32 | + /** 线路编码 */ | ||
| 33 | + @Column(nullable = false) | ||
| 34 | + private String xlBm; | ||
| 35 | + | ||
| 36 | + /** 关联 bsth_c_s_gbi 主键,不做mapping */ | ||
| 37 | + @Column(nullable = false) | ||
| 38 | + private Long lp; | ||
| 39 | + /** 路牌名称 */ | ||
| 40 | + @Column(nullable = false) | ||
| 41 | + private String lpName; | ||
| 42 | + | ||
| 43 | + /** 关联 bsth_c_cars 主键,不做mapping */ | ||
| 44 | + @Column(nullable = false) | ||
| 45 | + private Integer cl; | ||
| 31 | /** 车辆自编号 */ | 46 | /** 车辆自编号 */ |
| 47 | + @Column(nullable = false) | ||
| 32 | private String clZbh; | 48 | private String clZbh; |
| 33 | 49 | ||
| 34 | 50 | ||
| 35 | /** 报道1时间(格式 HH:mm) */ | 51 | /** 报道1时间(格式 HH:mm) */ |
| 36 | private String bd1Time; | 52 | private String bd1Time; |
| 37 | /** 出场1时间(格式 HH:mm) */ | 53 | /** 出场1时间(格式 HH:mm) */ |
| 54 | + @Column(nullable = false) | ||
| 38 | private String cc1Time; | 55 | private String cc1Time; |
| 56 | + /** 关联 bsth_c_personnel 主键,不做mapping */ | ||
| 57 | + @Column(nullable = false) | ||
| 58 | + private Integer j1; | ||
| 39 | /** 驾驶员1工号 */ | 59 | /** 驾驶员1工号 */ |
| 60 | + @Column(nullable = false) | ||
| 40 | private String j1Gh; | 61 | private String j1Gh; |
| 41 | /** 驾驶员1名字 */ | 62 | /** 驾驶员1名字 */ |
| 63 | + @Column(nullable = false) | ||
| 42 | private String j1Name; | 64 | private String j1Name; |
| 43 | /** 售票员1工号 */ | 65 | /** 售票员1工号 */ |
| 44 | private String s1Gh; | 66 | private String s1Gh; |
| @@ -58,32 +80,55 @@ public class SchedulePlanInfo { | @@ -58,32 +80,55 @@ public class SchedulePlanInfo { | ||
| 58 | /** 售票员2名字 */ | 80 | /** 售票员2名字 */ |
| 59 | private String s2Name; | 81 | private String s2Name; |
| 60 | 82 | ||
| 61 | - // 冗余的时刻明细信息 | ||
| 62 | - /** 线路方向 */ | 83 | + // 冗余的时刻明细信息,不做mapping |
| 84 | + /** 线路方向(TODO:上下行,上行,下行,这个以后用枚举还是字典再议,现在先用文字) */ | ||
| 85 | + @Column(nullable = false) | ||
| 63 | private String xlDir; | 86 | private String xlDir; |
| 64 | - /** 起点站名称 */ | ||
| 65 | - private String qdz; | ||
| 66 | - /** 终点站名称 */ | ||
| 67 | - private String zdz; | 87 | + /** 起点站id,根据班次类型,会关联 bsth_c_station,或 bsth_c_car_park,不做mapping */ |
| 88 | + @Column(nullable = false) | ||
| 89 | + private Integer qdz; | ||
| 90 | + /** 起点站名字 */ | ||
| 91 | + @Column(nullable = false) | ||
| 92 | + private String qdzName; | ||
| 93 | + /** 终点站id,根据班次类型,会关联 bsth_c_station,或 bsth_c_car_park,不做mapping */ | ||
| 94 | + @Column(nullable = false) | ||
| 95 | + private Integer zdz; | ||
| 96 | + /** 终点站名字 */ | ||
| 97 | + @Column(nullable = false) | ||
| 98 | + private String zdzName; | ||
| 99 | + | ||
| 68 | /** 发车时间(格式 HH:mm) */ | 100 | /** 发车时间(格式 HH:mm) */ |
| 101 | + @Column(nullable = false) | ||
| 69 | private String fcsj; | 102 | private String fcsj; |
| 70 | /** 发车顺序号 */ | 103 | /** 发车顺序号 */ |
| 71 | - private int fcno; | 104 | + @Column(nullable = false) |
| 105 | + private Integer fcno; | ||
| 72 | /** 对应班次数 */ | 106 | /** 对应班次数 */ |
| 73 | - private int bcs; | 107 | + @Column(nullable = false) |
| 108 | + private Integer bcs; | ||
| 74 | /** 计划里程 */ | 109 | /** 计划里程 */ |
| 75 | - private double jhlc; | 110 | + private Double jhlc; |
| 76 | /** 班次历时 */ | 111 | /** 班次历时 */ |
| 77 | - private int bcsj; | ||
| 78 | - | ||
| 79 | - /** 操作人 */ | ||
| 80 | - @ManyToOne(optional = false, cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | ||
| 81 | - private SysUser user; | ||
| 82 | - | ||
| 83 | - // 创建日期 | 112 | + private Integer bcsj; |
| 113 | + | ||
| 114 | + /** | ||
| 115 | + * 班次类型 | ||
| 116 | + * TODO:正常班次、出场、进场、加油、临加班次、区间班次、放空班次、放大站班次、两点间空驶 | ||
| 117 | + * TODO:这个以后用枚举还是字典再议,现在先用文字 | ||
| 118 | + */ | ||
| 119 | + @Column(nullable = false) | ||
| 120 | + private String bcType; | ||
| 121 | + | ||
| 122 | + /** 创建人 */ | ||
| 123 | + @ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | ||
| 124 | + private SysUser createBy; | ||
| 125 | + /** 修改人 */ | ||
| 126 | + @ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) | ||
| 127 | + private SysUser updateBy; | ||
| 128 | + /** 创建日期 */ | ||
| 84 | @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") | 129 | @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") |
| 85 | private Date createDate; | 130 | private Date createDate; |
| 86 | - // 修改日期 | 131 | + /** 修改日期 */ |
| 87 | @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") | 132 | @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") |
| 88 | private Date updateDate; | 133 | private Date updateDate; |
| 89 | 134 | ||
| @@ -103,12 +148,12 @@ public class SchedulePlanInfo { | @@ -103,12 +148,12 @@ public class SchedulePlanInfo { | ||
| 103 | this.scheduleDate = scheduleDate; | 148 | this.scheduleDate = scheduleDate; |
| 104 | } | 149 | } |
| 105 | 150 | ||
| 106 | - public String getLpName() { | ||
| 107 | - return lpName; | 151 | + public Integer getXl() { |
| 152 | + return xl; | ||
| 108 | } | 153 | } |
| 109 | 154 | ||
| 110 | - public void setLpName(String lpName) { | ||
| 111 | - this.lpName = lpName; | 155 | + public void setXl(Integer xl) { |
| 156 | + this.xl = xl; | ||
| 112 | } | 157 | } |
| 113 | 158 | ||
| 114 | public String getXlName() { | 159 | public String getXlName() { |
| @@ -119,6 +164,38 @@ public class SchedulePlanInfo { | @@ -119,6 +164,38 @@ public class SchedulePlanInfo { | ||
| 119 | this.xlName = xlName; | 164 | this.xlName = xlName; |
| 120 | } | 165 | } |
| 121 | 166 | ||
| 167 | + public String getXlBm() { | ||
| 168 | + return xlBm; | ||
| 169 | + } | ||
| 170 | + | ||
| 171 | + public void setXlBm(String xlBm) { | ||
| 172 | + this.xlBm = xlBm; | ||
| 173 | + } | ||
| 174 | + | ||
| 175 | + public Long getLp() { | ||
| 176 | + return lp; | ||
| 177 | + } | ||
| 178 | + | ||
| 179 | + public void setLp(Long lp) { | ||
| 180 | + this.lp = lp; | ||
| 181 | + } | ||
| 182 | + | ||
| 183 | + public String getLpName() { | ||
| 184 | + return lpName; | ||
| 185 | + } | ||
| 186 | + | ||
| 187 | + public void setLpName(String lpName) { | ||
| 188 | + this.lpName = lpName; | ||
| 189 | + } | ||
| 190 | + | ||
| 191 | + public Integer getCl() { | ||
| 192 | + return cl; | ||
| 193 | + } | ||
| 194 | + | ||
| 195 | + public void setCl(Integer cl) { | ||
| 196 | + this.cl = cl; | ||
| 197 | + } | ||
| 198 | + | ||
| 122 | public String getClZbh() { | 199 | public String getClZbh() { |
| 123 | return clZbh; | 200 | return clZbh; |
| 124 | } | 201 | } |
| @@ -127,6 +204,14 @@ public class SchedulePlanInfo { | @@ -127,6 +204,14 @@ public class SchedulePlanInfo { | ||
| 127 | this.clZbh = clZbh; | 204 | this.clZbh = clZbh; |
| 128 | } | 205 | } |
| 129 | 206 | ||
| 207 | + public String getBd1Time() { | ||
| 208 | + return bd1Time; | ||
| 209 | + } | ||
| 210 | + | ||
| 211 | + public void setBd1Time(String bd1Time) { | ||
| 212 | + this.bd1Time = bd1Time; | ||
| 213 | + } | ||
| 214 | + | ||
| 130 | public String getCc1Time() { | 215 | public String getCc1Time() { |
| 131 | return cc1Time; | 216 | return cc1Time; |
| 132 | } | 217 | } |
| @@ -135,6 +220,14 @@ public class SchedulePlanInfo { | @@ -135,6 +220,14 @@ public class SchedulePlanInfo { | ||
| 135 | this.cc1Time = cc1Time; | 220 | this.cc1Time = cc1Time; |
| 136 | } | 221 | } |
| 137 | 222 | ||
| 223 | + public Integer getJ1() { | ||
| 224 | + return j1; | ||
| 225 | + } | ||
| 226 | + | ||
| 227 | + public void setJ1(Integer j1) { | ||
| 228 | + this.j1 = j1; | ||
| 229 | + } | ||
| 230 | + | ||
| 138 | public String getJ1Gh() { | 231 | public String getJ1Gh() { |
| 139 | return j1Gh; | 232 | return j1Gh; |
| 140 | } | 233 | } |
| @@ -167,14 +260,6 @@ public class SchedulePlanInfo { | @@ -167,14 +260,6 @@ public class SchedulePlanInfo { | ||
| 167 | this.s1Name = s1Name; | 260 | this.s1Name = s1Name; |
| 168 | } | 261 | } |
| 169 | 262 | ||
| 170 | - public String getBd1Time() { | ||
| 171 | - return bd1Time; | ||
| 172 | - } | ||
| 173 | - | ||
| 174 | - public void setBd1Time(String bd1Time) { | ||
| 175 | - this.bd1Time = bd1Time; | ||
| 176 | - } | ||
| 177 | - | ||
| 178 | public String getBd2Time() { | 263 | public String getBd2Time() { |
| 179 | return bd2Time; | 264 | return bd2Time; |
| 180 | } | 265 | } |
| @@ -231,22 +316,38 @@ public class SchedulePlanInfo { | @@ -231,22 +316,38 @@ public class SchedulePlanInfo { | ||
| 231 | this.xlDir = xlDir; | 316 | this.xlDir = xlDir; |
| 232 | } | 317 | } |
| 233 | 318 | ||
| 234 | - public String getQdz() { | 319 | + public Integer getQdz() { |
| 235 | return qdz; | 320 | return qdz; |
| 236 | } | 321 | } |
| 237 | 322 | ||
| 238 | - public void setQdz(String qdz) { | 323 | + public void setQdz(Integer qdz) { |
| 239 | this.qdz = qdz; | 324 | this.qdz = qdz; |
| 240 | } | 325 | } |
| 241 | 326 | ||
| 242 | - public String getZdz() { | 327 | + public String getQdzName() { |
| 328 | + return qdzName; | ||
| 329 | + } | ||
| 330 | + | ||
| 331 | + public void setQdzName(String qdzName) { | ||
| 332 | + this.qdzName = qdzName; | ||
| 333 | + } | ||
| 334 | + | ||
| 335 | + public Integer getZdz() { | ||
| 243 | return zdz; | 336 | return zdz; |
| 244 | } | 337 | } |
| 245 | 338 | ||
| 246 | - public void setZdz(String zdz) { | 339 | + public void setZdz(Integer zdz) { |
| 247 | this.zdz = zdz; | 340 | this.zdz = zdz; |
| 248 | } | 341 | } |
| 249 | 342 | ||
| 343 | + public String getZdzName() { | ||
| 344 | + return zdzName; | ||
| 345 | + } | ||
| 346 | + | ||
| 347 | + public void setZdzName(String zdzName) { | ||
| 348 | + this.zdzName = zdzName; | ||
| 349 | + } | ||
| 350 | + | ||
| 250 | public String getFcsj() { | 351 | public String getFcsj() { |
| 251 | return fcsj; | 352 | return fcsj; |
| 252 | } | 353 | } |
| @@ -255,67 +356,75 @@ public class SchedulePlanInfo { | @@ -255,67 +356,75 @@ public class SchedulePlanInfo { | ||
| 255 | this.fcsj = fcsj; | 356 | this.fcsj = fcsj; |
| 256 | } | 357 | } |
| 257 | 358 | ||
| 258 | - public SysUser getUser() { | ||
| 259 | - return user; | 359 | + public Integer getFcno() { |
| 360 | + return fcno; | ||
| 260 | } | 361 | } |
| 261 | 362 | ||
| 262 | - public void setUser(SysUser user) { | ||
| 263 | - this.user = user; | 363 | + public void setFcno(Integer fcno) { |
| 364 | + this.fcno = fcno; | ||
| 264 | } | 365 | } |
| 265 | 366 | ||
| 266 | - public Date getCreateDate() { | ||
| 267 | - return createDate; | 367 | + public Integer getBcs() { |
| 368 | + return bcs; | ||
| 268 | } | 369 | } |
| 269 | 370 | ||
| 270 | - public void setCreateDate(Date createDate) { | ||
| 271 | - this.createDate = createDate; | 371 | + public void setBcs(Integer bcs) { |
| 372 | + this.bcs = bcs; | ||
| 272 | } | 373 | } |
| 273 | 374 | ||
| 274 | - public Date getUpdateDate() { | ||
| 275 | - return updateDate; | 375 | + public Double getJhlc() { |
| 376 | + return jhlc; | ||
| 276 | } | 377 | } |
| 277 | 378 | ||
| 278 | - public void setUpdateDate(Date updateDate) { | ||
| 279 | - this.updateDate = updateDate; | 379 | + public void setJhlc(Double jhlc) { |
| 380 | + this.jhlc = jhlc; | ||
| 280 | } | 381 | } |
| 281 | 382 | ||
| 282 | - public int getFcno() { | ||
| 283 | - return fcno; | 383 | + public Integer getBcsj() { |
| 384 | + return bcsj; | ||
| 284 | } | 385 | } |
| 285 | 386 | ||
| 286 | - public void setFcno(int fcno) { | ||
| 287 | - this.fcno = fcno; | 387 | + public void setBcsj(Integer bcsj) { |
| 388 | + this.bcsj = bcsj; | ||
| 288 | } | 389 | } |
| 289 | 390 | ||
| 290 | - public int getBcs() { | ||
| 291 | - return bcs; | 391 | + public String getBcType() { |
| 392 | + return bcType; | ||
| 292 | } | 393 | } |
| 293 | 394 | ||
| 294 | - public void setBcs(int bcs) { | ||
| 295 | - this.bcs = bcs; | 395 | + public void setBcType(String bcType) { |
| 396 | + this.bcType = bcType; | ||
| 296 | } | 397 | } |
| 297 | 398 | ||
| 298 | - public double getJhlc() { | ||
| 299 | - return jhlc; | 399 | + public SysUser getCreateBy() { |
| 400 | + return createBy; | ||
| 300 | } | 401 | } |
| 301 | 402 | ||
| 302 | - public void setJhlc(double jhlc) { | ||
| 303 | - this.jhlc = jhlc; | 403 | + public void setCreateBy(SysUser createBy) { |
| 404 | + this.createBy = createBy; | ||
| 304 | } | 405 | } |
| 305 | 406 | ||
| 306 | - public int getBcsj() { | ||
| 307 | - return bcsj; | 407 | + public SysUser getUpdateBy() { |
| 408 | + return updateBy; | ||
| 308 | } | 409 | } |
| 309 | 410 | ||
| 310 | - public void setBcsj(int bcsj) { | ||
| 311 | - this.bcsj = bcsj; | 411 | + public void setUpdateBy(SysUser updateBy) { |
| 412 | + this.updateBy = updateBy; | ||
| 312 | } | 413 | } |
| 313 | 414 | ||
| 314 | - public String getXlBm() { | ||
| 315 | - return xlBm; | 415 | + public Date getCreateDate() { |
| 416 | + return createDate; | ||
| 316 | } | 417 | } |
| 317 | 418 | ||
| 318 | - public void setXlBm(String xlBm) { | ||
| 319 | - this.xlBm = xlBm; | 419 | + public void setCreateDate(Date createDate) { |
| 420 | + this.createDate = createDate; | ||
| 421 | + } | ||
| 422 | + | ||
| 423 | + public Date getUpdateDate() { | ||
| 424 | + return updateDate; | ||
| 425 | + } | ||
| 426 | + | ||
| 427 | + public void setUpdateDate(Date updateDate) { | ||
| 428 | + this.updateDate = updateDate; | ||
| 320 | } | 429 | } |
| 321 | } | 430 | } |
src/main/resources/application.properties
| @@ -9,7 +9,7 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy | @@ -9,7 +9,7 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy | ||
| 9 | spring.jpa.database= MYSQL | 9 | spring.jpa.database= MYSQL |
| 10 | spring.jpa.show-sql= true | 10 | spring.jpa.show-sql= true |
| 11 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver | 11 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver |
| 12 | -spring.datasource.url= jdbc:mysql://192.168.168.201:3306/test | 12 | +spring.datasource.url= jdbc:mysql://192.168.168.201:3306/control |
| 13 | spring.datasource.username= root | 13 | spring.datasource.username= root |
| 14 | spring.datasource.password= 123456 | 14 | spring.datasource.password= 123456 |
| 15 | 15 |