Commit 0b3f775596d780683d0ed6b5a893ce2c44f64fcf

Authored by 徐烜
2 parents 73bb0961 c34d580a

Merge branch 'PSQP-1' into qingpu

src/main/java/com/bsth/entity/schedule/EmployeeConfigInfo.java
... ... @@ -4,6 +4,7 @@ import com.bsth.entity.Cars;
4 4 import com.bsth.entity.Line;
5 5 import com.bsth.entity.Personnel;
6 6 import com.bsth.entity.sys.SysUser;
  7 +import org.hibernate.annotations.Formula;
7 8  
8 9 import javax.persistence.*;
9 10 import javax.validation.constraints.NotNull;
... ... @@ -45,6 +46,10 @@ public class EmployeeConfigInfo {
45 46 @NotNull
46 47 private String dbbm;
47 48  
  49 + @Formula(" dbbm + 0 ")
  50 + private Integer dbbmFormula;
  51 +
  52 +
48 53 /** 创建人 */
49 54 @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
50 55 private SysUser createBy;
... ... @@ -91,6 +96,30 @@ public class EmployeeConfigInfo {
91 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 123 public Personnel getSpy() {
95 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 222 return {
223 223 rest : $resource(
224 224 '/eci/:id',
225   - {order: 'createDate', direction: 'ASC', id: '@id_route'},
  225 + {order: 'xl.id,dbbmFormula', direction: 'ASC', id: '@id_route'},
226 226 {
227 227 list: {
228 228 method: 'GET',
... ...