Commit 0b3f775596d780683d0ed6b5a893ce2c44f64fcf
Merge branch 'PSQP-1' into qingpu
Showing
2 changed files
with
30 additions
and
1 deletions
src/main/java/com/bsth/entity/schedule/EmployeeConfigInfo.java
| @@ -4,6 +4,7 @@ import com.bsth.entity.Cars; | @@ -4,6 +4,7 @@ import com.bsth.entity.Cars; | ||
| 4 | import com.bsth.entity.Line; | 4 | import com.bsth.entity.Line; |
| 5 | import com.bsth.entity.Personnel; | 5 | import com.bsth.entity.Personnel; |
| 6 | import com.bsth.entity.sys.SysUser; | 6 | import com.bsth.entity.sys.SysUser; |
| 7 | +import org.hibernate.annotations.Formula; | ||
| 7 | 8 | ||
| 8 | import javax.persistence.*; | 9 | import javax.persistence.*; |
| 9 | import javax.validation.constraints.NotNull; | 10 | import javax.validation.constraints.NotNull; |
| @@ -45,6 +46,10 @@ public class EmployeeConfigInfo { | @@ -45,6 +46,10 @@ public class EmployeeConfigInfo { | ||
| 45 | @NotNull | 46 | @NotNull |
| 46 | private String dbbm; | 47 | private String dbbm; |
| 47 | 48 | ||
| 49 | + @Formula(" dbbm + 0 ") | ||
| 50 | + private Integer dbbmFormula; | ||
| 51 | + | ||
| 52 | + | ||
| 48 | /** 创建人 */ | 53 | /** 创建人 */ |
| 49 | @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST) | 54 | @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST) |
| 50 | private SysUser createBy; | 55 | private SysUser createBy; |
| @@ -91,6 +96,30 @@ public class EmployeeConfigInfo { | @@ -91,6 +96,30 @@ public class EmployeeConfigInfo { | ||
| 91 | this.jsy = jsy; | 96 | this.jsy = jsy; |
| 92 | } | 97 | } |
| 93 | 98 | ||
| 99 | + public Integer getDbbmFormula() { | ||
| 100 | + return dbbmFormula; | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + public void setDbbmFormula(Integer dbbmFormula) { | ||
| 104 | + this.dbbmFormula = dbbmFormula; | ||
| 105 | + } | ||
| 106 | + | ||
| 107 | + public SysUser getCreateBy() { | ||
| 108 | + return createBy; | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + public void setCreateBy(SysUser createBy) { | ||
| 112 | + this.createBy = createBy; | ||
| 113 | + } | ||
| 114 | + | ||
| 115 | + public SysUser getUpdateBy() { | ||
| 116 | + return updateBy; | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + public void setUpdateBy(SysUser updateBy) { | ||
| 120 | + this.updateBy = updateBy; | ||
| 121 | + } | ||
| 122 | + | ||
| 94 | public Personnel getSpy() { | 123 | public Personnel getSpy() { |
| 95 | return spy; | 124 | return spy; |
| 96 | } | 125 | } |
src/main/resources/static/pages/scheduleApp/module/common/prj-common-globalservice.js
| @@ -222,7 +222,7 @@ angular.module('ScheduleApp').factory('EmployeeConfigService_g', ['$resource', f | @@ -222,7 +222,7 @@ angular.module('ScheduleApp').factory('EmployeeConfigService_g', ['$resource', f | ||
| 222 | return { | 222 | return { |
| 223 | rest : $resource( | 223 | rest : $resource( |
| 224 | '/eci/:id', | 224 | '/eci/:id', |
| 225 | - {order: 'createDate', direction: 'ASC', id: '@id_route'}, | 225 | + {order: 'xl.id,dbbmFormula', direction: 'ASC', id: '@id_route'}, |
| 226 | { | 226 | { |
| 227 | list: { | 227 | list: { |
| 228 | method: 'GET', | 228 | method: 'GET', |