| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.task.OverYearLogScheduler; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch){ |
| | | case 1: |
| | | return "是"; |
| | |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source){ |
| | | case 1: |
| | | return "制造"; |
| | |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect){ |
| | | case 1: |
| | | return "是"; |
| | |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger){ |
| | | case 1: |
| | | return "是"; |
| | |
| | | return (timeNow - timeCreate) /24/60/60/1000; |
| | | } |
| | | |
| | | public boolean getAlarmStatus() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | this.appeTime = new Date(); |
| | | } |
| | | long timeNow = new Date().getTime(); |
| | | long timeCreate = this.appeTime.getTime(); |
| | | |
| | | return OverYearLogScheduler.days > ((timeNow - timeCreate) / 24 / 60 / 60 / 1000); |
| | | } |
| | | |
| | | public void sync(Object source) { |
| | | Synchro.Copy(source, this); |
| | | } |