Merge remote-tracking branch 'origin/tzmsewcs' into tzmsewcs
# Conflicts:
# pom.xml
# src/main/java/com/zy/asrs/controller/CrnController.java
# src/main/java/com/zy/asrs/controller/MonitorController.java
# src/main/java/com/zy/asrs/controller/OpenController.java
# src/main/java/com/zy/asrs/controller/ReportQueryController.java
# src/main/java/com/zy/asrs/controller/SiteController.java
# src/main/java/com/zy/asrs/controller/TaskWrkController.java
# src/main/java/com/zy/asrs/entity/TaskWrk.java
# src/main/java/com/zy/asrs/entity/wms/StorageEscalationParam.java
# src/main/java/com/zy/asrs/mapper/TaskWrkMapper.java
# src/main/java/com/zy/asrs/service/TaskWrkService.java
# src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
# src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
# src/main/java/com/zy/asrs/service/impl/TaskWrkServiceImpl.java
# src/main/java/com/zy/asrs/task/TaskLogScheduler.java
# src/main/java/com/zy/core/MainProcess.java
# src/main/java/com/zy/core/thread/LedThread.java
# src/main/java/com/zy/core/thread/SiemensCrnThread.java
# src/main/java/com/zy/core/thread/SiemensDevpThread.java
# src/main/resources/application-prod.yml
# src/main/resources/application.yml
# src/main/resources/license.lic
# src/main/webapp/static/wcs/js/common.js
# src/main/webapp/static/wcs/js/console.map.js
# src/main/webapp/static/wms/js/common.js
16个文件已添加
177个文件已修改
1 文件已重命名
2个文件已删除
| | |
| | | |
| | | public class MapController extends BaseController { |
| | | |
| | | @Autowired |
| | | private LocMastService locMastService; |
| | | |
| | | private static final List<String> DISABLE_LOC_NO = new ArrayList<String>() {{ |
| | | }}; |
| | | @Autowired |
| | | private LocMastService locMastService; |
| | | |
| | | @GetMapping("/map/getData/{lev}/auth") |
| | | @ManagerAuth |
| | |
| | | |
| | | @Value("${wms.url}") |
| | | private String wmsUrl; |
| | | @Value("${wms.TaskExecCallback}") |
| | | @Value("${wms.taskExecCallback}") |
| | | private String TaskExecCallback; |
| | | @Autowired |
| | | private ApiLogService apiLogService; |
| | |
| | | * |
| | | */ |
| | | public class AxisBean { |
| | | private String name; |
| | | private Integer[] data; |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | public Integer[] getData() { |
| | | return data; |
| | | } |
| | | public void setData(Integer[] data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | private String name; |
| | | private Integer[] data; |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public Integer[] getData() { |
| | | return data; |
| | | } |
| | | |
| | | public void setData(Integer[] data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | } |
| | |
| | | * @date 2018å¹´12æ12æ¥ |
| | | */ |
| | | public class WorkChartAxis { |
| | | private String ymd; |
| | | private String ymd; |
| | | private int inqty; |
| | | private int outqty; |
| | | |
| | | public String getYmd() { |
| | | return ymd; |
| | | } |
| | | public void setYmd(String ymd) { |
| | | this.ymd = ymd; |
| | | } |
| | | public int getInqty() { |
| | | return inqty; |
| | | } |
| | | public void setInqty(int inqty) { |
| | | this.inqty = inqty; |
| | | } |
| | | public int getOutqty() { |
| | | return outqty; |
| | | } |
| | | public void setOutqty(int outqty) { |
| | | this.outqty = outqty; |
| | | } |
| | | |
| | | public String getYmd() { |
| | | return ymd; |
| | | } |
| | | |
| | | public void setYmd(String ymd) { |
| | | this.ymd = ymd; |
| | | } |
| | | |
| | | public int getInqty() { |
| | | return inqty; |
| | | } |
| | | |
| | | public void setInqty(int inqty) { |
| | | this.inqty = inqty; |
| | | } |
| | | |
| | | public int getOutqty() { |
| | | return outqty; |
| | | } |
| | | |
| | | public void setOutqty(int outqty) { |
| | | this.outqty = outqty; |
| | | } |
| | | } |
| | |
| | | ; |
| | | |
| | | private String desc; |
| | | CrnStatusType(String desc){ |
| | | |
| | | CrnStatusType(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public void setDesc(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public static CrnStatusType process(Integer ioType){ |
| | | if (ioType>100) { |
| | | public static CrnStatusType process(Integer ioType) { |
| | | if (ioType > 100) { |
| | | return MACHINE_PAKOUT; |
| | | } else if (ioType < 100 && ioType!=3 && ioType!=6 && ioType!=11) { |
| | | } else if (ioType < 100 && ioType != 3 && ioType != 6 && ioType != 11) { |
| | | return MACHINE_PAKIN; |
| | | } else if (ioType == 3) { |
| | | return MACHINE_SITE_MOVE; |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public void setDesc(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | ; |
| | | |
| | | public static SiteStatusType process(StaProtocol staProtocol){ |
| | | public static SiteStatusType process(StaProtocol staProtocol) { |
| | | if (staProtocol == null) { |
| | | return null; |
| | | } |
| | |
| | | |
| | | public enum TaskStatusType { |
| | | |
| | | RECEIVE(1,"æ¥æ¶"), |
| | | DISTRIBUTE(2,"æ´¾å"), |
| | | COMPLETE(3,"å½ä»¤å®æ"), |
| | | CANCEL(4,"åæ¶"), |
| | | OVER(5,"å®ç»") |
| | | ; |
| | | RECEIVE(1, "æ¥æ¶"), |
| | | DISTRIBUTE(2, "æ´¾å"), |
| | | COMPLETE(3, "å½ä»¤å®æ"), |
| | | CANCEL(4, "åæ¶"), |
| | | OVER(5, "å®ç»"); |
| | | |
| | | public Integer id; |
| | | public String desc; |
| | | |
| | | TaskStatusType(Integer id, String desc){ |
| | | TaskStatusType(Integer id, String desc) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | | } |
| | |
| | | |
| | | private CrnStatusType crnStatus; |
| | | |
| | | public String getCrnStatus(){ |
| | | public String getCrnStatus() { |
| | | return crnStatus.toString().toLowerCase().replaceAll("_", "-"); |
| | | } |
| | | |
| | |
| | | private int oqty; |
| | | private int uqty; |
| | | private int xqty; |
| | | public int getFqty() { |
| | | return fqty; |
| | | } |
| | | public void setFqty(int fqty) { |
| | | this.fqty = fqty; |
| | | } |
| | | public int getOqty() { |
| | | return oqty; |
| | | } |
| | | public void setOqty(int oqty) { |
| | | this.oqty = oqty; |
| | | } |
| | | public int getUqty() { |
| | | return uqty; |
| | | } |
| | | public void setUqty(int uqty) { |
| | | this.uqty = uqty; |
| | | } |
| | | public int getXqty() { |
| | | return xqty; |
| | | } |
| | | public void setXqty(int xqty) { |
| | | this.xqty = xqty; |
| | | } |
| | | |
| | | public int getFqty() { |
| | | return fqty; |
| | | } |
| | | |
| | | public void setFqty(int fqty) { |
| | | this.fqty = fqty; |
| | | } |
| | | |
| | | public int getOqty() { |
| | | return oqty; |
| | | } |
| | | |
| | | public void setOqty(int oqty) { |
| | | this.oqty = oqty; |
| | | } |
| | | |
| | | public int getUqty() { |
| | | return uqty; |
| | | } |
| | | |
| | | public void setUqty(int uqty) { |
| | | this.uqty = uqty; |
| | | } |
| | | |
| | | public int getXqty() { |
| | | return xqty; |
| | | } |
| | | |
| | | public void setXqty(int xqty) { |
| | | this.xqty = xqty; |
| | | } |
| | | } |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import com.zy.system.entity.User; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import com.zy.system.entity.User; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("wcs_api_config") |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * apiå°å |
| | | */ |
| | | @ApiModelProperty(value= "apiå°å") |
| | | @ApiModelProperty(value = "apiå°å") |
| | | private String url; |
| | | |
| | | /** |
| | | * ç¶æ 0: æ£å¸¸ 1: ç¦ç¨ |
| | | */ |
| | | @ApiModelProperty(value= "ç¶æ 0: æ£å¸¸ 1: ç¦ç¨ ") |
| | | @ApiModelProperty(value = "ç¶æ 0: æ£å¸¸ 1: ç¦ç¨ ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å建æ¶é´") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æ´æ°æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ´æ°æ¶é´") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * æ·»å 人å |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å 人å") |
| | | @ApiModelProperty(value = "æ·»å 人å") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | public ApiConfig() {} |
| | | public ApiConfig() { |
| | | } |
| | | |
| | | public ApiConfig(String url,Integer status,String memo,Date createTime,Date updateTime,Long createBy,Long updateBy) { |
| | | public ApiConfig(String url, Integer status, String memo, Date createTime, Date updateTime, Long createBy, Long updateBy) { |
| | | this.url = url; |
| | | this.status = status; |
| | | this.memo = memo; |
| | |
| | | // null // ä¿®æ¹äººå |
| | | // ); |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 0: |
| | | return "æ£å¸¸"; |
| | | case 1: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("man_api_log") |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * æ¥å¿ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "æ¥å¿ç¼å·") |
| | | @ApiModelProperty(value = "æ¥å¿ç¼å·") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * åç§°ç©ºé´ |
| | | */ |
| | | @ApiModelProperty(value= "å称空é´") |
| | | @ApiModelProperty(value = "å称空é´") |
| | | private String namespace; |
| | | |
| | | /** |
| | | * æ¥å£å°å |
| | | */ |
| | | @ApiModelProperty(value= "æ¥å£å°å") |
| | | @ApiModelProperty(value = "æ¥å£å°å") |
| | | private String url; |
| | | |
| | | /** |
| | | * å¹³å°å¯é¥ |
| | | */ |
| | | @ApiModelProperty(value= "å¹³å°å¯é¥") |
| | | @ApiModelProperty(value = "å¹³å°å¯é¥") |
| | | private String appkey; |
| | | |
| | | /** |
| | | * æ¶é´æ³ |
| | | */ |
| | | @ApiModelProperty(value= "æ¶é´æ³") |
| | | @ApiModelProperty(value = "æ¶é´æ³") |
| | | private String timestamp; |
| | | |
| | | /** |
| | | * 客æ·ç«¯IP |
| | | */ |
| | | @ApiModelProperty(value= "客æ·ç«¯IP") |
| | | @ApiModelProperty(value = "客æ·ç«¯IP") |
| | | @TableField("client_ip") |
| | | private String clientIp; |
| | | |
| | | /** |
| | | * 请æ±å
容 |
| | | */ |
| | | @ApiModelProperty(value= "请æ±å
容") |
| | | @ApiModelProperty(value = "请æ±å
容") |
| | | private String request; |
| | | |
| | | /** |
| | | * ååºå
容 |
| | | */ |
| | | @ApiModelProperty(value= "ååºå
容") |
| | | @ApiModelProperty(value = "ååºå
容") |
| | | private String response; |
| | | |
| | | /** |
| | | * å¼å¸¸å
容 |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸å
容") |
| | | @ApiModelProperty(value = "å¼å¸¸å
容") |
| | | private String err; |
| | | |
| | | /** |
| | | * ç»æ 1: æå 0: 失败 |
| | | */ |
| | | @ApiModelProperty(value= "ç»æ 1: æå 0: 失败 ") |
| | | @ApiModelProperty(value = "ç»æ 1: æå 0: 失败 ") |
| | | private Integer result; |
| | | |
| | | /** |
| | | * ç¶æ 1: æ£å¸¸ 0: ç¦ç¨ |
| | | */ |
| | | @ApiModelProperty(value= "ç¶æ 1: æ£å¸¸ 0: ç¦ç¨ ") |
| | | @ApiModelProperty(value = "ç¶æ 1: æ£å¸¸ 0: ç¦ç¨ ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | public ApiLog() {} |
| | | public ApiLog() { |
| | | } |
| | | |
| | | public ApiLog(String uuid,String namespace,String url,String appkey,String timestamp,String clientIp,String request,String response,String err,Integer result,Integer status,Date createTime,Date updateTime,String memo) { |
| | | public ApiLog(String uuid, String namespace, String url, String appkey, String timestamp, String clientIp, String request, String response, String err, Integer result, Integer status, Date createTime, Date updateTime, String memo) { |
| | | this.uuid = uuid; |
| | | this.namespace = namespace; |
| | | this.url = url; |
| | |
| | | // null // 夿³¨ |
| | | // ); |
| | | |
| | | public String getResult$(){ |
| | | if (null == this.result){ return null; } |
| | | switch (this.result){ |
| | | public String getResult$() { |
| | | if (null == this.result) { |
| | | return null; |
| | | } |
| | | switch (this.result) { |
| | | case 1: |
| | | return "æå"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | /** |
| | | * å¼å¸¸ä»£å· |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸ä»£å·") |
| | | @ApiModelProperty(value = "å¼å¸¸ä»£å·") |
| | | @TableId(value = "error_code", type = IdType.AUTO) |
| | | @TableField("error_code") |
| | | private Long errorCode; |
| | |
| | | /** |
| | | * å¼å¸¸æè¿° |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸æè¿°") |
| | | @ApiModelProperty(value = "å¼å¸¸æè¿°") |
| | | @TableField("err_name") |
| | | private String errName; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasCrnError() {} |
| | | public BasCrnError() { |
| | | } |
| | | |
| | | public BasCrnError(String errName, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.errName = errName; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * ä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value= "ä»»å¡å·") |
| | | @ApiModelProperty(value = "ä»»å¡å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * å åæº |
| | | */ |
| | | @ApiModelProperty(value= "å åæº") |
| | | @ApiModelProperty(value = "å åæº") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * ä¸åæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¸åæ¶é´") |
| | | @ApiModelProperty(value = "ä¸åæ¶é´") |
| | | @TableField("send_time") |
| | | private Date sendTime; |
| | | |
| | | /** |
| | | * æ¨¡å¼ |
| | | */ |
| | | @ApiModelProperty(value= "模å¼") |
| | | @ApiModelProperty(value = "模å¼") |
| | | private String mode; |
| | | |
| | | /** |
| | | * æºæ |
| | | */ |
| | | @ApiModelProperty(value= "æºæ") |
| | | @ApiModelProperty(value = "æºæ") |
| | | @TableField("source_row") |
| | | private Integer sourceRow; |
| | | |
| | | /** |
| | | * æºå |
| | | */ |
| | | @ApiModelProperty(value= "æºå") |
| | | @ApiModelProperty(value = "æºå") |
| | | @TableField("source_bay") |
| | | private Integer sourceBay; |
| | | |
| | | /** |
| | | * æºå± |
| | | */ |
| | | @ApiModelProperty(value= "æºå±") |
| | | @ApiModelProperty(value = "æºå±") |
| | | @TableField("source_lev") |
| | | private Integer sourceLev; |
| | | |
| | | /** |
| | | * æºç« |
| | | */ |
| | | @ApiModelProperty(value= "æºç«") |
| | | @ApiModelProperty(value = "æºç«") |
| | | @TableField("source_sta") |
| | | private Integer sourceSta; |
| | | |
| | | /** |
| | | * ç®æ æ |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ æ") |
| | | @ApiModelProperty(value = "ç®æ æ") |
| | | @TableField("pos_row") |
| | | private Integer posRow; |
| | | |
| | | /** |
| | | * ç®æ å |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ å") |
| | | @ApiModelProperty(value = "ç®æ å") |
| | | @TableField("pos_bay") |
| | | private Integer posBay; |
| | | |
| | | /** |
| | | * ç®æ å± |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ å±") |
| | | @ApiModelProperty(value = "ç®æ å±") |
| | | @TableField("pos_lev") |
| | | private Integer posLev; |
| | | |
| | | /** |
| | | * ç®æ ç« |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ ç«") |
| | | @ApiModelProperty(value = "ç®æ ç«") |
| | | @TableField("pos_sta") |
| | | private Integer posSta; |
| | | |
| | | /** |
| | | * ååºç»æ 1: æ£å¸¸ 0: 失败 |
| | | */ |
| | | @ApiModelProperty(value= "ååºç»æ 1: æ£å¸¸ 0: 失败 ") |
| | | @ApiModelProperty(value = "ååºç»æ 1: æ£å¸¸ 0: 失败 ") |
| | | private Integer response; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | public BasCrnOpt() {} |
| | | public BasCrnOpt() { |
| | | } |
| | | |
| | | public BasCrnOpt(Integer wrkNo,Integer crnNo,Date sendTime,String mode,Integer sourceRow,Integer sourceBay,Integer sourceLev,Integer sourceSta,Integer posRow,Integer posBay,Integer posLev,Integer posSta,Integer response,Date updateTime,Long updateBy) { |
| | | public BasCrnOpt(Integer wrkNo, Integer crnNo, Date sendTime, String mode, Integer sourceRow, Integer sourceBay, Integer sourceLev, Integer sourceSta, Integer posRow, Integer posBay, Integer posLev, Integer posSta, Integer response, Date updateTime, Long updateBy) { |
| | | this.wrkNo = wrkNo; |
| | | this.crnNo = crnNo; |
| | | this.sendTime = sendTime; |
| | |
| | | return sendTime; |
| | | } |
| | | |
| | | public String getSendTime$(){ |
| | | if (Cools.isEmpty(this.sendTime)){ |
| | | public void setSendTime(Date sendTime) { |
| | | this.sendTime = sendTime; |
| | | } |
| | | |
| | | public String getSendTime$() { |
| | | if (Cools.isEmpty(this.sendTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.sendTime); |
| | | } |
| | | |
| | | public void setSendTime(Date sendTime) { |
| | | this.sendTime = sendTime; |
| | | } |
| | | |
| | | public String getMode() { |
| | |
| | | return response; |
| | | } |
| | | |
| | | public String getResponse$(){ |
| | | if (null == this.response){ return null; } |
| | | switch (this.response){ |
| | | public void setResponse(Integer response) { |
| | | this.response = response; |
| | | } |
| | | |
| | | public String getResponse$() { |
| | | if (null == this.response) { |
| | | return null; |
| | | } |
| | | switch (this.response) { |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public void setResponse(Integer response) { |
| | | this.response = response; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public Long getUpdateBy() { |
| | | return updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public void setUpdateBy(Long updateBy) { |
| | | this.updateBy = updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setUpdateBy(Long updateBy) { |
| | | this.updateBy = updateBy; |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * å·¥ä½ä»£å· |
| | | */ |
| | | @ApiModelProperty(value= "ç¶æä»£å·") |
| | | @ApiModelProperty(value = "ç¶æä»£å·") |
| | | @TableId(value = "sts_no", type = IdType.INPUT) |
| | | @TableField("sts_no") |
| | | private String stsNo; |
| | |
| | | /** |
| | | * ç¶ææè¿° |
| | | */ |
| | | @ApiModelProperty(value= "ç¶ææè¿°") |
| | | @ApiModelProperty(value = "ç¶ææè¿°") |
| | | @TableField("sts_desc") |
| | | private String stsDesc; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasCrnStatus() {} |
| | | public BasCrnStatus() { |
| | | } |
| | | |
| | | public BasCrnStatus(String stsDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.stsDesc = stsDesc; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "ç¼å·") |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | @TableId(value = "crn_no", type = IdType.INPUT) |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | |
| | | /** |
| | | * å¯å
¥ |
| | | */ |
| | | @ApiModelProperty(value= "å¯å
¥") |
| | | @ApiModelProperty(value = "å¯å
¥") |
| | | @TableField("in_enable") |
| | | private String inEnable; |
| | | |
| | | /** |
| | | * å¯åº |
| | | */ |
| | | @ApiModelProperty(value= "å¯åº") |
| | | @ApiModelProperty(value = "å¯åº") |
| | | @TableField("out_enable") |
| | | private String outEnable; |
| | | |
| | | /** |
| | | * ç¶æ |
| | | */ |
| | | @ApiModelProperty(value= "ç¶æ") |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | @TableField("crn_sts") |
| | | private Integer crnSts; |
| | | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * å¼å¸¸ç |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸ç ") |
| | | @ApiModelProperty(value = "å¼å¸¸ç ") |
| | | @TableField("crn_err") |
| | | private Long crnErr; |
| | | |
| | | /** |
| | | * æºåºä½ |
| | | */ |
| | | @ApiModelProperty(value= "æºåºä½") |
| | | @ApiModelProperty(value = "æºåºä½") |
| | | @TableField("frm_locno") |
| | | private String frmLocno; |
| | | |
| | | /** |
| | | * æºç« |
| | | */ |
| | | @ApiModelProperty(value= "æºç«") |
| | | @ApiModelProperty(value = "æºç«") |
| | | @TableField("frm_sta") |
| | | private Integer frmSta; |
| | | |
| | | /** |
| | | * ç®æ ç« |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ ç«") |
| | | @ApiModelProperty(value = "ç®æ ç«") |
| | | @TableField("to_sta") |
| | | private Integer toSta; |
| | | |
| | | /** |
| | | * ç®æ åºä½ |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ åºä½") |
| | | @ApiModelProperty(value = "ç®æ åºä½") |
| | | @TableField("to_locno") |
| | | private String toLocno; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å建æ¶é´") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("hp_mk") |
| | | private String hpMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("retrieve_mk") |
| | | private String retrieveMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctl_hp") |
| | | private String ctlHp; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctl_rest") |
| | | private String ctlRest; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("emp_in") |
| | | private String empIn; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("tank_qty") |
| | | private Integer tankQty; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("tank_qty1") |
| | | private Integer tankQty1; |
| | | |
| | | public BasCrnp() {} |
| | | public BasCrnp() { |
| | | } |
| | | |
| | | public BasCrnp(String inEnable,String outEnable,Integer crnSts,Integer wrkNo,Long crnErr,String frmLocno,Integer frmSta,Integer toSta,String toLocno,Long appeUser,Date appeTime,Long modiUser,Date modiTime,String hpMk,String retrieveMk,String ctlHp,String ctlRest,String empIn,Integer tankQty,Integer tankQty1) { |
| | | public BasCrnp(String inEnable, String outEnable, Integer crnSts, Integer wrkNo, Long crnErr, String frmLocno, Integer frmSta, Integer toSta, String toLocno, Long appeUser, Date appeTime, Long modiUser, Date modiTime, String hpMk, String retrieveMk, String ctlHp, String ctlRest, String empIn, Integer tankQty, Integer tankQty1) { |
| | | this.inEnable = inEnable; |
| | | this.outEnable = outEnable; |
| | | this.crnSts = crnSts; |
| | |
| | | // null // |
| | | // ); |
| | | |
| | | public String getcrnSts$(){ |
| | | if(this.crnSts==1){ |
| | | public String getcrnSts$() { |
| | | if (this.crnSts == 1) { |
| | | return "åæº"; |
| | | }else if(this.crnSts==2){ |
| | | } else if (this.crnSts == 2) { |
| | | return "æå¨"; |
| | | }else if(this.crnSts==3){ |
| | | } else if (this.crnSts == 3) { |
| | | return "èæº"; |
| | | }else { |
| | | } else { |
| | | return "æªç¥"; |
| | | } |
| | | } |
| | | |
| | | public Integer getCrnNo() { |
| | | return crnNo; |
| | | } |
| | |
| | | return frmLocno; |
| | | } |
| | | |
| | | public String getFrmLocno$(){ |
| | | public void setFrmLocno(String frmLocno) { |
| | | this.frmLocno = frmLocno; |
| | | } |
| | | |
| | | public String getFrmLocno$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.frmLocno); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setFrmLocno(String frmLocno) { |
| | | this.frmLocno = frmLocno; |
| | | } |
| | | |
| | | public Integer getFrmSta() { |
| | | return frmSta; |
| | | } |
| | | |
| | | public String getFrmSta$(){ |
| | | public void setFrmSta(Integer frmSta) { |
| | | this.frmSta = frmSta; |
| | | } |
| | | |
| | | public String getFrmSta$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.frmSta); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setFrmSta(Integer frmSta) { |
| | | this.frmSta = frmSta; |
| | | } |
| | | |
| | | public Integer getToSta() { |
| | | return toSta; |
| | | } |
| | | |
| | | public String getToSta$(){ |
| | | public void setToSta(Integer toSta) { |
| | | this.toSta = toSta; |
| | | } |
| | | |
| | | public String getToSta$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.toSta); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setToSta(Integer toSta) { |
| | | this.toSta = toSta; |
| | | } |
| | | |
| | | public String getToLocno() { |
| | | return toLocno; |
| | | } |
| | | |
| | | public String getToLocno$(){ |
| | | public void setToLocno(String toLocno) { |
| | | this.toLocno = toLocno; |
| | | } |
| | | |
| | | public String getToLocno$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.toLocno); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setToLocno(String toLocno) { |
| | | this.toLocno = toLocno; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public Long getModiUser() { |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getHpMk() { |
| | |
| | | /** |
| | | * ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "ç¼å·") |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | @TableId(value = "dev_no", type = IdType.INPUT) |
| | | @TableField("dev_no") |
| | | private Integer devNo; |
| | |
| | | /** |
| | | * è®¾å¤æè¿° |
| | | */ |
| | | @ApiModelProperty(value= "è®¾å¤æè¿°") |
| | | @ApiModelProperty(value = "è®¾å¤æè¿°") |
| | | @TableField("dec_desc") |
| | | private String decDesc; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @TableField("dev_mk") |
| | | private String devMk; |
| | | |
| | | /** |
| | | * å¯å
¥ |
| | | */ |
| | | @ApiModelProperty(value= "å¯å
¥") |
| | | @ApiModelProperty(value = "å¯å
¥") |
| | | @TableField("in_enable") |
| | | private String inEnable; |
| | | |
| | | /** |
| | | * å¯åº |
| | | */ |
| | | @ApiModelProperty(value= "å¯åº") |
| | | @ApiModelProperty(value = "å¯åº") |
| | | @TableField("out_enable") |
| | | private String outEnable; |
| | | |
| | | /** |
| | | * èªå¨ |
| | | */ |
| | | @ApiModelProperty(value= "èªå¨") |
| | | @ApiModelProperty(value = "èªå¨") |
| | | private String autoing; |
| | | |
| | | /** |
| | | * æç© |
| | | */ |
| | | @ApiModelProperty(value= "æç©") |
| | | @ApiModelProperty(value = "æç©") |
| | | private String loading; |
| | | |
| | | /** |
| | | * è½å
¥ |
| | | */ |
| | | @ApiModelProperty(value= "è½å
¥") |
| | | @ApiModelProperty(value = "è½å
¥") |
| | | private String canining; |
| | | |
| | | /** |
| | | * è½åº |
| | | */ |
| | | @ApiModelProperty(value= "è½åº") |
| | | @ApiModelProperty(value = "è½åº") |
| | | private String canouting; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String fronting; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String rearing; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String uping; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String downing; |
| | | |
| | | /** |
| | | * éæ±1 |
| | | */ |
| | | @ApiModelProperty(value= "éæ±1") |
| | | @ApiModelProperty(value = "éæ±1") |
| | | private String inreq1; |
| | | |
| | | /** |
| | | * éæ±2 |
| | | */ |
| | | @ApiModelProperty(value= "éæ±2") |
| | | @ApiModelProperty(value = "éæ±2") |
| | | private String inreq2; |
| | | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("wrk_no1") |
| | | private Integer wrkNo1; |
| | | |
| | | /** |
| | | * 容å¨ç±»å |
| | | */ |
| | | @ApiModelProperty(value= "容å¨ç±»å") |
| | | @ApiModelProperty(value = "容å¨ç±»å") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType; |
| | | |
| | | /** |
| | | * æ¡å½¢ç |
| | | */ |
| | | @ApiModelProperty(value= "æ¡å½¢ç ") |
| | | @ApiModelProperty(value = "æ¡å½¢ç ") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "å
¥åºæåæ°") |
| | | @ApiModelProperty(value = "å
¥åºæåæ°") |
| | | @TableField("in_qty") |
| | | private Integer inQty; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Integer row1; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String area; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("in_ok") |
| | | private String inOk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("out_ok") |
| | | private String outOk; |
| | | |
| | | @ApiModelProperty(value= "é«ä½ç±»å{0:æªç¥,1:ä½åºä½,2:é«åºä½}") |
| | | @ApiModelProperty(value = "é«ä½ç±»å{0:æªç¥,1:ä½åºä½,2:é«åºä½}") |
| | | @TableField("loc_type1") |
| | | private Short locType1; |
| | | |
| | | @ApiModelProperty(value= "宽çªç±»å{0:æªç¥,1:çªåºä½,2:宽åºä½}") |
| | | @ApiModelProperty(value = "宽çªç±»å{0:æªç¥,1:çªåºä½,2:宽åºä½}") |
| | | @TableField("loc_type2") |
| | | private Short locType2; |
| | | |
| | | @ApiModelProperty(value= "è½»éç±»å{0:æªç¥,1:è½»åºä½,2:éåºä½}") |
| | | @ApiModelProperty(value = "è½»éç±»å{0:æªç¥,1:è½»åºä½,2:éåºä½}") |
| | | @TableField("loc_type3") |
| | | private Short locType3; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("std_qty") |
| | | private Double stdQty; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("min_wt") |
| | | private Double minWt; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("max_wt") |
| | | private Double maxWt; |
| | | |
| | | /** |
| | | * éé |
| | | */ |
| | | @ApiModelProperty(value= "éé") |
| | | @ApiModelProperty(value = "éé") |
| | | @TableField("gross_wt") |
| | | private Double grossWt; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("cart_pos") |
| | | private Integer cartPos; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("agv_start_pick") |
| | | private Integer agvStartPick; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("agv_target_pick") |
| | | private Integer agvTargetPick; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("agv_start_place") |
| | | private Integer agvStartPlace; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("agv_target_place") |
| | | private Integer agvTargetPlace; |
| | | |
| | | @ApiModelProperty(value= "å¼å¸¸ç ") |
| | | @ApiModelProperty(value = "å¼å¸¸ç ") |
| | | @TableField("sta_err") |
| | | private Integer staErr; |
| | | |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getLocType1$() { |
| | | if (null == this.locType1){ return null; } |
| | | switch (this.locType1){ |
| | | if (null == this.locType1) { |
| | | return null; |
| | | } |
| | | switch (this.locType1) { |
| | | case 0: |
| | | return "æªç¥"; |
| | | case 1: |
| | |
| | | } |
| | | |
| | | public String getLocType2$() { |
| | | if (null == this.locType2){ return null; } |
| | | switch (this.locType2){ |
| | | if (null == this.locType2) { |
| | | return null; |
| | | } |
| | | switch (this.locType2) { |
| | | case 0: |
| | | return "æªç¥"; |
| | | case 1: |
| | |
| | | } |
| | | |
| | | public String getLocType3$() { |
| | | if (null == this.locType3){ return null; } |
| | | switch (this.locType3){ |
| | | if (null == this.locType3) { |
| | | return null; |
| | | } |
| | | switch (this.locType3) { |
| | | case 0: |
| | | return "æªç¥"; |
| | | case 1: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "ç¼å·") |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * åçæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "åçæ¶é´") |
| | | @ApiModelProperty(value = "åçæ¶é´") |
| | | @TableField("start_time") |
| | | private Date startTime; |
| | | |
| | | /** |
| | | * ç»ææ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ç»ææ¶é´") |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | @TableField("end_time") |
| | | private Date endTime; |
| | | |
| | | /** |
| | | * å·¥ä½ç¶æ |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½ç¶æ") |
| | | @ApiModelProperty(value = "å·¥ä½ç¶æ") |
| | | @TableField("wrk_sts") |
| | | private Long wrkSts; |
| | | |
| | | /** |
| | | * å
¥åºåºç±»å |
| | | */ |
| | | @ApiModelProperty(value= "å
¥åºåºç±»å") |
| | | @ApiModelProperty(value = "å
¥åºåºç±»å") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * å åæº |
| | | */ |
| | | @ApiModelProperty(value= "å åæº") |
| | | @ApiModelProperty(value = "å åæº") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * plc |
| | | */ |
| | | @ApiModelProperty(value= "plc") |
| | | @ApiModelProperty(value = "plc") |
| | | @TableField("plc_no") |
| | | private Integer plcNo; |
| | | |
| | | /** |
| | | * ç®æ åºä½ |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ åºä½") |
| | | @ApiModelProperty(value = "ç®æ åºä½") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * ç®æ ç« |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ ç«") |
| | | @ApiModelProperty(value = "ç®æ ç«") |
| | | @TableField("sta_no") |
| | | private Integer staNo; |
| | | |
| | | /** |
| | | * æºç« |
| | | */ |
| | | @ApiModelProperty(value= "æºç«") |
| | | @ApiModelProperty(value = "æºç«") |
| | | @TableField("source_sta_no") |
| | | private Integer sourceStaNo; |
| | | |
| | | /** |
| | | * æºåºä½ |
| | | */ |
| | | @ApiModelProperty(value= "æºåºä½") |
| | | @ApiModelProperty(value = "æºåºä½") |
| | | @TableField("source_loc_no") |
| | | private String sourceLocNo; |
| | | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * å¼å¸¸ç |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸ç ") |
| | | @ApiModelProperty(value = "å¼å¸¸ç ") |
| | | @TableField("err_code") |
| | | private Integer errCode; |
| | | |
| | | /** |
| | | * å¼å¸¸ |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸") |
| | | @ApiModelProperty(value = "å¼å¸¸") |
| | | private String error; |
| | | |
| | | /** |
| | | * å¼å¸¸æ
åµ 1: æªå¤ç 2: å·²ä¿®å¤ |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸æ
åµ 1: æªå¤ç 2: å·²ä¿®å¤ ") |
| | | @ApiModelProperty(value = "å¼å¸¸æ
åµ 1: æªå¤ç 2: å·²ä¿®å¤ ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æ·»å 人å |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å 人å") |
| | | @ApiModelProperty(value = "æ·»å 人å") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | public BasErrLog() {} |
| | | public BasErrLog() { |
| | | } |
| | | |
| | | public BasErrLog(String uuid,Integer wrkNo,Date startTime,Date endTime,Long wrkSts,Integer ioType,Integer crnNo,Integer plcNo,String locNo,Integer staNo,Integer sourceStaNo,String sourceLocNo,String barcode,Integer errCode,String error,Integer status,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { |
| | | public BasErrLog(String uuid, Integer wrkNo, Date startTime, Date endTime, Long wrkSts, Integer ioType, Integer crnNo, Integer plcNo, String locNo, Integer staNo, Integer sourceStaNo, String sourceLocNo, String barcode, Integer errCode, String error, Integer status, Date createTime, Long createBy, Date updateTime, Long updateBy, String memo) { |
| | | this.uuid = uuid; |
| | | this.wrkNo = wrkNo; |
| | | this.startTime = startTime; |
| | |
| | | return startTime; |
| | | } |
| | | |
| | | public String getStartTime$(){ |
| | | if (Cools.isEmpty(this.startTime)){ |
| | | public void setStartTime(Date startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public String getStartTime$() { |
| | | if (Cools.isEmpty(this.startTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime); |
| | | } |
| | | |
| | | public void setStartTime(Date startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public Date getEndTime() { |
| | | return endTime; |
| | | } |
| | | |
| | | public String getEndTime$(){ |
| | | if (Cools.isEmpty(this.endTime)){ |
| | | public void setEndTime(Date endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | |
| | | public String getEndTime$() { |
| | | if (Cools.isEmpty(this.endTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime); |
| | | } |
| | | |
| | | public void setEndTime(Date endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | |
| | | public Long getWrkSts() { |
| | |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "æªå¤ç"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Long getCreateBy() { |
| | | return createBy; |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | public Long getCreateBy() { |
| | | return createBy; |
| | | } |
| | | |
| | | public void setCreateBy(Long createBy) { |
| | | this.createBy = createBy; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public Long getUpdateBy() { |
| | | return updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public void setUpdateBy(Long updateBy) { |
| | | this.updateBy = updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setUpdateBy(Long updateBy) { |
| | | this.updateBy = updateBy; |
| | | } |
| | | |
| | | public String getMemo() { |
| | |
| | | /** |
| | | * åºä½ç¶æä»£å· |
| | | */ |
| | | @ApiModelProperty(value= "åºä½ç¶æä»£å·") |
| | | @ApiModelProperty(value = "åºä½ç¶æä»£å·") |
| | | @TableId(value = "loc_sts", type = IdType.INPUT) |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | |
| | | /** |
| | | * åºä½ç¶ææè¿° |
| | | */ |
| | | @ApiModelProperty(value= "åºä½ç¶ææè¿°") |
| | | @ApiModelProperty(value = "åºä½ç¶ææè¿°") |
| | | @TableField("loc_desc") |
| | | private String locDesc; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasLocSts() {} |
| | | public BasLocSts() { |
| | | } |
| | | |
| | | public BasLocSts(String locDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.locDesc = locDesc; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * å¼å¸¸ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸ç¼å·") |
| | | @ApiModelProperty(value = "å¼å¸¸ç¼å·") |
| | | @TableId(value = "error_code", type = IdType.INPUT) |
| | | @TableField("error_code") |
| | | private Integer errorCode; |
| | |
| | | /** |
| | | * å¼å¸¸æè¿° |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸æè¿°") |
| | | @ApiModelProperty(value = "å¼å¸¸æè¿°") |
| | | @TableField("error_desc") |
| | | private String errorDesc; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | public BasPlcerror() {} |
| | | public BasPlcerror() { |
| | | } |
| | | |
| | | public BasPlcerror(Integer errorCode, String errorDesc, Date modiTime, Long modiUser, Date appeTime, Long appeUser) { |
| | | this.errorDesc = errorDesc; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getModiUser() { |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasWrkStatusService; |
| | | import com.zy.asrs.entity.BasWrkStatus; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasWrkIotypeService; |
| | | import com.zy.asrs.entity.BasWrkIotype; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import com.zy.asrs.service.BasWrkStatusService; |
| | | import com.zy.system.entity.User; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import com.zy.system.entity.User; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("asr_bas_plcerror_log") |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * å¼å§æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å¼å§æ¶é´") |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | @TableField("start_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date startTime; |
| | | |
| | | /** |
| | | * ç»ææ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ç»ææ¶é´") |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | @TableField("end_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date endTime; |
| | | |
| | | /** |
| | | * å·¥ä½ç¶æ |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½ç¶æ") |
| | | @ApiModelProperty(value = "å·¥ä½ç¶æ") |
| | | @TableField("wrk_sts") |
| | | private Long wrkSts; |
| | | |
| | | /** |
| | | * å
¥åºåºç±»å |
| | | */ |
| | | @ApiModelProperty(value= "å
¥åºåºç±»å") |
| | | @ApiModelProperty(value = "å
¥åºåºç±»å") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * plc |
| | | */ |
| | | @ApiModelProperty(value= "plc") |
| | | @ApiModelProperty(value = "plc") |
| | | @TableField("plc_no") |
| | | private Integer plcNo; |
| | | |
| | | /** |
| | | * ç®æ åºä½ |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ åºä½") |
| | | @ApiModelProperty(value = "ç®æ åºä½") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * ç®æ ç« |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ ç«") |
| | | @ApiModelProperty(value = "ç®æ ç«") |
| | | @TableField("sta_no") |
| | | private Integer staNo; |
| | | |
| | | /** |
| | | * æºç« |
| | | */ |
| | | @ApiModelProperty(value= "æºç«") |
| | | @ApiModelProperty(value = "æºç«") |
| | | @TableField("source_sta_no") |
| | | private Integer sourceStaNo; |
| | | |
| | | /** |
| | | * æºåºä½ |
| | | */ |
| | | @ApiModelProperty(value= "æºåºä½") |
| | | @ApiModelProperty(value = "æºåºä½") |
| | | @TableField("source_loc_no") |
| | | private String sourceLocNo; |
| | | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * å¼å¸¸ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸ç¼å·") |
| | | @ApiModelProperty(value = "å¼å¸¸ç¼å·") |
| | | @TableField("err_code") |
| | | private Integer errCode; |
| | | |
| | | /** |
| | | * å¼å¸¸æè¿° |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸æè¿°") |
| | | @ApiModelProperty(value = "å¼å¸¸æè¿°") |
| | | private String err; |
| | | |
| | | /** |
| | | * å¼å¸¸æ
åµ 1: æªå¤ç 2: å·²ä¿®å¤ |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸æ
åµ 1: æªå¤ç 2: å·²ä¿®å¤ ") |
| | | @ApiModelProperty(value = "å¼å¸¸æ
åµ 1: æªå¤ç 2: å·²ä¿®å¤ ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æ·»å 人å |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å 人å") |
| | | @ApiModelProperty(value = "æ·»å 人å") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | public BasPlcerrorLog() {} |
| | | public BasPlcerrorLog() { |
| | | } |
| | | |
| | | public BasPlcerrorLog(Integer wrkNo,Date startTime,Date endTime,Long wrkSts,Integer ioType,Integer plcNo,String locNo,Integer staNo,Integer sourceStaNo,String sourceLocNo,String barcode,Integer errCode,String err,Integer status,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { |
| | | public BasPlcerrorLog(Integer wrkNo, Date startTime, Date endTime, Long wrkSts, Integer ioType, Integer plcNo, String locNo, Integer staNo, Integer sourceStaNo, String sourceLocNo, String barcode, Integer errCode, String err, Integer status, Date createTime, Long createBy, Date updateTime, Long updateBy, String memo) { |
| | | this.wrkNo = wrkNo; |
| | | this.startTime = startTime; |
| | | this.endTime = endTime; |
| | |
| | | // null // 夿³¨ |
| | | // ); |
| | | |
| | | public String getStartTime$(){ |
| | | if (Cools.isEmpty(this.startTime)){ |
| | | public String getStartTime$() { |
| | | if (Cools.isEmpty(this.startTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime); |
| | | } |
| | | |
| | | public String getEndTime$(){ |
| | | if (Cools.isEmpty(this.endTime)){ |
| | | public String getEndTime$() { |
| | | if (Cools.isEmpty(this.endTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime); |
| | | } |
| | | |
| | | public String getWrkSts$(){ |
| | | public String getWrkSts$() { |
| | | BasWrkStatusService service = SpringUtils.getBean(BasWrkStatusService.class); |
| | | BasWrkStatus basWrkStatus = service.selectById(this.wrkSts); |
| | | if (!Cools.isEmpty(basWrkStatus)){ |
| | | if (!Cools.isEmpty(basWrkStatus)) { |
| | | return String.valueOf(basWrkStatus.getWrkDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | public String getIoType$() { |
| | | BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class); |
| | | BasWrkIotype basWrkIotype = service.selectById(this.ioType); |
| | | if (!Cools.isEmpty(basWrkIotype)){ |
| | | if (!Cools.isEmpty(basWrkIotype)) { |
| | | return String.valueOf(basWrkIotype.getIoDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "æªå¤ç"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | /** |
| | | * å
¥åºç±»åä»£å· |
| | | */ |
| | | @ApiModelProperty(value= "å
¥åºç±»å代å·") |
| | | @ApiModelProperty(value = "å
¥åºç±»å代å·") |
| | | @TableId(value = "io_type", type = IdType.INPUT) |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | |
| | | /** |
| | | * ä¸»è¦ |
| | | */ |
| | | @ApiModelProperty(value= "主è¦") |
| | | @ApiModelProperty(value = "主è¦") |
| | | @TableField("io_pri") |
| | | private String ioPri; |
| | | |
| | | /** |
| | | * å
¥åºç±»åæè¿° |
| | | */ |
| | | @ApiModelProperty(value= "å
¥åºç±»åæè¿°") |
| | | @ApiModelProperty(value = "å
¥åºç±»åæè¿°") |
| | | @TableField("io_desc") |
| | | private String ioDesc; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasWrkIotype() {} |
| | | public BasWrkIotype() { |
| | | } |
| | | |
| | | public BasWrkIotype(String ioPri,String ioDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public BasWrkIotype(String ioPri, String ioDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.ioPri = ioPri; |
| | | this.ioDesc = ioDesc; |
| | | this.modiUser = modiUser; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * ä»£å· |
| | | */ |
| | | @ApiModelProperty(value= "代å·") |
| | | @ApiModelProperty(value = "代å·") |
| | | @TableId(value = "wrk_sts", type = IdType.INPUT) |
| | | @TableField("wrk_sts") |
| | | private Long wrkSts; |
| | |
| | | /** |
| | | * ç¶ææè¿° |
| | | */ |
| | | @ApiModelProperty(value= "ç¶ææè¿°") |
| | | @ApiModelProperty(value = "ç¶ææè¿°") |
| | | @TableField("wrk_desc") |
| | | private String wrkDesc; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasWrkStatus() {} |
| | | public BasWrkStatus() { |
| | | } |
| | | |
| | | public BasWrkStatus(String wrkDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public BasWrkStatus(String wrkDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.wrkDesc = wrkDesc; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | public class ChartBean { |
| | | private String name; |
| | | private double y; |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | public double getY() { |
| | | return y; |
| | | } |
| | | public void setY(double y) { |
| | | this.y = y; |
| | | } |
| | | |
| | | private String name; |
| | | private double y; |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public double getY() { |
| | | return y; |
| | | } |
| | | |
| | | public void setY(double y) { |
| | | this.y = y; |
| | | } |
| | | |
| | | } |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.zy.core.enums.CommandType; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("wcs_command_info") |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * WMSä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value= "ä»»å¡å·") |
| | | @ApiModelProperty(value = "ä»»å¡å·") |
| | | @TableField("task_no") |
| | | private String taskNo; |
| | | |
| | | /** |
| | | * æä»¤ç±»å{1:å建,2:æ§è¡,3:宿} |
| | | */ |
| | | @ApiModelProperty(value= "æä»¤ç¶æ") |
| | | @ApiModelProperty(value = "æä»¤ç¶æ") |
| | | @TableField("command_status") |
| | | private Integer commandStatus; |
| | | |
| | | /** |
| | | * å¼å§æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å¼å§æ¶é´") |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | @TableField("start_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date startTime; |
| | | |
| | | /** |
| | | * æä»¤ç±»å |
| | | */ |
| | | @ApiModelProperty(value= "æä»¤ç±»å") |
| | | @ApiModelProperty(value = "æä»¤ç±»å") |
| | | @TableField("command_type") |
| | | private Integer commandType; |
| | | |
| | | /** |
| | | * è®¾å¤ |
| | | */ |
| | | @ApiModelProperty(value= "设å¤") |
| | | @ApiModelProperty(value = "设å¤") |
| | | private String device; |
| | | |
| | | /** |
| | | * è®¾å¤æ§è¡ä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty(value= "è®¾å¤æ§è¡ä¿¡æ¯") |
| | | @ApiModelProperty(value = "è®¾å¤æ§è¡ä¿¡æ¯") |
| | | @TableField("device_log") |
| | | private String deviceLog; |
| | | |
| | | /** |
| | | * å½ä»¤æè¿° |
| | | */ |
| | | @ApiModelProperty(value= "å½ä»¤æè¿°") |
| | | @ApiModelProperty(value = "å½ä»¤æè¿°") |
| | | @TableField("command_desc") |
| | | private String commandDesc; |
| | | |
| | | /** |
| | | * å½ä»¤JSON |
| | | */ |
| | | @ApiModelProperty(value= "å½ä»¤JSON") |
| | | @ApiModelProperty(value = "å½ä»¤JSON") |
| | | @TableField("command") |
| | | private String command; |
| | | |
| | | /** |
| | | * æ§è¡æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ§è¡æ¶é´") |
| | | @ApiModelProperty(value = "æ§è¡æ¶é´") |
| | | @TableField("execute_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date executeTime; |
| | | |
| | | /** |
| | | * 宿æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "宿æ¶é´") |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | @TableField("complete_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date completeTime; |
| | | |
| | | public CommandInfo() {} |
| | | public CommandInfo() { |
| | | } |
| | | |
| | | public CommandInfo(Integer id, Integer wrkNo, String taskNo, Integer commandStatus, Date startTime, Integer commandType, String device, String deviceLog, String commandDesc, String command, Date executeTime, Date completeTime) { |
| | | this.id = id; |
| | |
| | | this.completeTime = completeTime; |
| | | } |
| | | |
| | | public String getStartTime$(){ |
| | | if (Cools.isEmpty(this.startTime)){ |
| | | public String getStartTime$() { |
| | | if (Cools.isEmpty(this.startTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime); |
| | | } |
| | | |
| | | public String getExecuteTime$(){ |
| | | if (Cools.isEmpty(this.executeTime)){ |
| | | public String getExecuteTime$() { |
| | | if (Cools.isEmpty(this.executeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.executeTime); |
| | | } |
| | | |
| | | public String getCompleteTime$(){ |
| | | if (Cools.isEmpty(this.completeTime)){ |
| | | public String getCompleteTime$() { |
| | | if (Cools.isEmpty(this.completeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.completeTime); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.zy.core.enums.CommandType; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("wcs_command_info_log") |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * èµ·ç¹ä½ç½® |
| | | */ |
| | | @ApiModelProperty(value= "èµ·ç¹ä½ç½®") |
| | | @ApiModelProperty(value = "èµ·ç¹ä½ç½®") |
| | | @TableField("start_pos") |
| | | private String startPos; |
| | | |
| | | /** |
| | | * ç»ç¹ä½ç½® |
| | | */ |
| | | @ApiModelProperty(value= "ç»ç¹ä½ç½®") |
| | | @ApiModelProperty(value = "ç»ç¹ä½ç½®") |
| | | @TableField("end_pos") |
| | | private String endPos; |
| | | |
| | | /** |
| | | * æä»¤ç¶æ 1: å建 2: æ§è¡ 3: 宿 |
| | | */ |
| | | @ApiModelProperty(value= "æä»¤ç¶æ 1: å建 2: æ§è¡ 3: 宿 ") |
| | | @ApiModelProperty(value = "æä»¤ç¶æ 1: å建 2: æ§è¡ 3: 宿 ") |
| | | @TableField("command_status") |
| | | private Integer commandStatus; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å建æ¶é´") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField("start_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date startTime; |
| | | |
| | | /** |
| | | * æä»¤ç±»å |
| | | */ |
| | | @ApiModelProperty(value= "æä»¤ç±»å") |
| | | @ApiModelProperty(value = "æä»¤ç±»å") |
| | | @TableField("command_type") |
| | | private Integer commandType; |
| | | |
| | | /** |
| | | * è®¾å¤ |
| | | */ |
| | | @ApiModelProperty(value= "设å¤") |
| | | @ApiModelProperty(value = "设å¤") |
| | | private String device; |
| | | |
| | | /** |
| | | * è®¾å¤æ§è¡ä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty(value= "è®¾å¤æ§è¡ä¿¡æ¯") |
| | | @ApiModelProperty(value = "è®¾å¤æ§è¡ä¿¡æ¯") |
| | | @TableField("device_log") |
| | | private String deviceLog; |
| | | |
| | | /** |
| | | * å½ä»¤æè¿° |
| | | */ |
| | | @ApiModelProperty(value= "å½ä»¤æè¿°") |
| | | @ApiModelProperty(value = "å½ä»¤æè¿°") |
| | | @TableField("command_desc") |
| | | private String commandDesc; |
| | | |
| | | /** |
| | | * å½ä»¤JSON |
| | | */ |
| | | @ApiModelProperty(value= "å½ä»¤JSON") |
| | | @ApiModelProperty(value = "å½ä»¤JSON") |
| | | private String command; |
| | | |
| | | /** |
| | | * ä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value= "ä»»å¡å·") |
| | | @ApiModelProperty(value = "ä»»å¡å·") |
| | | @TableField("task_no") |
| | | private String taskNo; |
| | | |
| | | /** |
| | | * æ§è¡æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ§è¡æ¶é´") |
| | | @ApiModelProperty(value = "æ§è¡æ¶é´") |
| | | @TableField("execute_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date executeTime; |
| | | |
| | | /** |
| | | * 宿æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "宿æ¶é´") |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | @TableField("complete_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date completeTime; |
| | | |
| | | public CommandInfoLog() {} |
| | | public CommandInfoLog() { |
| | | } |
| | | |
| | | public CommandInfoLog(Integer wrkNo,String startPos,String endPos,Integer commandStatus,Date startTime,Integer commandType,String device,String deviceLog,String commandDesc,String command,String taskNo,Date executeTime,Date completeTime) { |
| | | public CommandInfoLog(Integer wrkNo, String startPos, String endPos, Integer commandStatus, Date startTime, Integer commandType, String device, String deviceLog, String commandDesc, String command, String taskNo, Date executeTime, Date completeTime) { |
| | | this.wrkNo = wrkNo; |
| | | this.startPos = startPos; |
| | | this.endPos = endPos; |
| | |
| | | // null // 宿æ¶é´ |
| | | // ); |
| | | |
| | | public String getCommandStatus$(){ |
| | | if (null == this.commandStatus){ return null; } |
| | | switch (this.commandStatus){ |
| | | public String getCommandStatus$() { |
| | | if (null == this.commandStatus) { |
| | | return null; |
| | | } |
| | | switch (this.commandStatus) { |
| | | case 1: |
| | | return "å建"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getStartTime$(){ |
| | | if (Cools.isEmpty(this.startTime)){ |
| | | public String getStartTime$() { |
| | | if (Cools.isEmpty(this.startTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime); |
| | | } |
| | | |
| | | public String getExecuteTime$(){ |
| | | if (Cools.isEmpty(this.executeTime)){ |
| | | public String getExecuteTime$() { |
| | | if (Cools.isEmpty(this.executeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.executeTime); |
| | | } |
| | | |
| | | public String getCompleteTime$(){ |
| | | if (Cools.isEmpty(this.completeTime)){ |
| | | public String getCompleteTime$() { |
| | | if (Cools.isEmpty(this.completeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.completeTime); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("wcs_data_resource") |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String data; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("resource_id") |
| | | private Integer resourceId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | public DataResource() {} |
| | | public DataResource() { |
| | | } |
| | | |
| | | public DataResource(String data,String name,Integer resourceId,Date createTime,String memo) { |
| | | public DataResource(String data, String name, Integer resourceId, Date createTime, String memo) { |
| | | this.data = data; |
| | | this.name = name; |
| | | this.resourceId = resourceId; |
| | |
| | | // null // |
| | | // ); |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("wcs_device_error") |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * è®¾å¤ |
| | | */ |
| | | @ApiModelProperty(value= "设å¤") |
| | | @ApiModelProperty(value = "设å¤") |
| | | private String device; |
| | | |
| | | /** |
| | | * 设å¤ID |
| | | */ |
| | | @ApiModelProperty(value= "设å¤ID") |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | @TableField("device_id") |
| | | private Integer deviceId; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å建æ¶é´") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * å¼å¸¸ä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty(value= "å¼å¸¸ä¿¡æ¯") |
| | | @ApiModelProperty(value = "å¼å¸¸ä¿¡æ¯") |
| | | private String msg; |
| | | |
| | | public DeviceError() {} |
| | | public DeviceError() { |
| | | } |
| | | |
| | | public DeviceError(String device,Integer deviceId,Date createTime,String msg) { |
| | | public DeviceError(String device, Integer deviceId, Date createTime, String msg) { |
| | | this.device = device; |
| | | this.deviceId = deviceId; |
| | | this.createTime = createTime; |
| | |
| | | // null // å¼å¸¸ä¿¡æ¯ |
| | | // ); |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "åºä½å·") |
| | | @ApiModelProperty(value = "åºä½å·") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | @ApiModelProperty(value= "æçæ¡ç ") |
| | | @ApiModelProperty(value = "æçæ¡ç ") |
| | | private String zpallet; |
| | | |
| | | @ApiModelProperty(value= "æ°é") |
| | | @ApiModelProperty(value = "æ°é") |
| | | @ExcelProperty("æ°é") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "ååç¼å·") |
| | | @ApiModelProperty(value = "ååç¼å·") |
| | | @ExcelProperty("ååç¼å·") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "åååç§°") |
| | | @ApiModelProperty(value = "åååç§°") |
| | | @ExcelProperty("åååç§°") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "æ¹å·") |
| | | @ApiModelProperty(value = "æ¹å·") |
| | | @ExcelProperty("æ¹å·") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "åæ®ç¼å·") |
| | | @ApiModelProperty(value = "åæ®ç¼å·") |
| | | @ExcelProperty("åæ®ç¼å·") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "è§æ ¼") |
| | | @ApiModelProperty(value = "è§æ ¼") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "åå·") |
| | | @ApiModelProperty(value = "åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "é¢è²") |
| | | @ApiModelProperty(value = "é¢è²") |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "åç") |
| | | @ApiModelProperty(value = "åç") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "åä½") |
| | | @ApiModelProperty(value = "åä½") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "åä»·") |
| | | @ApiModelProperty(value = "åä»·") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ApiModelProperty(value= "åä½é") |
| | | @ApiModelProperty(value = "åä½é") |
| | | private Double units; |
| | | |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "产å°") |
| | | @ApiModelProperty(value = "产å°") |
| | | private String origin; |
| | | |
| | | @ApiModelProperty(value= "åå®¶") |
| | | @ApiModelProperty(value = "åå®¶") |
| | | private String manu; |
| | | |
| | | @ApiModelProperty(value= "çäº§æ¥æ") |
| | | @ApiModelProperty(value = "çäº§æ¥æ") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | @ApiModelProperty(value= "å项æ°") |
| | | @ApiModelProperty(value = "å项æ°") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | @ApiModelProperty(value= "å®å
¨åºåé") |
| | | @ApiModelProperty(value = "å®å
¨åºåé") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | @ApiModelProperty(value= "éé") |
| | | @ApiModelProperty(value = "éé") |
| | | private Double weight; |
| | | |
| | | @ApiModelProperty(value= "é¿åº¦") |
| | | @ApiModelProperty(value = "é¿åº¦") |
| | | private Double length; |
| | | |
| | | @ApiModelProperty(value= "ä½ç§¯") |
| | | @ApiModelProperty(value = "ä½ç§¯") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "䏿¹ç¼ç ") |
| | | @ApiModelProperty(value = "䏿¹ç¼ç ") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | @ApiModelProperty(value= "ä¾åºå") |
| | | @ApiModelProperty(value = "ä¾åºå") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "ä¾åºåç¼ç ") |
| | | @ApiModelProperty(value = "ä¾åºåç¼ç ") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | @ApiModelProperty(value= "æ¯å¦æ¹æ¬¡ 1: æ¯ 0: å¦ ") |
| | | @ApiModelProperty(value = "æ¯å¦æ¹æ¬¡ 1: æ¯ 0: å¦ ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | @ApiModelProperty(value= "ä¿è´¨æ") |
| | | @ApiModelProperty(value = "ä¿è´¨æ") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | @ApiModelProperty(value= "é¢è¦å¤©æ°") |
| | | @ApiModelProperty(value = "é¢è¦å¤©æ°") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | @ApiModelProperty(value= "å¶è´ 1: å¶é 2: éè´ 3: å¤å ") |
| | | @ApiModelProperty(value = "å¶è´ 1: å¶é 2: éè´ 3: å¤å ") |
| | | private Integer source; |
| | | |
| | | @ApiModelProperty(value= "è¦æ±æ£éª 1: æ¯ 0: å¦ ") |
| | | @ApiModelProperty(value = "è¦æ±æ£éª 1: æ¯ 0: å¦ ") |
| | | private Integer inspect; |
| | | |
| | | @ApiModelProperty(value= "å±é©å 1: æ¯ 0: å¦ ") |
| | | @ApiModelProperty(value = "å±é©å 1: æ¯ 0: å¦ ") |
| | | private Integer danger; |
| | | |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | public String getLocNo$(){ |
| | | public String getLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "æ¯"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "å¶é "; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "æ¯"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "æ¯"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * åºä½å· |
| | | */ |
| | | @ApiModelProperty(value= "åºä½å·") |
| | | @ApiModelProperty(value = "åºä½å·") |
| | | @TableId(value = "loc_no", type = IdType.INPUT) |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | |
| | | /** |
| | | * åºä½ç±»å |
| | | */ |
| | | @ApiModelProperty(value= "åºä½ç±»å") |
| | | @ApiModelProperty(value = "åºä½ç±»å") |
| | | @TableField("whs_type") |
| | | private Long whsType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("plt_type") |
| | | private Integer pltType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType; |
| | | |
| | | @ApiModelProperty(value= "åºä½ç¶æ") |
| | | @ApiModelProperty(value = "åºä½ç¶æ") |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sheet_no") |
| | | private String sheetNo; |
| | | |
| | | /** |
| | | * å åæºå·(asr_bas_crnp) |
| | | */ |
| | | @ApiModelProperty(value= "å åæºå·") |
| | | @ApiModelProperty(value = "å åæºå·") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * æ |
| | | */ |
| | | @ApiModelProperty(value= "æ") |
| | | @ApiModelProperty(value = "æ") |
| | | private Integer row1; |
| | | |
| | | /** |
| | | * å |
| | | */ |
| | | @ApiModelProperty(value= "å") |
| | | @ApiModelProperty(value = "å") |
| | | private Integer bay1; |
| | | |
| | | /** |
| | | * å± |
| | | */ |
| | | @ApiModelProperty(value= "å±") |
| | | @ApiModelProperty(value = "å±") |
| | | private Integer lev1; |
| | | |
| | | /** |
| | | * æ»¡æ¿ |
| | | */ |
| | | @ApiModelProperty(value= "满æ¿") |
| | | @ApiModelProperty(value = "满æ¿") |
| | | @TableField("full_plt") |
| | | private String fullPlt; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("loc_type") |
| | | private String locType; |
| | | |
| | | @ApiModelProperty(value= "é«ä½ç±»å{0:æªç¥,1:ä½åºä½,2:é«åºä½}") |
| | | @ApiModelProperty(value = "é«ä½ç±»å{0:æªç¥,1:ä½åºä½,2:é«åºä½}") |
| | | @TableField("loc_type1") |
| | | private Short locType1; |
| | | |
| | | @ApiModelProperty(value= "宽çªç±»å{0:æªç¥,1:çªåºä½,2:宽åºä½}") |
| | | @ApiModelProperty(value = "宽çªç±»å{0:æªç¥,1:çªåºä½,2:宽åºä½}") |
| | | @TableField("loc_type2") |
| | | private Short locType2; |
| | | |
| | | @ApiModelProperty(value= "è½»éç±»å{0:æªç¥,1:è½»åºä½,2:éåºä½}") |
| | | @ApiModelProperty(value = "è½»éç±»å{0:æªç¥,1:è½»åºä½,2:éåºä½}") |
| | | @TableField("loc_type3") |
| | | private Short locType3; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("out_enable") |
| | | private String outEnable; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("first_time") |
| | | private Date firstTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_time") |
| | | private Date errorTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_memo") |
| | | private String errorMemo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_kind") |
| | | private Integer ctnKind; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sc_weight") |
| | | private Double scWeight; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("inv_wh") |
| | | private String invWh; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String mk; |
| | | |
| | | /** |
| | | * æçç |
| | | */ |
| | | @ApiModelProperty(value= "æçç ") |
| | | @ApiModelProperty(value = "æçç ") |
| | | @TableField("barcode") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("Pdc_type") |
| | | private String PdcType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_no") |
| | | private String ctnNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String status; |
| | | |
| | | @TableField(exist = false) |
| | |
| | | @TableField(exist = false) |
| | | private String emptyContainer; |
| | | |
| | | public String getEmptyContainer$(){ |
| | | if (Cools.isEmpty(this.emptyContainer)){ |
| | | public String getEmptyContainer$() { |
| | | if (Cools.isEmpty(this.emptyContainer)) { |
| | | return ""; |
| | | } |
| | | if (this.emptyContainer.equals("1")){ |
| | | if (this.emptyContainer.equals("1")) { |
| | | return "Y"; |
| | | }else { |
| | | } else { |
| | | return "N"; |
| | | } |
| | | } |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getFirstTime$(){ |
| | | if (Cools.isEmpty(this.firstTime)){ |
| | | public String getFirstTime$() { |
| | | if (Cools.isEmpty(this.firstTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.firstTime); |
| | | } |
| | | |
| | | public String getLocType1$() { |
| | | if (null == this.locType1){ return null; } |
| | | switch (this.locType1){ |
| | | if (null == this.locType1) { |
| | | return null; |
| | | } |
| | | switch (this.locType1) { |
| | | case 0: |
| | | return "æªç¥"; |
| | | case 1: |
| | |
| | | } |
| | | |
| | | public String getLocType2$() { |
| | | if (null == this.locType2){ return null; } |
| | | switch (this.locType2){ |
| | | if (null == this.locType2) { |
| | | return null; |
| | | } |
| | | switch (this.locType2) { |
| | | case 0: |
| | | return "æªç¥"; |
| | | case 1: |
| | |
| | | } |
| | | |
| | | public String getLocType3$() { |
| | | if (null == this.locType3){ return null; } |
| | | switch (this.locType3){ |
| | | if (null == this.locType3) { |
| | | return null; |
| | | } |
| | | switch (this.locType3) { |
| | | case 0: |
| | | return "æªç¥"; |
| | | case 1: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getErrorTime$(){ |
| | | if (Cools.isEmpty(this.errorTime)){ |
| | | public String getErrorTime$() { |
| | | if (Cools.isEmpty(this.errorTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime); |
| | | } |
| | | |
| | | public String getLocSts$(){ |
| | | public String getLocSts$() { |
| | | BasLocStsService service = SpringUtils.getBean(BasLocStsService.class); |
| | | BasLocSts basLocSts = service.selectById(this.locSts); |
| | | if (!Cools.isEmpty(basLocSts)){ |
| | | if (!Cools.isEmpty(basLocSts)) { |
| | | return String.valueOf(basLocSts.getLocDesc()); |
| | | } |
| | | return null; |
| | |
| | | /** |
| | | * ååç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "ååç¼å·") |
| | | @ApiModelProperty(value = "ååç¼å·") |
| | | @TableId(value = "mat_no", type = IdType.INPUT) |
| | | @TableField("mat_no") |
| | | private String matNo; |
| | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æ¡å½¢ç ") |
| | | @ApiModelProperty(value = "æ¡å½¢ç ") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * åååç§° |
| | | */ |
| | | @ApiModelProperty(value= "åååç§°") |
| | | @ApiModelProperty(value = "åååç§°") |
| | | @TableField("mat_name") |
| | | private String matName; |
| | | |
| | | /** |
| | | * ç©æåä½ |
| | | */ |
| | | @ApiModelProperty(value= "åä½") |
| | | @ApiModelProperty(value = "åä½") |
| | | private String str1; |
| | | |
| | | @ApiModelProperty(value= "è§æ ¼") |
| | | @ApiModelProperty(value = "è§æ ¼") |
| | | private String str2; |
| | | |
| | | @ApiModelProperty(value= "å项æ°") |
| | | @ApiModelProperty(value = "å项æ°") |
| | | private String str3; |
| | | |
| | | @ApiModelProperty(value= "客æ·åç§°") |
| | | @ApiModelProperty(value = "客æ·åç§°") |
| | | private String str4; |
| | | |
| | | @ApiModelProperty(value= "åå·") |
| | | @ApiModelProperty(value = "åå·") |
| | | private String str5; |
| | | |
| | | @ApiModelProperty(value= "æ¹å·") |
| | | @ApiModelProperty(value = "æ¹å·") |
| | | private String str6; |
| | | |
| | | @ApiModelProperty(value= "åæ®ç¼å·") |
| | | @ApiModelProperty(value = "åæ®ç¼å·") |
| | | private String str7; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str8; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str9; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str10; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str11; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str12; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str13; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str14; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str15; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str16; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str17; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str18; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str19; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str20; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str21; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str22; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String str23; |
| | | |
| | | @ApiModelProperty(value= "éé") |
| | | @ApiModelProperty(value = "éé") |
| | | private Double num1; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Double num2; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Double num3; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Double num4; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Double num5; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Double num6; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Date date1; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Short status; |
| | | |
| | | public MatCode() {} |
| | | public MatCode() { |
| | | } |
| | | |
| | | public MatCode(String barcode,String matName,String str1,String str2,String str3,String str4,String str5,String str6,String str7,String str8,String str9,String str10,String str11,String str12,String str13,String str14,String str15,String str16,String str17,String str18,String str19,String str20,String str21,String str22,String str23,Double num1,Double num2,Double num3,Double num4,Double num5,Double num6,Date date1,Long appeUser,Date appeTime,Long modiUser,Date modiTime,Short status) { |
| | | public MatCode(String barcode, String matName, String str1, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, String str11, String str12, String str13, String str14, String str15, String str16, String str17, String str18, String str19, String str20, String str21, String str22, String str23, Double num1, Double num2, Double num3, Double num4, Double num5, Double num6, Date date1, Long appeUser, Date appeTime, Long modiUser, Date modiTime, Short status) { |
| | | this.barcode = barcode; |
| | | this.matName = matName; |
| | | this.str1 = str1; |
| | |
| | | return date1; |
| | | } |
| | | |
| | | public String getDate1$(){ |
| | | if (Cools.isEmpty(this.date1)){ |
| | | public void setDate1(Date date1) { |
| | | this.date1 = date1; |
| | | } |
| | | |
| | | public String getDate1$() { |
| | | if (Cools.isEmpty(this.date1)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.date1); |
| | | } |
| | | |
| | | public void setDate1(Date date1) { |
| | | this.date1 = date1; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public Long getModiUser() { |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Short getStatus() { |
| | |
| | | /** |
| | | * ç±»å« |
| | | */ |
| | | @ApiModelProperty(value= "ç±»å«") |
| | | @ApiModelProperty(value = "ç±»å«") |
| | | @TableId(value = "whs_type", type = IdType.INPUT) |
| | | @TableField("whs_type") |
| | | private Integer whsType; |
| | |
| | | /** |
| | | * å½åå·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å½åå·¥ä½å·") |
| | | @ApiModelProperty(value = "å½åå·¥ä½å·") |
| | | @TableField("wrk_mk") |
| | | private String wrkMk; |
| | | |
| | | /** |
| | | * å½åæå· |
| | | */ |
| | | @ApiModelProperty(value= "å½åæå·") |
| | | @ApiModelProperty(value = "å½åæå·") |
| | | @TableField("current_row") |
| | | private Integer currentRow; |
| | | |
| | | /** |
| | | * èµ·å§æå· |
| | | */ |
| | | @ApiModelProperty(value= "èµ·å§æå·") |
| | | @ApiModelProperty(value = "èµ·å§æå·") |
| | | @TableField("s_row") |
| | | private Integer sRow; |
| | | |
| | | /** |
| | | * ç»æ¢æå· |
| | | */ |
| | | @ApiModelProperty(value= "ç»æ¢æå·") |
| | | @ApiModelProperty(value = "ç»æ¢æå·") |
| | | @TableField("e_row") |
| | | private Integer eRow; |
| | | |
| | | /** |
| | | * å åæºæ°é |
| | | */ |
| | | @ApiModelProperty(value= "å åæºæ°é") |
| | | @ApiModelProperty(value = "å åæºæ°é") |
| | | @TableField("crn_qty") |
| | | private Integer crnQty; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("limint_loc") |
| | | private Integer limintLoc; |
| | | |
| | | public RowLastno() {} |
| | | public RowLastno() { |
| | | } |
| | | |
| | | public RowLastno(String wrkMk,Integer currentRow,Integer sRow,Integer eRow,Integer crnQty,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer limintLoc) { |
| | | public RowLastno(String wrkMk, Integer currentRow, Integer sRow, Integer eRow, Integer crnQty, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, Integer limintLoc) { |
| | | this.wrkMk = wrkMk; |
| | | this.currentRow = currentRow; |
| | | this.sRow = sRow; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public Integer getLimintLoc() { |
| | |
| | | /** |
| | | * è·¯å¾ID |
| | | */ |
| | | @ApiModelProperty(value= "è·¯å¾ID") |
| | | @ApiModelProperty(value = "è·¯å¾ID") |
| | | @TableId(value = "type_id", type = IdType.AUTO) |
| | | @TableField("type_id") |
| | | private Long typeId; |
| | |
| | | /** |
| | | * å
¥åºåºç±»å |
| | | */ |
| | | @ApiModelProperty(value= "å
¥åºåºç±»å") |
| | | @ApiModelProperty(value = "å
¥åºåºç±»å") |
| | | @TableId(value = "type_no", type = IdType.INPUT) |
| | | @TableField("type_no") |
| | | private Integer typeNo; |
| | |
| | | /** |
| | | * ä½ä¸ç±»å |
| | | */ |
| | | @ApiModelProperty(value= "ä½ä¸ç±»å") |
| | | @ApiModelProperty(value = "ä½ä¸ç±»å") |
| | | @TableField("type_desc") |
| | | private String typeDesc; |
| | | |
| | | /** |
| | | * ä½ä¸ç«ç¹ |
| | | */ |
| | | @ApiModelProperty(value= "ä½ä¸ç«ç¹") |
| | | @ApiModelProperty(value = "ä½ä¸ç«ç¹") |
| | | @TableId(value = "stn_no", type = IdType.INPUT) |
| | | @TableField("stn_no") |
| | | private Integer stnNo; |
| | |
| | | /** |
| | | * ç«ç¹åç§° |
| | | */ |
| | | @ApiModelProperty(value= "ç«ç¹åç§°") |
| | | @ApiModelProperty(value = "ç«ç¹åç§°") |
| | | @TableField("stn_desc") |
| | | private String stnDesc; |
| | | |
| | | /** |
| | | * å åæºå· |
| | | */ |
| | | @ApiModelProperty(value= "å åæºå·") |
| | | @ApiModelProperty(value = "å åæºå·") |
| | | @TableId(value = "crn_no", type = IdType.INPUT) |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | |
| | | /** |
| | | * å åæºç«ç¹ |
| | | */ |
| | | @ApiModelProperty(value= "å åæºç«ç¹") |
| | | @ApiModelProperty(value = "å åæºç«ç¹") |
| | | @TableField("crn_stn") |
| | | private Integer crnStn; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public StaDesc() {} |
| | | public StaDesc() { |
| | | } |
| | | |
| | | public StaDesc(String typeDesc,String stnDesc,Integer crnStn,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public StaDesc(String typeDesc, String stnDesc, Integer crnStn, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.typeDesc = typeDesc; |
| | | this.stnDesc = stnDesc; |
| | | this.crnStn = crnStn; |
| | |
| | | return stnNo; |
| | | } |
| | | |
| | | public String getStnNo$(){ |
| | | public void setStnNo(Integer stnNo) { |
| | | this.stnNo = stnNo; |
| | | } |
| | | |
| | | public String getStnNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.stnNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setStnNo(Integer stnNo) { |
| | | this.stnNo = stnNo; |
| | | } |
| | | |
| | | public String getStnDesc() { |
| | |
| | | return crnNo; |
| | | } |
| | | |
| | | public String getCrnNo$(){ |
| | | public void setCrnNo(Integer crnNo) { |
| | | this.crnNo = crnNo; |
| | | } |
| | | |
| | | public String getCrnNo$() { |
| | | BasCrnpService service = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = service.selectById(this.crnNo); |
| | | if (!Cools.isEmpty(basCrnp)){ |
| | | if (!Cools.isEmpty(basCrnp)) { |
| | | return String.valueOf(basCrnp.getCrnNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setCrnNo(Integer crnNo) { |
| | | this.crnNo = crnNo; |
| | | } |
| | | |
| | | public Integer getCrnStn() { |
| | | return crnStn; |
| | | } |
| | | |
| | | public String getCrnStn$(){ |
| | | public void setCrnStn(Integer crnStn) { |
| | | this.crnStn = crnStn; |
| | | } |
| | | |
| | | public String getCrnStn$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.crnStn); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setCrnStn(Integer crnStn) { |
| | | this.crnStn = crnStn; |
| | | } |
| | | |
| | | public String getMemo() { |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getTypeNo$() { |
| | | if (Cools.isEmpty(this.typeNo)){ |
| | | if (Cools.isEmpty(this.typeNo)) { |
| | | return ""; |
| | | } |
| | | BasWrkIotypeService basWrkIotypeService = SpringUtils.getBean(BasWrkIotypeService.class); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasWrkIotypeService; |
| | | import com.zy.asrs.entity.BasWrkIotype; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import com.zy.system.entity.User; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasWrkStatusService; |
| | | import com.zy.asrs.entity.BasWrkStatus; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("wcs_task_wrk_log") |
| | |
| | | /** |
| | | * wmsä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value= "wmsä»»å¡å·") |
| | | @ApiModelProperty(value = "wmsä»»å¡å·") |
| | | @TableField("task_no") |
| | | private String taskNo; |
| | | |
| | | /** |
| | | * ä»»å¡ç¶æ 1: æ¥æ¶ 2: æ´¾å 3: å®ç» 4: åæ¶ |
| | | */ |
| | | @ApiModelProperty(value= "ä»»å¡ç¶æ 1: æ¥æ¶ 2: æ´¾å 3: å®ç» 4: åæ¶ ") |
| | | @ApiModelProperty(value = "ä»»å¡ç¶æ 1: æ¥æ¶ 2: æ´¾å 3: å®ç» 4: åæ¶ ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * ä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value= "ä»»å¡å·") |
| | | @ApiModelProperty(value = "ä»»å¡å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 任塿¶é´(æ¥æ¶æ¶é´) |
| | | */ |
| | | @ApiModelProperty(value= "任塿¶é´(æ¥æ¶æ¶é´)") |
| | | @ApiModelProperty(value = "任塿¶é´(æ¥æ¶æ¶é´)") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * ä»»å¡ç±»å |
| | | */ |
| | | @ApiModelProperty(value= "ä»»å¡ç±»å") |
| | | @ApiModelProperty(value = "ä»»å¡ç±»å") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * ä¼å
级 |
| | | */ |
| | | @ApiModelProperty(value= "ä¼å
级") |
| | | @ApiModelProperty(value = "ä¼å
级") |
| | | @TableField("io_pri") |
| | | private Double ioPri; |
| | | |
| | | /** |
| | | * èµ·ç¹ |
| | | */ |
| | | @ApiModelProperty(value= "èµ·ç¹") |
| | | @ApiModelProperty(value = "èµ·ç¹") |
| | | @TableField("start_point") |
| | | private String startPoint; |
| | | |
| | | /** |
| | | * ç»ç¹ |
| | | */ |
| | | @ApiModelProperty(value= "ç»ç¹") |
| | | @ApiModelProperty(value = "ç»ç¹") |
| | | @TableField("target_point") |
| | | private String targetPoint; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * æ´¾åæ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ´¾åæ¶é´") |
| | | @ApiModelProperty(value = "æ´¾åæ¶é´") |
| | | @TableField("assign_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date assignTime; |
| | | |
| | | /** |
| | | * æ§è¡æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ§è¡æ¶é´") |
| | | @ApiModelProperty(value = "æ§è¡æ¶é´") |
| | | @TableField("execute_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date executeTime; |
| | | |
| | | /** |
| | | * å®ç»æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å®ç»æ¶é´") |
| | | @ApiModelProperty(value = "å®ç»æ¶é´") |
| | | @TableField("complete_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date completeTime; |
| | | |
| | | /** |
| | | * åæ¶æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "åæ¶æ¶é´") |
| | | @ApiModelProperty(value = "åæ¶æ¶é´") |
| | | @TableField("cancel_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date cancelTime; |
| | | |
| | | /** |
| | | * å·¥ä½ç¶æ |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½ç¶æ") |
| | | @ApiModelProperty(value = "å·¥ä½ç¶æ") |
| | | @TableField("wrk_sts") |
| | | private Integer wrkSts; |
| | | |
| | | /** |
| | | * å åæºå· |
| | | */ |
| | | @ApiModelProperty(value= "å åæºå·") |
| | | @ApiModelProperty(value = "å åæºå·") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * æä»¤æ§è¡æ¥åº |
| | | */ |
| | | @ApiModelProperty(value= "æä»¤æ§è¡æ¥åº") |
| | | @ApiModelProperty(value = "æä»¤æ§è¡æ¥åº") |
| | | @TableField("command_step") |
| | | private Integer commandStep; |
| | | |
| | |
| | | @TableField("transfer_mark") |
| | | private Integer transferMark; |
| | | |
| | | public TaskWrkLog() {} |
| | | public TaskWrkLog() { |
| | | } |
| | | |
| | | public TaskWrkLog(String taskNo,Integer status,Integer wrkNo,Date createTime,Integer ioType,Double ioPri,String startPoint,String targetPoint,Long modiUser,Date modiTime,String memo,String barcode,Date assignTime,Date executeTime,Date completeTime,Date cancelTime,Integer wrkSts,Integer crnNo,Integer commandStep) { |
| | | public TaskWrkLog(String taskNo, Integer status, Integer wrkNo, Date createTime, Integer ioType, Double ioPri, String startPoint, String targetPoint, Long modiUser, Date modiTime, String memo, String barcode, Date assignTime, Date executeTime, Date completeTime, Date cancelTime, Integer wrkSts, Integer crnNo, Integer commandStep) { |
| | | this.taskNo = taskNo; |
| | | this.status = status; |
| | | this.wrkNo = wrkNo; |
| | |
| | | this.crnNo = crnNo; |
| | | this.commandStep = commandStep; |
| | | } |
| | | |
| | | public TaskWrkLog(TaskWrk taskWrk) { |
| | | this.taskNo = taskWrk.getTaskNo(); |
| | | this.status = taskWrk.getStatus(); |
| | | this.wrkNo = taskWrk.getWrkNo(); |
| | | this.createTime = taskWrk.getCreateTime(); |
| | | this.ioType = taskWrk.getIoType(); |
| | | if (Cools.isEmpty(taskWrk.getIoPri())){ |
| | | if (Cools.isEmpty(taskWrk.getIoPri())) { |
| | | taskWrk.setIoPri(1); |
| | | } |
| | | this.ioPri = (double)taskWrk.getIoPri(); |
| | | this.ioPri = (double) taskWrk.getIoPri(); |
| | | this.startPoint = taskWrk.getStartPoint(); |
| | | this.targetPoint = taskWrk.getTargetPoint(); |
| | | this.modiUser = taskWrk.getModiUser(); |
| | |
| | | |
| | | // ); |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "æ¥æ¶"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | public String getIoType$() { |
| | | BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class); |
| | | BasWrkIotype basWrkIotype = service.selectById(this.ioType); |
| | | if (!Cools.isEmpty(basWrkIotype)){ |
| | | if (!Cools.isEmpty(basWrkIotype)) { |
| | | return String.valueOf(basWrkIotype.getIoDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAssignTime$(){ |
| | | if (Cools.isEmpty(this.assignTime)){ |
| | | public String getAssignTime$() { |
| | | if (Cools.isEmpty(this.assignTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.assignTime); |
| | | } |
| | | |
| | | public String getExecuteTime$(){ |
| | | if (Cools.isEmpty(this.executeTime)){ |
| | | public String getExecuteTime$() { |
| | | if (Cools.isEmpty(this.executeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.executeTime); |
| | | } |
| | | |
| | | public String getCompleteTime$(){ |
| | | if (Cools.isEmpty(this.completeTime)){ |
| | | public String getCompleteTime$() { |
| | | if (Cools.isEmpty(this.completeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.completeTime); |
| | | } |
| | | |
| | | public String getCancelTime$(){ |
| | | if (Cools.isEmpty(this.cancelTime)){ |
| | | public String getCancelTime$() { |
| | | if (Cools.isEmpty(this.cancelTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.cancelTime); |
| | | } |
| | | |
| | | public String getWrkSts$(){ |
| | | public String getWrkSts$() { |
| | | BasWrkStatusService service = SpringUtils.getBean(BasWrkStatusService.class); |
| | | BasWrkStatus basWrkStatus = service.selectById(this.wrkSts); |
| | | if (!Cools.isEmpty(basWrkStatus)){ |
| | | if (!Cools.isEmpty(basWrkStatus)) { |
| | | return String.valueOf(basWrkStatus.getWrkDesc()); |
| | | } |
| | | return null; |
| New file |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("wcs_task_wrk_report") |
| | | public class TaskWrkReport implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * wmsä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value = "wmsä»»å¡å·") |
| | | @TableField("task_no") |
| | | private String taskNo; |
| | | |
| | | /** |
| | | * ä»»å¡ç¶æ 1: æ¥æ¶ 2: æ´¾å 3: å®ç» 4: åæ¶ |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡ç¶æ 1: æ¥æ¶ 2: æ´¾å 5: å®ç» 4: åæ¶ ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * ä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 任塿¶é´(æ¥æ¶æ¶é´) |
| | | */ |
| | | @ApiModelProperty(value = "任塿¶é´(æ¥æ¶æ¶é´)") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * ä»»å¡ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡ç±»å") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * ä¼å
级 |
| | | */ |
| | | @ApiModelProperty(value = "ä¼å
级") |
| | | @TableField("io_pri") |
| | | private Integer ioPri; |
| | | |
| | | /** |
| | | * èµ·ç¹ |
| | | */ |
| | | @ApiModelProperty(value = "èµ·ç¹") |
| | | @TableField("start_point") |
| | | private String startPoint; |
| | | |
| | | /** |
| | | * ç»ç¹ |
| | | */ |
| | | @ApiModelProperty(value = "ç»ç¹") |
| | | @TableField("target_point") |
| | | private String targetPoint; |
| | | |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("wcs_task_wrk_report_log") |
| | | public class TaskWrkReportLog implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * wmsä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value = "wmsä»»å¡å·") |
| | | @TableId(value = "task_no", type = IdType.INPUT) |
| | | @TableField("task_no") |
| | | private String taskNo; |
| | | |
| | | /** |
| | | * ä»»å¡ç¶æ 1: æ¥æ¶ 2: æ´¾å 3: å®ç» 4: åæ¶ |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡ç¶æ 1: æ¥æ¶ 2: æ´¾å 5: å®ç» 4: åæ¶ ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * ä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 任塿¶é´(æ¥æ¶æ¶é´) |
| | | */ |
| | | @ApiModelProperty(value = "任塿¶é´(æ¥æ¶æ¶é´)") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * ä»»å¡ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "ä»»å¡ç±»å") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * ä¼å
级 |
| | | */ |
| | | @ApiModelProperty(value = "ä¼å
级") |
| | | @TableField("io_pri") |
| | | private Integer ioPri; |
| | | |
| | | /** |
| | | * èµ·ç¹ |
| | | */ |
| | | @ApiModelProperty(value = "èµ·ç¹") |
| | | @TableField("start_point") |
| | | private String startPoint; |
| | | |
| | | /** |
| | | * ç»ç¹ |
| | | */ |
| | | @ApiModelProperty(value = "ç»ç¹") |
| | | @TableField("target_point") |
| | | private String targetPoint; |
| | | |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | } |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import io.swagger.models.auth.In; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | |
| | | //åºä½ç±»å |
| | | private Integer locType; |
| | | |
| | | public ToWmsDTO(String barcode, Integer stationCode, Integer locType){ |
| | | public ToWmsDTO(String barcode, Integer stationCode, Integer locType) { |
| | | this.BoxNo = barcode; |
| | | this.stationCode = stationCode; |
| | | this.locType = locType; |
| | | } |
| | | |
| | | public ToWmsDTO(){ |
| | | public ToWmsDTO() { |
| | | |
| | | } |
| | | } |
| | |
| | | * @date 2018å¹´11æ24æ¥ |
| | | */ |
| | | public class ViewInOutBean { |
| | | private String ymd; |
| | | private String ymd; |
| | | private String source_sta_no; |
| | | private Long sto_qty; |
| | | private Long ret_qty; |
| | |
| | | private int pageSize; |
| | | private String begin_date; //æ¥è¯¢å¼å§æ¥æ |
| | | private String end_date; //æ¥è¯¢æªæ¢æ¥æ |
| | | |
| | | public String getYmd() { |
| | | return ymd; |
| | | } |
| | | public void setYmd(String ymd) { |
| | | this.ymd = ymd; |
| | | } |
| | | public String getSource_sta_no() { |
| | | return source_sta_no; |
| | | } |
| | | public void setSource_sta_no(String source_sta_no) { |
| | | this.source_sta_no = source_sta_no; |
| | | } |
| | | public Long getSto_qty() { |
| | | return sto_qty; |
| | | } |
| | | public void setSto_qty(Long sto_qty) { |
| | | this.sto_qty = sto_qty; |
| | | } |
| | | public Long getRet_qty() { |
| | | return ret_qty; |
| | | } |
| | | public void setRet_qty(Long ret_qty) { |
| | | this.ret_qty = ret_qty; |
| | | } |
| | | public Long getTotal_qty() { |
| | | return total_qty; |
| | | } |
| | | public void setTotal_qty(Long total_qty) { |
| | | this.total_qty = total_qty; |
| | | } |
| | | public int getPageNumber() { |
| | | return pageNumber; |
| | | } |
| | | public void setPageNumber(int pageNumber) { |
| | | this.pageNumber = pageNumber; |
| | | } |
| | | public int getPageSize() { |
| | | return pageSize; |
| | | } |
| | | public void setPageSize(int pageSize) { |
| | | this.pageSize = pageSize; |
| | | } |
| | | public String getBegin_date() { |
| | | return begin_date; |
| | | } |
| | | public void setBegin_date(String begin_date) { |
| | | this.begin_date = begin_date; |
| | | } |
| | | public String getEnd_date() { |
| | | return end_date; |
| | | } |
| | | public void setEnd_date(String end_date) { |
| | | this.end_date = end_date; |
| | | } |
| | | |
| | | public String getYmd() { |
| | | return ymd; |
| | | } |
| | | |
| | | public void setYmd(String ymd) { |
| | | this.ymd = ymd; |
| | | } |
| | | |
| | | public String getSource_sta_no() { |
| | | return source_sta_no; |
| | | } |
| | | |
| | | public void setSource_sta_no(String source_sta_no) { |
| | | this.source_sta_no = source_sta_no; |
| | | } |
| | | |
| | | public Long getSto_qty() { |
| | | return sto_qty; |
| | | } |
| | | |
| | | public void setSto_qty(Long sto_qty) { |
| | | this.sto_qty = sto_qty; |
| | | } |
| | | |
| | | public Long getRet_qty() { |
| | | return ret_qty; |
| | | } |
| | | |
| | | public void setRet_qty(Long ret_qty) { |
| | | this.ret_qty = ret_qty; |
| | | } |
| | | |
| | | public Long getTotal_qty() { |
| | | return total_qty; |
| | | } |
| | | |
| | | public void setTotal_qty(Long total_qty) { |
| | | this.total_qty = total_qty; |
| | | } |
| | | |
| | | public int getPageNumber() { |
| | | return pageNumber; |
| | | } |
| | | |
| | | public void setPageNumber(int pageNumber) { |
| | | this.pageNumber = pageNumber; |
| | | } |
| | | |
| | | public int getPageSize() { |
| | | return pageSize; |
| | | } |
| | | |
| | | public void setPageSize(int pageSize) { |
| | | this.pageSize = pageSize; |
| | | } |
| | | |
| | | public String getBegin_date() { |
| | | return begin_date; |
| | | } |
| | | |
| | | public void setBegin_date(String begin_date) { |
| | | this.begin_date = begin_date; |
| | | } |
| | | |
| | | public String getEnd_date() { |
| | | return end_date; |
| | | } |
| | | |
| | | public void setEnd_date(String end_date) { |
| | | this.end_date = end_date; |
| | | } |
| | | } |
| | |
| | | |
| | | public void setLocSts(String locSts) { |
| | | this.locSts = locSts; |
| | | switch (locSts){ |
| | | switch (locSts) { |
| | | case "D": |
| | | this.bgc = "#00B271"; |
| | | this.color = "#fff"; |
| | |
| | | @Data |
| | | public class ViewStayTimeBean { |
| | | |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | |
| | | private int stay_time; |
| | | private int stay_time; |
| | | |
| | | private String begin_date; |
| | | private String end_date; |
| | | private String begin_date; |
| | | private String end_date; |
| | | |
| | | private Integer row; |
| | | private Integer row; |
| | | |
| | | @ApiModelProperty(value= "åºä½å·") |
| | | private String loc_no; |
| | | @ApiModelProperty(value = "åºä½å·") |
| | | private String loc_no; |
| | | |
| | | @ApiModelProperty(value= "æçæ¡ç ") |
| | | private String zpallet; |
| | | @ApiModelProperty(value = "æçæ¡ç ") |
| | | private String zpallet; |
| | | |
| | | @ApiModelProperty(value= "æ°é") |
| | | private Double anfme; |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "ååç¼å·") |
| | | private String matnr; |
| | | @ApiModelProperty(value = "ååç¼å·") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "åååç§°") |
| | | private String maktx; |
| | | @ApiModelProperty(value = "åååç§°") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "æ¹å·") |
| | | private String batch; |
| | | @ApiModelProperty(value = "æ¹å·") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "åæ®ç¼å·") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | @ApiModelProperty(value = "åæ®ç¼å·") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "è§æ ¼") |
| | | private String specs; |
| | | @ApiModelProperty(value = "è§æ ¼") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "åå·") |
| | | private String model; |
| | | @ApiModelProperty(value = "åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "é¢è²") |
| | | private String color; |
| | | @ApiModelProperty(value = "é¢è²") |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "åç") |
| | | private String brand; |
| | | @ApiModelProperty(value = "åç") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "åä½") |
| | | private String unit; |
| | | @ApiModelProperty(value = "åä½") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "åä»·") |
| | | private Double price; |
| | | @ApiModelProperty(value = "åä»·") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | | private String sku; |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ApiModelProperty(value= "åä½é") |
| | | private Double units; |
| | | @ApiModelProperty(value = "åä½é") |
| | | private Double units; |
| | | |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | private String barcode; |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "产å°") |
| | | private String origin; |
| | | @ApiModelProperty(value = "产å°") |
| | | private String origin; |
| | | |
| | | @ApiModelProperty(value= "åå®¶") |
| | | private String manu; |
| | | @ApiModelProperty(value = "åå®¶") |
| | | private String manu; |
| | | |
| | | @ApiModelProperty(value= "çäº§æ¥æ") |
| | | private String manu_date; |
| | | @ApiModelProperty(value = "çäº§æ¥æ") |
| | | private String manu_date; |
| | | |
| | | @ApiModelProperty(value= "å项æ°") |
| | | private String item_num; |
| | | @ApiModelProperty(value = "å项æ°") |
| | | private String item_num; |
| | | |
| | | @ApiModelProperty(value= "å®å
¨åºåé") |
| | | private Double safe_qty; |
| | | @ApiModelProperty(value = "å®å
¨åºåé") |
| | | private Double safe_qty; |
| | | |
| | | @ApiModelProperty(value= "éé") |
| | | private Double weight; |
| | | @ApiModelProperty(value = "éé") |
| | | private Double weight; |
| | | |
| | | @ApiModelProperty(value= "é¿åº¦") |
| | | private Double length; |
| | | @ApiModelProperty(value = "é¿åº¦") |
| | | private Double length; |
| | | |
| | | @ApiModelProperty(value= "ä½ç§¯") |
| | | private Double volume; |
| | | @ApiModelProperty(value = "ä½ç§¯") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "䏿¹ç¼ç ") |
| | | private String three_code; |
| | | @ApiModelProperty(value = "䏿¹ç¼ç ") |
| | | private String three_code; |
| | | |
| | | @ApiModelProperty(value= "ä¾åºå") |
| | | private String supp; |
| | | @ApiModelProperty(value = "ä¾åºå") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "ä¾åºåç¼ç ") |
| | | private String supp_code; |
| | | @ApiModelProperty(value = "ä¾åºåç¼ç ") |
| | | private String supp_code; |
| | | |
| | | @ApiModelProperty(value= "æ¯å¦æ¹æ¬¡ 1: æ¯ 0: å¦ ") |
| | | private Integer be_batch; |
| | | @ApiModelProperty(value = "æ¯å¦æ¹æ¬¡ 1: æ¯ 0: å¦ ") |
| | | private Integer be_batch; |
| | | |
| | | @ApiModelProperty(value= "ä¿è´¨æ") |
| | | private String dead_time; |
| | | @ApiModelProperty(value = "ä¿è´¨æ") |
| | | private String dead_time; |
| | | |
| | | @ApiModelProperty(value= "é¢è¦å¤©æ°") |
| | | private Integer dead_warn; |
| | | @ApiModelProperty(value = "é¢è¦å¤©æ°") |
| | | private Integer dead_warn; |
| | | |
| | | @ApiModelProperty(value= "å¶è´ 1: å¶é 2: éè´ 3: å¤å ") |
| | | private Integer source; |
| | | @ApiModelProperty(value = "å¶è´ 1: å¶é 2: éè´ 3: å¤å ") |
| | | private Integer source; |
| | | |
| | | @ApiModelProperty(value= "è¦æ±æ£éª 1: æ¯ 0: å¦ ") |
| | | private Integer inspect; |
| | | @ApiModelProperty(value = "è¦æ±æ£éª 1: æ¯ 0: å¦ ") |
| | | private Integer inspect; |
| | | |
| | | @ApiModelProperty(value= "å±é©å 1: æ¯ 0: å¦ ") |
| | | private Integer danger; |
| | | @ApiModelProperty(value = "å±é©å 1: æ¯ 0: å¦ ") |
| | | private Integer danger; |
| | | |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | private Long modi_user; |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | private Long modi_user; |
| | | |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | private Date modi_time; |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | private Date modi_time; |
| | | |
| | | @ApiModelProperty(value= "å建è
") |
| | | private Long appe_user; |
| | | @ApiModelProperty(value = "å建è
") |
| | | private Long appe_user; |
| | | |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | private Date appe_time; |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | private Date appe_time; |
| | | |
| | | @ApiModelProperty(value= "夿³¨") |
| | | private String memo; |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modi_user); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modi_user); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modi_time)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modi_time); |
| | | } |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modi_time)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modi_time); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appe_user); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appe_user); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appe_time)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appe_time); |
| | | } |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appe_time)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appe_time); |
| | | } |
| | | |
| | | } |
| | |
| | | * @date 2018å¹´11æ23æ¥ |
| | | */ |
| | | public class ViewStockUseBean { |
| | | private String row1; //颿¶å· |
| | | private Long total_qty; //åºä½æ»æ° |
| | | private Long full_qty; //å¨åºæ°é |
| | | private Long null_qty; //空åºä½ |
| | | private String row1; //颿¶å· |
| | | private Long total_qty; //åºä½æ»æ° |
| | | private Long full_qty; //å¨åºæ°é |
| | | private Long null_qty; //空åºä½ |
| | | private Long forbid_qty; //ç¦ç¨åºä½ |
| | | private Long empty_qty; //ç©ºå®¹å¨ |
| | | private Long empty_qty; //ç©ºå®¹å¨ |
| | | private String full_rate; //å¨åºç |
| | | private String occ_rate; //使ç¨ç |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | |
| | | public String getRow1() { |
| | | return row1; |
| | | } |
| | | public void setRow1(String row1) { |
| | | this.row1 = row1; |
| | | } |
| | | public Long getTotal_qty() { |
| | | return total_qty; |
| | | } |
| | | public void setTotal_qty(Long total_qty) { |
| | | this.total_qty = total_qty; |
| | | } |
| | | public Long getFull_qty() { |
| | | return full_qty; |
| | | } |
| | | public void setFull_qty(Long full_qty) { |
| | | this.full_qty = full_qty; |
| | | } |
| | | public Long getNull_qty() { |
| | | return null_qty; |
| | | } |
| | | public void setNull_qty(Long null_qty) { |
| | | this.null_qty = null_qty; |
| | | } |
| | | public Long getForbid_qty() { |
| | | return forbid_qty; |
| | | } |
| | | public void setForbid_qty(Long forbid_qty) { |
| | | this.forbid_qty = forbid_qty; |
| | | } |
| | | public Long getEmpty_qty() { |
| | | return empty_qty; |
| | | } |
| | | public void setEmpty_qty(Long empty_qty) { |
| | | this.empty_qty = empty_qty; |
| | | } |
| | | public String getFull_rate() { |
| | | return full_rate; |
| | | } |
| | | public void setFull_rate(String full_rate) { |
| | | this.full_rate = full_rate; |
| | | } |
| | | public String getOcc_rate() { |
| | | return occ_rate; |
| | | } |
| | | public void setOcc_rate(String occ_rate) { |
| | | this.occ_rate = occ_rate; |
| | | } |
| | | public int getPageNumber() { |
| | | return pageNumber; |
| | | } |
| | | public void setPageNumber(int pageNumber) { |
| | | this.pageNumber = pageNumber; |
| | | } |
| | | public int getPageSize() { |
| | | return pageSize; |
| | | } |
| | | public void setPageSize(int pageSize) { |
| | | this.pageSize = pageSize; |
| | | } |
| | | |
| | | public String getRow1() { |
| | | return row1; |
| | | } |
| | | |
| | | public void setRow1(String row1) { |
| | | this.row1 = row1; |
| | | } |
| | | |
| | | public Long getTotal_qty() { |
| | | return total_qty; |
| | | } |
| | | |
| | | public void setTotal_qty(Long total_qty) { |
| | | this.total_qty = total_qty; |
| | | } |
| | | |
| | | public Long getFull_qty() { |
| | | return full_qty; |
| | | } |
| | | |
| | | public void setFull_qty(Long full_qty) { |
| | | this.full_qty = full_qty; |
| | | } |
| | | |
| | | public Long getNull_qty() { |
| | | return null_qty; |
| | | } |
| | | |
| | | public void setNull_qty(Long null_qty) { |
| | | this.null_qty = null_qty; |
| | | } |
| | | |
| | | public Long getForbid_qty() { |
| | | return forbid_qty; |
| | | } |
| | | |
| | | public void setForbid_qty(Long forbid_qty) { |
| | | this.forbid_qty = forbid_qty; |
| | | } |
| | | |
| | | public Long getEmpty_qty() { |
| | | return empty_qty; |
| | | } |
| | | |
| | | public void setEmpty_qty(Long empty_qty) { |
| | | this.empty_qty = empty_qty; |
| | | } |
| | | |
| | | public String getFull_rate() { |
| | | return full_rate; |
| | | } |
| | | |
| | | public void setFull_rate(String full_rate) { |
| | | this.full_rate = full_rate; |
| | | } |
| | | |
| | | public String getOcc_rate() { |
| | | return occ_rate; |
| | | } |
| | | |
| | | public void setOcc_rate(String occ_rate) { |
| | | this.occ_rate = occ_rate; |
| | | } |
| | | |
| | | public int getPageNumber() { |
| | | return pageNumber; |
| | | } |
| | | |
| | | public void setPageNumber(int pageNumber) { |
| | | this.pageNumber = pageNumber; |
| | | } |
| | | |
| | | public int getPageSize() { |
| | | return pageSize; |
| | | } |
| | | |
| | | public void setPageSize(int pageSize) { |
| | | this.pageSize = pageSize; |
| | | } |
| | | |
| | | } |
| | |
| | | public class ViewWorkInBean { |
| | | |
| | | |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | |
| | | private int stay_time; |
| | | private int stay_time; |
| | | |
| | | private String begin_date; |
| | | private String end_date; |
| | | private String query_date; |
| | | private String begin_date; |
| | | private String end_date; |
| | | private String query_date; |
| | | |
| | | private Integer row; |
| | | private Integer row; |
| | | |
| | | private String crn_str_time; |
| | | private String crn_end_time; |
| | | private String crn_str_time; |
| | | private String crn_end_time; |
| | | |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | private Integer wrk_no; |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | private Integer wrk_no; |
| | | |
| | | @ApiModelProperty(value= "工使¶é´") |
| | | private Date io_time; |
| | | @ApiModelProperty(value = "工使¶é´") |
| | | private Date io_time; |
| | | |
| | | @ApiModelProperty(value= "åºä½å·") |
| | | private String loc_no; |
| | | @ApiModelProperty(value = "åºä½å·") |
| | | private String loc_no; |
| | | |
| | | @ApiModelProperty(value= "æçæ¡ç ") |
| | | private String zpallet; |
| | | @ApiModelProperty(value = "æçæ¡ç ") |
| | | private String zpallet; |
| | | |
| | | @ApiModelProperty(value= "æ°é") |
| | | private Double anfme; |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "ååç¼å·") |
| | | private String matnr; |
| | | @ApiModelProperty(value = "ååç¼å·") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "åååç§°") |
| | | private String maktx; |
| | | @ApiModelProperty(value = "åååç§°") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "æ¹å·") |
| | | private String batch; |
| | | @ApiModelProperty(value = "æ¹å·") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "åæ®ç¼å·") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | @ApiModelProperty(value = "åæ®ç¼å·") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "è§æ ¼") |
| | | private String specs; |
| | | @ApiModelProperty(value = "è§æ ¼") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "åå·") |
| | | private String model; |
| | | @ApiModelProperty(value = "åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "é¢è²") |
| | | private String color; |
| | | @ApiModelProperty(value = "é¢è²") |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "åç") |
| | | private String brand; |
| | | @ApiModelProperty(value = "åç") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "åä½") |
| | | private String unit; |
| | | @ApiModelProperty(value = "åä½") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "åä»·") |
| | | private Double price; |
| | | @ApiModelProperty(value = "åä»·") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | | private String sku; |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ApiModelProperty(value= "åä½é") |
| | | private Double units; |
| | | @ApiModelProperty(value = "åä½é") |
| | | private Double units; |
| | | |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | private String barcode; |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "产å°") |
| | | private String origin; |
| | | @ApiModelProperty(value = "产å°") |
| | | private String origin; |
| | | |
| | | @ApiModelProperty(value= "åå®¶") |
| | | private String manu; |
| | | @ApiModelProperty(value = "åå®¶") |
| | | private String manu; |
| | | |
| | | @ApiModelProperty(value= "çäº§æ¥æ") |
| | | private String manu_date; |
| | | @ApiModelProperty(value = "çäº§æ¥æ") |
| | | private String manu_date; |
| | | |
| | | @ApiModelProperty(value= "å项æ°") |
| | | private String item_num; |
| | | @ApiModelProperty(value = "å项æ°") |
| | | private String item_num; |
| | | |
| | | @ApiModelProperty(value= "å®å
¨åºåé") |
| | | private Double safe_qty; |
| | | @ApiModelProperty(value = "å®å
¨åºåé") |
| | | private Double safe_qty; |
| | | |
| | | @ApiModelProperty(value= "éé") |
| | | private Double weight; |
| | | @ApiModelProperty(value = "éé") |
| | | private Double weight; |
| | | |
| | | @ApiModelProperty(value= "é¿åº¦") |
| | | private Double length; |
| | | @ApiModelProperty(value = "é¿åº¦") |
| | | private Double length; |
| | | |
| | | @ApiModelProperty(value= "ä½ç§¯") |
| | | private Double volume; |
| | | @ApiModelProperty(value = "ä½ç§¯") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "䏿¹ç¼ç ") |
| | | private String three_code; |
| | | @ApiModelProperty(value = "䏿¹ç¼ç ") |
| | | private String three_code; |
| | | |
| | | @ApiModelProperty(value= "ä¾åºå") |
| | | private String supp; |
| | | @ApiModelProperty(value = "ä¾åºå") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "ä¾åºåç¼ç ") |
| | | private String supp_code; |
| | | @ApiModelProperty(value = "ä¾åºåç¼ç ") |
| | | private String supp_code; |
| | | |
| | | @ApiModelProperty(value= "æ¯å¦æ¹æ¬¡ 1: æ¯ 0: å¦ ") |
| | | private Integer be_batch; |
| | | @ApiModelProperty(value = "æ¯å¦æ¹æ¬¡ 1: æ¯ 0: å¦ ") |
| | | private Integer be_batch; |
| | | |
| | | @ApiModelProperty(value= "ä¿è´¨æ") |
| | | private String dead_time; |
| | | @ApiModelProperty(value = "ä¿è´¨æ") |
| | | private String dead_time; |
| | | |
| | | @ApiModelProperty(value= "é¢è¦å¤©æ°") |
| | | private Integer dead_warn; |
| | | @ApiModelProperty(value = "é¢è¦å¤©æ°") |
| | | private Integer dead_warn; |
| | | |
| | | @ApiModelProperty(value= "å¶è´ 1: å¶é 2: éè´ 3: å¤å ") |
| | | private Integer source; |
| | | @ApiModelProperty(value = "å¶è´ 1: å¶é 2: éè´ 3: å¤å ") |
| | | private Integer source; |
| | | |
| | | @ApiModelProperty(value= "è¦æ±æ£éª 1: æ¯ 0: å¦ ") |
| | | private Integer inspect; |
| | | @ApiModelProperty(value = "è¦æ±æ£éª 1: æ¯ 0: å¦ ") |
| | | private Integer inspect; |
| | | |
| | | @ApiModelProperty(value= "å±é©å 1: æ¯ 0: å¦ ") |
| | | private Integer danger; |
| | | @ApiModelProperty(value = "å±é©å 1: æ¯ 0: å¦ ") |
| | | private Integer danger; |
| | | |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | private Long modi_user; |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | private Long modi_user; |
| | | |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | private Object modi_time; |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | private Object modi_time; |
| | | |
| | | @ApiModelProperty(value= "å建è
") |
| | | private Long appe_user; |
| | | @ApiModelProperty(value = "å建è
") |
| | | private Long appe_user; |
| | | |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | private Object appe_time; |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | private Object appe_time; |
| | | |
| | | @ApiModelProperty(value= "夿³¨") |
| | | private String memo; |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modi_user); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modi_user); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appe_user); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appe_user); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.io_time)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.io_time); |
| | | } |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.io_time)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.io_time); |
| | | } |
| | | |
| | | public void setQuery_date(String query_date) { |
| | | this.query_date = query_date; |
| | | if (query_date.contains(" - ")) { |
| | | String[] dates = query_date.split(" - "); |
| | | this.begin_date = dates[0]; |
| | | this.end_date = dates[1]; |
| | | public void setQuery_date(String query_date) { |
| | | this.query_date = query_date; |
| | | if (query_date.contains(" - ")) { |
| | | String[] dates = query_date.split(" - "); |
| | | this.begin_date = dates[0]; |
| | | this.end_date = dates[1]; |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | /** |
| | | * ç©æ |
| | | */ |
| | | @ApiModelProperty(value= "ååç¼å·") |
| | | @ApiModelProperty(value = "ååç¼å·") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * ç©ææè¿° |
| | | */ |
| | | @ApiModelProperty(value= "åååç§°") |
| | | @ApiModelProperty(value = "åååç§°") |
| | | private String maktx; |
| | | |
| | | |
| | | /** |
| | | * ä»åºå· |
| | | */ |
| | | @ApiModelProperty(value= "è§æ ¼") |
| | | @ApiModelProperty(value = "è§æ ¼") |
| | | private String lgnum; |
| | | |
| | | /** |
| | | * ä»åºå· |
| | | */ |
| | | @ApiModelProperty(value= "åå·") |
| | | @ApiModelProperty(value = "åå·") |
| | | private String type; |
| | | |
| | | /** |
| | | * ä»åºå· |
| | | */ |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String color; |
| | | |
| | | /** |
| | | * ä»åºå· |
| | | */ |
| | | @ApiModelProperty(value= "æ¹å·") |
| | | @ApiModelProperty(value = "æ¹å·") |
| | | private String supplier; |
| | | |
| | | /** |
| | | * ä»åºå· |
| | | */ |
| | | @ApiModelProperty(value= "åæ®ç¼å·") |
| | | @ApiModelProperty(value = "åæ®ç¼å·") |
| | | private String warehouse; |
| | | |
| | | /** |
| | | * ä»åºå· |
| | | */ |
| | | @ApiModelProperty(value= "å项æ°") |
| | | @ApiModelProperty(value = "å项æ°") |
| | | private String brand; |
| | | |
| | | /** |
| | | * æ°é |
| | | */ |
| | | @ApiModelProperty(value= "æ°é") |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * åä½ |
| | | */ |
| | | @ApiModelProperty(value= "åä½") |
| | | @ApiModelProperty(value = "åä½") |
| | | private String altme; |
| | | |
| | | /** |
| | | * æçæ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æçæ¡ç ") |
| | | @ApiModelProperty(value = "æçæ¡ç ") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * ç¨æ·ID |
| | | */ |
| | | @ApiModelProperty(value= "客æ·åç§°") |
| | | @ApiModelProperty(value = "客æ·åç§°") |
| | | private String bname; |
| | | |
| | | @ApiModelProperty(value= "åºä½å·") |
| | | @ApiModelProperty(value = "åºä½å·") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | @ApiModelProperty(value= "ç¶æ") |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private String status; |
| | | |
| | | @ApiModelProperty(value= "å
¥åºç¶æ") |
| | | @ApiModelProperty(value = "å
¥åºç¶æ") |
| | | @TableField("io_status") |
| | | private String ioStatus; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | @ApiModelProperty(value= "åæ®ç¼å·") |
| | | @ApiModelProperty(value = "åæ®ç¼å·") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "æ¹å·") |
| | | @ApiModelProperty(value = "æ¹å·") |
| | | private String batch; |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 工使¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "工使¶é´") |
| | | @ApiModelProperty(value = "工使¶é´") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | /** |
| | | * æ°é |
| | | */ |
| | | @ApiModelProperty(value= "æ°é") |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * æçæ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æçæ¡ç ") |
| | | @ApiModelProperty(value = "æçæ¡ç ") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * ç©æ |
| | | */ |
| | | @ApiModelProperty(value= "ååç¼å·") |
| | | @ApiModelProperty(value = "ååç¼å·") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * ç©ææè¿° |
| | | */ |
| | | @ApiModelProperty(value= "åååç§°") |
| | | @ApiModelProperty(value = "åååç§°") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * æ¹å· |
| | | */ |
| | | @ApiModelProperty(value= "æ¹å·") |
| | | @ApiModelProperty(value = "æ¹å·") |
| | | private String batch; |
| | | |
| | | /** |
| | | * åæ®ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "åæ®ç¼å·") |
| | | @ApiModelProperty(value = "åæ®ç¼å·") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * è§æ ¼ |
| | | */ |
| | | @ApiModelProperty(value= "è§æ ¼") |
| | | @ApiModelProperty(value = "è§æ ¼") |
| | | private String specs; |
| | | |
| | | /** |
| | | * åå· |
| | | */ |
| | | @ApiModelProperty(value= "åå·") |
| | | @ApiModelProperty(value = "åå·") |
| | | private String model; |
| | | |
| | | /** |
| | | * é¢è² |
| | | */ |
| | | @ApiModelProperty(value= "é¢è²") |
| | | @ApiModelProperty(value = "é¢è²") |
| | | private String color; |
| | | |
| | | /** |
| | | * åç |
| | | */ |
| | | @ApiModelProperty(value= "åç") |
| | | @ApiModelProperty(value = "åç") |
| | | private String brand; |
| | | |
| | | /** |
| | | * åä½ |
| | | */ |
| | | @ApiModelProperty(value= "åä½") |
| | | @ApiModelProperty(value = "åä½") |
| | | private String unit; |
| | | |
| | | /** |
| | | * åä»· |
| | | */ |
| | | @ApiModelProperty(value= "åä»·") |
| | | @ApiModelProperty(value = "åä»·") |
| | | private Double price; |
| | | |
| | | /** |
| | | * sku |
| | | */ |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | /** |
| | | * åä½é |
| | | */ |
| | | @ApiModelProperty(value= "åä½é") |
| | | @ApiModelProperty(value = "åä½é") |
| | | private Double units; |
| | | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * äº§å° |
| | | */ |
| | | @ApiModelProperty(value= "产å°") |
| | | @ApiModelProperty(value = "产å°") |
| | | private String origin; |
| | | |
| | | /** |
| | | * åå®¶ |
| | | */ |
| | | @ApiModelProperty(value= "åå®¶") |
| | | @ApiModelProperty(value = "åå®¶") |
| | | private String manu; |
| | | |
| | | /** |
| | | * çäº§æ¥æ |
| | | */ |
| | | @ApiModelProperty(value= "çäº§æ¥æ") |
| | | @ApiModelProperty(value = "çäº§æ¥æ") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | /** |
| | | * å®å
¨åºåé |
| | | */ |
| | | @ApiModelProperty(value= "å®å
¨åºåé") |
| | | @ApiModelProperty(value = "å®å
¨åºåé") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | /** |
| | | * éé |
| | | */ |
| | | @ApiModelProperty(value= "éé") |
| | | @ApiModelProperty(value = "éé") |
| | | private Double weight; |
| | | |
| | | /** |
| | | * é¿åº¦ |
| | | */ |
| | | @ApiModelProperty(value= "é¿åº¦") |
| | | @ApiModelProperty(value = "é¿åº¦") |
| | | private Double length; |
| | | |
| | | /** |
| | | * ä½ç§¯ |
| | | */ |
| | | @ApiModelProperty(value= "ä½ç§¯") |
| | | @ApiModelProperty(value = "ä½ç§¯") |
| | | private Double volume; |
| | | |
| | | /** |
| | | * 䏿¹ç¼ç |
| | | */ |
| | | @ApiModelProperty(value= "䏿¹ç¼ç ") |
| | | @ApiModelProperty(value = "䏿¹ç¼ç ") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | /** |
| | | * ä¾åºå |
| | | */ |
| | | @ApiModelProperty(value= "ä¾åºå") |
| | | @ApiModelProperty(value = "ä¾åºå") |
| | | private String supp; |
| | | |
| | | /** |
| | | * ä¾åºåç¼ç |
| | | */ |
| | | @ApiModelProperty(value= "ä¾åºåç¼ç ") |
| | | @ApiModelProperty(value = "ä¾åºåç¼ç ") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | /** |
| | | * æ¯å¦æ¹æ¬¡ 1: æ¯ 0: å¦ |
| | | */ |
| | | @ApiModelProperty(value= "æ¯å¦æ¹æ¬¡ 1: æ¯ 0: å¦ ") |
| | | @ApiModelProperty(value = "æ¯å¦æ¹æ¬¡ 1: æ¯ 0: å¦ ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | /** |
| | | * ä¿è´¨æ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿è´¨æ") |
| | | @ApiModelProperty(value = "ä¿è´¨æ") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | /** |
| | | * é¢è¦å¤©æ° |
| | | */ |
| | | @ApiModelProperty(value= "é¢è¦å¤©æ°") |
| | | @ApiModelProperty(value = "é¢è¦å¤©æ°") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | /** |
| | | * å¶è´ 1: å¶é 2: éè´ 3: å¤å |
| | | */ |
| | | @ApiModelProperty(value= "å¶è´ 1: å¶é 2: éè´ 3: å¤å ") |
| | | @ApiModelProperty(value = "å¶è´ 1: å¶é 2: éè´ 3: å¤å ") |
| | | private Integer source; |
| | | |
| | | /** |
| | | * è¦æ±æ£éª 1: æ¯ 0: å¦ |
| | | */ |
| | | @ApiModelProperty(value= "è¦æ±æ£éª 1: æ¯ 0: å¦ ") |
| | | @ApiModelProperty(value = "è¦æ±æ£éª 1: æ¯ 0: å¦ ") |
| | | private Integer inspect; |
| | | |
| | | /** |
| | | * å±é©å 1: æ¯ 0: å¦ |
| | | */ |
| | | @ApiModelProperty(value= "å±é©å 1: æ¯ 0: å¦ ") |
| | | @ApiModelProperty(value = "å±é©å 1: æ¯ 0: å¦ ") |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "æ¯"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "å¶é "; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "æ¯"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "æ¯"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 工使¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "工使¶é´") |
| | | @ApiModelProperty(value = "工使¶é´") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | /** |
| | | * æ°é |
| | | */ |
| | | @ApiModelProperty(value= "æ°é") |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * æçæ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æçæ¡ç ") |
| | | @ApiModelProperty(value = "æçæ¡ç ") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * ç©æ |
| | | */ |
| | | @ApiModelProperty(value= "ååç¼å·") |
| | | @ApiModelProperty(value = "ååç¼å·") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * ç©ææè¿° |
| | | */ |
| | | @ApiModelProperty(value= "åååç§°") |
| | | @ApiModelProperty(value = "åååç§°") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * æ¹å· |
| | | */ |
| | | @ApiModelProperty(value= "æ¹å·") |
| | | @ApiModelProperty(value = "æ¹å·") |
| | | private String batch; |
| | | |
| | | /** |
| | | * åæ®ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "åæ®ç¼å·") |
| | | @ApiModelProperty(value = "åæ®ç¼å·") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * è§æ ¼ |
| | | */ |
| | | @ApiModelProperty(value= "è§æ ¼") |
| | | @ApiModelProperty(value = "è§æ ¼") |
| | | private String specs; |
| | | |
| | | /** |
| | | * åå· |
| | | */ |
| | | @ApiModelProperty(value= "åå·") |
| | | @ApiModelProperty(value = "åå·") |
| | | private String model; |
| | | |
| | | /** |
| | | * é¢è² |
| | | */ |
| | | @ApiModelProperty(value= "é¢è²") |
| | | @ApiModelProperty(value = "é¢è²") |
| | | private String color; |
| | | |
| | | /** |
| | | * åç |
| | | */ |
| | | @ApiModelProperty(value= "åç") |
| | | @ApiModelProperty(value = "åç") |
| | | private String brand; |
| | | |
| | | /** |
| | | * åä½ |
| | | */ |
| | | @ApiModelProperty(value= "åä½") |
| | | @ApiModelProperty(value = "åä½") |
| | | private String unit; |
| | | |
| | | /** |
| | | * åä»· |
| | | */ |
| | | @ApiModelProperty(value= "åä»·") |
| | | @ApiModelProperty(value = "åä»·") |
| | | private Double price; |
| | | |
| | | /** |
| | | * sku |
| | | */ |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | /** |
| | | * åä½é |
| | | */ |
| | | @ApiModelProperty(value= "åä½é") |
| | | @ApiModelProperty(value = "åä½é") |
| | | private Double units; |
| | | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * äº§å° |
| | | */ |
| | | @ApiModelProperty(value= "产å°") |
| | | @ApiModelProperty(value = "产å°") |
| | | private String origin; |
| | | |
| | | /** |
| | | * å®å
¨åºåé |
| | | */ |
| | | @ApiModelProperty(value= "å®å
¨åºåé") |
| | | @ApiModelProperty(value = "å®å
¨åºåé") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | /** |
| | | * éé |
| | | */ |
| | | @ApiModelProperty(value= "éé") |
| | | @ApiModelProperty(value = "éé") |
| | | private Double weight; |
| | | |
| | | /** |
| | | * é¿åº¦ |
| | | */ |
| | | @ApiModelProperty(value= "é¿åº¦") |
| | | @ApiModelProperty(value = "é¿åº¦") |
| | | private Double length; |
| | | |
| | | /** |
| | | * ä½ç§¯ |
| | | */ |
| | | @ApiModelProperty(value= "ä½ç§¯") |
| | | @ApiModelProperty(value = "ä½ç§¯") |
| | | private Double volume; |
| | | |
| | | /** |
| | | * 䏿¹ç¼ç |
| | | */ |
| | | @ApiModelProperty(value= "䏿¹ç¼ç ") |
| | | @ApiModelProperty(value = "䏿¹ç¼ç ") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | /** |
| | | * ä¾åºå |
| | | */ |
| | | @ApiModelProperty(value= "ä¾åºå") |
| | | @ApiModelProperty(value = "ä¾åºå") |
| | | private String supp; |
| | | |
| | | /** |
| | | * ä¾åºåç¼ç |
| | | */ |
| | | @ApiModelProperty(value= "ä¾åºåç¼ç ") |
| | | @ApiModelProperty(value = "ä¾åºåç¼ç ") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | /** |
| | | * å±é©å 1: æ¯ 0: å¦ |
| | | */ |
| | | @ApiModelProperty(value= "å±é©å 1: æ¯ 0: å¦ ") |
| | | @ApiModelProperty(value = "å±é©å 1: æ¯ 0: å¦ ") |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "æ¯"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * ç±»å |
| | | */ |
| | | @ApiModelProperty(value= "ç±»å") |
| | | @ApiModelProperty(value = "ç±»å") |
| | | @TableId(value = "wrk_mk", type = IdType.INPUT) |
| | | @TableField("wrk_mk") |
| | | private Integer wrkMk; |
| | |
| | | /** |
| | | * å½åID |
| | | */ |
| | | @ApiModelProperty(value= "å½åID") |
| | | @ApiModelProperty(value = "å½åID") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * èµ·å§ID |
| | | */ |
| | | @ApiModelProperty(value= "èµ·å§ID") |
| | | @ApiModelProperty(value = "èµ·å§ID") |
| | | @TableField("s_no") |
| | | private Integer sNo; |
| | | |
| | | /** |
| | | * ç»æ¢ID |
| | | */ |
| | | @ApiModelProperty(value= "ç»æ¢ID") |
| | | @ApiModelProperty(value = "ç»æ¢ID") |
| | | @TableField("e_no") |
| | | private Integer eNo; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @TableField("memo_m") |
| | | private String memoM; |
| | | |
| | | public WrkLastno() {} |
| | | public WrkLastno() { |
| | | } |
| | | |
| | | public WrkLastno(Integer wrkNo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer sNo,Integer eNo,String memoM) { |
| | | public WrkLastno(Integer wrkNo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, Integer sNo, Integer eNo, String memoM) { |
| | | this.wrkNo = wrkNo; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public Integer getSNo() { |
| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.mapper.BasWrkIotypeMapper; |
| | | import com.zy.asrs.mapper.BasWrkStatusMapper; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.service.BasCrnpService; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableId(value = "wrk_no", type = IdType.INPUT) |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("inv_wh") |
| | | private String invWh; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Date ymd; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String mk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("whs_type") |
| | | private Integer whsType; |
| | | |
| | | /** |
| | | * å·¥ä½ç¶æ |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½ç¶æ") |
| | | @ApiModelProperty(value = "å·¥ä½ç¶æ") |
| | | @TableField("wrk_sts") |
| | | private Long wrkSts; |
| | | |
| | | /** |
| | | * å
¥åºåºç±»å |
| | | */ |
| | | @ApiModelProperty(value= "å
¥åºåºç±»å") |
| | | @ApiModelProperty(value = "å
¥åºåºç±»å") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * å åæº |
| | | */ |
| | | @ApiModelProperty(value= "å åæº") |
| | | @ApiModelProperty(value = "å åæº") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sheet_no") |
| | | private String sheetNo; |
| | | |
| | | /** |
| | | * ä¼å
级 |
| | | */ |
| | | @ApiModelProperty(value= "ä¼å
级") |
| | | @ApiModelProperty(value = "ä¼å
级") |
| | | @TableField("io_pri") |
| | | private Double ioPri; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("wrk_date") |
| | | private Date wrkDate; |
| | | |
| | | /** |
| | | * ç®æ åºä½ |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ åºä½") |
| | | @ApiModelProperty(value = "ç®æ åºä½") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * ç®æ ç« |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ ç«") |
| | | @ApiModelProperty(value = "ç®æ ç«") |
| | | @TableField("sta_no") |
| | | private Integer staNo; |
| | | |
| | | /** |
| | | * æºç« |
| | | */ |
| | | @ApiModelProperty(value= "æºç«") |
| | | @ApiModelProperty(value = "æºç«") |
| | | @TableField("source_sta_no") |
| | | private Integer sourceStaNo; |
| | | |
| | | /** |
| | | * æºåºä½ |
| | | */ |
| | | @ApiModelProperty(value= "æºåºä½") |
| | | @ApiModelProperty(value = "æºåºä½") |
| | | @TableField("source_loc_no") |
| | | private String sourceLocNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | | |
| | | /** |
| | | * æ£æ |
| | | */ |
| | | @ApiModelProperty(value= "æ£æ") |
| | | @ApiModelProperty(value = "æ£æ") |
| | | private String picking; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("link_mis") |
| | | private String linkMis; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("online_yn") |
| | | private String onlineYn; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("upd_mk") |
| | | private String updMk; |
| | | |
| | | /** |
| | | * éåº |
| | | */ |
| | | @ApiModelProperty(value= "éåº") |
| | | @ApiModelProperty(value = "éåº") |
| | | @TableField("exit_mk") |
| | | private String exitMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("plt_type") |
| | | private Integer pltType; |
| | | |
| | | /** |
| | | * ç©ºæ¿ |
| | | */ |
| | | @ApiModelProperty(value= "空æ¿") |
| | | @ApiModelProperty(value = "空æ¿") |
| | | @TableField("empty_mk") |
| | | private String emptyMk; |
| | | |
| | | /** |
| | | * 工使¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "工使¶é´") |
| | | @ApiModelProperty(value = "工使¶é´") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String packed; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ove_mk") |
| | | private String oveMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("mtn_type") |
| | | private Double mtnType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("user_no") |
| | | private String userNo; |
| | | |
| | | /** |
| | | * å åæºå¯å¨æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å åæºå¯å¨æ¶é´") |
| | | @ApiModelProperty(value = "å åæºå¯å¨æ¶é´") |
| | | @TableField("crn_str_time") |
| | | private Date crnStrTime; |
| | | |
| | | /** |
| | | * å åæºåæ¢æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å åæºåæ¢æ¶é´") |
| | | @ApiModelProperty(value = "å åæºåæ¢æ¶é´") |
| | | @TableField("crn_end_time") |
| | | private Date crnEndTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("plc_str_time") |
| | | private Date plcStrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("crn_pos_time") |
| | | private Date crnPosTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("load_time") |
| | | private Double loadTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("exp_time") |
| | | private Double expTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ref_wrkno") |
| | | private Double refWrkno; |
| | | |
| | | /** |
| | | * æ£ææ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ£ææ¶é´") |
| | | @ApiModelProperty(value = "æ£ææ¶é´") |
| | | @TableField("ref_iotime") |
| | | private Date refIotime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("pause_mk") |
| | | private String pauseMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_time") |
| | | private Date errorTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_memo") |
| | | private String errorMemo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_kind") |
| | | private Integer ctnKind; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("manu_type") |
| | | private String manuType; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value= "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sc_weight") |
| | | private Double scWeight; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_mk") |
| | | private String logMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_err_time") |
| | | private Date logErrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_err_memo") |
| | | private String logErrMemo; |
| | | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("Pdc_type") |
| | | private String PdcType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_no") |
| | | private String ctnNo; |
| | | |
| | | /** |
| | | * æ»¡æ¿ |
| | | */ |
| | | @ApiModelProperty(value= "满æ¿") |
| | | @ApiModelProperty(value = "满æ¿") |
| | | @TableField("full_plt") |
| | | private String fullPlt; |
| | | |
| | | /** |
| | | * wmsä»»å¡å· |
| | | */ |
| | | @ApiModelProperty(value= "wmsä»»å¡å·") |
| | | @ApiModelProperty(value = "wmsä»»å¡å·") |
| | | @TableField("wms_wrk_no") |
| | | private String taskNo; |
| | | |
| | | /** |
| | | * ç»ææ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ç»ææ¶é´") |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | @TableField("end_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date endTime; |
| | | |
| | | //å½ä»¤list |
| | | @TableField(exist = false) |
| | | private List<CommandInfo> children; |
| | | |
| | | public String getWrkSts$(){ |
| | | public String getWrkSts$() { |
| | | BasWrkStatusMapper mapper = SpringUtils.getBean(BasWrkStatusMapper.class); |
| | | BasWrkStatus entity = mapper.selectById(this.wrkSts); |
| | | if (entity != null) { |
| | |
| | | return null; |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | public String getIoType$() { |
| | | BasWrkIotypeMapper mapper = SpringUtils.getBean(BasWrkIotypeMapper.class); |
| | | BasWrkIotype entity = mapper.selectById(this.ioType); |
| | | if (entity != null) { |
| | |
| | | return null; |
| | | } |
| | | |
| | | public String getYmd$(){ |
| | | if (Cools.isEmpty(this.ymd)){ |
| | | public String getYmd$() { |
| | | if (Cools.isEmpty(this.ymd)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ymd); |
| | | } |
| | | |
| | | public String getCrnNo$(){ |
| | | public String getCrnNo$() { |
| | | BasCrnpService service = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = service.selectById(this.crnNo); |
| | | if (!Cools.isEmpty(basCrnp)){ |
| | | if (!Cools.isEmpty(basCrnp)) { |
| | | return String.valueOf(basCrnp.getCrnNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getWrkDate$(){ |
| | | if (Cools.isEmpty(this.wrkDate)){ |
| | | public String getWrkDate$() { |
| | | if (Cools.isEmpty(this.wrkDate)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.wrkDate); |
| | | } |
| | | |
| | | public String getLocNo$(){ |
| | | public String getLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getStaNo$(){ |
| | | public String getStaNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.staNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getSourceStaNo$(){ |
| | | public String getSourceStaNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.sourceStaNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getSourceLocNo$(){ |
| | | public String getSourceLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.sourceLocNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getCrnStrTime$(){ |
| | | if (Cools.isEmpty(this.crnStrTime)){ |
| | | public String getCrnStrTime$() { |
| | | if (Cools.isEmpty(this.crnStrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnStrTime); |
| | | } |
| | | |
| | | public String getCrnEndTime$(){ |
| | | if (Cools.isEmpty(this.crnEndTime)){ |
| | | public String getCrnEndTime$() { |
| | | if (Cools.isEmpty(this.crnEndTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnEndTime); |
| | | } |
| | | |
| | | public String getPlcStrTime$(){ |
| | | if (Cools.isEmpty(this.plcStrTime)){ |
| | | public String getPlcStrTime$() { |
| | | if (Cools.isEmpty(this.plcStrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.plcStrTime); |
| | | } |
| | | |
| | | public String getCrnPosTime$(){ |
| | | if (Cools.isEmpty(this.crnPosTime)){ |
| | | public String getCrnPosTime$() { |
| | | if (Cools.isEmpty(this.crnPosTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnPosTime); |
| | | } |
| | | |
| | | public String getRefIotime$(){ |
| | | if (Cools.isEmpty(this.refIotime)){ |
| | | public String getRefIotime$() { |
| | | if (Cools.isEmpty(this.refIotime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.refIotime); |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getErrorTime$(){ |
| | | if (Cools.isEmpty(this.errorTime)){ |
| | | public String getErrorTime$() { |
| | | if (Cools.isEmpty(this.errorTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime); |
| | |
| | | this.errorMemo = errorMemo; |
| | | } |
| | | |
| | | public String getLogErrTime$(){ |
| | | if (Cools.isEmpty(this.logErrTime)){ |
| | | public String getLogErrTime$() { |
| | | if (Cools.isEmpty(this.logErrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime); |
| | | } |
| | | |
| | | public String getEndTime$(){ |
| | | if (Cools.isEmpty(this.endTime)){ |
| | | public String getEndTime$() { |
| | | if (Cools.isEmpty(this.endTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime); |
| | |
| | | /** |
| | | * ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "ç¼å·") |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * å·¥ä½å· |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½å·") |
| | | @ApiModelProperty(value = "å·¥ä½å·") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("inv_wh") |
| | | private String invWh; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Date ymd; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String mk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("whs_type") |
| | | private Integer whsType; |
| | | |
| | | /** |
| | | * å·¥ä½ç¶æ |
| | | */ |
| | | @ApiModelProperty(value= "å·¥ä½ç¶æ") |
| | | @ApiModelProperty(value = "å·¥ä½ç¶æ") |
| | | @TableField("wrk_sts") |
| | | private Long wrkSts; |
| | | |
| | | /** |
| | | * å
¥åºåºç±»å |
| | | */ |
| | | @ApiModelProperty(value= "å
¥åºåºç±»å") |
| | | @ApiModelProperty(value = "å
¥åºåºç±»å") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * å åæºå· |
| | | */ |
| | | @ApiModelProperty(value= "å åæºå·") |
| | | @ApiModelProperty(value = "å åæºå·") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sheet_no") |
| | | private String sheetNo; |
| | | |
| | | /** |
| | | * ä¼å
级 |
| | | */ |
| | | @ApiModelProperty(value= "ä¼å
级") |
| | | @ApiModelProperty(value = "ä¼å
级") |
| | | @TableField("io_pri") |
| | | private Double ioPri; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("wrk_date") |
| | | private Date wrkDate; |
| | | |
| | | /** |
| | | * ç®æ åºä½ |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ åºä½") |
| | | @ApiModelProperty(value = "ç®æ åºä½") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * ç®æ ç« |
| | | */ |
| | | @ApiModelProperty(value= "ç®æ ç«") |
| | | @ApiModelProperty(value = "ç®æ ç«") |
| | | @TableField("sta_no") |
| | | private Integer staNo; |
| | | |
| | | /** |
| | | * æºç« |
| | | */ |
| | | @ApiModelProperty(value= "æºç«") |
| | | @ApiModelProperty(value = "æºç«") |
| | | @TableField("source_sta_no") |
| | | private Integer sourceStaNo; |
| | | |
| | | /** |
| | | * æºåºä½ |
| | | */ |
| | | @ApiModelProperty(value= "æºåºä½") |
| | | @ApiModelProperty(value = "æºåºä½") |
| | | @TableField("source_loc_no") |
| | | private String sourceLocNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | | |
| | | /** |
| | | * æ£æ |
| | | */ |
| | | @ApiModelProperty(value= "æ£æ") |
| | | @ApiModelProperty(value = "æ£æ") |
| | | private String picking; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("link_mis") |
| | | private String linkMis; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("online_yn") |
| | | private String onlineYn; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("upd_mk") |
| | | private String updMk; |
| | | |
| | | /** |
| | | * éåº |
| | | */ |
| | | @ApiModelProperty(value= "éåº") |
| | | @ApiModelProperty(value = "éåº") |
| | | @TableField("exit_mk") |
| | | private String exitMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("plt_type") |
| | | private Integer pltType; |
| | | |
| | | /** |
| | | * ç©ºæ¿ |
| | | */ |
| | | @ApiModelProperty(value= "空æ¿") |
| | | @ApiModelProperty(value = "空æ¿") |
| | | @TableField("empty_mk") |
| | | private String emptyMk; |
| | | |
| | | /** |
| | | * 工使¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "工使¶é´") |
| | | @ApiModelProperty(value = "工使¶é´") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String packed; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ove_mk") |
| | | private String oveMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("mtn_type") |
| | | private Double mtnType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("user_no") |
| | | private String userNo; |
| | | |
| | | /** |
| | | * å åæºå¯å¨æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å åæºå¯å¨æ¶é´") |
| | | @ApiModelProperty(value = "å åæºå¯å¨æ¶é´") |
| | | @TableField("crn_str_time") |
| | | private Date crnStrTime; |
| | | |
| | | /** |
| | | * å åæºåæ¢æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "å åæºåæ¢æ¶é´") |
| | | @ApiModelProperty(value = "å åæºåæ¢æ¶é´") |
| | | @TableField("crn_end_time") |
| | | private Date crnEndTime; |
| | | |
| | | /** |
| | | * æ£ææ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ£ææ¶é´") |
| | | @ApiModelProperty(value = "æ£ææ¶é´") |
| | | @TableField("plc_str_time") |
| | | private Date plcStrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("crn_pos_time") |
| | | private Date crnPosTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("load_time") |
| | | private Double loadTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("exp_time") |
| | | private Double expTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ref_wrkno") |
| | | private Double refWrkno; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ref_iotime") |
| | | private Date refIotime; |
| | | |
| | | /** |
| | | * ä¿®æ¹äººå |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹äººå") |
| | | @ApiModelProperty(value = "ä¿®æ¹äººå") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ä¿®æ¹æ¶é´") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * å建è
|
| | | */ |
| | | @ApiModelProperty(value= "å建è
") |
| | | @ApiModelProperty(value = "å建è
") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * æ·»å æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "æ·»å æ¶é´") |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("pause_mk") |
| | | private String pauseMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_time") |
| | | private Date errorTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_memo") |
| | | private String errorMemo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_kind") |
| | | private Integer ctnKind; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("manu_type") |
| | | private String manuType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("memo") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sc_weight") |
| | | private Double scWeight; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_mk") |
| | | private String logMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_err_time") |
| | | private Date logErrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_err_memo") |
| | | private String logErrMemo; |
| | | |
| | | /** |
| | | * æ¡ç |
| | | */ |
| | | @ApiModelProperty(value= "æ¡ç ") |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("Pdc_type") |
| | | private String PdcType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_no") |
| | | private String ctnNo; |
| | | |
| | | /** |
| | | * æ»¡æ¿ |
| | | */ |
| | | @ApiModelProperty(value= "满æ¿") |
| | | @ApiModelProperty(value = "满æ¿") |
| | | @TableField("full_plt") |
| | | private String fullPlt; |
| | | |
| | | /** |
| | | * ç©¿æ¢è½¦ |
| | | */ |
| | | @ApiModelProperty(value= "两åç©¿æ¢è½¦") |
| | | @ApiModelProperty(value = "两åç©¿æ¢è½¦") |
| | | @TableField("ste_no") |
| | | private Integer steNo; |
| | | |
| | | /** |
| | | * ç©¿æ¢è½¦ |
| | | */ |
| | | @ApiModelProperty(value= "ååç©¿æ¢è½¦") |
| | | @ApiModelProperty(value = "ååç©¿æ¢è½¦") |
| | | @TableField("shuttle_no") |
| | | private Integer shuttleNo; |
| | | |
| | | /** |
| | | * ç»ææ¶é´ |
| | | */ |
| | | @ApiModelProperty(value= "ç»ææ¶é´") |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | @TableField("end_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date endTime; |
| | | |
| | | public WrkMastLog() {} |
| | | public WrkMastLog() { |
| | | } |
| | | |
| | | public String getWrkNo$(){ |
| | | public String getWrkNo$() { |
| | | WrkMastService service = SpringUtils.getBean(WrkMastService.class); |
| | | WrkMast wrkMast = service.selectById(this.wrkNo); |
| | | if (!Cools.isEmpty(wrkMast)){ |
| | | if (!Cools.isEmpty(wrkMast)) { |
| | | return String.valueOf(wrkMast.getWrkNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getYmd$(){ |
| | | if (Cools.isEmpty(this.ymd)){ |
| | | public String getYmd$() { |
| | | if (Cools.isEmpty(this.ymd)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ymd); |
| | | } |
| | | |
| | | public String getWrkSts$(){ |
| | | public String getWrkSts$() { |
| | | BasWrkStatusService service = SpringUtils.getBean(BasWrkStatusService.class); |
| | | BasWrkStatus basWrkStatus = service.selectById(this.wrkSts); |
| | | if (!Cools.isEmpty(basWrkStatus)){ |
| | | if (!Cools.isEmpty(basWrkStatus)) { |
| | | return String.valueOf(basWrkStatus.getWrkDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | public String getIoType$() { |
| | | BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class); |
| | | BasWrkIotype basWrkIotype = service.selectById(this.ioType); |
| | | if (!Cools.isEmpty(basWrkIotype)){ |
| | | if (!Cools.isEmpty(basWrkIotype)) { |
| | | return String.valueOf(basWrkIotype.getIoDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCrnNo$(){ |
| | | public String getCrnNo$() { |
| | | BasCrnpService service = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = service.selectById(this.crnNo); |
| | | if (!Cools.isEmpty(basCrnp)){ |
| | | if (!Cools.isEmpty(basCrnp)) { |
| | | return String.valueOf(basCrnp.getCrnNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getWrkDate$(){ |
| | | if (Cools.isEmpty(this.wrkDate)){ |
| | | public String getWrkDate$() { |
| | | if (Cools.isEmpty(this.wrkDate)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.wrkDate); |
| | | } |
| | | |
| | | public String getLocNo$(){ |
| | | public String getLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getStaNo$(){ |
| | | public String getStaNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.staNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getSourceStaNo$(){ |
| | | public String getSourceStaNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.sourceStaNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getSourceLocNo$(){ |
| | | public String getSourceLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.sourceLocNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getCrnStrTime$(){ |
| | | if (Cools.isEmpty(this.crnStrTime)){ |
| | | public String getCrnStrTime$() { |
| | | if (Cools.isEmpty(this.crnStrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnStrTime); |
| | | } |
| | | |
| | | public String getCrnEndTime$(){ |
| | | if (Cools.isEmpty(this.crnEndTime)){ |
| | | public String getCrnEndTime$() { |
| | | if (Cools.isEmpty(this.crnEndTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnEndTime); |
| | | } |
| | | |
| | | public String getPlcStrTime$(){ |
| | | if (Cools.isEmpty(this.plcStrTime)){ |
| | | public String getPlcStrTime$() { |
| | | if (Cools.isEmpty(this.plcStrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.plcStrTime); |
| | | } |
| | | |
| | | public String getCrnPosTime$(){ |
| | | if (Cools.isEmpty(this.crnPosTime)){ |
| | | public String getCrnPosTime$() { |
| | | if (Cools.isEmpty(this.crnPosTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnPosTime); |
| | | } |
| | | |
| | | |
| | | public String getRefIotime$(){ |
| | | if (Cools.isEmpty(this.refIotime)){ |
| | | public String getRefIotime$() { |
| | | if (Cools.isEmpty(this.refIotime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.refIotime); |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getErrorTime$(){ |
| | | if (Cools.isEmpty(this.errorTime)){ |
| | | public String getErrorTime$() { |
| | | if (Cools.isEmpty(this.errorTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime); |
| | | } |
| | | |
| | | public String getLogErrTime$(){ |
| | | if (Cools.isEmpty(this.logErrTime)){ |
| | | public String getLogErrTime$() { |
| | | if (Cools.isEmpty(this.logErrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime); |
| | | } |
| | | |
| | | public String getEndTime$(){ |
| | | if (Cools.isEmpty(this.endTime)){ |
| | | public String getEndTime$() { |
| | | if (Cools.isEmpty(this.endTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime); |
| | |
| | | package com.zy.asrs.entity.param; |
| | | |
| | | import io.swagger.models.auth.In; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | |
| | | //å åæº |
| | | private Integer crn; |
| | | |
| | | public TaskCreateParam(){}; |
| | | public TaskCreateParam() { |
| | | } |
| | | |
| | | public TaskCreateParam(WMSAndAGVInterfaceParam param){ |
| | | ; |
| | | |
| | | public TaskCreateParam(WMSAndAGVInterfaceParam param) { |
| | | this.taskNo = param.getTaskNo(); |
| | | this.ioType = convertParamIoType(param.getTaskType()); |
| | | this.barcode = param.getContainerCode(); |
| | |
| | | this.targetPoint = param.getTargetLocationCode(); |
| | | this.emptyContainer = param.getEmptyContainer(); |
| | | this.crn = param.getTaskTunnel(); |
| | | }; |
| | | } |
| | | |
| | | public TaskCreateParam(CarryParam param, Integer crn){ |
| | | ; |
| | | |
| | | public TaskCreateParam(CarryParam param, Integer crn) { |
| | | this.taskNo = param.getTaskNo(); |
| | | this.ioType = param.getStereoscopicTaskType(); |
| | | this.barcode = param.getBoxNo(); |
| | |
| | | this.targetPoint = param.getTerminalNo(); |
| | | this.emptyContainer = "N"; |
| | | this.crn = crn; |
| | | }; |
| | | } |
| | | |
| | | ; |
| | | |
| | | |
| | | public static Integer convertParamIoType(String paramIoType){ |
| | | switch (paramIoType){ |
| | | public static Integer convertParamIoType(String paramIoType) { |
| | | switch (paramIoType) { |
| | | case "RK": |
| | | return 1; |
| | | case "CK": |
| | |
| | | * */ |
| | | |
| | | |
| | | |
| | | //ä»»å¡åæ¶æ¥å£ |
| | | /*æä½ç±»å: |
| | | * 1.æ£å¸¸åæ¶--åªè½åæ¶æªæ§è¡çä»»å¡ï¼è´§ç©å¤å¨æªæ§è¡ä»»å¡ç¶æ |
| | | * 2.强å¶åæ¶--å¯åæ¶å·²æ§è¡æªå®æçä»»å¡ï¼è´§ç©å¤å¨æªæ§è¡ä»»å¡ç¶æ |
| | | * 3.æ£å¸¸å®æ--åªè½å®ææªæ§è¡çä»»å¡ï¼è´§ç©å¤äºä»»å¡æ§è¡å®æç¶æ |
| | | * 4.强å¶å®æ--å¯å®æå·²æ§è¡æªå®æçä»»å¡ï¼è´§ç©å¤äºä»»å¡æ§è¡å®æç¶æ |
| | | * */ |
| | | * 1.æ£å¸¸åæ¶--åªè½åæ¶æªæ§è¡çä»»å¡ï¼è´§ç©å¤å¨æªæ§è¡ä»»å¡ç¶æ |
| | | * 2.强å¶åæ¶--å¯åæ¶å·²æ§è¡æªå®æçä»»å¡ï¼è´§ç©å¤å¨æªæ§è¡ä»»å¡ç¶æ |
| | | * 3.æ£å¸¸å®æ--åªè½å®ææªæ§è¡çä»»å¡ï¼è´§ç©å¤äºä»»å¡æ§è¡å®æç¶æ |
| | | * 4.强å¶å®æ--å¯å®æå·²æ§è¡æªå®æçä»»å¡ï¼è´§ç©å¤äºä»»å¡æ§è¡å®æç¶æ |
| | | * */ |
| | | private String taskStatus; //æä½ç±»å |
| | | private String wharfSource; //æºç 头 |
| | | private List<String> freeWharfs; |
| | | private String requestType; //请æ±ç±»å: 1=åè´§ï¼2=æ¾è´§ |
| | | private String wharfCode; //ç 头ç¼å· |
| | | |
| | | public TaskStatusFeedbackParam(){} |
| | | public TaskStatusFeedbackParam() { |
| | | } |
| | | |
| | | public TaskStatusFeedbackParam(TaskWrk taskWrk){ |
| | | public TaskStatusFeedbackParam(TaskWrk taskWrk) { |
| | | this.taskNo = taskWrk.getTaskNo(); |
| | | this.feedbackFrom = "WCS"; |
| | | this.warehouseId = "1688469798893297665"; |
| | |
| | | this.targetLocationCode = taskWrk.getTargetPoint(); |
| | | } |
| | | |
| | | public static String getTaskType(Integer paramIoType){ |
| | | switch (paramIoType){ |
| | | public static String getTaskType(Integer paramIoType) { |
| | | switch (paramIoType) { |
| | | case 1: |
| | | return "RK"; |
| | | case 2: |
| | |
| | | return "æªç¥"; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | //ä»»å¡åæ¶æ¥å£ |
| | | /*æä½ç±»å: |
| | | * 1.æ£å¸¸åæ¶--åªè½åæ¶æªæ§è¡çä»»å¡ï¼è´§ç©å¤å¨æªæ§è¡ä»»å¡ç¶æ |
| | | * 2.强å¶åæ¶--å¯åæ¶å·²æ§è¡æªå®æçä»»å¡ï¼è´§ç©å¤å¨æªæ§è¡ä»»å¡ç¶æ |
| | | * 3.æ£å¸¸å®æ--åªè½å®ææªæ§è¡çä»»å¡ï¼è´§ç©å¤äºä»»å¡æ§è¡å®æç¶æ |
| | | * 4.强å¶å®æ--å¯å®æå·²æ§è¡æªå®æçä»»å¡ï¼è´§ç©å¤äºä»»å¡æ§è¡å®æç¶æ |
| | | * */ |
| | | * 1.æ£å¸¸åæ¶--åªè½åæ¶æªæ§è¡çä»»å¡ï¼è´§ç©å¤å¨æªæ§è¡ä»»å¡ç¶æ |
| | | * 2.强å¶åæ¶--å¯åæ¶å·²æ§è¡æªå®æçä»»å¡ï¼è´§ç©å¤å¨æªæ§è¡ä»»å¡ç¶æ |
| | | * 3.æ£å¸¸å®æ--åªè½å®ææªæ§è¡çä»»å¡ï¼è´§ç©å¤äºä»»å¡æ§è¡å®æç¶æ |
| | | * 4.强å¶å®æ--å¯å®æå·²æ§è¡æªå®æçä»»å¡ï¼è´§ç©å¤äºä»»å¡æ§è¡å®æç¶æ |
| | | * */ |
| | | private Integer taskStatus; //æä½ç±»å |
| | | |
| | | //AGV请æ±å
¥åºç 头æ¥å£ |
| New file |
| | |
| | | package com.zy.asrs.entity.wms; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class WmsFeedback { |
| | | /** |
| | | * åé
çè´§ä½æå±ä»»å¡ID |
| | | */ |
| | | private String taskNo; |
| | | /** |
| | | * 2ï¼æ´¾å |
| | | * 4ï¼åæ¶ |
| | | * 5ï¼å®ç» |
| | | * 6ï¼åºä½ä¸ä¸ºç©º |
| | | */ |
| | | private Integer status; |
| | | /** |
| | | * 1:å
¥åºï¼2:åºåº |
| | | */ |
| | | private Integer ioType; |
| | | /** |
| | | * æçç |
| | | */ |
| | | private String barcode; |
| | | /** |
| | | * 䏿¥æ¶é´ |
| | | */ |
| | | private String reportTime; |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.entity.wms; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class WmsResult { |
| | | /** |
| | | * åé
çè´§ä½æå±ä»»å¡ID |
| | | */ |
| | | private String taskNo; |
| | | /** |
| | | * åºä½å· |
| | | */ |
| | | private String locNo; |
| | | /** |
| | | * å åæºç¼å· |
| | | */ |
| | | private Integer crnNo; |
| | | |
| | | |
| | | } |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.ApiConfig; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.ApiConfig; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.ApiLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.ApiLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.BasCrnOpt; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.BasCrnOpt; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.BasErrLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.BasErrLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.BasPlcerrorLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.BasPlcerrorLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.CommandInfoLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.CommandInfoLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.CommandInfo; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.CommandInfo; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.DataResource; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.DataResource; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.DeviceError; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.DeviceError; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | @Repository |
| | | public interface LocMastMapper extends BaseMapper<LocMast> { |
| | | |
| | | // @Select("select distinct row1 from asr_loc_mast where crn_no = #{crnNo}") |
| | | // @Select("select distinct row1 from asr_loc_mast where crn_no = #{crnNo}") |
| | | @Select("select row1 from ( select distinct row1 from asr_loc_mast where crn_no = #{crnNo} ) a " + |
| | | "order by case row1 when 1 then 1 when 2 then 0 when 3 then 0 when 4 then 1 " + |
| | | "when 5 then 1 when 6 then 0 when 7 then 0 when 8 then 1 when 9 then 1 when 10 then 0 " + |
| | | "when 11 then 0 when 12 then 1 when 13 then 1 when 14 then 0 when 15 then 0 when 16 then 1 end desc,newid()") |
| | | List<Integer> queryDistinctRow(@Param("crnNo")Integer crnNo); |
| | | "order by case row1 when 1 then 1 when 2 then 0 when 3 then 0 when 4 then 1 " + |
| | | "when 5 then 1 when 6 then 0 when 7 then 0 when 8 then 1 when 9 then 1 when 10 then 0 " + |
| | | "when 11 then 0 when 12 then 1 when 13 then 1 when 14 then 0 when 15 then 0 when 16 then 1 end desc,newid()") |
| | | List<Integer> queryDistinctRow(@Param("crnNo") Integer crnNo); |
| | | |
| | | LocMast queryFreeLocMast(@Param("row") Integer row, @Param("locType1") Short locType1); |
| | | |
| | |
| | | |
| | | LocMast selectByLocNo(String locNo); |
| | | |
| | | List<LocMast> selectLocByLev(@Param("lev")Integer lev); |
| | | List<LocMast> selectLocByLev(@Param("lev") Integer lev); |
| | | |
| | | } |
| | |
| | | |
| | | //å页æ¥è¯¢åºåæ»çæ¶é´ |
| | | public List<ViewStayTimeBean> queryViewStayTimeList(ViewStayTimeBean viewStayTime); |
| | | |
| | | public int getViewStayTimeCount(ViewStayTimeBean viewStayTime); |
| | | |
| | | //ä¸å页æ¥è¯¢ææä¿¡æ¯ï¼ç¨äºexcelå¯¼åº |
| | | public List<ViewStayTimeBean> getViewStayTimeAll(ViewStayTimeBean viewStayTime); |
| | | |
| | |
| | | |
| | | //å页æ¥è¯¢æ¥å
¥åºè®°å½ |
| | | public List<ViewWorkInBean> queryViewWorkInList(ViewWorkInBean viewWorkIn); |
| | | |
| | | public int getViewWorkInCount(ViewWorkInBean viewWorkIn); |
| | | |
| | | //ä¸å页æ¥è¯¢ææä¿¡æ¯ï¼ç¨äºexcelå¯¼åº |
| | | public List<ViewWorkInBean> getViewWorkInAll(ViewWorkInBean viewWorkIn); |
| | | |
| | | List<ViewWorkCountInView> selectWorkCountIn(@Param("curr") Integer curr, @Param("limit") Integer limit, @Param("matnr")String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | List<ViewWorkCountInView> selectWorkCountIn(@Param("curr") Integer curr, @Param("limit") Integer limit, @Param("matnr") String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | |
| | | Integer selectWorkCountInTotal(String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | |
| | |
| | | |
| | | //å页æ¥è¯¢æ¥åºåºè®°å½ |
| | | public List<ViewWorkInBean> queryViewWorkOutList(ViewWorkInBean viewWorkOut); |
| | | |
| | | public int getViewWorkOutCount(ViewWorkInBean viewWorkOut); |
| | | |
| | | //ä¸å页æ¥è¯¢ææä¿¡æ¯ï¼ç¨äºexcelå¯¼åº |
| | | public List<ViewWorkInBean> getViewWorkOutAll(ViewWorkInBean viewWorkOut); |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.TaskWrkLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.TaskWrkLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| New file |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.TaskWrkReportLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface TaskWrkReportLogMapper extends BaseMapper<TaskWrkReportLog> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.TaskWrkReport; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface TaskWrkReportMapper extends BaseMapper<TaskWrkReport> { |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import org.apache.ibatis.annotations.*; |
| | | import org.apache.ibatis.annotations.Insert; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Update; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | |
| | | |
| | | WrkMast selectByLocNo1(@Param("sourceLocNo") String sourceLocNo); |
| | | |
| | | // @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no") |
| | | // @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no") |
| | | List<WrkMast> selectToBeCompleteData(); |
| | | |
| | | List<WrkMast> selectToBeHistoryData(); |
| | |
| | | // wcs --------------------------------------------- |
| | | // å
¥åºç¬¬ä¸æ¥ï¼æ«ç 仪è·åæ¡ç ä¿¡æ¯æ¶æ¥è¯¢ |
| | | // @Select("select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=2 and barcode=#{barcode} and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC") |
| | | WrkMast selectPakInStep1(@Param("sourceStaNo")Integer sourceStaNo, @Param("barcode")String barcode); |
| | | WrkMast selectPakInStep1(@Param("sourceStaNo") Integer sourceStaNo, @Param("barcode") String barcode); |
| | | |
| | | WrkMast selectPakInStep11(@Param("sourceStaNo")Integer sourceStaNo); |
| | | WrkMast selectPakInStep11(@Param("sourceStaNo") Integer sourceStaNo); |
| | | |
| | | // å
¥åºç¬¬äºæ¥ï¼å½æçç©æå¨å åæºå
¥åºç«æ¶æ¶æ¥è¯¢ |
| | | // @Select("select top 1 * from dbo.asr_wrk_mast where wrk_sts=2 and crn_no=#{crnNo} and wrk_no=#{workNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC") |
| | | WrkMast selectPakInStep2(@Param("crnNo")Integer crnNo, @Param("workNo")Integer workNo, @Param("staNo")Integer staNo); |
| | | WrkMast selectPakInStep2(@Param("crnNo") Integer crnNo, @Param("workNo") Integer workNo, @Param("staNo") Integer staNo); |
| | | |
| | | // å
¥åºç¬¬ä¸æ¥ï¼å½å åæºæè´§æ¾å
¥åºä½æ¶ |
| | | // @Select("select top 1 from dbo.asr_wrk_mast where wrk_no=#{workNo}") |
| | | WrkMast selectPakInStep3(@Param("workNo")Integer workNo); |
| | | WrkMast selectPakInStep3(@Param("workNo") Integer workNo); |
| | | |
| | | // æ£æåå
¥åºæ¶ï¼ç«ç¹æç©ä¸éæ±æ¶æ¥è¯¢ |
| | | // @Select("select top 1 * from asr_wrk_mast where wrk_no=#{workNo} and wrk_sts=14 and (io_type=103 or io_type=107 or io_type=104)") |
| | | WrkMast selectPickStep(@Param("barcode")String barcode); |
| | | WrkMast selectPickStep(@Param("barcode") String barcode); |
| | | |
| | | // åºåºç¬¬ä¸æ¥ï¼ä»åºä½å°å åæºåºåºç« |
| | | // @Select("select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and wrk_sts=11 and io_type>100 order by io_pri desc,io_time,wrk_no asc") |
| | | WrkMast selectPakOutStep1(@Param("crnNo")Integer crnNO, @Param("sourceStaNo")Integer sourceStaNo); |
| | | WrkMast selectPakOutStep1(@Param("crnNo") Integer crnNO, @Param("sourceStaNo") Integer sourceStaNo); |
| | | |
| | | // åºåºç¬¬äºæ¥ï¼ä»å åæºåºåºç«å°ç®æ åºåºç«ï¼å åæºåºåºç«æç©æ¶æ§è¡ |
| | | // @Select("select top 1 * from dbo.asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=12 and io_type>100 order by io_pri desc,io_time desc,wrk_no ASC") |
| | | WrkMast selectPakOutStep2(@Param("sourceStaNo")Integer sourceStaNo); |
| | | WrkMast selectPakOutStep2(@Param("sourceStaNo") Integer sourceStaNo); |
| | | |
| | | // åºä½ç§»è½¬å·¥ä½æ¡£ï¼å¨è¿è¡ä¸æ¬¡å
¥åºåºä½ä¸åç´§è·åºä½ç§»è½¬ |
| | | // @Select("select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and (io_type=11 or io_type=110) and crn_no=#{crnNo} order by io_time,wrk_no") |
| | | WrkMast selectLocMove(@Param("crnNo")Integer crnNo); |
| | | WrkMast selectLocMove(@Param("crnNo") Integer crnNo); |
| | | |
| | | WrkMast selectLocMoving(@Param("crnNo")Integer crnNo); |
| | | WrkMast selectLocMoving(@Param("crnNo") Integer crnNo); |
| | | |
| | | WrkMast selectWorking(@Param("crnNo")Integer crnNo); |
| | | WrkMast selectWorking(@Param("crnNo") Integer crnNo); |
| | | |
| | | // work log ------------------------------------------------------- |
| | | @Insert("insert into asr_wrk_mast_log select * from asr_wrk_mast where wrk_no=#{workNo}") |
| | |
| | | * @param crnNo |
| | | * @return |
| | | */ |
| | | WrkMast selectCrnWorking(@Param("crnNo")Integer crnNo); |
| | | WrkMast selectCrnWorking(@Param("crnNo") Integer crnNo); |
| | | |
| | | /** |
| | | * è¾é线æ¯å¦åå¨å
¥åºä»»å¡ |
| | | * @param crnNo |
| | | * @return |
| | | */ |
| | | WrkMast selectDevWorking(@Param("crnNo")Integer crnNo); |
| | | WrkMast selectDevWorking(@Param("crnNo") Integer crnNo); |
| | | |
| | | |
| | | List<WrkMast> selectPick(); |
| | |
| | | * @param sourceStaNo |
| | | * @return |
| | | */ |
| | | List<WrkMast> selectPakOutStep11(@Param("crnNo")Integer crnNO, @Param("sourceStaNo")Integer sourceStaNo); |
| | | List<WrkMast> selectPakOutStep11(@Param("crnNo") Integer crnNO, @Param("sourceStaNo") Integer sourceStaNo); |
| | | |
| | | WrkMast selectWorkingPakin(@Param("sourceStaNo")Integer sourceStaNo); |
| | | WrkMast selectWorkingPakout(@Param("sourceStaNo")Integer sourceStaNo); |
| | | WrkMast selectWorkingPakin(@Param("sourceStaNo") Integer sourceStaNo); |
| | | |
| | | WrkMast selectWorkingPakout(@Param("staNo") Integer staNo); |
| | | } |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.ApiLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.ApiLog; |
| | | |
| | | public interface ApiLogService extends IService<ApiLog> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.BasPlcerrorLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.BasPlcerrorLog; |
| | | |
| | | public interface BasPlcerrorLogService extends IService<BasPlcerrorLog> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.BasPlcerror; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.BasPlcerror; |
| | | |
| | | public interface BasPlcerrorService extends IService<BasPlcerror> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.CommandInfoLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.CommandInfoLog; |
| | | |
| | | public interface CommandInfoLogService extends IService<CommandInfoLog> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.CommandInfo; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.CommandInfo; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.DataResource; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.DataResource; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.DeviceError; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.DeviceError; |
| | | |
| | | public interface DeviceErrorService extends IService<DeviceError> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.param.TaskCreateParam; |
| | | import com.zy.asrs.entity.param.TaskOverParam; |
| | | import com.zy.asrs.entity.param.WMSAndAGVInterfaceParam; |
| | | import com.zy.asrs.entity.param.TaskCreateParam; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.HashMap; |
| | |
| | | public interface OpenService { |
| | | |
| | | //åå»ºä»»å¡ |
| | | HashMap<String,Object> taskCreate(TaskCreateParam param); |
| | | HashMap<String, Object> taskCreate(TaskCreateParam param); |
| | | |
| | | R AgvToWCSToWms(WMSAndAGVInterfaceParam param) throws IOException; |
| | | |
| | | void getAgvTaskOver(TaskOverParam param); |
| | | |
| | | R getAgvPickAndPlaceV1(TaskOverParam param); |
| | | |
| | | R getAgvPickAndPlaceV2(TaskOverParam param); |
| | | } |
| | |
| | | |
| | | StaDesc queryCrnStn(Integer typeNo, Integer crnNo, Integer stnNo); |
| | | |
| | | StaDesc queryCrn(Integer typeNo, Integer stnNo,Integer crnNo); |
| | | StaDesc queryCrn(Integer typeNo, Integer stnNo, Integer crnNo); |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.TaskWrkReportLog; |
| | | |
| | | public interface TaskWrkReportLogService extends IService<TaskWrkReportLog> { |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.TaskWrkReport; |
| | | |
| | | public interface TaskWrkReportService extends IService<TaskWrkReport> { |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.TaskWrk; |
| | | import com.zy.asrs.entity.wms.StorageEscalationParam; |
| | | import com.zy.asrs.entity.wms.WmsResult; |
| | | |
| | | public interface ToWmsService { |
| | | |
| | | void addReportLog(TaskWrk taskWrk); |
| | | |
| | | TaskWrk getLocNoFromWms(StorageEscalationParam wmsParam); |
| | | |
| | | } |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.ApiConfigMapper; |
| | | import com.zy.asrs.entity.ApiConfig; |
| | | import com.zy.asrs.service.ApiConfigService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.ApiConfig; |
| | | import com.zy.asrs.mapper.ApiConfigMapper; |
| | | import com.zy.asrs.service.ApiConfigService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("apiConfigService") |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import com.zy.asrs.mapper.ApiLogMapper; |
| | | import com.zy.asrs.entity.ApiLog; |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import com.zy.asrs.entity.ApiLog; |
| | | import com.zy.asrs.mapper.ApiLogMapper; |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Slf4j |
| | | @Service("apiLogService") |
| | | public class ApiLogServiceImpl extends ServiceImpl<ApiLogMapper, ApiLog> implements ApiLogService { |
| | |
| | | request, // 请æ±å
容 |
| | | response, |
| | | null, // å¼å¸¸å
容 |
| | | success?1:0 , // ç»æ |
| | | success ? 1 : 0, // ç»æ |
| | | 1, // ç¶æ |
| | | now, // æ·»å æ¶é´ |
| | | now, // ä¿®æ¹æ¶é´ |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.BasCrnOptMapper; |
| | | import com.zy.asrs.entity.BasCrnOpt; |
| | | import com.zy.asrs.service.BasCrnOptService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.BasCrnOpt; |
| | | import com.zy.asrs.mapper.BasCrnOptMapper; |
| | | import com.zy.asrs.service.BasCrnOptService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("basCrnOptService") |
| | |
| | | @Override |
| | | public BasDevp checkSiteStatus(Integer devpNo, boolean put) { |
| | | BasDevp station = selectById(devpNo); |
| | | if (station == null){ |
| | | throw new CoolException(devpNo+"ç«ç¹ä¸åå¨"); |
| | | if (station == null) { |
| | | throw new CoolException(devpNo + "ç«ç¹ä¸åå¨"); |
| | | } |
| | | if (put) { |
| | | if(station.getAutoing()==null || !station.getAutoing().equals("Y")) { |
| | | throw new CoolException(devpNo+"ç«ç¹ä¸æ¯èªå¨ç¶æ"); |
| | | if (station.getAutoing() == null || !station.getAutoing().equals("Y")) { |
| | | throw new CoolException(devpNo + "ç«ç¹ä¸æ¯èªå¨ç¶æ"); |
| | | } |
| | | if(station.getLoading()==null || !station.getLoading().equals("Y")) { |
| | | throw new CoolException(devpNo+"ç«ç¹æ ç©"); |
| | | if (station.getLoading() == null || !station.getLoading().equals("Y")) { |
| | | throw new CoolException(devpNo + "ç«ç¹æ ç©"); |
| | | } |
| | | if(station.getWrkNo()!=null && station.getWrkNo()>0) { |
| | | throw new CoolException(devpNo+"ç«ç¹å·²æå·¥ä½å·"); |
| | | if (station.getWrkNo() != null && station.getWrkNo() > 0) { |
| | | throw new CoolException(devpNo + "ç«ç¹å·²æå·¥ä½å·"); |
| | | } |
| | | if(wrkMastService.getWorkingMast(devpNo)>0){ |
| | | throw new CoolException(devpNo+"ç«ç¹ä¸è½åæ¶çæä¸¤ç¬å
¥åºå·¥ä½æ¡£"); |
| | | if (wrkMastService.getWorkingMast(devpNo) > 0) { |
| | | throw new CoolException(devpNo + "ç«ç¹ä¸è½åæ¶çæä¸¤ç¬å
¥åºå·¥ä½æ¡£"); |
| | | } |
| | | } |
| | | return station; |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.zy.asrs.mapper.BasErrLogMapper; |
| | | import com.zy.asrs.entity.BasErrLog; |
| | | import com.zy.asrs.service.BasErrLogService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.BasErrLog; |
| | | import com.zy.asrs.mapper.BasErrLogMapper; |
| | | import com.zy.asrs.service.BasErrLogService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.BasPlcerrorLogMapper; |
| | | import com.zy.asrs.entity.BasPlcerrorLog; |
| | | import com.zy.asrs.service.BasPlcerrorLogService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.BasPlcerrorLog; |
| | | import com.zy.asrs.mapper.BasPlcerrorLogMapper; |
| | | import com.zy.asrs.service.BasPlcerrorLogService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("basPlcerrorLogService") |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.BasPlcerrorMapper; |
| | | import com.zy.asrs.entity.BasPlcerror; |
| | | import com.zy.asrs.service.BasPlcerrorService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.BasPlcerror; |
| | | import com.zy.asrs.mapper.BasPlcerrorMapper; |
| | | import com.zy.asrs.service.BasPlcerrorService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("basPlcerrorService") |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.CommandInfoLogMapper; |
| | | import com.zy.asrs.entity.CommandInfoLog; |
| | | import com.zy.asrs.service.CommandInfoLogService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.CommandInfoLog; |
| | | import com.zy.asrs.mapper.CommandInfoLogMapper; |
| | | import com.zy.asrs.service.CommandInfoLogService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("commandInfoLogService") |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.CommandInfo; |
| | | import com.zy.asrs.entity.CommandInfoLog; |
| | | import com.zy.asrs.mapper.CommandInfoMapper; |
| | | import com.zy.asrs.entity.CommandInfo; |
| | | import com.zy.asrs.service.CommandInfoLogService; |
| | | import com.zy.asrs.service.CommandInfoService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.DataResourceMapper; |
| | | import com.zy.asrs.entity.DataResource; |
| | | import com.zy.asrs.service.DataResourceService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.DataResource; |
| | | import com.zy.asrs.mapper.DataResourceMapper; |
| | | import com.zy.asrs.service.DataResourceService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | for (DataResource dataResource : dataResources) {//å°æ®éæ°æ®åæå©åèç¹æ°æ®è¿è¡åå² |
| | | if (this.hasChild(dataResource.getId())) { |
| | | listChild.add(dataResource); |
| | | }else { |
| | | } else { |
| | | list.add(dataResource); |
| | | } |
| | | } |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.DeviceErrorMapper; |
| | | import com.zy.asrs.entity.DeviceError; |
| | | import com.zy.asrs.service.DeviceErrorService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.asrs.entity.DeviceError; |
| | | import com.zy.asrs.mapper.DeviceErrorMapper; |
| | | import com.zy.asrs.service.DeviceErrorService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | |
| | | @Service("deviceErrorService") |
| | |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.entity.WmsLocStatus; |
| | | import com.zy.asrs.entity.param.TaskOverToWms; |
| | | import com.zy.asrs.entity.param.WMSAndAGVInterfaceParam; |
| | | import com.zy.asrs.mapper.LocMastMapper; |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import com.zy.asrs.service.LocMastService; |
| | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @Service("locMastService") |
| | | public class LocMastServiceImpl extends ServiceImpl<LocMastMapper, LocMast> implements LocMastService { |
| | |
| | | |
| | | @Override |
| | | public LocMast selectByLocNo(String locNo) { |
| | | return this.selectOne(new EntityWrapper<LocMast>().eq("loc_no",locNo)); |
| | | return this.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locNo)); |
| | | |
| | | //return this.baseMapper.selectByLocNo(locNo); |
| | | } |
| | |
| | | public R toWmsLocStatus(LocMast locMast) { |
| | | String response = null; |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("x-api-key","7a15b5db-29b6-552c-8cff-0cfec3756da2"); |
| | | map.put("x-api-key", "7a15b5db-29b6-552c-8cff-0cfec3756da2"); |
| | | WmsLocStatus param = new WmsLocStatus(); |
| | | param.setWarehouseId("1688469798893297665"); |
| | | param.setLocationCode(Utils.getWmsLocNo(locMast.getLocNo())); |
| | | param.setEmptyContainer(locMast.getEmptyContainer$()); |
| | | if (locMast.getLocSts().equals("Z")){ |
| | | if (locMast.getLocSts().equals("Z")) { |
| | | param.setStatus("JY"); |
| | | }else { |
| | | } else { |
| | | param.setStatus("QY"); |
| | | } |
| | | if (Cools.isEmpty(locMast.getBarcode()) || locMast.getLocSts().equals("O")){ |
| | | if (Cools.isEmpty(locMast.getBarcode()) || locMast.getLocSts().equals("O")) { |
| | | param.setContainerCode(""); |
| | | param.setContainerTypeCode(""); |
| | | }else { |
| | | } else { |
| | | param.setContainerCode(locMast.getBarcode()); |
| | | param.setContainerTypeCode(locMast.getContainerTypeCode()); |
| | | } |
| | |
| | | .setJson(JSON.toJSONString(param)) |
| | | .build() |
| | | .doPost(); |
| | | }catch (Exception e){ |
| | | } catch (Exception e) { |
| | | log.error("å åæºä»»å¡å®æï¼è¯·æ±wmsä»»å¡å®ææ¥å£å¤±è´¥"); |
| | | } |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | |
| | | |
| | | apiLogService.save("Wmsåæ´è´§ä½ç¶æ" |
| | | ,wmsUrl+"wcsManager/wcsInterface/inboundTaskApply" |
| | | ,null |
| | | ,"127.0.0.1" |
| | | ,JSON.toJSONString(param) |
| | | ,response |
| | | ,true |
| | | , wmsUrl + "wcsManager/wcsInterface/inboundTaskApply" |
| | | , null |
| | | , "127.0.0.1" |
| | | , JSON.toJSONString(param) |
| | | , response |
| | | , true |
| | | ); |
| | | |
| | | return null; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public StaDesc queryCrn(Integer typeNo, Integer stnNo,Integer crnNo) { |
| | | public StaDesc queryCrn(Integer typeNo, Integer stnNo, Integer crnNo) { |
| | | Wrapper<StaDesc> wrapper = new EntityWrapper<StaDesc>() |
| | | .eq("type_no", typeNo) |
| | | .eq("stn_no", stnNo) |
| | | .eq("crn_no",crnNo); |
| | | .eq("crn_no", crnNo); |
| | | StaDesc staDesc = this.selectOne(wrapper); |
| | | if (staDesc == null) { |
| | | return null; |
| New file |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.TaskWrkReportLog; |
| | | import com.zy.asrs.mapper.TaskWrkReportLogMapper; |
| | | import com.zy.asrs.service.TaskWrkReportLogService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | public class TaskWrkLogReportServiceImpl extends ServiceImpl<TaskWrkReportLogMapper, TaskWrkReportLog> implements TaskWrkReportLogService { |
| | | |
| | | } |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.TaskWrkLogMapper; |
| | | import com.zy.asrs.entity.TaskWrkLog; |
| | | import com.zy.asrs.service.TaskWrkLogService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.TaskWrkLog; |
| | | import com.zy.asrs.mapper.TaskWrkLogMapper; |
| | | import com.zy.asrs.service.TaskWrkLogService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("taskWrkLogService") |
| New file |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.core.common.Cools; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.domain.enums.TaskStatusType; |
| | | import com.zy.asrs.domain.enums.WorkNoType; |
| | | import com.zy.asrs.entity.StaDesc; |
| | | import com.zy.asrs.entity.TaskWrk; |
| | | import com.zy.asrs.entity.TaskWrkReport; |
| | | import com.zy.asrs.mapper.TaskWrkMapper; |
| | | import com.zy.asrs.mapper.TaskWrkReportMapper; |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import com.zy.asrs.service.StaDescService; |
| | | import com.zy.asrs.service.TaskWrkReportService; |
| | | import com.zy.asrs.service.TaskWrkService; |
| | | import com.zy.asrs.utils.Utils; |
| | | import com.zy.common.service.CommonService; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import com.zy.core.DevpThread; |
| | | import com.zy.core.cache.SlaveConnection; |
| | | import com.zy.core.enums.CrnTaskModeType; |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.model.CrnSlave; |
| | | import com.zy.core.model.Task; |
| | | import com.zy.core.model.command.CrnCommand; |
| | | import com.zy.core.model.protocol.StaProtocol; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | @Slf4j |
| | | @Service |
| | | public class TaskWrkReportServiceImpl extends ServiceImpl<TaskWrkReportMapper, TaskWrkReport> implements TaskWrkReportService { |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.domain.enums.TaskStatusType; |
| | | import com.zy.asrs.domain.enums.WorkNoType; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.entity.TaskWrk; |
| | | import com.zy.asrs.entity.TaskWrkReport; |
| | | import com.zy.asrs.entity.wms.StorageEscalationParam; |
| | | import com.zy.asrs.entity.wms.WmsResult; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.service.CommonService; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import com.zy.common.utils.Synchro; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | |
| | | @Slf4j |
| | | @Service("toWmsService") |
| | | public class ToWmsServiceImpl implements ToWmsService { |
| | | |
| | | @Autowired |
| | | private TaskWrkService taskWrkService; |
| | | |
| | | |
| | | @Autowired |
| | | private TaskWrkReportService taskWrkReportService; |
| | | |
| | | @Autowired |
| | | private CommonService commonService; |
| | | |
| | | @Autowired |
| | | private LocMastService locMastService; |
| | | |
| | | |
| | | @Autowired |
| | | private ApiLogService apiLogService; |
| | | |
| | | |
| | | @Value("${wms.url}") |
| | | private String wmsUrl; |
| | | /** |
| | | * ç³è¯·å
¥åº |
| | | */ |
| | | @Value("${wms.inboundTaskApplyPath}") |
| | | private String inboundTaskApplyPath; |
| | | /** |
| | | * ä»»å¡å¼å§æ¶ï¼WCSåè°WMS |
| | | */ |
| | | @Value("${wms.taskExecCallback}") |
| | | private String taskExecCallback; |
| | | /** |
| | | * ä»»å¡å®æç»ææ¶ï¼WCSåè°WMS |
| | | */ |
| | | @Value("${wms.taskStatusFeedbackPath}") |
| | | private String taskStatusFeedbackPath; |
| | | |
| | | @Value("${wms.code}") |
| | | private String code; |
| | | |
| | | @Value("${wms.successCode}") |
| | | private String successCode; |
| | | |
| | | @Value("${wms.msg}") |
| | | private String msg; |
| | | |
| | | @Value("${wms.data}") |
| | | private String data; |
| | | |
| | | @Override |
| | | public void addReportLog(TaskWrk taskWrk) { |
| | | TaskWrkReport taskWrkReport = new TaskWrkReport(); |
| | | Synchro.Copy(taskWrk, taskWrkReport); |
| | | taskWrkReport.setCreateTime(new Date()); |
| | | taskWrkReportService.insert(taskWrkReport); |
| | | } |
| | | |
| | | @Override |
| | | public TaskWrk getLocNoFromWms(StorageEscalationParam wmsParam) { |
| | | String response = ""; |
| | | Boolean success = false; |
| | | try { |
| | | response = new HttpHandler.Builder() |
| | | .setUri(wmsUrl) |
| | | .setPath(inboundTaskApplyPath) |
| | | .setJson(JSON.toJSONString(wmsParam)) |
| | | .build() |
| | | .doPost(); |
| | | if (!Cools.isEmpty(response)) { |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | if (!Cools.isEmpty(jsonObject.get(code)) && jsonObject.get(code).equals(successCode)) { |
| | | //æäºä¸æ¹wmsç³»ç»ä¸è½åæ¶è¿ååºä½å·ï¼è¿æ¶åå°±éè¦ |
| | | //ZWmsResult result = JSON.parseObject(jsonObject.get(data).toString(), WmsResult.class); |
| | | TaskWrk taskWrk = null; |
| | | int i = 1; |
| | | while (i < 10) { |
| | | taskWrk = taskWrkService.selectByBarcode(wmsParam.getBarcode()); |
| | | if (taskWrk != null) { |
| | | break; |
| | | } |
| | | try { |
| | | i++; |
| | | Thread.sleep(500L); |
| | | } catch (InterruptedException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | return taskWrk; |
| | | } |
| | | } |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | log.info("请æ±wmsæ¥éï¼{}", e.getMessage()); |
| | | } finally { |
| | | addApiLog("å
¥åºä»»å¡è¯·æ±è·ååºä½", wmsUrl + inboundTaskApplyPath, JSON.toJSONString(wmsParam), response, success); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | private TaskWrk createInTask(WmsResult result, String barcode, Integer startPoint) { |
| | | //String locNo = Utils.Fusion(result.getRow(), result.getFloor(), result.getColumn()); |
| | | String locNo = result.getLocNo(); |
| | | Date now = new Date(); |
| | | TaskWrk taskWrk = new TaskWrk(); |
| | | int workNo1 = commonService.getWorkNo(WorkNoType.PAKIN.type);//è·åå
¥åºå·¥ä½å· |
| | | taskWrk.setTaskNo(result.getTaskNo());//ä»»å¡å· |
| | | taskWrk.setWrkNo(workNo1); |
| | | taskWrk.setStatus(TaskStatusType.DISTRIBUTE.id);//ä»»å¡ç¶æï¼æ´¾å |
| | | taskWrk.setCreateTime(now); |
| | | taskWrk.setIoType(1);//ä»»å¡ç±»å |
| | | taskWrk.setIoPri(13);//ä¼å
级 |
| | | taskWrk.setBarcode(barcode);//æ¡ç |
| | | LocMast locMast = locMastService.selectByLocNo(locNo); |
| | | taskWrk.setCrnNo(locMast.getCrnNo()); |
| | | taskWrk.setTargetPoint(locNo); |
| | | taskWrk.setStartPoint(startPoint + ""); |
| | | taskWrk.setCrnNo(result.getCrnNo()); |
| | | if (taskWrk.getIoType() == 1) { |
| | | taskWrk.setWrkSts(2); |
| | | if (!Cools.isEmpty(taskWrk.getTargetPoint())) { |
| | | taskWrk.setOriginTargetPoint(taskWrk.getTargetPoint()); |
| | | } |
| | | } |
| | | return taskWrk; |
| | | } |
| | | |
| | | private void addApiLog(String nameSpace, String url, String param, String response, Boolean success) { |
| | | apiLogService.save(nameSpace, url, null, "127.0.0.1", param, response, success); |
| | | } |
| | | } |
| | |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | @Slf4j |
| | | @Service |
| | | public class WorkServiceImpl implements WorkService { |
| | |
| | | throw new CoolException("ä¿®æ¹å·¥ä½æ¡£å¤±è´¥"); |
| | | } |
| | | |
| | | HashMap<String,Object> headParam = new HashMap<>(); |
| | | headParam.put("TaskNo",wrkMast.getTaskNo()); |
| | | headParam.put("Result",0);//宿 |
| | | HashMap<String, Object> headParam = new HashMap<>(); |
| | | headParam.put("TaskNo", wrkMast.getTaskNo()); |
| | | headParam.put("Result", 0);//宿 |
| | | |
| | | try { |
| | | String response; |
| | |
| | | if (!wrkMastRes || !locMastRes) { |
| | | throw new CoolException("ä¿åæ°æ®å¤±è´¥"); |
| | | } |
| | | HashMap<String,Object> headParam = new HashMap<>(); |
| | | headParam.put("TaskNo",wrkMast.getTaskNo()); |
| | | headParam.put("Result",1);//åæ¶ |
| | | HashMap<String, Object> headParam = new HashMap<>(); |
| | | headParam.put("TaskNo", wrkMast.getTaskNo()); |
| | | headParam.put("Result", 1);//åæ¶ |
| | | |
| | | try { |
| | | String response; |
| | |
| | | |
| | | @Override |
| | | public boolean save(Integer workNo) { |
| | | return this.baseMapper.save(workNo)>0; |
| | | return this.baseMapper.save(workNo) > 0; |
| | | } |
| | | } |
| | |
| | | @Override |
| | | @Transactional |
| | | public void createWorkDetail(Integer workNo, List<WaitPakin> waitPakins, String barcode) { |
| | | if (waitPakins.isEmpty()){ |
| | | if (waitPakins.isEmpty()) { |
| | | return; |
| | | } |
| | | for (WaitPakin waitPakin : waitPakins) { |
| | | MatCode matCode = matCodeService.selectById(waitPakin.getMatnr()); |
| | | if (Cools.isEmpty(matCode)){ |
| | | if (Cools.isEmpty(matCode)) { |
| | | throw new CoolException("ç©ææ¡ç æ°æ®ä¸ºç©º"); |
| | | } |
| | | // ä¿æå·¥ä½æ¡£æç» |
| | |
| | | |
| | | @Override |
| | | public int getOutToStn182(Integer devpNo) { |
| | | return selectCount(new EntityWrapper<WrkMast>().eq("sta_no", devpNo).in("wrk_sts",11,12)); |
| | | return selectCount(new EntityWrapper<WrkMast>().eq("sta_no", devpNo).in("wrk_sts", 11, 12)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | // protected abstract ReturnT<T> start(); |
| | | |
| | | protected void exceptionHandle(String errorMsg){ |
| | | protected void exceptionHandle(String errorMsg) { |
| | | log.error(errorMsg); |
| | | exceptionHandle(errorMsg, (Object) null); |
| | | } |
| | | |
| | | protected void exceptionHandle(String errorMsg, Object... args){ |
| | | protected void exceptionHandle(String errorMsg, Object... args) { |
| | | log.error(errorMsg); |
| | | throw new CoolException(MessageFormat.format(errorMsg, args)); |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.task; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.TaskWrkReport; |
| | | import com.zy.asrs.entity.TaskWrkReportLog; |
| | | import com.zy.asrs.entity.wms.WmsFeedback; |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import com.zy.asrs.service.TaskWrkReportLogService; |
| | | import com.zy.asrs.service.TaskWrkReportService; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import com.zy.common.utils.Synchro; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 宿¶å°ä»»å¡(宿ãåæ¶)è½¬ææ¥å¿ |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class TaskReportScheduler { |
| | | |
| | | @Autowired |
| | | private TaskWrkReportService taskWrkReportService; |
| | | |
| | | @Autowired |
| | | private TaskWrkReportLogService taskWrkReportLogService; |
| | | |
| | | @Autowired |
| | | private ApiLogService apiLogService; |
| | | |
| | | |
| | | @Value("${wms.url}") |
| | | private String wmsUrl; |
| | | |
| | | @Value("${wms.taskExecCallback}") |
| | | private String TaskExecCallback; |
| | | |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void execute() throws IOException { |
| | | Page<TaskWrkReport> taskWrkReportPage = taskWrkReportService.selectPage(new Page<>(0, 100), new EntityWrapper<TaskWrkReport>().orderBy("createTime", true)); |
| | | if (taskWrkReportPage.getRecords() != null) { |
| | | //æ°å¢ä¸ä¸ªè¿æ»¤æºå¶ |
| | | for (TaskWrkReport taskWrk : taskWrkReportPage.getRecords()) { |
| | | WmsFeedback wmsFeedback = getWmsFeedback(taskWrk); |
| | | String response = ""; |
| | | Boolean bool = false; |
| | | try { |
| | | log.info("wcsæå¨å®æä»»å¡ä¸æ¥wms={}", taskWrk); |
| | | response = new HttpHandler.Builder() |
| | | // .setHeaders(headParam) |
| | | .setUri(wmsUrl) |
| | | .setPath(TaskExecCallback) |
| | | .setJson(JSON.toJSONString(wmsFeedback)) |
| | | .build() |
| | | .doPost(); |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | TaskWrkReportLog taskWrkLog = new TaskWrkReportLog(); |
| | | Synchro.Copy(taskWrk, taskWrkLog); |
| | | taskWrkLog.setId(null); |
| | | if (!taskWrkReportLogService.insert(taskWrkLog)) { |
| | | throw new CoolException("转å岿¡£å¤±è´¥" + taskWrkLog); |
| | | } |
| | | if (!taskWrkReportService.deleteById(taskWrk)) { |
| | | throw new CoolException("任塿¡£å é¤å¤±è´¥" + taskWrkLog); |
| | | } |
| | | bool = true; |
| | | } catch (Exception e) { |
| | | log.error("wcsæå¨å®æä»»å¡ä¸æ¥wms失败{},è¿åå¼={}", taskWrk, response); |
| | | } finally { |
| | | apiLogService.save("ä»»å¡ç¶æä¸æ¥" |
| | | , wmsUrl + TaskExecCallback |
| | | , null |
| | | , "127.0.0.1" |
| | | , JSON.toJSONString(wmsFeedback) |
| | | , response |
| | | , bool |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | private WmsFeedback getWmsFeedback(TaskWrkReport taskWrk) { |
| | | WmsFeedback feedback = new WmsFeedback(); |
| | | feedback.setBarcode(taskWrk.getBarcode()); |
| | | feedback.setReportTime(DateUtils.convert(new Date())); |
| | | feedback.setIoType(taskWrk.getIoType()); |
| | | feedback.setTaskNo(taskWrk.getTaskNo()); |
| | | feedback.setStatus(taskWrk.getStatus()); |
| | | return feedback; |
| | | } |
| | | } |
| | |
| | | this.content = content; |
| | | } |
| | | |
| | | public boolean isSuccess(){ |
| | | public boolean isSuccess() { |
| | | return this.code == 200; |
| | | } |
| | | |
| | |
| | | private ConfigService configService; |
| | | |
| | | @PostConstruct |
| | | private void start(){ |
| | | private void start() { |
| | | thread = new Thread(() -> { |
| | | while (!Thread.currentThread().isInterrupted()) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @PreDestroy |
| | | public void shutDown(){ |
| | | public void shutDown() { |
| | | if (thread != null) |
| | | thread.interrupt(); |
| | | log.info("ä»»å¡ä¸å¿è°åº¦å¨å·²åæ¢......"); |
| | |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.core.common.SpringUtils; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.task.AbstractHandler; |
| | | import com.zy.asrs.task.core.ReturnT; |
| | |
| | | |
| | | |
| | | /* |
| | | * url: eg: 192.168.4.15:1433 |
| | | * path: eg: api/InterFace/get_InterFace_TestStorage |
| | | * combParam:åæ° |
| | | * */ |
| | | public ReturnT<String> postMesData(String name,String URL,String mesPath, Object combParam){ |
| | | * url: eg: 192.168.4.15:1433 |
| | | * path: eg: api/InterFace/get_InterFace_TestStorage |
| | | * combParam:åæ° |
| | | * */ |
| | | public ReturnT<String> postMesData(String name, String URL, String mesPath, Object combParam) { |
| | | // if (true){ |
| | | // System.out.println("name:"+name+",URL:"+URL+",mesPath:"+mesPath+",combParam:"+combParam); |
| | | // return SUCCESS; |
| | | // } |
| | | if(combParam != null){ |
| | | if (combParam != null) { |
| | | String response = ""; |
| | | boolean success = false; |
| | | try { |
| | |
| | | .setJson(JSON.toJSONString(combParam)) |
| | | .build() |
| | | .doPost(); |
| | | System.out.println("response:"+response); |
| | | System.out.println("response:" + response); |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | |
| | | if (jsonObject.getInteger("code").equals(200)) { |
| | | success = true; |
| | | } else { |
| | | log.error("è¯·æ±æ¥å£å¤±è´¥ï¼ï¼ï¼urlï¼{}ï¼requestï¼{}ï¼responseï¼{}", URL+"/"+mesPath, JSON.toJSONString(combParam), response); |
| | | throw new CoolException("䏿¥"+name); |
| | | log.error("è¯·æ±æ¥å£å¤±è´¥ï¼ï¼ï¼urlï¼{}ï¼requestï¼{}ï¼responseï¼{}", URL + "/" + mesPath, JSON.toJSONString(combParam), response); |
| | | throw new CoolException("䏿¥" + name); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("è¯·æ±æ¥å£å¤±è´¥ï¼ï¼ï¼urlï¼{}ï¼requestï¼{}ï¼responseï¼{}", URL+"/"+mesPath, JSON.toJSONString(combParam), response); |
| | | log.error("è¯·æ±æ¥å£å¤±è´¥ï¼ï¼ï¼urlï¼{}ï¼requestï¼{}ï¼responseï¼{}", URL + "/" + mesPath, JSON.toJSONString(combParam), response); |
| | | // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return FAIL.setMsg(e.getMessage()); |
| | | } finally { |
| | | try { |
| | | |
| | | } catch (Exception e) { |
| | | log.error("", e); } |
| | | log.error("", e); |
| | | } |
| | | } |
| | | } |
| | | return SUCCESS; |
| | |
| | | import com.core.common.Arith; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.core.model.CrnSlave; |
| | | import com.zy.core.properties.SlaveProperties; |
| | | |
| | |
| | | public static String getWmsLocNo(String locNo) { |
| | | String loc = null; |
| | | int row = Integer.parseInt(locNo.substring(0, 2)); |
| | | int bay = Integer.parseInt(locNo.substring(2, 5))-1; |
| | | int bay = Integer.parseInt(locNo.substring(2, 5)) - 1; |
| | | int lev = Integer.parseInt(locNo.substring(5, 7)); |
| | | Integer sssc = getRowZ(row); |
| | | Integer fz = getFZ(row, sssc); |
| | | Integer fz1 = getFZ1(row, sssc); |
| | | |
| | | //System.out.println(sssc + "-" + bay + "-" + lev + "-" + fz + "-" + fz1); |
| | | loc = String.format("%02d",sssc) + "-" + String.format("%02d",bay) + "-" + String.format("%02d",lev) + "-" + String.format("%02d",fz) + "-" + String.format("%02d",fz1); |
| | | loc = String.format("%02d", sssc) + "-" + String.format("%02d", bay) + "-" + String.format("%02d", lev) + "-" + String.format("%02d", fz) + "-" + String.format("%02d", fz1); |
| | | return loc; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //转æ¢wmsä¼ è¾çåºä½å· |
| | | public static String getWcsLocNo(String locNo){ |
| | | public static String getWcsLocNo(String locNo) { |
| | | String[] split = locNo.split("-"); |
| | | int[] wcsRow = getWcsRow(split[0]); |
| | | int[] ints = null; |
| | | if (split[3].equals("01")){ |
| | | ints = Arrays.copyOfRange(wcsRow, 0, (wcsRow.length+2-1) / 2); |
| | | if (split[4].equals("01")){ |
| | | if (ints.length<2){ |
| | | if (split[3].equals("01")) { |
| | | ints = Arrays.copyOfRange(wcsRow, 0, (wcsRow.length + 2 - 1) / 2); |
| | | if (split[4].equals("01")) { |
| | | if (ints.length < 2) { |
| | | |
| | | }else { |
| | | } else { |
| | | ints = Arrays.copyOfRange(ints, ints.length / 2, ints.length); |
| | | } |
| | | }else { |
| | | if (ints.length<2){ |
| | | } else { |
| | | if (ints.length < 2) { |
| | | |
| | | }else { |
| | | ints = Arrays.copyOfRange(ints, ints.length / 2-1,ints.length-1); |
| | | } else { |
| | | ints = Arrays.copyOfRange(ints, ints.length / 2 - 1, ints.length - 1); |
| | | } |
| | | } |
| | | }else { |
| | | ints = Arrays.copyOfRange(wcsRow, (wcsRow.length+2-1) / 2,wcsRow.length ); |
| | | if (split[4].equals("01")){ |
| | | if (ints.length<2){ |
| | | } else { |
| | | ints = Arrays.copyOfRange(wcsRow, (wcsRow.length + 2 - 1) / 2, wcsRow.length); |
| | | if (split[4].equals("01")) { |
| | | if (ints.length < 2) { |
| | | |
| | | }else { |
| | | ints = Arrays.copyOfRange(ints, ints.length / 2-1,ints.length-1); |
| | | } else { |
| | | ints = Arrays.copyOfRange(ints, ints.length / 2 - 1, ints.length - 1); |
| | | } |
| | | }else { |
| | | if (ints.length<2){ |
| | | } else { |
| | | if (ints.length < 2) { |
| | | |
| | | }else { |
| | | } else { |
| | | ints = Arrays.copyOfRange(ints, ints.length / 2, ints.length); |
| | | } |
| | | |
| | |
| | | } |
| | | int i = ints[0]; |
| | | String wcsLocNo = ""; |
| | | Integer bay = Integer.parseInt(split[1])+1; |
| | | Integer bay = Integer.parseInt(split[1]) + 1; |
| | | String bay2 = ""; |
| | | if (bay>9){ |
| | | if (bay > 9) { |
| | | bay2 = bay.toString(); |
| | | }else { |
| | | bay2 = "0"+bay; |
| | | } else { |
| | | bay2 = "0" + bay; |
| | | } |
| | | if (i>9){ |
| | | wcsLocNo = i+"0"+bay2+split[2]; |
| | | }else { |
| | | wcsLocNo = "0"+i+"0"+bay2+split[2]; |
| | | if (i > 9) { |
| | | wcsLocNo = i + "0" + bay2 + split[2]; |
| | | } else { |
| | | wcsLocNo = "0" + i + "0" + bay2 + split[2]; |
| | | } |
| | | |
| | | |
| | | |
| | | return wcsLocNo; |
| | | } |
| | | public static int[] getWcsRow(String row){ |
| | | |
| | | public static int[] getWcsRow(String row) { |
| | | int[] array = null; |
| | | switch (row){ |
| | | switch (row) { |
| | | case "01": |
| | | array= new int[]{1, 2, 3, 4}; |
| | | array = new int[]{1, 2, 3, 4}; |
| | | break; |
| | | case "02": |
| | | array= new int[]{5,6}; |
| | | array = new int[]{5, 6}; |
| | | break; |
| | | case "03": |
| | | array= new int[]{7,8,9,10}; |
| | | array = new int[]{7, 8, 9, 10}; |
| | | break; |
| | | case "04": |
| | | array= new int[]{11,12,13,14}; |
| | | array = new int[]{11, 12, 13, 14}; |
| | | break; |
| | | case "05": |
| | | array= new int[]{15,16,17,18}; |
| | | array = new int[]{15, 16, 17, 18}; |
| | | break; |
| | | case "06": |
| | | array= new int[]{19,20,21}; |
| | | array = new int[]{19, 20, 21}; |
| | | break; |
| | | default: |
| | | |
| | |
| | | return array; |
| | | } |
| | | |
| | | public static float scale(Float f){ |
| | | public static float scale(Float f) { |
| | | if (f == null || f == 0f || Float.isNaN(f)) { |
| | | return 0f; |
| | | } |
| | |
| | | } |
| | | |
| | | //ç«ç¹å·è½¬æ¢ |
| | | public static String getEquipmentCode(String targetPoint){ |
| | | return "J-1"+targetPoint; |
| | | public static String getEquipmentCode(String targetPoint) { |
| | | return "J-1" + targetPoint; |
| | | } |
| | | |
| | | public static String zerofill(String msg, Integer count){ |
| | | if (msg.length() == count){ |
| | | public static String zerofill(String msg, Integer count) { |
| | | if (msg.length() == count) { |
| | | return msg; |
| | | } else if (msg.length() > count){ |
| | | } else if (msg.length() > count) { |
| | | return msg.substring(0, 16); |
| | | } else { |
| | | StringBuilder msgBuilder = new StringBuilder(msg); |
| | | for (int i = 0; i<count-msg.length(); i++){ |
| | | msgBuilder.insert(0,"0"); |
| | | for (int i = 0; i < count - msg.length(); i++) { |
| | | msgBuilder.insert(0, "0"); |
| | | } |
| | | return msgBuilder.toString(); |
| | | } |
| | |
| | | /** |
| | | * 夿æ¯å¦ä¸ºæ·±åºä½ |
| | | */ |
| | | public static boolean isDeepLoc(SlaveProperties slaveProperties, String locNo){ |
| | | public static boolean isDeepLoc(SlaveProperties slaveProperties, String locNo) { |
| | | if (slaveProperties.isDoubleDeep()) { |
| | | int row = getRow(locNo); |
| | | return slaveProperties.getDoubleLocs().contains(row); |
| | |
| | | /** |
| | | * 夿æ¯å¦ä¸ºæ·±åºä½ |
| | | */ |
| | | public static boolean isDeepLoc(SlaveProperties slaveProperties, Integer row){ |
| | | public static boolean isDeepLoc(SlaveProperties slaveProperties, Integer row) { |
| | | if (slaveProperties.isDoubleDeep()) { |
| | | return slaveProperties.getDoubleLocs().contains(row); |
| | | } else { |
| | |
| | | /** |
| | | * 夿æ¯å¦ä¸ºæµ
åºä½ |
| | | */ |
| | | public static boolean isShallowLoc(SlaveProperties slaveProperties, String locNo){ |
| | | public static boolean isShallowLoc(SlaveProperties slaveProperties, String locNo) { |
| | | if (slaveProperties.isDoubleDeep()) { |
| | | int row = getRow(locNo); |
| | | return !slaveProperties.getDoubleLocs().contains(row); |
| | |
| | | /** |
| | | * 夿æ¯å¦ä¸ºæµ
åºä½ |
| | | */ |
| | | public static boolean isShallowLoc(SlaveProperties slaveProperties, Integer row){ |
| | | public static boolean isShallowLoc(SlaveProperties slaveProperties, Integer row) { |
| | | if (slaveProperties.isDoubleDeep()) { |
| | | return !slaveProperties.getDoubleLocs().contains(row); |
| | | } else { |
| | |
| | | public static String getShallowLoc(SlaveProperties slaveProperties, String deepLoc) { |
| | | int row = getRow(deepLoc); |
| | | // int remainder = (int) Arith.remainder(row, slaveProperties.getGroupCount()); |
| | | int shallowRow = getShallowRow(row); |
| | | int shallowRow = getShallowRow(row); |
| | | return zerofill(String.valueOf(shallowRow), 2) + deepLoc.substring(2); |
| | | } |
| | | public static int getShallowRow(Integer row){ |
| | | |
| | | public static int getShallowRow(Integer row) { |
| | | Map<Integer, Integer> map = new HashMap<>(); |
| | | map.put(1,2);map.put(4,3); |
| | | map.put(7,8);map.put(10,9); |
| | | map.put(11,12);map.put(14,13); |
| | | map.put(15,16);map.put(18,17); |
| | | map.put(19,20); |
| | | map.put(1, 2); |
| | | map.put(4, 3); |
| | | map.put(7, 8); |
| | | map.put(10, 9); |
| | | map.put(11, 12); |
| | | map.put(14, 13); |
| | | map.put(15, 16); |
| | | map.put(18, 17); |
| | | map.put(19, 20); |
| | | return map.get(row); |
| | | } |
| | | |
| | |
| | | List<CrnSlave.CrnStn> crnInStn = null; |
| | | if (pakIn) { |
| | | crnInStn = crn.getCrnInStn(); |
| | | }else { |
| | | } else { |
| | | crnInStn = crn.getCrnOutStn(); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public static Integer StaNoCrnNo(Integer staNo) { |
| | | switch (staNo){ |
| | | switch (staNo) { |
| | | case 100: |
| | | case 101: |
| | | return 1; |
| | |
| | | } |
| | | |
| | | public static boolean locNoRowBoolean(Integer row) { |
| | | switch (row){ |
| | | switch (row) { |
| | | case 1: |
| | | case 2: |
| | | case 4: |
| | |
| | | } |
| | | } |
| | | |
| | | public static String Fusion(int x, int y, int z){ |
| | | String locNo="0"+x; |
| | | if(z>=10){ |
| | | locNo=locNo+"0"+z; |
| | | }else{ |
| | | locNo=locNo+"00"+z; |
| | | public static String Fusion(int x, int y, int z) { |
| | | String locNo = "0" + x; |
| | | if (z >= 10) { |
| | | locNo = locNo + "0" + z; |
| | | } else { |
| | | locNo = locNo + "00" + z; |
| | | } |
| | | if(y>=10){ |
| | | locNo=locNo+y; |
| | | }else { |
| | | locNo=locNo+"0"+y; |
| | | if (y >= 10) { |
| | | locNo = locNo + y; |
| | | } else { |
| | | locNo = locNo + "0" + y; |
| | | } |
| | | |
| | | return locNo; |
| | |
| | | package com.zy.asrs.utils; |
| | | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.entity.MatCode; |
| | |
| | | /** |
| | | * åºä½ç§»è½¬æ¶ç±»åæ£æµ |
| | | **/ |
| | | public static void locMoveCheckLocType(LocMast sourceLoc, LocMast loc){ |
| | | public static void locMoveCheckLocType(LocMast sourceLoc, LocMast loc) { |
| | | // 妿æºåºä½æ¯é«åºä½ï¼ç®æ åºä½æ¯ä½åºä½ |
| | | // if (sourceLoc.getLocType1() == 2 && loc.getLocType1() == 1) { |
| | | // throw new CoolException("é«åºä½ä¸è½ç§»è½¬è³ä½åºä½"); |
| | |
| | | /** |
| | | * åºä½ç§»è½¬æ¶ç±»åæ£æµ |
| | | **/ |
| | | public static boolean locMoveCheckLocType(LocMast loc, LocTypeDto dto){ |
| | | public static boolean locMoveCheckLocType(LocMast loc, LocTypeDto dto) { |
| | | |
| | | return true; |
| | | } |
| | |
| | | // generator.table="sys_host"; |
| | | // sqlserver |
| | | generator.sqlOsType = SqlOsType.SQL_SERVER; |
| | | generator.url="127.0.0.1:1433;databasename=ghtzasrs"; |
| | | generator.username="sa"; |
| | | generator.password="sa@123"; |
| | | generator.table="man_api_log"; |
| | | generator.packagePath="com.zy.asrs"; |
| | | generator.url = "127.0.0.1:1433;databasename=ghtzasrs"; |
| | | generator.username = "sa"; |
| | | generator.password = "sa@123"; |
| | | generator.table = "man_api_log"; |
| | | generator.packagePath = "com.zy.asrs"; |
| | | generator.js = false; |
| | | generator.html = false; |
| | | generator.sql = false; |
| | |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | SiemensS7Net siemens_net = new SiemensS7Net(SiemensPLCS.S300,"192.168.6.1"); |
| | | SiemensS7Net siemens_net = new SiemensS7Net(SiemensPLCS.S300, "192.168.6.1"); |
| | | siemens_net.setSlot((byte) 2); |
| | | siemens_net.setRack((byte) 0); |
| | | OperateResult connect = siemens_net.ConnectServer(); |
| | | if(connect.IsSuccess){ |
| | | if (connect.IsSuccess) { |
| | | System.out.println("connect success!"); |
| | | } |
| | | else { |
| | | System.out.println("failed:"+connect.Message); |
| | | } else { |
| | | System.out.println("failed:" + connect.Message); |
| | | } |
| | | siemens_net.ConnectClose(); |
| | | |
| | | short[] array = new short[] {9999,20,31,40,50}; |
| | | short[] array = new short[]{9999, 20, 31, 40, 50}; |
| | | OperateResult db100 = siemens_net.Write("DB8.18", array); |
| | | if (db100.IsSuccess) { |
| | | System.out.println("åå
¥æå"); |
| | |
| | | /** |
| | | * ä¸è± Q ASCIIéè®¯æ ¼å¼ |
| | | */ |
| | | private static void MelsecAsciiTest(){ |
| | | private static void MelsecAsciiTest() { |
| | | |
| | | MelsecMcAsciiNet melsec = new MelsecMcAsciiNet("192.168.1.192",6001); |
| | | OperateResultExOne<short[]> read = melsec.ReadInt16("D100",(short) 2); |
| | | if(read.IsSuccess) |
| | | { |
| | | MelsecMcAsciiNet melsec = new MelsecMcAsciiNet("192.168.1.192", 6001); |
| | | OperateResultExOne<short[]> read = melsec.ReadInt16("D100", (short) 2); |
| | | if (read.IsSuccess) { |
| | | System.out.println(Arrays.toString(read.Content)); |
| | | } |
| | | else { |
| | | } else { |
| | | System.out.println(read.ToMessageShowString()); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * 西é¨å |
| | | */ |
| | | private static void SiemesTest(){ |
| | | SiemensS7Net siemens_net = new SiemensS7Net(SiemensPLCS.S1200,"192.168.1.195"); |
| | | private static void SiemesTest() { |
| | | SiemensS7Net siemens_net = new SiemensS7Net(SiemensPLCS.S1200, "192.168.1.195"); |
| | | OperateResult connect = siemens_net.ConnectServer(); |
| | | if(connect.IsSuccess){ |
| | | if (connect.IsSuccess) { |
| | | System.out.println("connect success!"); |
| | | } |
| | | else { |
| | | System.out.println("failed:"+connect.Message); |
| | | } else { |
| | | System.out.println("failed:" + connect.Message); |
| | | } |
| | | siemens_net.ConnectClose(); |
| | | |
| | |
| | | long m100_long = siemens_net.ReadInt64("M100").Content; |
| | | float m100_float = siemens_net.ReadFloat("M100").Content; |
| | | double m100_double = siemens_net.ReadDouble("M100").Content; |
| | | String m100_string = siemens_net.ReadString("M100",(short) 10).Content; |
| | | String m100_string = siemens_net.ReadString("M100", (short) 10).Content; |
| | | |
| | | siemens_net.Write("M100",(byte) 123); |
| | | siemens_net.Write("M100",(short) 123); |
| | | siemens_net.Write("M100",(int) 123); |
| | | siemens_net.Write("M100",(long) 123); |
| | | siemens_net.Write("M100", (byte) 123); |
| | | siemens_net.Write("M100", (short) 123); |
| | | siemens_net.Write("M100", (int) 123); |
| | | siemens_net.Write("M100", (long) 123); |
| | | siemens_net.Write("M100", 123.456f); |
| | | siemens_net.Write("M100", 123.456d); |
| | | siemens_net.Write("M100","1234567890"); |
| | | siemens_net.Write("M100", "1234567890"); |
| | | |
| | | OperateResultExOne<byte[]> read = siemens_net.Read( "M100", (short) 10 ); |
| | | OperateResultExOne<byte[]> read = siemens_net.Read("M100", (short) 10); |
| | | { |
| | | if(read.IsSuccess) |
| | | { |
| | | if (read.IsSuccess) { |
| | | byte m100 = read.Content[0]; |
| | | byte m101 = read.Content[1]; |
| | | byte m102 = read.Content[2]; |
| | |
| | | byte m107 = read.Content[7]; |
| | | byte m108 = read.Content[8]; |
| | | byte m109 = read.Content[9]; |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | // åçäºå¼å¸¸ |
| | | } |
| | | } |
| | |
| | | |
| | | private static void PushNetTest() { |
| | | NetPushClient client = new NetPushClient("127.0.0.1", 23467, "A"); |
| | | OperateResult connect = client.CreatePush(new ActionOperateExTwo<NetPushClient,String>(){ |
| | | OperateResult connect = client.CreatePush(new ActionOperateExTwo<NetPushClient, String>() { |
| | | @Override |
| | | public void Action(NetPushClient content1, String content2) { |
| | | System.out.println(content2); |
| | |
| | | if (connect.IsSuccess) { |
| | | System.out.println("è¿æ¥æå!"); |
| | | } else { |
| | | System.out.println("è¿æ¥å¤±è´¥!"+connect.Message); |
| | | System.out.println("è¿æ¥å¤±è´¥!" + connect.Message); |
| | | } |
| | | } |
| | | |
| | | private static void ModbusTcpTets(){ |
| | | ModbusTcpNet modbusTcpNet = new ModbusTcpNet("127.0.0.1",502,(byte) 0x01); |
| | | private static void ModbusTcpTets() { |
| | | ModbusTcpNet modbusTcpNet = new ModbusTcpNet("127.0.0.1", 502, (byte) 0x01); |
| | | // å½ä½ éè¦æå®æ ¼å¼çæ°æ®è§£ææ¶ï¼å°±éè¦è®¾ç½®ä¸é¢çè¿ä¸ªä¿¡æ¯ |
| | | modbusTcpNet.setDataFormat(DataFormat.BADC); |
| | | OperateResultExOne<Double> read = modbusTcpNet.ReadDouble("s=2;x=4;200"); |
| | | if(read.IsSuccess){ |
| | | if (read.IsSuccess) { |
| | | System.out.println(read.Content); |
| | | } |
| | | else { |
| | | } else { |
| | | System.out.println(read.Message); |
| | | } |
| | | |
| | | modbusTcpNet.Write("100",new int[]{12345,-12345}); |
| | | modbusTcpNet.Write("100", new int[]{12345, -12345}); |
| | | } |
| | | |
| | | private static void NetComplexClientTest(){ |
| | | private static void NetComplexClientTest() { |
| | | System.out.println("Hello World!çå¾
10så
³é"); |
| | | NetComplexClient client = new NetComplexClient(); |
| | | client.setIpAddress("127.0.0.1"); |
| | | client.setPort(12346); |
| | | client.setClientAlias("æµè¯1"); |
| | | client.AcceptString= new ActionOperateExThree<NetComplexClient,NetHandle,String>(){ |
| | | client.AcceptString = new ActionOperateExThree<NetComplexClient, NetHandle, String>() { |
| | | @Override |
| | | public void Action(NetComplexClient content1, NetHandle content2, String content3) { |
| | | System.out.println("Handle:"+content2.get_CodeValue()+" Value:"+content3); |
| | | System.out.println("Handle:" + content2.get_CodeValue() + " Value:" + content3); |
| | | } |
| | | }; |
| | | |
| | |
| | | @Component |
| | | public class AdminInterceptor extends HandlerInterceptorAdapter { |
| | | |
| | | private final RateLimiter rateLimiter = RateLimiter.create(10);// é»è®¤æ¯ç§æå¤å¤ç 10 ä¸ªè¯·æ± |
| | | @Value("${super.pwd}") |
| | | private String superPwd; |
| | | @Autowired |
| | |
| | | @Autowired |
| | | private ApiConfigService apiConfigService; |
| | | |
| | | private final RateLimiter rateLimiter = RateLimiter.create(10);// é»è®¤æ¯ç§æå¤å¤ç 10 ä¸ªè¯·æ± |
| | | |
| | | @Override |
| | | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { |
| | | cors(response); |
| | |
| | | } |
| | | HandlerMethod handlerMethod = (HandlerMethod) handler; |
| | | Method method = handlerMethod.getMethod(); |
| | | if (method.isAnnotationPresent(RateLimit.class)){ |
| | | if (method.isAnnotationPresent(RateLimit.class)) { |
| | | RateLimit annotation = method.getAnnotation(RateLimit.class); |
| | | rateLimiter.setRate(annotation.value()); |
| | | if (!rateLimiter.tryAcquire(annotation.value(), TimeUnit.SECONDS)) { |
| | |
| | | |
| | | // superè´¦å· |
| | | String token = request.getHeader("token"); |
| | | if (token!=null) { |
| | | if (token != null) { |
| | | String deToken = Cools.deTokn(token, superPwd); |
| | | if (deToken!=null){ |
| | | if (deToken != null) { |
| | | long timestamp = Long.parseLong(deToken.substring(0, 13)); |
| | | // 1天åè¿æ |
| | | if (System.currentTimeMillis() - timestamp > 86400000){ |
| | | if (System.currentTimeMillis() - timestamp > 86400000) { |
| | | Http.response(response, BaseRes.DENIED); |
| | | return false; |
| | | } |
| | |
| | | } |
| | | // è·¨å设置 |
| | | // response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | if (method.isAnnotationPresent(ManagerAuth.class)){ |
| | | if (method.isAnnotationPresent(ManagerAuth.class)) { |
| | | ManagerAuth annotation = method.getAnnotation(ManagerAuth.class); |
| | | if (annotation.value().equals(ManagerAuth.Auth.CHECK)){ |
| | | if (annotation.value().equals(ManagerAuth.Auth.CHECK)) { |
| | | return check(request, response, annotation.memo()); |
| | | } |
| | | } |
| | |
| | | String servletPath = request.getServletPath(); |
| | | ApiConfig apiConfig = apiConfigService.selectByUrl(servletPath); |
| | | if (apiConfig != null) { |
| | | if(apiConfig.getStatus() == 1){ |
| | | if (apiConfig.getStatus() == 1) { |
| | | //api被ç¦ç¨ |
| | | Http.response(response, BaseRes.LIMIT); |
| | | return false; |
| | |
| | | try { |
| | | String token = request.getHeader("token"); |
| | | UserLogin userLogin = userLoginService.selectOne(new EntityWrapper<UserLogin>().eq("token", token)); |
| | | if (null == userLogin){ |
| | | if (null == userLogin) { |
| | | Http.response(response, BaseRes.DENIED); |
| | | return false; |
| | | } |
| | |
| | | String deToken = Cools.deTokn(token, user.getPassword()); |
| | | long timestamp = Long.parseLong(deToken.substring(0, 13)); |
| | | // 1天åè¿æ |
| | | if (System.currentTimeMillis() - timestamp > 86400000){ |
| | | if (System.currentTimeMillis() - timestamp > 86400000) { |
| | | Http.response(response, BaseRes.DENIED); |
| | | return false; |
| | | } |
| | |
| | | request.setAttribute("userId", user.getId()); |
| | | // request.setAttribute("operateLog", operateLog); |
| | | return true; |
| | | } catch (Exception e){ |
| | | } catch (Exception e) { |
| | | Http.response(response, BaseRes.DENIED); |
| | | return false; |
| | | } |
| | |
| | | /** |
| | | * è·¨å |
| | | */ |
| | | private void cors(HttpServletResponse response){ |
| | | private void cors(HttpServletResponse response) { |
| | | // è·¨å设置 |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Credentials", "true"); |
| | |
| | | public void addInterceptors(InterceptorRegistry registry) { |
| | | registry.addInterceptor(adminInterceptor) |
| | | .addPathPatterns("/**") |
| | | ; |
| | | ; |
| | | } |
| | | |
| | | } |
| | |
| | | public class Parameter { |
| | | |
| | | private volatile static Parameter instance = null; |
| | | // éªè¯ç å¼å
³ |
| | | private String codeSwitch; |
| | | private String ledDefaultMsg; |
| | | // åºä½åå§åå£ä»¤ |
| | | private String locMastInitPwd; |
| | | |
| | | private Parameter(){ |
| | | private Parameter() { |
| | | } |
| | | |
| | | public static Parameter get(){ |
| | | if (instance == null){ |
| | | synchronized (Parameter.class){ |
| | | public static Parameter get() { |
| | | if (instance == null) { |
| | | synchronized (Parameter.class) { |
| | | instance = reset(); |
| | | return instance; |
| | | } |
| | |
| | | return instance; |
| | | } |
| | | |
| | | /** |
| | | * éç½® |
| | | */ |
| | | public static Parameter reset() { |
| | | /** |
| | | * éç½® |
| | | */ |
| | | public static Parameter reset() { |
| | | ConfigService configService = SpringUtils.getBean(ConfigService.class); |
| | | List<Config> configs = configService.selectList(new EntityWrapper<Config>().eq("status", "1")); |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | instance = Cools.conver(data, Parameter.class); |
| | | return instance; |
| | | } |
| | | |
| | | // éªè¯ç å¼å
³ |
| | | private String codeSwitch; |
| | | |
| | | private String ledDefaultMsg; |
| | | |
| | | // åºä½åå§åå£ä»¤ |
| | | private String locMastInitPwd; |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | public class PageParam { |
| | | |
| | | @ApiModelProperty(value="å页索å¼",required=true) |
| | | @ApiModelProperty(value = "å页索å¼", required = true) |
| | | private int page = 1; |
| | | |
| | | @ApiModelProperty(value="å页æ°é",required=true) |
| | | @ApiModelProperty(value = "å页æ°é", required = true) |
| | | private int size = 10; |
| | | |
| | | public Integer getPage() { |
| | |
| | | init(); |
| | | } |
| | | |
| | | public static void main(String[] args) throws InterruptedException { |
| | | Shelves shelves = new Shelves(8, 2); |
| | | System.out.println(shelves.nodes.toString()); |
| | | int start = 1; |
| | | while (true) { |
| | | System.out.println(start); |
| | | start = shelves.start(start); |
| | | Thread.sleep(500L); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * åå§åæ¹æ³ãç§æã |
| | | */ |
| | | private void init(){ |
| | | if (group == 0 || size%group != 0) { |
| | | private void init() { |
| | | if (group == 0 || size % group != 0) { |
| | | throw new RuntimeException("shelves init fail!"); |
| | | } |
| | | nodes = new ArrayList<>(); |
| | | for (int g = 1; g <= this.group; g++){ |
| | | int unit = size/group; |
| | | for (int g = 1; g <= this.group; g++) { |
| | | int unit = size / group; |
| | | List<Integer> node = new ArrayList<>(); |
| | | for (int i = (g-1)*unit+1+offset ; i <= g*unit+offset; i++){ |
| | | for (int i = (g - 1) * unit + 1 + offset; i <= g * unit + offset; i++) { |
| | | node.add(i); |
| | | } |
| | | nodes.add(node); |
| | |
| | | * @param curSeq å½åè´§æ¶å· |
| | | * @return è§åå½ä¸è´§æ¶å· |
| | | */ |
| | | public int start(int curSeq){ |
| | | public int start(int curSeq) { |
| | | Iterator<List<Integer>> iterator = nodes.iterator(); |
| | | while (iterator.hasNext()){ |
| | | while (iterator.hasNext()) { |
| | | List<Integer> node = iterator.next(); |
| | | if (node.contains(curSeq)) { |
| | | int idx = node.indexOf(curSeq); |
| | |
| | | } |
| | | |
| | | public Integer get(Integer curRow) { |
| | | for (List<Integer> node : nodes){ |
| | | for (List<Integer> node : nodes) { |
| | | if (node.contains(curRow)) { |
| | | return nodes.indexOf(node) + 1; |
| | | } |
| | | } |
| | | throw new CoolException("è´§ææ£ç´¢ç³»ç»æ¥éï¼ node:" + JSON.toJSONString(nodes) + ", curRow:" + curRow); |
| | | } |
| | | |
| | | public static void main(String[] args) throws InterruptedException { |
| | | Shelves shelves = new Shelves(8,2); |
| | | System.out.println(shelves.nodes.toString()); |
| | | int start = 1; |
| | | while (true) { |
| | | System.out.println(start); |
| | | start = shelves.start(start); |
| | | Thread.sleep(500L); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | * æ è¯æ³¨è§£ç±» |
| | | * @author vincent |
| | | */ |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD,ElementType.TYPE,ElementType.METHOD}) |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD, ElementType.TYPE, ElementType.METHOD}) |
| | | public @interface bit { |
| | | int value(); |
| | | int value(); |
| | | } |
| | |
| | | * æ è¯æ³¨è§£ç±» |
| | | * @author vincent |
| | | */ |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD,ElementType.TYPE,ElementType.METHOD}) |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD, ElementType.TYPE, ElementType.METHOD}) |
| | | public @interface expr { |
| | | String value(); |
| | | String value(); |
| | | } |
| | |
| | | * æ è¯æ³¨è§£ç±» |
| | | * @author vincent |
| | | */ |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD,ElementType.TYPE,ElementType.METHOD}) |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD, ElementType.TYPE, ElementType.METHOD}) |
| | | public @interface flag { |
| | | String value(); |
| | | String value(); |
| | | } |
| | |
| | | * å°ç«¯æ¨¡å¼æ³¨è§£ç±» |
| | | * @author vincent |
| | | */ |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD,ElementType.TYPE,ElementType.METHOD}) |
| | | public @interface little {} |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD, ElementType.TYPE, ElementType.METHOD}) |
| | | public @interface little { |
| | | } |
| | |
| | | * æ è¯æ³¨è§£ç±» |
| | | * @author vincent |
| | | */ |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD,ElementType.TYPE,ElementType.METHOD}) |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD, ElementType.TYPE, ElementType.METHOD}) |
| | | public @interface size { |
| | | int value(); |
| | | int value(); |
| | | } |
| | |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(Arith.remainder(1, 4)); |
| | | System.out.println("0200201".substring(0, 2)); |
| | | String locNo = "0800201"; |
| | | int row = Integer.parseInt(locNo.substring(0, 2)); |
| | | double remainder = Arith.remainder(row, 4); |
| | | int targetRow; |
| | | if (remainder == 1) { |
| | | // å¾å°å½ååºä½çå¤å´åºä½ |
| | | targetRow = row + 1; |
| | | } else if (remainder == 0) { |
| | | // å¾å°å½ååºä½çå
å´åºä½ |
| | | targetRow = row - 1; |
| | | } else { |
| | | return; |
| | | } |
| | | String zerofill = zerofill(String.valueOf(targetRow), 2) + locNo.substring(2); |
| | | System.out.println(zerofill); |
| | | } |
| | | |
| | | public static String zerofill(String msg, Integer count) { |
| | | if (msg.length() == count) { |
| | | return msg; |
| | | } else if (msg.length() > count) { |
| | | return msg.substring(0, 16); |
| | | } else { |
| | | StringBuilder msgBuilder = new StringBuilder(msg); |
| | | for (int i = 0; i < count - msg.length(); ++i) { |
| | | msgBuilder.insert(0, "0"); |
| | | } |
| | | return msgBuilder.toString(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * çæå·¥ä½å· wrkMk 0:å
¥åº 1 - 3000 ; 1:æ£æ/å¹¶æ¿/çç¹ 3001 - 6000 ; 2: åºåº 6001 -9000 ; 3:å
¶ä» 9001 -9999 |
| | | * @return workNo(å·¥ä½å·) |
| | |
| | | int workNo = wrkLastno.getWrkNo(); |
| | | int sNo = wrkLastno.getSNo(); |
| | | int eNo = wrkLastno.getENo(); |
| | | workNo = workNo>=eNo ? sNo : workNo+1; |
| | | workNo = workNo >= eNo ? sNo : workNo + 1; |
| | | while (true) { |
| | | TaskWrk taskWrk = taskWrkService.selectByWrkNo(workNo); |
| | | if (null != taskWrk) { |
| | | workNo = workNo>=eNo ? sNo : workNo+1; |
| | | workNo = workNo >= eNo ? sNo : workNo + 1; |
| | | } else { |
| | | break; |
| | | } |
| | | } |
| | | // ä¿®æ¹åºå·è®°å½ |
| | | if (workNo > 0){ |
| | | if (workNo > 0) { |
| | | wrkLastno.setWrkNo(workNo); |
| | | wrkLastnoService.updateById(wrkLastno); |
| | | } |
| | |
| | | if (workNo == 0) { |
| | | throw new CoolException("çæå·¥ä½å·å¤±è´¥ï¼è¯·è系管çå"); |
| | | } else { |
| | | if (taskWrkService.selectByWrkNo(workNo)!=null) { |
| | | if (taskWrkService.selectByWrkNo(workNo) != null) { |
| | | throw new CoolException("çæå·¥ä½å·" + workNo + "å¨å·¥ä½æ¡£ä¸å·²åå¨"); |
| | | } |
| | | } |
| | | return workNo; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ£ç´¢åºä½å· |
| | |
| | | if (Utils.isShallowLoc(slaveProperties, loc.getLocNo())) { |
| | | continue; |
| | | } |
| | | String shallowLocNo = Utils.getShallowLoc(slaveProperties, loc.getLocNo()); |
| | | String shallowLocNo = Utils.getShallowLoc(slaveProperties, loc.getLocNo()); |
| | | // æ£æµç®æ åºä½æ¯å¦ä¸ºç©ºåºä½ |
| | | LocMast shallowLoc = locMastService.selectById(shallowLocNo); |
| | | if (shallowLoc != null && shallowLoc.getLocSts().equals("O")) { |
| | |
| | | Shelves shelves = new Shelves(rowCount, crn_qty); |
| | | // 1-4æ |
| | | if (whsType == 1) { |
| | | for (int i = 0; i < shelves.group; i ++) { |
| | | for (int i = 0; i < shelves.group; i++) { |
| | | curRow = shelves.start(curRow); |
| | | if (curRow < 0) { |
| | | throw new CoolException("æ£ç´¢åºä½å¤±è´¥ï¼è¯·è系管çå"); |
| | |
| | | break; |
| | | } |
| | | } |
| | | // 5-8æ |
| | | // 5-8æ |
| | | } else if (whsType == 2) { |
| | | curRow = curRow - 4; |
| | | for (int i = 0; i < shelves.group; i ++) { |
| | | for (int i = 0; i < shelves.group; i++) { |
| | | curRow = shelves.start(curRow); |
| | | if (curRow < 0) { |
| | | throw new CoolException("æ£ç´¢åºä½å¤±è´¥ï¼è¯·è系管çå"); |
| | |
| | | } |
| | | |
| | | } |
| | | // 126空æ¿å
¥ 1-8æ |
| | | // 126空æ¿å
¥ 1-8æ |
| | | } else { |
| | | for (int i = 0; i < shelves.group; i ++) { |
| | | for (int i = 0; i < shelves.group; i++) { |
| | | curRow = shelves.start(curRow); |
| | | if (curRow < 0) { |
| | | throw new CoolException("æ£ç´¢åºä½å¤±è´¥ï¼è¯·è系管çå"); |
| | |
| | | } |
| | | BasDevp staNo = basDevpService.selectById(staDesc.getCrnStn()); |
| | | if (!staNo.getAutoing().equals("Y")) { |
| | | throw new CoolException("ç®æ ç«"+staDesc.getCrnStn()+"ä¸å¯ç¨"); |
| | | throw new CoolException("ç®æ ç«" + staDesc.getCrnStn() + "ä¸å¯ç¨"); |
| | | } |
| | | // æ´æ°åºä½æå· |
| | | rowLastno.setCurrentRow(curRow); |
| | |
| | | startupDto.setStaNo(staNo.getDevNo()); |
| | | startupDto.setLocNo(locNo); |
| | | return startupDto; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(Arith.remainder(1, 4)); |
| | | System.out.println("0200201".substring(0, 2)); |
| | | String locNo = "0800201"; |
| | | int row = Integer.parseInt(locNo.substring(0, 2)); |
| | | double remainder = Arith.remainder(row, 4); |
| | | int targetRow; |
| | | if (remainder == 1) { |
| | | // å¾å°å½ååºä½çå¤å´åºä½ |
| | | targetRow = row + 1; |
| | | } else if (remainder == 0) { |
| | | // å¾å°å½ååºä½çå
å´åºä½ |
| | | targetRow = row - 1; |
| | | } else { |
| | | return; |
| | | } |
| | | String zerofill = zerofill(String.valueOf(targetRow), 2)+locNo.substring(2); |
| | | System.out.println(zerofill); |
| | | } |
| | | |
| | | public static String zerofill(String msg, Integer count) { |
| | | if (msg.length() == count) { |
| | | return msg; |
| | | } else if (msg.length() > count) { |
| | | return msg.substring(0, 16); |
| | | } else { |
| | | StringBuilder msgBuilder = new StringBuilder(msg); |
| | | for(int i = 0; i < count - msg.length(); ++i) { |
| | | msgBuilder.insert(0, "0"); |
| | | } |
| | | return msgBuilder.toString(); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | public class CollectionUtils { |
| | | |
| | | public static boolean equals(Set<?> set1, Set<?> set2) { |
| | | if(set1 == null || set2 ==null){ |
| | | if (set1 == null || set2 == null) { |
| | | return false; |
| | | } |
| | | if(set1.size()!=set2.size()){ |
| | | if (set1.size() != set2.size()) { |
| | | return false; |
| | | } |
| | | return set1.containsAll(set2); |
| | |
| | | */ |
| | | public class CommonUtils { |
| | | |
| | | public static Integer parseInt(Object value){ |
| | | if(null == value){ |
| | | public static Integer parseInt(Object value) { |
| | | if (null == value) { |
| | | return null; |
| | | } |
| | | String name = value.getClass().getSimpleName().toLowerCase(); |
| | | if(name.equals("float")){ |
| | | return ((Float)value).intValue(); |
| | | } else if(name.equals("double")){ |
| | | return ((Double)value).intValue(); |
| | | } else if(name.equals("bigdecimal")) { |
| | | return ((BigDecimal)value).intValue(); |
| | | } else if(name.equals("long")) { |
| | | return ((Long)value).intValue(); |
| | | } else if(name.contains("int")) { |
| | | return (Integer)value; |
| | | if (name.equals("float")) { |
| | | return ((Float) value).intValue(); |
| | | } else if (name.equals("double")) { |
| | | return ((Double) value).intValue(); |
| | | } else if (name.equals("bigdecimal")) { |
| | | return ((BigDecimal) value).intValue(); |
| | | } else if (name.equals("long")) { |
| | | return ((Long) value).intValue(); |
| | | } else if (name.contains("int")) { |
| | | return (Integer) value; |
| | | } else { |
| | | return Double.valueOf(""+value).intValue(); |
| | | return Double.valueOf("" + value).intValue(); |
| | | } |
| | | } |
| | | |
| | |
| | | */ |
| | | public class Http { |
| | | |
| | | public static void response(HttpServletResponse response, String baseRes){ |
| | | public static void response(HttpServletResponse response, String baseRes) { |
| | | response.setCharacterEncoding("utf-8"); |
| | | response.setContentType("application/json"); |
| | | try (PrintWriter out = response.getWriter()) { |
| | |
| | | private Integer timeout; |
| | | private TimeUnit timeUnit; |
| | | |
| | | public HttpHandler(Builder builder){ |
| | | public HttpHandler(Builder builder) { |
| | | this.uri = builder.uri; |
| | | this.path = builder.path; |
| | | this.json = builder.json; |
| | |
| | | public String doGet() throws IOException { |
| | | String url = paramsToUrl(uri, path, params, https); |
| | | Request.Builder headerBuilder = new Request.Builder(); |
| | | if (headers != null && headers.size()>0){ |
| | | for (Map.Entry<String, Object> entry : headers.entrySet()){ |
| | | if (headers != null && headers.size() > 0) { |
| | | for (Map.Entry<String, Object> entry : headers.entrySet()) { |
| | | headerBuilder.addHeader(entry.getKey(), String.valueOf(entry.getValue())); |
| | | } |
| | | } |
| | |
| | | public String doPost() throws IOException { |
| | | Request request; |
| | | Request.Builder headerBuilder = new Request.Builder(); |
| | | if (headers != null && headers.size()>0){ |
| | | for (Map.Entry<String, Object> entry : headers.entrySet()){ |
| | | if (headers != null && headers.size() > 0) { |
| | | for (Map.Entry<String, Object> entry : headers.entrySet()) { |
| | | headerBuilder.addHeader(entry.getKey(), String.valueOf(entry.getValue())); |
| | | } |
| | | } |
| | | if (json == null || "".equals(json)){ |
| | | if (json == null || "".equals(json)) { |
| | | FormBody.Builder builder = new FormBody.Builder(); |
| | | for (Map.Entry<String, Object> entry : params.entrySet()){ |
| | | for (Map.Entry<String, Object> entry : params.entrySet()) { |
| | | builder.add(entry.getKey(), String.valueOf(entry.getValue())); |
| | | } |
| | | FormBody body = builder.build(); |
| | | request = headerBuilder |
| | | .url((https?"https://":"http://")+uri+path) |
| | | .url((https ? "https://" : "http://") + uri + path) |
| | | .post(body) |
| | | .build(); |
| | | } else { |
| | | RequestBody body = RequestBody.create(MEDIA_TYPE, json); |
| | | Request.Builder builder = headerBuilder.url((https?"https://":"http://")+uri+path); |
| | | Request.Builder builder = headerBuilder.url((https ? "https://" : "http://") + uri + path); |
| | | builder.header("Content-Type", "application/json"); |
| | | request = builder.post(body).build(); |
| | | |
| | |
| | | StringBuilder res = new StringBuilder(); |
| | | res.append(isHttps ? "https://" : "http://"); |
| | | res.append(uri); |
| | | if (path.length() > 0 && !(path.charAt(0) == '/')){ |
| | | if (path.length() > 0 && !(path.charAt(0) == '/')) { |
| | | res.append("/"); |
| | | } |
| | | res.append(path); |
| | |
| | | } |
| | | ); |
| | | String url = res.toString(); |
| | | if ("&".equals(url.substring(url.length()-1, url.length()))){ |
| | | url = url.substring(0, url.length()-1); |
| | | if ("&".equals(url.substring(url.length() - 1, url.length()))) { |
| | | url = url.substring(0, url.length() - 1); |
| | | } |
| | | return url; |
| | | } |
| | |
| | | * è·å okHttpClient |
| | | * @return the HttpHandler instance |
| | | */ |
| | | private OkHttpClient getClient(Integer timeout, TimeUnit timeUnit){ |
| | | private OkHttpClient getClient(Integer timeout, TimeUnit timeUnit) { |
| | | return new OkHttpClient |
| | | .Builder() |
| | | .connectTimeout(timeout, timeUnit) |
| | |
| | | * 建é å¨ |
| | | * @return the HttpHandler instance |
| | | */ |
| | | public HttpHandler build(){ |
| | | if (null == this.uri || "".equals(this.uri)){ |
| | | public HttpHandler build() { |
| | | if (null == this.uri || "".equals(this.uri)) { |
| | | throw new RuntimeException("uri is null"); |
| | | } |
| | | if (this.uri.startsWith("http://")){ |
| | | this.uri = this.uri.substring(6,uri.length()); |
| | | } else if (this.uri.startsWith("https://")){ |
| | | this.uri = this.uri.substring(7,uri.length()); |
| | | if (this.uri.startsWith("http://")) { |
| | | this.uri = this.uri.substring(6, uri.length()); |
| | | } else if (this.uri.startsWith("https://")) { |
| | | this.uri = this.uri.substring(7, uri.length()); |
| | | } |
| | | return new HttpHandler(this); |
| | | } |
| | |
| | | } |
| | | |
| | | public Builder setPath(String path) { |
| | | if (!path.startsWith("/")){ |
| | | if (!path.startsWith("/")) { |
| | | path = "/" + path; |
| | | } |
| | | this.path = path; |
| | |
| | | return image; |
| | | } |
| | | |
| | | private static InputStream convert(BufferedImage image){ |
| | | private static InputStream convert(BufferedImage image) { |
| | | ByteArrayOutputStream os = new ByteArrayOutputStream(); |
| | | try { |
| | | ImageIO.write(image, FORMAT_NAME, os); |
| | |
| | | // response.getOutputStream().flush(); |
| | | // response.getOutputStream().close(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | public class RandomValidateCodeUtil { |
| | | |
| | | public static final Map<String, String> code = new ConcurrentHashMap<>(); |
| | | |
| | | |
| | | private static String randString = "0123456789ABCDEFGHJKLMNPRSTUVWXYZ";//éæºäº§çæ°åä¸åæ¯ç»åçå符串 |
| | | private static int width = 60;// å¾ç宽 |
| | | private static int height = 27;// å¾çé« |
| | |
| | | .length()))); |
| | | randomString += rand; |
| | | g.translate(random.nextInt(3), random.nextInt(3)); |
| | | g.drawString(rand, 13 * (i-1)+2, 16); |
| | | g.drawString(rand, 13 * (i - 1) + 2, 16); |
| | | return randomString; |
| | | } |
| | | |
| | |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | |
| | | /** |
| | | * è·åæå®Classï¼åå
¶SuperClassï¼çæååé |
| | | */ |
| | | public static Field[] getAllFields(Class<?> cls){ |
| | | public static Field[] getAllFields(Class<?> cls) { |
| | | return getAllFields(cls, null); |
| | | } |
| | | |
| | | /** |
| | | * éå½åå¹¶åºç±»Field |
| | | */ |
| | | private static Field[] getAllFields(Class<?> cls, Field[] params){ |
| | | private static Field[] getAllFields(Class<?> cls, Field[] params) { |
| | | Field[] fields = (params == null) ? cls.getDeclaredFields() : params; |
| | | Class<?> superCls = cls.getSuperclass(); |
| | | if (superCls == null || superCls == Object.class){ |
| | | if (superCls == null || superCls == Object.class) { |
| | | return fields; |
| | | } |
| | | Field[] superClsFields = superCls.getDeclaredFields(); |
| | |
| | | /** |
| | | * å é¤Fieldæ°ç»çéææååé |
| | | */ |
| | | public static Field[] removeStaticField(Field[] params){ |
| | | public static Field[] removeStaticField(Field[] params) { |
| | | List<Field> fields = new ArrayList<>(Arrays.asList(params)); |
| | | if (fields.size() == 0){ |
| | | if (fields.size() == 0) { |
| | | return null; |
| | | } |
| | | for (int i = fields.size() - 1; i >= 0; i--) { |
| | | if(fields.get(i) == null){ |
| | | if (fields.get(i) == null) { |
| | | fields.remove(i); |
| | | } else if (Modifier.isStatic(fields.get(i).getModifiers())) { |
| | | fields.remove(i); |
| | |
| | | /** |
| | | * éå½è·åæååé对象ï¼å
å«å
¶åºç±»ï¼ |
| | | */ |
| | | public static Field getField(Class<?> cls, String fieldName){ |
| | | public static Field getField(Class<?> cls, String fieldName) { |
| | | Field field; |
| | | try { |
| | | field = cls.getDeclaredField(fieldName); |
| | | } catch (NoSuchFieldException e) { |
| | | Class<?> superCls = cls.getSuperclass(); |
| | | if (superCls == null || superCls == Object.class){ |
| | | if (superCls == null || superCls == Object.class) { |
| | | return null; |
| | | } |
| | | return getField(superCls, fieldName); |
| | |
| | | * @author vincent |
| | | */ |
| | | public class Struct implements java.io.Serializable { |
| | | |
| | | private transient Map<String,byte[]> decodeByteMapping = new HashMap<>(); |
| | | private transient Map<String,byte[]> encodeByteMapping = new HashMap<>(); |
| | | // è§£ç åçåçåèæ°ç» |
| | | private transient byte[] dataBytes = null; |
| | | private transient byte[] decodeBytes = null; |
| | | private transient byte[] encodeBytes = null; |
| | | private transient byte[] unusedBytes = null; |
| | | |
| | | public Class getClassType(String name){ |
| | | return null; |
| | | } |
| | | private transient Map<String, byte[]> decodeByteMapping = new HashMap<>(); |
| | | private transient Map<String, byte[]> encodeByteMapping = new HashMap<>(); |
| | | // è§£ç åçåçåèæ°ç» |
| | | private transient byte[] dataBytes = null; |
| | | private transient byte[] decodeBytes = null; |
| | | private transient byte[] encodeBytes = null; |
| | | private transient byte[] unusedBytes = null; |
| | | |
| | | /** |
| | | * 夿大å°ç«¯ |
| | | * @return true: å°ç«¯ / false: 大端 |
| | | */ |
| | | public boolean isReverse() { |
| | | return this.getClass().getAnnotation(little.class)!=null; |
| | | } |
| | | @SuppressWarnings({"unchecked", "rawtypes"}) |
| | | public static <T extends Struct> T decode(Class<? extends Struct> cls, byte[] bytes) throws Exception { |
| | | Struct instance = cls.newInstance(); |
| | | return instance.decode(bytes); |
| | | } |
| | | |
| | | /** |
| | | * è·ååèæ°ç» |
| | | */ |
| | | public byte[] toBytes() throws Exception { |
| | | return encode(this); |
| | | } |
| | | |
| | | public Map<String,String> toDecodeHexMapping() throws Exception{ |
| | | if(this.decodeByteMapping==null)this.decodeByteMapping=new HashMap<>(); |
| | | Map<String, String> mapping = getHex(this.decodeByteMapping); |
| | | if(this.decodeBytes!=null){ |
| | | mapping.put("byte[]", Struct.toHex(this.decodeBytes)); |
| | | } |
| | | return mapping; |
| | | } |
| | | public Map<String,String> toEncodeHexMapping() throws Exception{ |
| | | if(this.encodeBytes==null)this.encode(this); |
| | | if(this.encodeByteMapping==null)this.encodeByteMapping=new HashMap<>(); |
| | | Map<String, String> mapping = getHex(this.encodeByteMapping); |
| | | mapping.put("byte[]", Struct.toHex(this.encodeBytes)); |
| | | return mapping; |
| | | } |
| | | public Map<String,String> getHex(Map<String,byte[]> bytemapping) throws Exception { |
| | | Map<String,String> map = new LinkedHashMap<>(); |
| | | Field[] fields = this.getClass().getFields(); |
| | | for (Field field : fields) { |
| | | byte[] bytes = bytemapping.get(field.getName()); |
| | | if(bytes!=null){ |
| | | map.put(field.getName(), Struct.toHex(bytes)); |
| | | } |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | // 转javaå¯¹è±¡å°æ°ç» |
| | | public byte[] encode(Struct entity) throws Exception { |
| | | ByteArrayOutputStream baOs = new ByteArrayOutputStream(); |
| | | write(new DataOutputStream(baOs), entity); |
| | | entity.encodeBytes = baOs.toByteArray(); |
| | | return entity.encodeBytes; |
| | | } |
| | | |
| | | /** |
| | | * åæ°æ®å°è¾åºæµ |
| | | * |
| | | * @param dos |
| | | * @param entity |
| | | */ |
| | | public void write(DataOutputStream dos, Struct entity) throws Exception { |
| | | if(entity==null)return; |
| | | if(entity.encodeByteMapping==null)entity.encodeByteMapping=new HashMap<>(); |
| | | Field[] fields = entity.getClass().getFields(); |
| | | EvaluationContext context = new StandardEvaluationContext(); |
| | | for (Field field : Objects.requireNonNull(ReflectUtils.removeStaticField(fields))) { |
| | | field.setAccessible(true); |
| | | |
| | | String name = field.getName(); |
| | | Class<?> type = field.getType(); |
| | | String typeName = type.getSimpleName(); |
| | | if(typeName.equals("Struct")){ |
| | | if(entity.getClassType(name)!=null){ |
| | | type = entity.getClassType(name); |
| | | typeName = type.getSimpleName(); |
| | | }else if(field.get(entity)!=null){ |
| | | type = field.get(entity).getClass(); |
| | | typeName = type.getSimpleName(); |
| | | } |
| | | } |
| | | |
| | | size size = field.getAnnotation(size.class); |
| | | bit bit = field.getAnnotation(bit.class); |
| | | expr expr = field.getAnnotation(expr.class); |
| | | flag flag = field.getAnnotation(flag.class); |
| | | if(size==null && bit==null && expr==null){ |
| | | continue; |
| | | } |
| | | |
| | | int bited = 0;//å·²å使° |
| | | int length = 0;//å®ä¹çé¿åº¦ |
| | | if(size!=null){ |
| | | length = size.value(); |
| | | bited+=size.value()*8; |
| | | }else if(bit!=null){ |
| | | //æä½åæ¹å¼æªå®ç°å¤ç |
| | | throw new RuntimeException("æä½åæ¹å¼æªå®ç°å¤ç"); |
| | | }else if(expr!=null){ |
| | | ExpressionParser parser = new SpelExpressionParser(); |
| | | Expression exp = parser.parseExpression(expr.value()); |
| | | Integer len = null; |
| | | try{ |
| | | len = CommonUtils.parseInt(exp.getValue(context, entity)); |
| | | }catch (Exception e){ |
| | | len = 0; |
| | | } |
| | | if(len!=null){ |
| | | if(len==-1)continue; |
| | | length = len; |
| | | bited+=len*8; |
| | | } |
| | | } |
| | | context.setVariable(name, field.get(entity)); |
| | | |
| | | byte[] bytes = new byte[length]; |
| | | |
| | | if (typeName.equals("int") || typeName.equals("Integer")){ |
| | | dos.write(bytes=convert(length,field.getInt(entity))); |
| | | }else if (typeName.equals("long") || typeName.equals("Long")){ |
| | | dos.write(bytes=convert(length,field.getLong(entity))); |
| | | }else if (typeName.equals("short") || typeName.equals("Short")){ |
| | | dos.write(bytes=convert(length,field.getShort(entity))); |
| | | }else if (typeName.equals("byte") || typeName.equals("Byte")){ |
| | | dos.write(bytes=convert(length,field.getByte(entity))); |
| | | }else if (typeName.equals("String")) { |
| | | String str = (String) field.get(entity); |
| | | if (str == null) |
| | | str = ""; |
| | | str = str.replaceAll("ã", " "); |
| | | |
| | | byte[] bts = null; |
| | | if(flag!=null && flag.value().equals("ASCII")){ |
| | | bts = Struct.StrToAsc(str); |
| | | }else if(flag!=null && flag.value().equals("BCD")){ |
| | | bts = Struct.str2Bcd(str); |
| | | }else{ |
| | | bts = str.getBytes(); |
| | | } |
| | | |
| | | if(length==0){//妿é¿åº¦æªè®¾ç½®ï¼ä»¥å½åå®é
çåè为å |
| | | bytes = new byte[bts.length]; |
| | | } |
| | | System.arraycopy(bts, 0, bytes, 0, bts.length); |
| | | dos.write(bytes); |
| | | } else if (typeName.equals("byte[]")) { |
| | | byte[] bts = (byte[]) field.get(entity); |
| | | if(bts!=null){ |
| | | if(length==0){//妿é¿åº¦æªè®¾ç½®ï¼ä»¥å½åå®é
çåè为å |
| | | bytes = new byte[bts.length]; |
| | | } |
| | | System.arraycopy(bts, 0, bytes, 0, bts.length); |
| | | dos.write(bytes); |
| | | } |
| | | }else if (type.isArray()) { |
| | | ByteArrayOutputStream baOs1 = new ByteArrayOutputStream(); |
| | | DataOutputStream dos1 = new DataOutputStream(baOs1); |
| | | for (Object object : (Object[]) field.get(entity)){ |
| | | write(dos1, (Struct) object); |
| | | } |
| | | byte[] bts = baOs1.toByteArray(); |
| | | if(length==0){//妿é¿åº¦æªè®¾ç½®ï¼ä»¥å½åå®é
çåè为å |
| | | bytes = new byte[bts.length]; |
| | | } |
| | | System.arraycopy(bts, 0, bytes, 0, bts.length); |
| | | dos.write(bytes); |
| | | } else { |
| | | byte[] bts = encode((Struct) field.get(entity)); |
| | | if(length==0){//妿é¿åº¦æªè®¾ç½®ï¼ä»¥å½åå®é
çåè为å |
| | | bytes = new byte[bts.length]; |
| | | } |
| | | System.arraycopy(bts, 0, bytes, 0, bts.length); |
| | | dos.write(bytes); |
| | | } |
| | | entity.encodeByteMapping.put(name, bytes); |
| | | } |
| | | } |
| | | |
| | | |
| | | public byte[] convert(int size, long value) throws Exception{ |
| | | ByteArrayOutputStream baOs = new ByteArrayOutputStream(); |
| | | DataOutputStream dos = new DataOutputStream(baOs); |
| | | switch(size){ |
| | | case 1://byte |
| | | dos.write((byte) value); |
| | | break; |
| | | case 2://short |
| | | dos.writeShort(this.isReverse() ? Short.reverseBytes((short)value) : (short)value); |
| | | break; |
| | | case 4://int |
| | | dos.writeInt(this.isReverse() ? Integer.reverseBytes((int)value) : (int)value); |
| | | break; |
| | | case 8://long |
| | | dos.writeLong(this.isReverse() ? Long.reverseBytes((long)value) : (long)value); |
| | | break; |
| | | } |
| | | return baOs.toByteArray(); |
| | | } |
| | | |
| | | public long convertEx(long value,int size) throws Exception{ |
| | | switch(size){ |
| | | case 1://byte |
| | | return value; |
| | | case 2://short |
| | | return (this.isReverse() ? Short.reverseBytes((short)value) : (short)value); |
| | | case 4://int |
| | | return (this.isReverse() ? Integer.reverseBytes((int)value) : (int)value); |
| | | case 8://long |
| | | return (this.isReverse() ? Long.reverseBytes((long)value) : (long)value); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | @SuppressWarnings({ "unchecked", "rawtypes" }) |
| | | public static <T extends Struct> T decode(Class<? extends Struct> cls,byte[] bytes) throws Exception{ |
| | | Struct instance = cls.newInstance(); |
| | | return instance.decode(bytes); |
| | | } |
| | | |
| | | /** |
| | | * è§£ç ï¼ åèæ°ç» ====>> java对象 |
| | | */ |
| | | @SuppressWarnings({ "unchecked", "rawtypes" }) |
| | | public <T extends Struct> T decode(byte[] bytes) throws Exception{ |
| | | this.dataBytes = bytes; |
| | | Struct instance = this; |
| | | Class<? extends Struct> cls = this.getClass(); |
| | | Field[] fields = cls.getFields(); |
| | | if(this.decodeByteMapping==null)instance.decodeByteMapping=new HashMap(); |
| | | // spring elè¡¨è¾¾å¼ |
| | | EvaluationContext context = new StandardEvaluationContext(); |
| | | context.setVariable("_", bytes.length); |
| | | int bited = 0;//å·²è¯»ä½æ° |
| | | for(Field field: Objects.requireNonNull(ReflectUtils.removeStaticField(fields))){ |
| | | size size = field.getAnnotation(size.class); |
| | | bit bit = field.getAnnotation(bit.class); |
| | | expr expr = field.getAnnotation(expr.class); |
| | | flag flag = field.getAnnotation(flag.class); |
| | | // 没æsizeãbitãexpr注解çåéä¸è¿è¡è§£æ |
| | | if(size==null && bit==null && expr==null){ |
| | | continue; |
| | | } |
| | | String name = field.getName(); |
| | | Class<?> type = field.getType(); |
| | | String typeName = type.getSimpleName(); |
| | | if(typeName.equals("Struct")){ |
| | | if(instance.getClassType(name)!=null){ |
| | | type = instance.getClassType(name); |
| | | typeName = type.getSimpleName(); |
| | | } |
| | | } |
| | | context.setVariable("__", bytes.length-bited/8); |
| | | byte[] bts = null; |
| | | if(size!=null){ |
| | | bts = new byte[size.value()]; |
| | | System.arraycopy(bytes, bited/8, bts, 0, size.value()); |
| | | bited+=size.value()*8; |
| | | }else if(bit!=null){ |
| | | int val = 0; |
| | | String strBin = ""; |
| | | for(int i=bited;i<bited+bit.value();i++){//é使«æ |
| | | if((bytes[i/8] & (1 << (i%8))) != 0){//妿ä½ä¸º1 |
| | | strBin+="1"; |
| | | }else{ |
| | | strBin+="0"; |
| | | } |
| | | val = Integer.parseInt(strBin, 2); |
| | | } |
| | | byte[] result = new byte[4]; |
| | | result[3] = (byte)(val); |
| | | result[2] = (byte)(val >> 8); |
| | | result[1] = (byte)(val >> 16); |
| | | result[0] = (byte)(val >> 24); |
| | | bts = new byte[(int)Math.ceil((double)bit.value()/8.0)]; |
| | | System.arraycopy(result, result.length-bts.length, bts, 0, bts.length); |
| | | bited+=bit.value(); |
| | | }else if(expr!=null){ |
| | | ExpressionParser parser = new SpelExpressionParser(); |
| | | Expression exp = parser.parseExpression(expr.value()); |
| | | Integer len = CommonUtils.parseInt(exp.getValue(context,instance)); |
| | | if(len!=null){ |
| | | if(len==-1)continue; |
| | | bts = new byte[len]; |
| | | System.arraycopy(bytes, bited/8, bts, 0, len); |
| | | bited+=len*8; |
| | | } |
| | | } |
| | | if(bts.length==0)continue; |
| | | DataInputStream dis = new DataInputStream(new ByteArrayInputStream(bts)); |
| | | if (typeName.equals("int") || typeName.equals("Integer")){ |
| | | field.setInt(instance,(int) convertEx(dis.readInt(),4)); |
| | | }else if (typeName.equals("long") || typeName.equals("Long")){ |
| | | field.setLong(instance, convertEx(dis.readLong(),8)); |
| | | }else if (typeName.equals("short") || typeName.equals("Short")){ |
| | | field.setShort(instance, (short) convertEx(dis.readShort(),2)); |
| | | }else if (typeName.equals("byte") || typeName.equals("Byte")){ |
| | | field.setByte(instance, (byte) convertEx(dis.readByte(),1)); |
| | | }else if (typeName.equals("byte[]")){ |
| | | field.set(instance, bts); |
| | | }else if (typeName.equals("String")) { |
| | | String strStr = new String(bts, StandardCharsets.UTF_8); |
| | | if(flag!=null && flag.value().equals("BCD")){ |
| | | strStr = bcd2Str(bts); |
| | | }else if(flag!=null && flag.value().equals("ASCII")){ |
| | | strStr = Struct.AscToStr(bts); |
| | | } |
| | | strStr = strStr.replaceAll("[\u0000]", ""); |
| | | field.set(instance, strStr); |
| | | }else if (type.isArray()) { |
| | | byte[] arrayBytes = bts; |
| | | List list = new ArrayList(); |
| | | while(arrayBytes.length>0 && list.size()<256){ |
| | | Struct item = decode((Class<? extends Struct>) type.getComponentType(),arrayBytes); |
| | | list.add(item); |
| | | arrayBytes = item.unusedBytes; |
| | | } |
| | | Object array = Array.newInstance(type.getComponentType(), list.size()); |
| | | for(int i=0;i<list.size();i++){ |
| | | Array.set(array, i, list.get(i)); |
| | | } |
| | | field.set(instance, array); |
| | | }else if(type==Struct.class || Struct.class.isAssignableFrom(type)){ |
| | | byte[] arrayBytes = bts; |
| | | Struct item = decode((Class<? extends Struct>) type,arrayBytes); |
| | | field.set(instance, item); |
| | | }else{ |
| | | throw new RuntimeException(cls.getSimpleName()+"åæ®µ"+field.getName()+"ç±»åæªç¥"); |
| | | } |
| | | instance.decodeByteMapping.put(name, bts); |
| | | context.setVariable(name, field.get(instance)); |
| | | } |
| | | byte[] useBytes = new byte[bited/8]; |
| | | System.arraycopy(bytes, 0 , useBytes, 0, bited/8); |
| | | instance.decodeBytes = useBytes; |
| | | byte[] unusedBytes = new byte[bytes.length-(bited/8)]; |
| | | if(unusedBytes.length>0){ |
| | | System.arraycopy(bytes, useBytes.length , unusedBytes, 0, unusedBytes.length); |
| | | } |
| | | instance.unusedBytes = unusedBytes; |
| | | return (T) instance; |
| | | } |
| | | |
| | | // åèæ°ç» ===>> 转为åå
è¿å¶å符串 |
| | | public static String toHex(byte[] bytes) { |
| | | // åèæ°ç» ===>> 转为åå
è¿å¶å符串 |
| | | public static String toHex(byte[] bytes) { |
| | | StringBuilder buf = new StringBuilder(bytes.length * 2); |
| | | for(byte b : bytes) { // 使ç¨Stringçformatæ¹æ³è¿è¡è½¬æ¢ |
| | | for (byte b : bytes) { // 使ç¨Stringçformatæ¹æ³è¿è¡è½¬æ¢ |
| | | buf.append(String.format("%02x", b & 0xff)); |
| | | } |
| | | return buf.toString().toUpperCase(); |
| | | } |
| | | |
| | | public static byte[] toBytes(String str) { |
| | | if(str == null || str.trim().equals("")) return new byte[0]; |
| | | if (str == null || str.trim().equals("")) return new byte[0]; |
| | | byte[] bytes = new byte[str.length() / 2]; |
| | | for(int i = 0; i < str.length() / 2; i++) { |
| | | for (int i = 0; i < str.length() / 2; i++) { |
| | | String subStr = str.substring(i * 2, i * 2 + 2); |
| | | bytes[i] = (byte) Integer.parseInt(subStr, 16); |
| | | } |
| | | return bytes; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * @åè½: BCDç 转为10è¿å¶ä¸²(é¿æä¼¯æ°æ®) |
| | | * @åæ°: BCDç |
| | | * @ç»æ: 10è¿å¶ä¸² |
| | | */ |
| | | public static String bcd2Str(byte[] bytes) { |
| | | StringBuffer temp = new StringBuffer(bytes.length * 2); |
| | | for (int i = 0; i < bytes.length; i++) { |
| | | temp.append((byte) ((bytes[i] & 0xf0) >>> 4)); |
| | | temp.append((byte) (bytes[i] & 0x0f)); |
| | | } |
| | | return temp.toString().substring(0, 1).equalsIgnoreCase("0") ? temp |
| | | .toString().substring(1) : temp.toString(); |
| | | } |
| | | |
| | | /** |
| | | * @åè½: 10è¿å¶ä¸²è½¬ä¸ºBCDç |
| | | * @åæ°: 10è¿å¶ä¸² |
| | | * @ç»æ: BCDç |
| | | */ |
| | | public static byte[] str2Bcd(String asc) { |
| | | int len = asc.length(); |
| | | int mod = len % 2; |
| | | if (mod != 0) { |
| | | asc = "0" + asc; |
| | | len = asc.length(); |
| | | } |
| | | byte abt[] = new byte[len]; |
| | | if (len >= 2) { |
| | | len = len / 2; |
| | | } |
| | | byte bbt[] = new byte[len]; |
| | | abt = asc.getBytes(); |
| | | int j, k; |
| | | for (int p = 0; p < asc.length() / 2; p++) { |
| | | if ((abt[2 * p] >= '0') && (abt[2 * p] <= '9')) { |
| | | j = abt[2 * p] - '0'; |
| | | } else if ((abt[2 * p] >= 'a') && (abt[2 * p] <= 'z')) { |
| | | j = abt[2 * p] - 'a' + 0x0a; |
| | | } else { |
| | | j = abt[2 * p] - 'A' + 0x0a; |
| | | } |
| | | if ((abt[2 * p + 1] >= '0') && (abt[2 * p + 1] <= '9')) { |
| | | k = abt[2 * p + 1] - '0'; |
| | | } else if ((abt[2 * p + 1] >= 'a') && (abt[2 * p + 1] <= 'z')) { |
| | | k = abt[2 * p + 1] - 'a' + 0x0a; |
| | | } else { |
| | | k = abt[2 * p + 1] - 'A' + 0x0a; |
| | | } |
| | | int a = (j << 4) + k; |
| | | byte b = (byte) a; |
| | | bbt[p] = b; |
| | | } |
| | | return bbt; |
| | | } |
| | | |
| | | public static class TestMessage { |
| | | public @size(1) byte begin = 0x7e;//èµ·å§ç¬¦ |
| | | public @size(2) short type = 0;//æ¶æ¯ID |
| | | public @bit(2) byte retain;//æ¶æ¯ä½å±æ§>ä¿ç |
| | | public @bit(1) byte subpkg;//æ¶æ¯ä½å±æ§>æ¯å¦åå
,0表示ä¸åå
|
| | | public @bit(3) byte encrypt;//æ¶æ¯ä½å±æ§>å 坿¹å¼,0表示ä¸å å¯ |
| | | public @bit(10) short length;//æ¶æ¯ä½é¿åº¦ |
| | | public @size(6) @flag("BCD") String number;//ææºå·ç |
| | | public @size(2) short serial;//æ¶æ¯æµæ°´å· |
| | | public @expr("#subpkg==1?2:0") short pkgs;//åå
æ° |
| | | public @expr("#subpkg==1?2:0") short index;//å
åºå· |
| | | public @expr("#length") byte[] data;//æ°æ®é¨å |
| | | public @size(1) byte verify;//æ ¡éªç |
| | | public @size(1) byte end = 0x7e;//ç»æç¬¦ |
| | | } |
| | | |
| | | public static byte getXor(byte[] datas,int start, int end){ |
| | | byte temp=datas[start]; |
| | | for (int i = start+1; i <end; i++) { |
| | | temp ^=datas[i]; |
| | | } |
| | | return temp; |
| | | /** |
| | | * @åè½: BCDç 转为10è¿å¶ä¸²(é¿æä¼¯æ°æ®) |
| | | * @åæ°: BCDç |
| | | * @ç»æ: 10è¿å¶ä¸² |
| | | */ |
| | | public static String bcd2Str(byte[] bytes) { |
| | | StringBuffer temp = new StringBuffer(bytes.length * 2); |
| | | for (int i = 0; i < bytes.length; i++) { |
| | | temp.append((byte) ((bytes[i] & 0xf0) >>> 4)); |
| | | temp.append((byte) (bytes[i] & 0x0f)); |
| | | } |
| | | return temp.toString().substring(0, 1).equalsIgnoreCase("0") ? temp |
| | | .toString().substring(1) : temp.toString(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @åè½: 10è¿å¶ä¸²è½¬ä¸ºBCDç |
| | | * @åæ°: 10è¿å¶ä¸² |
| | | * @ç»æ: BCDç |
| | | */ |
| | | public static byte[] str2Bcd(String asc) { |
| | | int len = asc.length(); |
| | | int mod = len % 2; |
| | | if (mod != 0) { |
| | | asc = "0" + asc; |
| | | len = asc.length(); |
| | | } |
| | | byte abt[] = new byte[len]; |
| | | if (len >= 2) { |
| | | len = len / 2; |
| | | } |
| | | byte bbt[] = new byte[len]; |
| | | abt = asc.getBytes(); |
| | | int j, k; |
| | | for (int p = 0; p < asc.length() / 2; p++) { |
| | | if ((abt[2 * p] >= '0') && (abt[2 * p] <= '9')) { |
| | | j = abt[2 * p] - '0'; |
| | | } else if ((abt[2 * p] >= 'a') && (abt[2 * p] <= 'z')) { |
| | | j = abt[2 * p] - 'a' + 0x0a; |
| | | } else { |
| | | j = abt[2 * p] - 'A' + 0x0a; |
| | | } |
| | | if ((abt[2 * p + 1] >= '0') && (abt[2 * p + 1] <= '9')) { |
| | | k = abt[2 * p + 1] - '0'; |
| | | } else if ((abt[2 * p + 1] >= 'a') && (abt[2 * p + 1] <= 'z')) { |
| | | k = abt[2 * p + 1] - 'a' + 0x0a; |
| | | } else { |
| | | k = abt[2 * p + 1] - 'A' + 0x0a; |
| | | } |
| | | int a = (j << 4) + k; |
| | | byte b = (byte) a; |
| | | bbt[p] = b; |
| | | } |
| | | return bbt; |
| | | } |
| | | |
| | | public static byte getXor(byte[] datas, int start, int end) { |
| | | byte temp = datas[start]; |
| | | for (int i = start + 1; i < end; i++) { |
| | | temp ^= datas[i]; |
| | | } |
| | | return temp; |
| | | } |
| | | |
| | | /** |
| | | * æ±æ ¡éªåçç®æ³ |
| | | * @param b éè¦æ±æ ¡éªåçåèæ°ç» |
| | | * @return æ ¡éªå |
| | | */ |
| | | public static byte sumCheck(byte[] b,int start, int end){ |
| | | public static byte sumCheck(byte[] b, int start, int end) { |
| | | int sum = 0; |
| | | for(int i = start; i < end; i++){ |
| | | for (int i = start; i < end; i++) { |
| | | sum = sum + b[i]; |
| | | } |
| | | return (byte) (sum & 0xff); |
| | | } |
| | | |
| | | //å符串转æ¢ä¸ºascii |
| | | public static byte[] StrToAsc(String content){ |
| | | try { |
| | | return content.getBytes(StandardCharsets.US_ASCII); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return null; |
| | | } |
| | | |
| | | //å符串转æ¢ä¸ºascii |
| | | public static byte[] StrToAsc(String content) { |
| | | try { |
| | | return content.getBytes(StandardCharsets.US_ASCII); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | |
| | | //ascii转æ¢ä¸ºstring |
| | | public static String AscToStr(byte[] bytes){ |
| | | StringBuffer sbu = new StringBuffer(); |
| | | for (byte aByte : bytes) { |
| | | sbu.append(Character.toString((char) aByte)); |
| | | } |
| | | return sbu.toString(); |
| | | public static String AscToStr(byte[] bytes) { |
| | | StringBuffer sbu = new StringBuffer(); |
| | | for (byte aByte : bytes) { |
| | | sbu.append(Character.toString((char) aByte)); |
| | | } |
| | | return sbu.toString(); |
| | | } |
| | | |
| | | public Class getClassType(String name) { |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 夿大å°ç«¯ |
| | | * @return true: å°ç«¯ / false: 大端 |
| | | */ |
| | | public boolean isReverse() { |
| | | return this.getClass().getAnnotation(little.class) != null; |
| | | } |
| | | |
| | | /** |
| | | * è·ååèæ°ç» |
| | | */ |
| | | public byte[] toBytes() throws Exception { |
| | | return encode(this); |
| | | } |
| | | |
| | | public Map<String, String> toDecodeHexMapping() throws Exception { |
| | | if (this.decodeByteMapping == null) this.decodeByteMapping = new HashMap<>(); |
| | | Map<String, String> mapping = getHex(this.decodeByteMapping); |
| | | if (this.decodeBytes != null) { |
| | | mapping.put("byte[]", Struct.toHex(this.decodeBytes)); |
| | | } |
| | | return mapping; |
| | | } |
| | | |
| | | public Map<String, String> toEncodeHexMapping() throws Exception { |
| | | if (this.encodeBytes == null) this.encode(this); |
| | | if (this.encodeByteMapping == null) this.encodeByteMapping = new HashMap<>(); |
| | | Map<String, String> mapping = getHex(this.encodeByteMapping); |
| | | mapping.put("byte[]", Struct.toHex(this.encodeBytes)); |
| | | return mapping; |
| | | } |
| | | |
| | | public Map<String, String> getHex(Map<String, byte[]> bytemapping) throws Exception { |
| | | Map<String, String> map = new LinkedHashMap<>(); |
| | | Field[] fields = this.getClass().getFields(); |
| | | for (Field field : fields) { |
| | | byte[] bytes = bytemapping.get(field.getName()); |
| | | if (bytes != null) { |
| | | map.put(field.getName(), Struct.toHex(bytes)); |
| | | } |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | // 转javaå¯¹è±¡å°æ°ç» |
| | | public byte[] encode(Struct entity) throws Exception { |
| | | ByteArrayOutputStream baOs = new ByteArrayOutputStream(); |
| | | write(new DataOutputStream(baOs), entity); |
| | | entity.encodeBytes = baOs.toByteArray(); |
| | | return entity.encodeBytes; |
| | | } |
| | | |
| | | /** |
| | | * åæ°æ®å°è¾åºæµ |
| | | * |
| | | * @param dos |
| | | * @param entity |
| | | */ |
| | | public void write(DataOutputStream dos, Struct entity) throws Exception { |
| | | if (entity == null) return; |
| | | if (entity.encodeByteMapping == null) entity.encodeByteMapping = new HashMap<>(); |
| | | Field[] fields = entity.getClass().getFields(); |
| | | EvaluationContext context = new StandardEvaluationContext(); |
| | | for (Field field : Objects.requireNonNull(ReflectUtils.removeStaticField(fields))) { |
| | | field.setAccessible(true); |
| | | |
| | | String name = field.getName(); |
| | | Class<?> type = field.getType(); |
| | | String typeName = type.getSimpleName(); |
| | | if (typeName.equals("Struct")) { |
| | | if (entity.getClassType(name) != null) { |
| | | type = entity.getClassType(name); |
| | | typeName = type.getSimpleName(); |
| | | } else if (field.get(entity) != null) { |
| | | type = field.get(entity).getClass(); |
| | | typeName = type.getSimpleName(); |
| | | } |
| | | } |
| | | |
| | | size size = field.getAnnotation(size.class); |
| | | bit bit = field.getAnnotation(bit.class); |
| | | expr expr = field.getAnnotation(expr.class); |
| | | flag flag = field.getAnnotation(flag.class); |
| | | if (size == null && bit == null && expr == null) { |
| | | continue; |
| | | } |
| | | |
| | | int bited = 0;//å·²å使° |
| | | int length = 0;//å®ä¹çé¿åº¦ |
| | | if (size != null) { |
| | | length = size.value(); |
| | | bited += size.value() * 8; |
| | | } else if (bit != null) { |
| | | //æä½åæ¹å¼æªå®ç°å¤ç |
| | | throw new RuntimeException("æä½åæ¹å¼æªå®ç°å¤ç"); |
| | | } else if (expr != null) { |
| | | ExpressionParser parser = new SpelExpressionParser(); |
| | | Expression exp = parser.parseExpression(expr.value()); |
| | | Integer len = null; |
| | | try { |
| | | len = CommonUtils.parseInt(exp.getValue(context, entity)); |
| | | } catch (Exception e) { |
| | | len = 0; |
| | | } |
| | | if (len != null) { |
| | | if (len == -1) continue; |
| | | length = len; |
| | | bited += len * 8; |
| | | } |
| | | } |
| | | context.setVariable(name, field.get(entity)); |
| | | |
| | | byte[] bytes = new byte[length]; |
| | | |
| | | if (typeName.equals("int") || typeName.equals("Integer")) { |
| | | dos.write(bytes = convert(length, field.getInt(entity))); |
| | | } else if (typeName.equals("long") || typeName.equals("Long")) { |
| | | dos.write(bytes = convert(length, field.getLong(entity))); |
| | | } else if (typeName.equals("short") || typeName.equals("Short")) { |
| | | dos.write(bytes = convert(length, field.getShort(entity))); |
| | | } else if (typeName.equals("byte") || typeName.equals("Byte")) { |
| | | dos.write(bytes = convert(length, field.getByte(entity))); |
| | | } else if (typeName.equals("String")) { |
| | | String str = (String) field.get(entity); |
| | | if (str == null) |
| | | str = ""; |
| | | str = str.replaceAll("ã", " "); |
| | | |
| | | byte[] bts = null; |
| | | if (flag != null && flag.value().equals("ASCII")) { |
| | | bts = Struct.StrToAsc(str); |
| | | } else if (flag != null && flag.value().equals("BCD")) { |
| | | bts = Struct.str2Bcd(str); |
| | | } else { |
| | | bts = str.getBytes(); |
| | | } |
| | | |
| | | if (length == 0) {//妿é¿åº¦æªè®¾ç½®ï¼ä»¥å½åå®é
çåè为å |
| | | bytes = new byte[bts.length]; |
| | | } |
| | | System.arraycopy(bts, 0, bytes, 0, bts.length); |
| | | dos.write(bytes); |
| | | } else if (typeName.equals("byte[]")) { |
| | | byte[] bts = (byte[]) field.get(entity); |
| | | if (bts != null) { |
| | | if (length == 0) {//妿é¿åº¦æªè®¾ç½®ï¼ä»¥å½åå®é
çåè为å |
| | | bytes = new byte[bts.length]; |
| | | } |
| | | System.arraycopy(bts, 0, bytes, 0, bts.length); |
| | | dos.write(bytes); |
| | | } |
| | | } else if (type.isArray()) { |
| | | ByteArrayOutputStream baOs1 = new ByteArrayOutputStream(); |
| | | DataOutputStream dos1 = new DataOutputStream(baOs1); |
| | | for (Object object : (Object[]) field.get(entity)) { |
| | | write(dos1, (Struct) object); |
| | | } |
| | | byte[] bts = baOs1.toByteArray(); |
| | | if (length == 0) {//妿é¿åº¦æªè®¾ç½®ï¼ä»¥å½åå®é
çåè为å |
| | | bytes = new byte[bts.length]; |
| | | } |
| | | System.arraycopy(bts, 0, bytes, 0, bts.length); |
| | | dos.write(bytes); |
| | | } else { |
| | | byte[] bts = encode((Struct) field.get(entity)); |
| | | if (length == 0) {//妿é¿åº¦æªè®¾ç½®ï¼ä»¥å½åå®é
çåè为å |
| | | bytes = new byte[bts.length]; |
| | | } |
| | | System.arraycopy(bts, 0, bytes, 0, bts.length); |
| | | dos.write(bytes); |
| | | } |
| | | entity.encodeByteMapping.put(name, bytes); |
| | | } |
| | | } |
| | | |
| | | public byte[] convert(int size, long value) throws Exception { |
| | | ByteArrayOutputStream baOs = new ByteArrayOutputStream(); |
| | | DataOutputStream dos = new DataOutputStream(baOs); |
| | | switch (size) { |
| | | case 1://byte |
| | | dos.write((byte) value); |
| | | break; |
| | | case 2://short |
| | | dos.writeShort(this.isReverse() ? Short.reverseBytes((short) value) : (short) value); |
| | | break; |
| | | case 4://int |
| | | dos.writeInt(this.isReverse() ? Integer.reverseBytes((int) value) : (int) value); |
| | | break; |
| | | case 8://long |
| | | dos.writeLong(this.isReverse() ? Long.reverseBytes((long) value) : (long) value); |
| | | break; |
| | | } |
| | | return baOs.toByteArray(); |
| | | } |
| | | |
| | | public long convertEx(long value, int size) throws Exception { |
| | | switch (size) { |
| | | case 1://byte |
| | | return value; |
| | | case 2://short |
| | | return (this.isReverse() ? Short.reverseBytes((short) value) : (short) value); |
| | | case 4://int |
| | | return (this.isReverse() ? Integer.reverseBytes((int) value) : (int) value); |
| | | case 8://long |
| | | return (this.isReverse() ? Long.reverseBytes((long) value) : (long) value); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * è§£ç ï¼ åèæ°ç» ====>> java对象 |
| | | */ |
| | | @SuppressWarnings({"unchecked", "rawtypes"}) |
| | | public <T extends Struct> T decode(byte[] bytes) throws Exception { |
| | | this.dataBytes = bytes; |
| | | Struct instance = this; |
| | | Class<? extends Struct> cls = this.getClass(); |
| | | Field[] fields = cls.getFields(); |
| | | if (this.decodeByteMapping == null) instance.decodeByteMapping = new HashMap(); |
| | | // spring elè¡¨è¾¾å¼ |
| | | EvaluationContext context = new StandardEvaluationContext(); |
| | | context.setVariable("_", bytes.length); |
| | | int bited = 0;//å·²è¯»ä½æ° |
| | | for (Field field : Objects.requireNonNull(ReflectUtils.removeStaticField(fields))) { |
| | | size size = field.getAnnotation(size.class); |
| | | bit bit = field.getAnnotation(bit.class); |
| | | expr expr = field.getAnnotation(expr.class); |
| | | flag flag = field.getAnnotation(flag.class); |
| | | // 没æsizeãbitãexpr注解çåéä¸è¿è¡è§£æ |
| | | if (size == null && bit == null && expr == null) { |
| | | continue; |
| | | } |
| | | String name = field.getName(); |
| | | Class<?> type = field.getType(); |
| | | String typeName = type.getSimpleName(); |
| | | if (typeName.equals("Struct")) { |
| | | if (instance.getClassType(name) != null) { |
| | | type = instance.getClassType(name); |
| | | typeName = type.getSimpleName(); |
| | | } |
| | | } |
| | | context.setVariable("__", bytes.length - bited / 8); |
| | | byte[] bts = null; |
| | | if (size != null) { |
| | | bts = new byte[size.value()]; |
| | | System.arraycopy(bytes, bited / 8, bts, 0, size.value()); |
| | | bited += size.value() * 8; |
| | | } else if (bit != null) { |
| | | int val = 0; |
| | | String strBin = ""; |
| | | for (int i = bited; i < bited + bit.value(); i++) {//é使«æ |
| | | if ((bytes[i / 8] & (1 << (i % 8))) != 0) {//妿ä½ä¸º1 |
| | | strBin += "1"; |
| | | } else { |
| | | strBin += "0"; |
| | | } |
| | | val = Integer.parseInt(strBin, 2); |
| | | } |
| | | byte[] result = new byte[4]; |
| | | result[3] = (byte) (val); |
| | | result[2] = (byte) (val >> 8); |
| | | result[1] = (byte) (val >> 16); |
| | | result[0] = (byte) (val >> 24); |
| | | bts = new byte[(int) Math.ceil((double) bit.value() / 8.0)]; |
| | | System.arraycopy(result, result.length - bts.length, bts, 0, bts.length); |
| | | bited += bit.value(); |
| | | } else if (expr != null) { |
| | | ExpressionParser parser = new SpelExpressionParser(); |
| | | Expression exp = parser.parseExpression(expr.value()); |
| | | Integer len = CommonUtils.parseInt(exp.getValue(context, instance)); |
| | | if (len != null) { |
| | | if (len == -1) continue; |
| | | bts = new byte[len]; |
| | | System.arraycopy(bytes, bited / 8, bts, 0, len); |
| | | bited += len * 8; |
| | | } |
| | | } |
| | | if (bts.length == 0) continue; |
| | | DataInputStream dis = new DataInputStream(new ByteArrayInputStream(bts)); |
| | | if (typeName.equals("int") || typeName.equals("Integer")) { |
| | | field.setInt(instance, (int) convertEx(dis.readInt(), 4)); |
| | | } else if (typeName.equals("long") || typeName.equals("Long")) { |
| | | field.setLong(instance, convertEx(dis.readLong(), 8)); |
| | | } else if (typeName.equals("short") || typeName.equals("Short")) { |
| | | field.setShort(instance, (short) convertEx(dis.readShort(), 2)); |
| | | } else if (typeName.equals("byte") || typeName.equals("Byte")) { |
| | | field.setByte(instance, (byte) convertEx(dis.readByte(), 1)); |
| | | } else if (typeName.equals("byte[]")) { |
| | | field.set(instance, bts); |
| | | } else if (typeName.equals("String")) { |
| | | String strStr = new String(bts, StandardCharsets.UTF_8); |
| | | if (flag != null && flag.value().equals("BCD")) { |
| | | strStr = bcd2Str(bts); |
| | | } else if (flag != null && flag.value().equals("ASCII")) { |
| | | strStr = Struct.AscToStr(bts); |
| | | } |
| | | strStr = strStr.replaceAll("[\u0000]", ""); |
| | | field.set(instance, strStr); |
| | | } else if (type.isArray()) { |
| | | byte[] arrayBytes = bts; |
| | | List list = new ArrayList(); |
| | | while (arrayBytes.length > 0 && list.size() < 256) { |
| | | Struct item = decode((Class<? extends Struct>) type.getComponentType(), arrayBytes); |
| | | list.add(item); |
| | | arrayBytes = item.unusedBytes; |
| | | } |
| | | Object array = Array.newInstance(type.getComponentType(), list.size()); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | Array.set(array, i, list.get(i)); |
| | | } |
| | | field.set(instance, array); |
| | | } else if (type == Struct.class || Struct.class.isAssignableFrom(type)) { |
| | | byte[] arrayBytes = bts; |
| | | Struct item = decode((Class<? extends Struct>) type, arrayBytes); |
| | | field.set(instance, item); |
| | | } else { |
| | | throw new RuntimeException(cls.getSimpleName() + "åæ®µ" + field.getName() + "ç±»åæªç¥"); |
| | | } |
| | | instance.decodeByteMapping.put(name, bts); |
| | | context.setVariable(name, field.get(instance)); |
| | | } |
| | | byte[] useBytes = new byte[bited / 8]; |
| | | System.arraycopy(bytes, 0, useBytes, 0, bited / 8); |
| | | instance.decodeBytes = useBytes; |
| | | byte[] unusedBytes = new byte[bytes.length - (bited / 8)]; |
| | | if (unusedBytes.length > 0) { |
| | | System.arraycopy(bytes, useBytes.length, unusedBytes, 0, unusedBytes.length); |
| | | } |
| | | instance.unusedBytes = unusedBytes; |
| | | return (T) instance; |
| | | } |
| | | |
| | | public static class TestMessage { |
| | | public @size(1) byte begin = 0x7e;//èµ·å§ç¬¦ |
| | | public @size(2) short type = 0;//æ¶æ¯ID |
| | | public @bit(2) byte retain;//æ¶æ¯ä½å±æ§>ä¿ç |
| | | public @bit(1) byte subpkg;//æ¶æ¯ä½å±æ§>æ¯å¦åå
,0表示ä¸åå
|
| | | public @bit(3) byte encrypt;//æ¶æ¯ä½å±æ§>å 坿¹å¼,0表示ä¸å å¯ |
| | | public @bit(10) short length;//æ¶æ¯ä½é¿åº¦ |
| | | public @size(6) |
| | | @flag("BCD") String number;//ææºå·ç |
| | | public @size(2) short serial;//æ¶æ¯æµæ°´å· |
| | | public @expr("#subpkg==1?2:0") short pkgs;//åå
æ° |
| | | public @expr("#subpkg==1?2:0") short index;//å
åºå· |
| | | public @expr("#length") byte[] data;//æ°æ®é¨å |
| | | public @size(1) byte verify;//æ ¡éªç |
| | | public @size(1) byte end = 0x7e;//ç»æç¬¦ |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | public static void Copy(Object source, Object dest) { |
| | | try { |
| | | BeanInfo sourceBean = Introspector.getBeanInfo(source.getClass(),Object.class); |
| | | BeanInfo sourceBean = Introspector.getBeanInfo(source.getClass(), Object.class); |
| | | PropertyDescriptor[] sourceProperty = sourceBean.getPropertyDescriptors(); |
| | | BeanInfo destBean = Introspector.getBeanInfo(dest.getClass(),Object.class); |
| | | BeanInfo destBean = Introspector.getBeanInfo(dest.getClass(), Object.class); |
| | | PropertyDescriptor[] destProperty = destBean.getPropertyDescriptors(); |
| | | for (PropertyDescriptor propertyDescriptor : sourceProperty) { |
| | | for (PropertyDescriptor descriptor : destProperty) { |
| | |
| | | @Component |
| | | public class YamlUtils { |
| | | |
| | | private static final String src = "src/main/resources/application-prod.yml"; |
| | | private final static String C = "#"; |
| | | private final static String CHARSET = "UTF-8"; |
| | | //读ååçæ¯è¡æ°æ® |
| | | private static List<String> LINES = null; |
| | | @Autowired |
| | | private DataResourceService dataResourceService; |
| | | |
| | | private static final String src = "src/main/resources/application-prod.yml"; |
| | | public static void main(String[] args) { |
| | | Map<String, Integer> keyCountMap = new HashMap<>(); |
| | | try { |
| | | List<String> lines = FileUtils.readLines(new File(src), CHARSET); |
| | | for (int i = 0; i < lines.size(); i++) { |
| | | String line = lines.get(i); |
| | | if (line.contains(C)) { |
| | | String[] split = line.split(C); |
| | | String tmp = split[0]; |
| | | String memo = split[1];//è·å注é |
| | | |
| | | private final static String C = "#"; |
| | | private final static String CHARSET = "UTF-8"; |
| | | String[] split1 = tmp.split(":"); |
| | | String name = split1[0]; |
| | | String data = split1[1]; |
| | | System.out.println(memo); |
| | | System.out.println(name); |
| | | System.out.println(data); |
| | | } |
| | | } |
| | | |
| | | //读ååçæ¯è¡æ°æ® |
| | | private static List<String> LINES = null; |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | public Map<String, Object> read() { |
| | | Yaml yaml = new Yaml(); |
| | |
| | | dataResource.setData(null); |
| | | } else if (value instanceof Map) { |
| | | dataResource.setData(JSON.toJSONString(value)); |
| | | }else { |
| | | } else { |
| | | dataResource.setData(value.toString()); |
| | | } |
| | | dataResource.setCreateTime(new Date()); |
| | |
| | | data = ""; |
| | | } |
| | | map.put(dataResource.getName(), data); |
| | | } |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | Map<String, Integer> keyCountMap = new HashMap<>(); |
| | | try { |
| | | List<String> lines = FileUtils.readLines(new File(src), CHARSET); |
| | | for (int i = 0; i < lines.size(); i++) { |
| | | String line = lines.get(i); |
| | | if (line.contains(C)) { |
| | | String[] split = line.split(C); |
| | | String tmp = split[0]; |
| | | String memo = split[1];//è·å注é |
| | | |
| | | String[] split1 = tmp.split(":"); |
| | | String name = split1[0]; |
| | | String data = split1[1]; |
| | | System.out.println(memo); |
| | | System.out.println(name); |
| | | System.out.println(data); |
| | | } |
| | | } |
| | | |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | |
| | | new ExcelUtils().simpleWrite(); |
| | | } |
| | | |
| | | public void simpleRead(){ |
| | | ExcelReaderBuilder read = EasyExcel.read("/Users/vincent/Desktop/3869.xls", EnInitData.class, new EnInitDataListener()); |
| | | // 读å第ä¸ä¸ªsheet(表),æä»¶æµä¼èªå¨å
³é |
| | | read.sheet().doRead(); |
| | | } |
| | | |
| | | public void simpleWrite(){ |
| | | EasyExcel.write("/Users/vincent/Desktop/writeDemo.xls", EnInitData.class).sheet("lxt").doWrite(data()); |
| | | } |
| | | |
| | | public static List<EnInitData> data(){ |
| | | public static List<EnInitData> data() { |
| | | List<EnInitData> list = new ArrayList<>(); |
| | | for (int i = 0; i<1000; i++) { |
| | | for (int i = 0; i < 1000; i++) { |
| | | EnInitData data = new EnInitData(); |
| | | data.setEnName("æµè¯"); |
| | | data.setCode("test"); |
| | |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | public void simpleRead() { |
| | | ExcelReaderBuilder read = EasyExcel.read("/Users/vincent/Desktop/3869.xls", EnInitData.class, new EnInitDataListener()); |
| | | // 读å第ä¸ä¸ªsheet(表),æä»¶æµä¼èªå¨å
³é |
| | | read.sheet().doRead(); |
| | | } |
| | | |
| | | public void simpleWrite() { |
| | | EasyExcel.write("/Users/vincent/Desktop/writeDemo.xls", EnInitData.class).sheet("lxt").doWrite(data()); |
| | | } |
| | | } |
| | |
| | | |
| | | @RequestMapping("/login.action") |
| | | @ManagerAuth(value = ManagerAuth.Auth.NONE, memo = "ç»å½") |
| | | public R loginAction(String mobile, String password){ |
| | | public R loginAction(String mobile, String password) { |
| | | //éªè¯è®¸å¯è¯æ¯å¦ææ |
| | | LicenseVerify licenseVerify = new LicenseVerify(); |
| | | boolean verify = licenseVerify.verify(); |
| | |
| | | EntityWrapper<User> userWrapper = new EntityWrapper<>(); |
| | | userWrapper.eq("mobile", mobile); |
| | | User user = userService.selectOne(userWrapper); |
| | | if (Cools.isEmpty(user)){ |
| | | if (Cools.isEmpty(user)) { |
| | | return R.parse(CodeRes.USER_10001); |
| | | } |
| | | if (user.getStatus()!=1){ |
| | | if (user.getStatus() != 1) { |
| | | return R.parse(CodeRes.USER_10002); |
| | | } |
| | | if (!user.getPassword().equals(password)){ |
| | | if (!user.getPassword().equals(password)) { |
| | | return R.parse(CodeRes.USER_10003); |
| | | } |
| | | String token = Cools.enToken(System.currentTimeMillis() + mobile, user.getPassword()); |
| | |
| | | int time = 0; |
| | | while (time < 3000) { |
| | | code = RandomValidateCodeUtil.code.get(sd); |
| | | if (!Cools.isEmpty(code)){ |
| | | if (!Cools.isEmpty(code)) { |
| | | break; |
| | | } else { |
| | | Thread.sleep(10); |
| | |
| | | |
| | | @RequestMapping("/user/detail/auth") |
| | | @ManagerAuth |
| | | public R userDetail(){ |
| | | public R userDetail() { |
| | | return R.ok(userService.selectById(getUserId())); |
| | | } |
| | | |
| | | @RequestMapping("/menu/auth") |
| | | @ManagerAuth(memo = "é¦é¡µèå") |
| | | public R menu(){ |
| | | public R menu() { |
| | | // è·åææä¸çº§èå |
| | | List<Resource> oneLevel = resourceService.selectList(new EntityWrapper<Resource>().eq("level", 1).eq("status", 1).orderBy("sort")); |
| | | User user = null; |
| | |
| | | List<RoleResource> roleResources = roleResourceService.selectList(new EntityWrapper<RoleResource>().eq("role_id", user.getRoleId())); |
| | | List<Long> resourceIds = new ArrayList<>(); |
| | | roleResources.forEach(roleResource -> resourceIds.add(roleResource.getResourceId())); |
| | | if (resourceIds.isEmpty()){ |
| | | if (resourceIds.isEmpty()) { |
| | | return R.ok(); |
| | | } |
| | | resourceWrapper = new EntityWrapper<Resource>().in("id", resourceIds).eq("level", 2).eq("status", 1).orderBy("sort"); |
| | |
| | | // æ¯å¦æ¥ææ¥çæé |
| | | if (getUserId() != 9527) { |
| | | Resource view = resourceService.selectOne(new EntityWrapper<Resource>().eq("resource_id", resource.getId()).like("code", "view")); |
| | | if (!Cools.isEmpty(view)){ |
| | | if (!Cools.isEmpty(view)) { |
| | | RoleResource param = new RoleResource(); |
| | | param.setResourceId(view.getId()); |
| | | param.setRoleId(user.getRoleId()); |
| | | if (null == roleResourceService.selectOne(new EntityWrapper<>(param))){ |
| | | if (null == roleResourceService.selectOne(new EntityWrapper<>(param))) { |
| | | continue; |
| | | } |
| | | } |
| | |
| | | |
| | | @RequestMapping("/power/list/auth") |
| | | @ManagerAuth |
| | | public R powerList(){ |
| | | public R powerList() { |
| | | List<Resource> oneLevels = resourceService.selectList(new EntityWrapper<Resource>().eq("level", 1).eq("status", 1).orderBy("sort")); |
| | | List<Map> result = new ArrayList<>(); |
| | | // ä¸çº§ |
| | | for (Resource oneLevel : oneLevels){ |
| | | for (Resource oneLevel : oneLevels) { |
| | | List<Map> twoLevelsList = new ArrayList<>(); |
| | | Map<String, Object> oneLevelMap = new HashMap<>(); |
| | | oneLevelMap.put("title", oneLevel.getName()); |
| | |
| | | oneLevelMap.put("children", twoLevelsList); |
| | | List<Resource> twoLevels = resourceService.selectList(new EntityWrapper<Resource>().eq("resource_id", oneLevel.getId()).eq("level", 2).eq("status", 1).orderBy("sort")); |
| | | // äºçº§ |
| | | for (Resource twoLevel : twoLevels){ |
| | | for (Resource twoLevel : twoLevels) { |
| | | Map<String, Object> twoLevelMap = new HashMap<>(); |
| | | twoLevelMap.put("title", twoLevel.getName()); |
| | | twoLevelMap.put("id", twoLevel.getId()); |
| | |
| | | twoLevelMap.put("children", threeLevelsList); |
| | | // ä¸çº§ |
| | | List<Resource> threeLevels = resourceService.selectList(new EntityWrapper<Resource>().eq("resource_id", twoLevel.getId()).eq("level", 3).eq("status", 1).orderBy("sort")); |
| | | for (Resource threeLevel : threeLevels){ |
| | | for (Resource threeLevel : threeLevels) { |
| | | Map<String, Object> threeLevelMap = new HashMap<>(); |
| | | threeLevelMap.put("title", threeLevel.getName()); |
| | | threeLevelMap.put("id", threeLevel.getId()); |
| | |
| | | List<Object> result = new ArrayList<>(); |
| | | // èå |
| | | List<RoleResource> roleResources = roleResourceService.selectList(new EntityWrapper<RoleResource>().eq("role_id", roleId)); |
| | | for (RoleResource roleResource : roleResources){ |
| | | for (RoleResource roleResource : roleResources) { |
| | | Resource resource = resourceService.selectById(roleResource.getResourceId()); |
| | | if (!Cools.isEmpty(resource)){ |
| | | if (resource.getLevel() == 3){ |
| | | if (!Cools.isEmpty(resource)) { |
| | | if (resource.getLevel() == 3) { |
| | | result.add(resource.getId()); |
| | | } |
| | | } |
| | | } |
| | | // åè½ |
| | | List<RolePermission> rolePermissions = rolePermissionService.selectList(new EntityWrapper<RolePermission>().eq("role_id", roleId)); |
| | | for (RolePermission rolePermission : rolePermissions){ |
| | | for (RolePermission rolePermission : rolePermissions) { |
| | | Permission permission = permissionService.selectById(rolePermission.getPermissionId()); |
| | | if (!Cools.isEmpty(permission)){ |
| | | if (!Cools.isEmpty(permission)) { |
| | | result.add(permission.getAction()); |
| | | } |
| | | } |
| | |
| | | @RequestMapping("/power/auth") |
| | | @ManagerAuth(memo = "ææ") |
| | | @Transactional |
| | | public R power(Long roleId, String powers){ |
| | | public R power(Long roleId, String powers) { |
| | | Role role = roleService.selectById(roleId); |
| | | Long leaderId = role.getLeader(); |
| | | roleResourceService.delete(new EntityWrapper<RoleResource>().eq("role_id", roleId)); |
| | | rolePermissionService.delete(new EntityWrapper<RolePermission>().eq("role_id", roleId)); |
| | | if (!Cools.isEmpty(powers)){ |
| | | if (!Cools.isEmpty(powers)) { |
| | | List<PowerDto> dtos = JSON.parseArray(powers, PowerDto.class); |
| | | for (PowerDto dto : dtos) { |
| | | Resource resource = resourceService.selectOne(new EntityWrapper<Resource>().eq("id", dto.getTwo()).eq("level", 2)); |
| | |
| | | roleResourceService.insert(roleResource); |
| | | } else { |
| | | Permission permission = permissionService.selectOne(new EntityWrapper<Permission>().eq("action", dto.getTwo())); |
| | | if (!Cools.isEmpty(permission)){ |
| | | if (!Cools.isEmpty(permission)) { |
| | | RolePermission rolePermission = new RolePermission(); |
| | | rolePermission.setRoleId(roleId); |
| | | rolePermission.setPermissionId(permission.getId()); |
| | | rolePermissionService.insert(rolePermission); |
| | | } |
| | | } |
| | | for (String three : dto.getThree()){ |
| | | for (String three : dto.getThree()) { |
| | | Resource resource1 = resourceService.selectOne(new EntityWrapper<Resource>().eq("id", three).eq("level", 3)); |
| | | if (!Cools.isEmpty(resource1)) { |
| | | // æ ¡éªä¸çº§æé |
| | |
| | | @Autowired |
| | | private UserService userService; |
| | | |
| | | protected Long getUserId(){ |
| | | protected Long getUserId() { |
| | | return Long.parseLong(String.valueOf(request.getAttribute("userId"))); |
| | | } |
| | | |
| | | protected User getUser(){ |
| | | protected User getUser() { |
| | | User user = userService.selectById(getUserId()); |
| | | if (null == user) { |
| | | throw new CoolException(BaseRes.DENIED); |
| | |
| | | return user; |
| | | } |
| | | |
| | | protected String getComment(Class<?> cls, String fieldName){ |
| | | protected String getComment(Class<?> cls, String fieldName) { |
| | | Field[] fields = Cools.getAllFields(cls); |
| | | for (Field field : fields){ |
| | | if (fieldName.equals(field.getName())){ |
| | | for (Field field : fields) { |
| | | if (fieldName.equals(field.getName())) { |
| | | return field.getAnnotation(ApiModelProperty.class).value(); |
| | | } |
| | | } |
| | |
| | | * @param set æé¤å段éå |
| | | * @param condition æç´¢å
容 |
| | | */ |
| | | protected <T> void allLike(Class<T> cls, Set<String> set, EntityWrapper<T> wrapper, String condition){ |
| | | protected <T> void allLike(Class<T> cls, Set<String> set, EntityWrapper<T> wrapper, String condition) { |
| | | if (Cools.isEmpty(condition)) { |
| | | return; |
| | | } |
| | | List<String> columns = new ArrayList<>(); |
| | | for (Field field :Cools.getAllFields(cls)){ |
| | | for (Field field : Cools.getAllFields(cls)) { |
| | | if (Modifier.isFinal(field.getModifiers()) |
| | | || Modifier.isStatic(field.getModifiers()) |
| | | || Modifier.isTransient(field.getModifiers())){ |
| | | || Modifier.isTransient(field.getModifiers())) { |
| | | continue; |
| | | } |
| | | String column = null; |
| | |
| | | if (columns.isEmpty()) { |
| | | return; |
| | | } |
| | | for (int i=0;i<columns.size();i++){ |
| | | if (i==0){ |
| | | for (int i = 0; i < columns.size(); i++) { |
| | | if (i == 0) { |
| | | wrapper.andNew(); |
| | | } else { |
| | | wrapper.or(); |
| | |
| | | |
| | | @RequestMapping("/") |
| | | public void index(HttpServletResponse response) { |
| | | try{ |
| | | response.sendRedirect(contextPath+"/views/index.html"); |
| | | } catch (Exception ex){ |
| | | try { |
| | | response.sendRedirect(contextPath + "/views/index.html"); |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @RequestMapping("/login") |
| | | public void login(HttpServletResponse response) { |
| | | try{ |
| | | response.sendRedirect(contextPath+"/views/login.html"); |
| | | } catch (Exception ex){ |
| | | try { |
| | | response.sendRedirect(contextPath + "/views/login.html"); |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @RequestMapping("/control") |
| | | public void control(HttpServletResponse response) { |
| | | try{ |
| | | response.sendRedirect(contextPath+"/views/control.html"); |
| | | } catch (Exception ex){ |
| | | try { |
| | | response.sendRedirect(contextPath + "/views/control.html"); |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |
| | | } |
| | |
| | | public void monitor(@PathVariable("cnrId") Integer cnrId, |
| | | @PathVariable("ledId") Integer ledId, |
| | | HttpServletResponse response) { |
| | | try{ |
| | | response.sendRedirect(contextPath+"/views/monitor/monitor.html"+ "?" + "crnId=" + cnrId + "&" + "ledId=" + ledId); |
| | | } catch (Exception ex){ |
| | | try { |
| | | response.sendRedirect(contextPath + "/views/monitor/monitor.html" + "?" + "crnId=" + cnrId + "&" + "ledId=" + ledId); |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |
| | | } |
| | |
| | | @RequestMapping("/monitor0/{ledId}") |
| | | public void monitor(@PathVariable("ledId") Integer ledId, |
| | | HttpServletResponse response) { |
| | | try{ |
| | | response.sendRedirect(contextPath+"/views/monitor/monitor0.html"+ "?" + "crnId=" + 2 + "&" + "ledId=" + ledId); |
| | | } catch (Exception ex){ |
| | | try { |
| | | response.sendRedirect(contextPath + "/views/monitor/monitor0.html" + "?" + "crnId=" + 2 + "&" + "ledId=" + ledId); |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.Map; |
| | | |
| | | public interface DevpThread extends ThreadHandler { |
| | | public interface DevpThread extends ThreadHandler { |
| | | |
| | | Map<Integer, StaProtocol> getStation(); |
| | | |
| | |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.model.CrnSlave; |
| | | import com.zy.core.model.DevpSlave; |
| | | import com.zy.core.model.LedSlave; |
| | | import com.zy.core.properties.SlaveProperties; |
| | | import com.zy.core.thread.*; |
| | | import com.zy.core.thread.BarcodeThread; |
| | | import com.zy.core.thread.SiemensCrnThread; |
| | | import com.zy.core.thread.SiemensDevpThread; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Async; |
| | |
| | | @Autowired |
| | | private MainProcess mainProcess; |
| | | |
| | | |
| | | /** |
| | | * PostConstructä¼å¨å è½½servletçæ¶åè¿è¡ä¸æ¬¡ |
| | | * @throws InterruptedException |
| | |
| | | initThread(); |
| | | // å¼å§ä¸»æµç¨è¿ç¨ |
| | | mainProcess.start(); |
| | | |
| | | log.info("æ ¸å¿æ§å¶å±å·²å¯å¨..............................................."); |
| | | } |
| | | |
| | | private void initMq(){ |
| | | private void initMq() { |
| | | // åå§åå åæºmq |
| | | for (Slave crn : slaveProperties.getCrn()) { |
| | | MessageQueue.init(SlaveType.Crn, crn); |
| | |
| | | // } |
| | | } |
| | | |
| | | private void initThread(){ |
| | | private void initThread() { |
| | | // åå§åå åæºçº¿ç¨ |
| | | log.info("åå§åå åæºçº¿ç¨..................................................."); |
| | | for (CrnSlave crn : slaveProperties.getCrn()) { |
| | |
| | | package com.zy.core.cache; |
| | | |
| | | import com.zy.asrs.utils.CommandUtils; |
| | | import com.zy.core.Slave; |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.model.Task; |
| | |
| | | } |
| | | } |
| | | |
| | | public static void clear(SlaveType type, Integer id){ |
| | | public static void clear(SlaveType type, Integer id) { |
| | | switch (type) { |
| | | case Crn: |
| | | |
| | | |
| | | CRN_EXCHANGE.get(id).clear(); |
| | | break; |
| | | case Devp: |
| | |
| | | return null; |
| | | } |
| | | String key = null; |
| | | for (Map.Entry<String, ThreadHandler> entry : conContain.entrySet()){ |
| | | for (Map.Entry<String, ThreadHandler> entry : conContain.entrySet()) { |
| | | if (entry.getValue() == threadHandler) { |
| | | key = entry.getKey(); |
| | | break; |
| | |
| | | } |
| | | } |
| | | |
| | | private static String toKey(SlaveType type, Integer id){ |
| | | return type.toString()+_LINK+id; |
| | | private static String toKey(SlaveType type, Integer id) { |
| | | return type.toString() + _LINK + id; |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | public Integer id; |
| | | public String desc; |
| | | |
| | | CrnFingerPosType(Integer id, String desc) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | |
| | | |
| | | public Integer id; |
| | | public String desc; |
| | | |
| | | CrnForkPosType(Integer id, String desc) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | |
| | | |
| | | public Integer id; |
| | | public String desc; |
| | | |
| | | CrnLiftPosType(Integer id, String desc) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | |
| | | |
| | | public Integer id; |
| | | public String desc; |
| | | |
| | | CrnModeType(Integer id, String desc) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | |
| | | HOMING(5, "æ¾è´§çå¾
"), |
| | | ANTI_ORIGIN(6, "æ¾è´§ä¸"), |
| | | PUT_COMPLETE(7, "ååç¹"), |
| | | // MOVE_THE_SHIPPING_LOCATION(8, "ç§»å¨å°æ¾è´§ä½ç½®"), |
| | | // MOVE_THE_SHIPPING_LOCATION(8, "ç§»å¨å°æ¾è´§ä½ç½®"), |
| | | // PUTTING(9, "æ¾è´§ä¸"), |
| | | HANDLING_COMPLETED(10, "æ¬è¿å®æçå¾
WCS确认"), |
| | | EMPTY_AVOIDANCE(11, "空载é¿è®©"), |
| | |
| | | |
| | | public Integer id; |
| | | public String desc; |
| | | |
| | | CrnStatusType(Integer id, String desc) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | |
| | | ; |
| | | |
| | | public Integer id; |
| | | |
| | | CrnTaskModeType(Integer id) { |
| | | this.id = id; |
| | | } |
| | |
| | | Car, |
| | | ; |
| | | |
| | | public static SlaveType findInstance(String s){ |
| | | public static SlaveType findInstance(String s) { |
| | | for (SlaveType type : SlaveType.values()) { |
| | | if (type.toString().equals(s)) { |
| | | return type; |
| | |
| | | |
| | | private List<Sta> pickSta = new ArrayList<>(); |
| | | |
| | | |
| | | @Data |
| | | public static class Sta { |
| | | |
| | |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æä»¤æ°æ®å
|
| | | */ |
| | |
| | | private Short onlineWrk3 = 0; |
| | | //æ¢å¤èæºä»»å¡ |
| | | private Short onlineWrk4 = 0; |
| | | private Short reset = 0; |
| | | private Short reset = 0; |
| | | |
| | | // ä»»å¡ç¡®è®¤ 0ï¼æªç¡®è®¤ 1ï¼å·²ç¡®è®¤ |
| | | private Short command = 0; |
| | | |
| | | //æä»¤ID |
| | | private Integer commandId; |
| | | |
| | | public void setTaskMode(Short taskMode){ |
| | | this.taskMode = taskMode; |
| | | this.taskModeType = CrnTaskModeType.get(taskModeType); |
| | | } |
| | | |
| | | public void setTaskMode(CrnTaskModeType type) { |
| | | this.taskModeType = type; |
| | | this.taskMode = CrnTaskModeType.get(type).id.shortValue(); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | Date date = new Date(); |
| | |
| | | |
| | | System.out.println(cal.get(Calendar.YEAR)); |
| | | //é»è®¤ä»0-11 |
| | | System.out.println(cal.get(Calendar.MONTH)+1); |
| | | System.out.println(cal.get(Calendar.MONTH) + 1); |
| | | System.out.println(cal.get(Calendar.DATE)); |
| | | int hour = cal.get(Calendar.HOUR_OF_DAY); |
| | | System.out.println("æ¶"); |
| | |
| | | System.out.println("礼æ"); |
| | | System.out.println(mm); |
| | | } |
| | | |
| | | public void setTaskMode(Short taskMode) { |
| | | this.taskMode = taskMode; |
| | | this.taskModeType = CrnTaskModeType.get(taskModeType); |
| | | } |
| | | |
| | | public void setTaskMode(CrnTaskModeType type) { |
| | | this.taskModeType = type; |
| | | this.taskMode = CrnTaskModeType.get(type).id.shortValue(); |
| | | } |
| | | } |
| | |
| | | * è½½è´§å°æç© |
| | | */ |
| | | public Short loaded; |
| | | |
| | | /** |
| | | * å åæºåç´æ
é代ç ï¼æ°å¼æ¾ç¤ºï¼ |
| | | */ |
| | | private Integer alarm1 = 0; |
| | | |
| | | /** |
| | | * å åæºæ°´å¹³æ
é代ç ï¼æ°å¼æ¾ç¤ºï¼ |
| | | */ |
| | | private Integer alarm2 = 0;; |
| | | |
| | | /** |
| | | * å åæºè´§åæ
é代ç ï¼æ°å¼æ¾ç¤ºï¼ |
| | | */ |
| | | private Integer alarm3 = 0;; |
| | | |
| | | /** |
| | | * å åæºç¶ææ
é代ç ï¼æ°å¼æ¾ç¤ºï¼ |
| | | */ |
| | | private Integer alarm4 = 0;; |
| | | |
| | | /** |
| | | * å¼å¸¸1 |
| | | */ |
| | | private boolean[] error1; |
| | | |
| | | private CrnError1 crnError1; |
| | | |
| | | /** |
| | | * å¼å¸¸2 |
| | | */ |
| | | private boolean[] error2; |
| | | |
| | | private CrnError2 crnError2; |
| | | |
| | | /** |
| | | * å¼å¸¸3 |
| | | */ |
| | | private boolean[] error3; |
| | | |
| | | private CrnError3 crnError3; |
| | | |
| | | /** |
| | | * å¼å¸¸4 |
| | | */ |
| | | private boolean[] error4; |
| | | |
| | | private CrnError4 crnError4; |
| | | |
| | | /** |
| | | * Xè¡èµ°çº¿é度m/min |
| | | */ |
| | | private Float xSpeed = 0F; |
| | | |
| | | /** |
| | | * Yè¡èµ°çº¿é度m/min |
| | | */ |
| | | private Float ySpeed = 0F; |
| | | |
| | | /** |
| | | * Zè¡èµ°çº¿é度m/min |
| | | */ |
| | | private Float zSpeed = 0F; |
| | | |
| | | /** |
| | | * å åæºç´¯è®¡èµ°è¡è·ç¦»km |
| | | */ |
| | | public Float xDistance = 0F; |
| | | |
| | | /** |
| | | * å åæºç´¯è®¡åéè·ç¦»km |
| | | */ |
| | | public Float yDistance = 0F; |
| | | |
| | | ; |
| | | /** |
| | | * å åæºç´¯è®¡èµ°è¡æ¶é¿h |
| | | */ |
| | | public Float xDuration = 0F; |
| | | |
| | | ; |
| | | /**w |
| | | * å åæºç´¯è®¡åéæ¶é¿h |
| | | */ |
| | | public Float yDuration = 0F; |
| | | |
| | | ; |
| | | /** |
| | | * å åæºåç´æ
é代ç ï¼æ°å¼æ¾ç¤ºï¼ |
| | | */ |
| | | private Integer alarm1 = 0; |
| | | /** |
| | | * å åæºæ°´å¹³æ
é代ç ï¼æ°å¼æ¾ç¤ºï¼ |
| | | */ |
| | | private Integer alarm2 = 0; |
| | | /** |
| | | * å åæºè´§åæ
é代ç ï¼æ°å¼æ¾ç¤ºï¼ |
| | | */ |
| | | private Integer alarm3 = 0; |
| | | /** |
| | | * å åæºç¶ææ
é代ç ï¼æ°å¼æ¾ç¤ºï¼ |
| | | */ |
| | | private Integer alarm4 = 0; |
| | | /** |
| | | * å¼å¸¸1 |
| | | */ |
| | | private boolean[] error1; |
| | | private CrnError1 crnError1; |
| | | /** |
| | | * å¼å¸¸2 |
| | | */ |
| | | private boolean[] error2; |
| | | private CrnError2 crnError2; |
| | | /** |
| | | * å¼å¸¸3 |
| | | */ |
| | | private boolean[] error3; |
| | | private CrnError3 crnError3; |
| | | /** |
| | | * å¼å¸¸4 |
| | | */ |
| | | private boolean[] error4; |
| | | private CrnError4 crnError4; |
| | | /** |
| | | * Xè¡èµ°çº¿é度m/min |
| | | */ |
| | | private Float xSpeed = 0F; |
| | | /** |
| | | * Yè¡èµ°çº¿é度m/min |
| | | */ |
| | | private Float ySpeed = 0F; |
| | | /** |
| | | * Zè¡èµ°çº¿é度m/min |
| | | */ |
| | | private Float zSpeed = 0F; |
| | | //æä»¤ID |
| | | private Integer commandId; |
| | | /** |
| | | * æè¿ä¸æ¬¡å
¥åºåºç±»å |
| | | * I:å
¥åº |
| | | * O:åºåº |
| | | */ |
| | | private String lastIo = "I"; |
| | | |
| | | public void setMode(Short mode) { |
| | | this.mode = mode; |
| | |
| | | this.liftPos = CrnLiftPosType.get(type).id.shortValue(); |
| | | } |
| | | |
| | | public void setStatus(Short status){ |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | this.statusType = CrnStatusType.get(status); |
| | | } |
| | | |
| | | public void setStatus(CrnStatusType type){ |
| | | public void setStatus(CrnStatusType type) { |
| | | this.statusType = type; |
| | | this.status = CrnStatusType.get(type).id.shortValue(); |
| | | } |
| | |
| | | this.fingerPosType = CrnFingerPosType.get(type); |
| | | } |
| | | |
| | | public void setError1(boolean[] error1){ |
| | | public void setError1(boolean[] error1) { |
| | | this.error1 = error1; |
| | | this.crnError1 = new CrnError1(); |
| | | this.crnError1.remoteStop = error1[0]; |
| | |
| | | this.crnError1.leftOverWidthErr2 = error1[15]; |
| | | } |
| | | |
| | | public void setError2(boolean[] error2){ |
| | | public void setError2(boolean[] error2) { |
| | | this.error2 = error2; |
| | | this.crnError2 = new CrnError2(); |
| | | this.crnError2.leftOverLenErr1 = error2[0]; |
| | |
| | | this.crnError4.zLooseBrakeTimeout = error4[3]; |
| | | } |
| | | |
| | | /** |
| | | * æè¿ä¸æ¬¡å
¥åºåºç±»å |
| | | * I:å
¥åº |
| | | * O:åºåº |
| | | */ |
| | | private String lastIo = "I"; |
| | | |
| | | |
| | | public BasCrnp toSqlModel(BasCrnp basCrnp){ |
| | | public BasCrnp toSqlModel(BasCrnp basCrnp) { |
| | | basCrnp.setCrnErr(alarm.longValue()); |
| | | basCrnp.setWrkNo(taskNo.intValue()); |
| | | return basCrnp; |
| | |
| | | package com.zy.core.model.protocol; |
| | | |
| | | import com.zy.asrs.entity.BasDevp; |
| | | import com.zy.asrs.entity.CommandInfo; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | private Boolean upcontactErr = false; //é¡¶åçµæºæ¥è§¦å¨æ
é |
| | | |
| | | |
| | | |
| | | private Short agvStartPick; //å
许åè´§ |
| | | private Short agvStartPlace; //å
许æ¾è´§ |
| | | private Short agvTypeSign; //å
许æ¾è´§ |
| | |
| | | private List<Integer> alarm; |
| | | |
| | | |
| | | public List<Integer> getAlarm(){ |
| | | public List<Integer> getAlarm() { |
| | | List<Integer> alarm = new ArrayList<>(); |
| | | if (breakerErr){ |
| | | if (breakerErr) { |
| | | alarm.add(1); |
| | | } |
| | | if (infraredErr){ |
| | | if (infraredErr) { |
| | | alarm.add(2); |
| | | } |
| | | if (outTimeErr){ |
| | | if (outTimeErr) { |
| | | alarm.add(3); |
| | | } |
| | | if (seizeSeatErr){ |
| | | if (seizeSeatErr) { |
| | | alarm.add(4); |
| | | } |
| | | if (wrkYgoodsN){ |
| | | if (wrkYgoodsN) { |
| | | alarm.add(5); |
| | | } |
| | | if (inverterErr){ |
| | | if (inverterErr) { |
| | | alarm.add(6); |
| | | } |
| | | if (contactErr){ |
| | | if (contactErr) { |
| | | alarm.add(7); |
| | | } |
| | | if (upcontactErr){ |
| | | if (upcontactErr) { |
| | | alarm.add(8); |
| | | } |
| | | return alarm; |
| | | } |
| | | |
| | | |
| | | |
| | | public BasDevp toSqlModel(){ |
| | | public BasDevp toSqlModel() { |
| | | BasDevp basDevp = new BasDevp(); |
| | | basDevp.setDevNo(siteId); |
| | | basDevp.setWrkNo(workNo.intValue()); |
| | | basDevp.setAutoing(autoing?"Y":"N"); |
| | | basDevp.setLoading(loading?"Y":"N"); |
| | | if (frontErr){ |
| | | basDevp.setAutoing(autoing ? "Y" : "N"); |
| | | basDevp.setLoading(loading ? "Y" : "N"); |
| | | if (frontErr) { |
| | | basDevp.setStaErr(11); |
| | | }else if (backErr){ |
| | | } else if (backErr) { |
| | | basDevp.setStaErr(12); |
| | | }else if (highErr){ |
| | | } else if (highErr) { |
| | | basDevp.setStaErr(13); |
| | | }else if (leftErr){ |
| | | } else if (leftErr) { |
| | | basDevp.setStaErr(14); |
| | | }else if (rightErr){ |
| | | } else if (rightErr) { |
| | | basDevp.setStaErr(15); |
| | | }else if (weightErr){ |
| | | } else if (weightErr) { |
| | | basDevp.setStaErr(16); |
| | | }else if (barcodeErr){ |
| | | } else if (barcodeErr) { |
| | | basDevp.setStaErr(17); |
| | | }else if (breakerErr){ |
| | | } else if (breakerErr) { |
| | | basDevp.setStaErr(18); |
| | | }else if (infraredErr){ |
| | | } else if (infraredErr) { |
| | | basDevp.setStaErr(19); |
| | | }else if (outTimeErr){ |
| | | } else if (outTimeErr) { |
| | | basDevp.setStaErr(110); |
| | | }else if (seizeSeatErr){ |
| | | } else if (seizeSeatErr) { |
| | | basDevp.setStaErr(111); |
| | | }else if (wrkYgoodsN){ |
| | | } else if (wrkYgoodsN) { |
| | | basDevp.setStaErr(112); |
| | | }else if (inverterErr){ |
| | | } else if (inverterErr) { |
| | | basDevp.setStaErr(113); |
| | | }else if (contactErr){ |
| | | } else if (contactErr) { |
| | | basDevp.setStaErr(114); |
| | | }else if (upcontactErr){ |
| | | } else if (upcontactErr) { |
| | | basDevp.setStaErr(115); |
| | | }else { |
| | | if (!loading){ |
| | | } else { |
| | | if (!loading) { |
| | | basDevp.setStaErr(0); |
| | | } |
| | | } |
| | | basDevp.setInEnable(inEnable?"Y":"N"); |
| | | basDevp.setOutEnable(outEnable?"Y":"N"); |
| | | basDevp.setInEnable(inEnable ? "Y" : "N"); |
| | | basDevp.setOutEnable(outEnable ? "Y" : "N"); |
| | | basDevp.setLocType1((short) 0); // é«ä½ç±»å{0:æªç¥,1:ä½åºä½,2:é«åºä½} |
| | | basDevp.setLocType2((short) 0); // 宽çªç±»å{0:æªç¥,1:çªåºä½,2:宽åºä½} |
| | | basDevp.setLocType3((short) 0); // è½»éç±»å{0:æªç¥,1:è½»åºä½,2:éåºä½} |
| | | basDevp.setLocType1(high != low && low ? (short) 1 : (short) 2); |
| | | basDevp.setInQty(inQty !=null ?(int)inQty : 0); |
| | | basDevp.setInQty(inQty != null ? (int) inQty : 0); |
| | | // basDevp.setAgvStartPick(agvStartPick.intValue()); |
| | | // basDevp.setAgvStartPlace(agvStartPlace.intValue()); |
| | | return basDevp; |
| | |
| | | T t = (T) obj; |
| | | if (channelRead0(ctx, t)) { |
| | | ctx.fireChannelRead(t); |
| | | } else { |
| | | } else { |
| | | // 管é䏿ï¼fireChannelReadæªæ§è¡ï¼éè¦æå¨éæ¾å å¤å
å |
| | | if (obj instanceof ByteBuf) { |
| | | ReferenceCountUtil.release(obj); |
| | |
| | | /** |
| | | * Init channel attr track |
| | | */ |
| | | private void initAttrTrack(Channel channel){ |
| | | private void initAttrTrack(Channel channel) { |
| | | Attribute<Map<String, Object>> coolTrackAttr = channel.attr(ChannelAttrKey.DATA_MAP_ATTR); |
| | | Map<String, Object> trackMap = new HashMap<>(); |
| | | coolTrackAttr.setIfAbsent(trackMap); |
| | |
| | | private EventLoopGroup bossGroup; |
| | | private EventLoopGroup workerGroup; |
| | | |
| | | @Autowired |
| | | public OnlineServer(TcpProperties tcpProperties, HandlerInitializer handlerInitializer) { ; |
| | | this.tcpProperties = tcpProperties; |
| | | this.handlerInitializer = handlerInitializer; |
| | | } |
| | | |
| | | { |
| | | bootstrap = new ServerBootstrap(); |
| | | bossGroup = new NioEventLoopGroup(1); |
| | | workerGroup = new NioEventLoopGroup(); |
| | | } |
| | | |
| | | @Autowired |
| | | public OnlineServer(TcpProperties tcpProperties, HandlerInitializer handlerInitializer) { |
| | | ; |
| | | this.tcpProperties = tcpProperties; |
| | | this.handlerInitializer = handlerInitializer; |
| | | } |
| | | |
| | | /** |
| | | * tcp server init |
| | |
| | | |
| | | private static Map<String, Channel> channelGroup = new ConcurrentHashMap<>(); |
| | | |
| | | public static void setChannel(String uuid, Channel channel){ |
| | | public static void setChannel(String uuid, Channel channel) { |
| | | // todo ç¼åæ è®° ===>> åå¸å¼ç³»ç» |
| | | // String hostName = SystemProperties.HOST_NAME; |
| | | if (getChannel(uuid) == channel){ |
| | | if (getChannel(uuid) == channel) { |
| | | return; |
| | | } |
| | | removeChannel(uuid); |
| | | channelGroup.put(uuid, channel); |
| | | } |
| | | |
| | | public static Channel getChannel(String uuid){ |
| | | public static Channel getChannel(String uuid) { |
| | | return channelGroup.get(uuid); |
| | | } |
| | | |
| | | public static void removeChannel(String uuid) { |
| | | Channel channel = getChannel(uuid); |
| | | if (null == channel){ |
| | | if (null == channel) { |
| | | return; |
| | | } |
| | | channelGroup.remove(uuid); |
| | | channel.close(); |
| | | } |
| | | |
| | | public static String removeChannel(Channel channel){ |
| | | public static String removeChannel(Channel channel) { |
| | | String key = null; |
| | | for (Map.Entry<String, Channel> entry : channelGroup.entrySet()){ |
| | | if (entry.getValue() == channel){ |
| | | for (Map.Entry<String, Channel> entry : channelGroup.entrySet()) { |
| | | if (entry.getValue() == channel) { |
| | | key = entry.getKey(); |
| | | break; |
| | | } |
| | | } |
| | | if (null != key){ |
| | | if (null != key) { |
| | | channelGroup.remove(key); |
| | | return key; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | package com.zy.core.netty.handle; |
| | | |
| | | import com.core.common.Cools; |
| | | import com.zy.core.Slave; |
| | | import com.zy.core.cache.SlaveConnection; |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.netty.AbstractInboundHandler; |
| | | import com.zy.core.netty.cache.ChannelCache; |
| | | import com.zy.core.netty.domain.ChPackage; |
| | | import com.zy.core.netty.properties.TcpProperties; |
| | | import com.zy.core.properties.SlaveProperties; |
| | | import com.zy.core.thread.BarcodeThread; |
| | | import io.netty.channel.Channel; |
| | | import io.netty.channel.ChannelHandler; |
| | | import io.netty.channel.ChannelHandlerContext; |
| | |
| | | @Autowired |
| | | private TcpProperties tcpProperties; |
| | | |
| | | /** |
| | | * æ°æ®ä¸è¡ |
| | | */ |
| | | public static void write(ChPackage chPackage) { |
| | | String uuid = chPackage.getUuid(); |
| | | Channel channel = ChannelCache.getChannel(uuid); |
| | | if (null == channel) { |
| | | log.warn("ééuuid={} ä¸å¨çº¿", uuid); |
| | | return; |
| | | } |
| | | channel.writeAndFlush(chPackage); |
| | | } |
| | | |
| | | @Override |
| | | protected boolean channelRead0(ChannelHandlerContext ctx, ChPackage pac) { |
| | | // log.info("读ç å¨ãIP:{}ã ä¸è¡æ°æ® ===>> {}", pac.getIp(), pac.getAscii()); |
| | |
| | | // } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * æ°æ®ä¸è¡ |
| | | */ |
| | | public static void write(ChPackage chPackage){ |
| | | String uuid = chPackage.getUuid(); |
| | | Channel channel = ChannelCache.getChannel(uuid); |
| | | if (null == channel){ |
| | | log.warn("ééuuid={} ä¸å¨çº¿", uuid); |
| | | return; |
| | | } |
| | | channel.writeAndFlush(chPackage); |
| | | } |
| | | } |
| | |
| | | if (IdleState.READER_IDLE == e.state()) { |
| | | String uuid = ChannelCache.removeChannel(ctx.channel()); |
| | | ctx.close(); |
| | | if (!Cools.isEmpty(uuid)){ |
| | | if (!Cools.isEmpty(uuid)) { |
| | | log.info("uuid={} 空é²åé¤", uuid); |
| | | } |
| | | } |
| | |
| | | public void channelInactive(ChannelHandlerContext ctx) { |
| | | String uuid = ChannelCache.removeChannel(ctx.channel()); |
| | | ctx.close(); |
| | | if (!Cools.isEmpty(uuid)){ |
| | | if (!Cools.isEmpty(uuid)) { |
| | | log.info("éé uuid={} 失å»è¿æ¥", uuid); |
| | | } |
| | | } |
| | |
| | | |
| | | private final SnowflakeIdWorker snowflakeIdWorker; |
| | | |
| | | public ProtocolDecoder(SnowflakeIdWorker snowflakeIdWorker){ |
| | | public ProtocolDecoder(SnowflakeIdWorker snowflakeIdWorker) { |
| | | this.snowflakeIdWorker = snowflakeIdWorker; |
| | | } |
| | | |
| | |
| | | @Override |
| | | protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> list) throws Exception { |
| | | int startMark = indexOfStartMark(in); |
| | | if (startMark == -1){ |
| | | if (startMark == -1) { |
| | | return; |
| | | } |
| | | // å»é¤æ ç¨åç¼æ¥æ |
| | | if (startMark != 0){ |
| | | if (startMark != 0) { |
| | | in.readerIndex(startMark); |
| | | in.discardReadBytes(); |
| | | } |
| | |
| | | list.add(analyzeProtocol(pac)); |
| | | } |
| | | |
| | | public ChPackage analyzeProtocol(ChPackage pac){ |
| | | public ChPackage analyzeProtocol(ChPackage pac) { |
| | | |
| | | ByteBuf byteBuf = pac.getSourceBuff(); |
| | | |
| | |
| | | } |
| | | |
| | | // è·åæ è¯ä½ä¸æ |
| | | private int indexOfStartMark(ByteBuf inputBuffer){ |
| | | private int indexOfStartMark(ByteBuf inputBuffer) { |
| | | int length = inputBuffer.writerIndex(); |
| | | // æ¥æé¿åº¦è³å°å¤§äº2 |
| | | if (length < 2) { |
| | | return -1; |
| | | } |
| | | int readerIndex = inputBuffer.readerIndex(); |
| | | for(int i = readerIndex; i < length - 1; i ++) { |
| | | for (int i = readerIndex; i < length - 1; i++) { |
| | | byte b1 = inputBuffer.getByte(i); |
| | | // "#" = b1 |
| | | if (0x23 == b1) { |
| | |
| | | @Override |
| | | protected void encode(ChannelHandlerContext ctx, Object obj, ByteBuf out) { |
| | | boolean upgradeLog = true; |
| | | if (obj instanceof ByteBuf){ |
| | | if (obj instanceof ByteBuf) { |
| | | out.writeBytes((ByteBuf) obj); |
| | | } else if (obj instanceof byte[]) { |
| | | out.writeBytes((byte[]) obj); |
| | |
| | | public void setBarcode(String barcode) { |
| | | this.barcode.delete(0, this.barcode.length()); |
| | | this.barcode.append(barcode); |
| | | if(!Cools.isEmpty(barcode)) { |
| | | if (!Cools.isEmpty(barcode)) { |
| | | log.info("{}å·æ¡ç å¨ï¼æ£ç´¢æ°æ®ï¼{}", slave.getId(), this.barcode); |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("time", DateUtils.convert(new Date(), DateUtils.yyyyMMddHHmmss_F)); |
| | |
| | | scale = Double.parseDouble(s.substring(1)); |
| | | |
| | | //å°ç§°éééåå
¥è®¾å¤åºç¡æ°æ®ä¸çgross_wtåæ®µ |
| | | if(scale > 20) { |
| | | if (scale > 20) { |
| | | BasDevpService basDevpService = SpringUtils.getBean(BasDevpService.class); |
| | | Integer staNo = slave.getId() == 1 ? 101 : 201; |
| | | BasDevp basDevp = basDevpService.selectById(staNo); |
| | | if(!Cools.isEmpty(basDevp)) { |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | basDevp.setGrossWt(scale); |
| | | if (null != basDevpService && !basDevpService.updateById(basDevp)) { |
| | | throw new Exception("æ´æ°æ°æ®åºæ°æ®å¤±è´¥"); |
| | |
| | | public void close() { |
| | | try { |
| | | if (null != dataOutputStream) { |
| | | dataOutputStream.close(); |
| | | } |
| | | if (null != dataInputStream) { |
| | | dataInputStream.close(); |
| | | } |
| | | dataOutputStream.close(); |
| | | } |
| | | if (null != dataInputStream) { |
| | | dataInputStream.close(); |
| | | } |
| | | // if (null != socket && !socket.isClosed()) { |
| | | // socket.close(); |
| | | // } |
| | | if (null != socket){ |
| | | socket.close(); |
| | | } |
| | | socket = null; |
| | | if (null != socket) { |
| | | socket.close(); |
| | | } |
| | | socket = null; |
| | | } catch (IOException e) { |
| | | log.error("SocketClient close Exception:" + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | public void write(byte[] msg, int len) throws IOException { |
| | | if (null != dataInputStream) |
| | | { |
| | | if (null != dataInputStream) { |
| | | dataOutputStream.write(msg, 0, len); |
| | | dataOutputStream.flush(); |
| | | } |
| | |
| | | int len = dataInputStream.read(bytes); |
| | | byte[] tempBytes = null; |
| | | if (len > 0) { |
| | | tempBytes = new byte[len]; |
| | | System.arraycopy(bytes, 0, tempBytes, 0, len); |
| | | tempBytes = new byte[len]; |
| | | System.arraycopy(bytes, 0, tempBytes, 0, len); |
| | | } |
| | | return tempBytes; |
| | | } |
| | |
| | | |
| | | @RequestMapping(value = "/api/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<Api> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | |
| | | return R.ok(apiService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | if (entry.getKey().endsWith(">")) { |
| | | wrapper.ge(Cools.deleteChar(entry.getKey()), DateUtils.convert(String.valueOf(entry.getValue()))); |
| | | } else if (entry.getKey().endsWith("<")) { |
| | |
| | | @RequestMapping(value = "/api/edit/auth") |
| | | @ManagerAuth |
| | | public R edit(Api api) { |
| | | if (Cools.isEmpty(api)){ |
| | | if (Cools.isEmpty(api)) { |
| | | return R.error(); |
| | | } |
| | | if (null == api.getId()){ |
| | | if (null == api.getId()) { |
| | | apiService.insert(api); |
| | | } else { |
| | | apiService.updateById(api); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/api/update/auth") |
| | | @RequestMapping(value = "/api/update/auth") |
| | | @ManagerAuth |
| | | public R update(Api api){ |
| | | if (Cools.isEmpty(api) || null==api.getId()){ |
| | | public R update(Api api) { |
| | | if (Cools.isEmpty(api) || null == api.getId()) { |
| | | return R.error(); |
| | | } |
| | | apiService.updateById(api); |
| | |
| | | |
| | | @RequestMapping(value = "/api/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(Integer[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | public R delete(Integer[] ids) { |
| | | if (Cools.isEmpty(ids)) { |
| | | return R.error(); |
| | | } |
| | | apiService.deleteBatchIds(Arrays.asList(ids)); |
| | |
| | | |
| | | @RequestMapping(value = "/api/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<Api> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("api")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<Api> page = apiService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Api api : page.getRecords()){ |
| | | for (Api api : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", api.getId()); |
| | | map.put("value", api.getId()); |
| | |
| | | @Autowired |
| | | private ConfigService configService; |
| | | |
| | | private static boolean checkJson(String val) { |
| | | Object parse = null; |
| | | try { |
| | | parse = JSON.parse(val); |
| | | } catch (Exception ignore) { |
| | | } |
| | | return parse != null; |
| | | } |
| | | |
| | | @RequestMapping(value = "/config/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") Long id) { |
| | |
| | | |
| | | @RequestMapping(value = "/config/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<Config> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | |
| | | return R.ok(configService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | if (entry.getKey().endsWith(">")) { |
| | | wrapper.ge(Cools.deleteChar(entry.getKey()), DateUtils.convert(String.valueOf(entry.getValue()))); |
| | | } else if (entry.getKey().endsWith("<")) { |
| | |
| | | @RequestMapping(value = "/config/edit/auth") |
| | | @ManagerAuth |
| | | public R edit(Config config) { |
| | | if (Cools.isEmpty(config)){ |
| | | if (Cools.isEmpty(config)) { |
| | | return R.error(); |
| | | } |
| | | if (config.getType() == 2){ |
| | | if (!checkJson(config.getValue())){ |
| | | if (config.getType() == 2) { |
| | | if (!checkJson(config.getValue())) { |
| | | return R.error("jsonè§£æå¤±è´¥"); |
| | | } |
| | | } |
| | | if (null == config.getId()){ |
| | | if (null == config.getId()) { |
| | | configService.insert(config); |
| | | } else { |
| | | configService.updateById(config); |
| | |
| | | @RequestMapping(value = "/config/add/auth") |
| | | @ManagerAuth |
| | | public R add(Config config) { |
| | | if (config.getType() == 2){ |
| | | if (!checkJson(config.getValue())){ |
| | | if (config.getType() == 2) { |
| | | if (!checkJson(config.getValue())) { |
| | | return R.error("jsonè§£æå¤±è´¥"); |
| | | } |
| | | } |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/config/update/auth") |
| | | @RequestMapping(value = "/config/update/auth") |
| | | @ManagerAuth |
| | | public R update(Config config){ |
| | | if (Cools.isEmpty(config) || null==config.getId()){ |
| | | public R update(Config config) { |
| | | if (Cools.isEmpty(config) || null == config.getId()) { |
| | | return R.error(); |
| | | } |
| | | if (config.getType() == 2){ |
| | | if (!checkJson(config.getValue())){ |
| | | if (config.getType() == 2) { |
| | | if (!checkJson(config.getValue())) { |
| | | return R.error("jsonè§£æå¤±è´¥"); |
| | | } |
| | | } |
| | |
| | | |
| | | @RequestMapping(value = "/config/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(Integer[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | public R delete(Integer[] ids) { |
| | | if (Cools.isEmpty(ids)) { |
| | | return R.error(); |
| | | } |
| | | configService.deleteBatchIds(Arrays.asList(ids)); |
| | |
| | | |
| | | @RequestMapping(value = "/config/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<Config> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("config")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<Config> page = configService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Config config : page.getRecords()){ |
| | | for (Config config : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", config.getId()); |
| | | map.put("value", config.getId()); |
| | |
| | | */ |
| | | @RequestMapping(value = "/config/refresh/auth") |
| | | @ManagerAuth |
| | | public R refresh(){ |
| | | public R refresh() { |
| | | Parameter parameter; |
| | | try { |
| | | parameter = Parameter.reset(); |
| | |
| | | e.printStackTrace(); |
| | | return R.error(); |
| | | } |
| | | if (Cools.isEmpty(parameter)){ |
| | | if (Cools.isEmpty(parameter)) { |
| | | return R.error(); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | private static boolean checkJson(String val){ |
| | | Object parse = null; |
| | | try { |
| | | parse = JSON.parse(val); |
| | | } catch (Exception ignore){ |
| | | } |
| | | return parse != null; |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | @RequestMapping("/top") |
| | | @ManagerAuth |
| | | public R top(){ |
| | | public R top() { |
| | | int logTotal = operateLogService.selectCount(new EntityWrapper<>()); |
| | | int logWeek = operateLogService.selectCountByCurrentWeek(); |
| | | int userTotal = userService.selectCount(new EntityWrapper<>()); |
| | |
| | | result.put("logTotal", logTotal); |
| | | result.put("logWeek", logWeek); |
| | | result.put("userTotal", userTotal); |
| | | result.put("live", Arith.multiplys(0, Arith.divides(2, loginWeek, userTotal), 100)+"%"); |
| | | result.put("live", Arith.multiplys(0, Arith.divides(2, loginWeek, userTotal), 100) + "%"); |
| | | return R.ok(result); |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/report") |
| | | @ManagerAuth |
| | | public R top(@RequestParam(defaultValue = "1", value = "type", required = false)Integer type){ |
| | | public R top(@RequestParam(defaultValue = "1", value = "type", required = false) Integer type) { |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.setTime(new Date()); |
| | | |
| | |
| | | /** |
| | | * èªå¨è¡¥é¶ |
| | | */ |
| | | private List<Map<String, Object>> fill(List<Map<String, Object>> list, int start, int end){ |
| | | for (int i = start ; i <= end; i++){ |
| | | private List<Map<String, Object>> fill(List<Map<String, Object>> list, int start, int end) { |
| | | for (int i = start; i <= end; i++) { |
| | | boolean exist = false; |
| | | for (Map seq : list){ |
| | | if (Integer.parseInt(String.valueOf(seq.get("node"))) == i){ |
| | | for (Map seq : list) { |
| | | if (Integer.parseInt(String.valueOf(seq.get("node"))) == i) { |
| | | exist = true; |
| | | } |
| | | } |
| | | if (!exist){ |
| | | if (!exist) { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("node", i); |
| | | map.put("val", 0); |
| | |
| | | * xè½´åä½è½¬æ¢ |
| | | * @param dot yè½´æ°å¼ä¿çå°æ°ä½ |
| | | */ |
| | | private List<Map<String, Object>> convert(List<Map<String, Object>> list, StatsType statsType, int dot){ |
| | | for (Map<String, Object> map : list){ |
| | | private List<Map<String, Object>> convert(List<Map<String, Object>> list, StatsType statsType, int dot) { |
| | | for (Map<String, Object> map : list) { |
| | | Object val = map.get("val"); |
| | | map.put("val", Arith.multiplys(dot, 1, (Number) val)); |
| | | Object node = map.get("node"); |
| | | switch (statsType){ |
| | | switch (statsType) { |
| | | case MONTH: |
| | | map.put("node", node + "å·"); |
| | | break; |
| | |
| | | return list; |
| | | } |
| | | |
| | | enum StatsType{ |
| | | enum StatsType { |
| | | |
| | | YEAR(1,1, 12), |
| | | MONTH(2,1, 30), |
| | | YEAR(1, 1, 12), |
| | | MONTH(2, 1, 30), |
| | | ; |
| | | |
| | | int id; |
| | | int start; |
| | | int end; |
| | | |
| | | StatsType(int id, int start, int end) { |
| | | this.id = id; |
| | | this.start = start; |
| | |
| | | |
| | | static StatsType get(int id) { |
| | | StatsType[] values = StatsType.values(); |
| | | for (StatsType statsType : values){ |
| | | if (statsType.id == id){ |
| | | for (StatsType statsType : values) { |
| | | if (statsType.id == id) { |
| | | return statsType; |
| | | } |
| | | } |
| | |
| | | |
| | | @RequestMapping(value = "/host/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<Host> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | |
| | | return R.ok(hostService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | if (entry.getKey().endsWith(">")) { |
| | | wrapper.ge(Cools.deleteChar(entry.getKey()), DateUtils.convert(String.valueOf(entry.getValue()))); |
| | | } else if (entry.getKey().endsWith("<")) { |
| | |
| | | @RequestMapping(value = "/host/edit/auth") |
| | | @ManagerAuth |
| | | public R edit(Host host) { |
| | | if (Cools.isEmpty(host)){ |
| | | if (Cools.isEmpty(host)) { |
| | | return R.error(); |
| | | } |
| | | if (null == host.getId()){ |
| | | if (null == host.getId()) { |
| | | hostService.insert(host); |
| | | } else { |
| | | hostService.updateById(host); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/host/update/auth") |
| | | @RequestMapping(value = "/host/update/auth") |
| | | @ManagerAuth |
| | | public R update(Host host){ |
| | | if (Cools.isEmpty(host) || null==host.getId()){ |
| | | public R update(Host host) { |
| | | if (Cools.isEmpty(host) || null == host.getId()) { |
| | | return R.error(); |
| | | } |
| | | hostService.updateById(host); |
| | |
| | | |
| | | @RequestMapping(value = "/host/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(Integer[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | public R delete(Integer[] ids) { |
| | | if (Cools.isEmpty(ids)) { |
| | | return R.error(); |
| | | } |
| | | hostService.deleteBatchIds(Arrays.asList(ids)); |
| | |
| | | |
| | | @RequestMapping(value = "/host/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<Host> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("host")); |
| | |
| | | wrapper.like("name", condition); |
| | | Page<Host> page = hostService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Host host : page.getRecords()){ |
| | | for (Host host : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", host.getId()); |
| | | map.put("value", host.getName()); |
| | |
| | | * è·åæå¡å¨ç¡¬ä»¶ä¿¡æ¯ |
| | | * @param osName æä½ç³»ç»ç±»åï¼å¦æä¸ºç©ºåèªå¨å¤æ |
| | | */ |
| | | @RequestMapping(value = "/getServerInfos",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE}) |
| | | public LicenseCheck getServerInfos(@RequestParam(value = "osName",required = false) String osName) { |
| | | @RequestMapping(value = "/getServerInfos", produces = {MediaType.APPLICATION_JSON_UTF8_VALUE}) |
| | | public LicenseCheck getServerInfos(@RequestParam(value = "osName", required = false) String osName) { |
| | | //æä½ç³»ç»ç±»å |
| | | if(Cools.isEmpty(osName)){ |
| | | if (Cools.isEmpty(osName)) { |
| | | osName = System.getProperty("os.name"); |
| | | } |
| | | osName = osName.toLowerCase(); |
| | |
| | | abstractServerInfos = new WindowsServerInfos(); |
| | | } else if (osName.startsWith("linux")) { |
| | | // abstractServerInfos = new LinuxServerInfos(); |
| | | }else{//å
¶ä»æå¡å¨ç±»å |
| | | } else {//å
¶ä»æå¡å¨ç±»å |
| | | abstractServerInfos = new WindowsServerInfos(); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/updateLicense") |
| | | public R updateLicense(@RequestParam("file") MultipartFile[] files){ |
| | | public R updateLicense(@RequestParam("file") MultipartFile[] files) { |
| | | MultipartFile file = files[0]; |
| | | |
| | | String licensePathFileName = this.getClass().getClassLoader().getResource(licensePath).getPath(); |
| | |
| | | |
| | | @RequestMapping(value = "/operateLog/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<OperateLog> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | |
| | | return R.ok(operateLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | if (entry.getKey().endsWith(">")) { |
| | | wrapper.ge(Cools.deleteChar(entry.getKey()), DateUtils.convert(String.valueOf(entry.getValue()))); |
| | | } else if (entry.getKey().endsWith("<")) { |
| | |
| | | @RequestMapping(value = "/operateLog/edit/auth") |
| | | @ManagerAuth |
| | | public R edit(OperateLog operateLog) { |
| | | if (Cools.isEmpty(operateLog)){ |
| | | if (Cools.isEmpty(operateLog)) { |
| | | return R.error(); |
| | | } |
| | | if (null == operateLog.getId()){ |
| | | if (null == operateLog.getId()) { |
| | | operateLogService.insert(operateLog); |
| | | } else { |
| | | operateLogService.updateById(operateLog); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/operateLog/update/auth") |
| | | @RequestMapping(value = "/operateLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(OperateLog operateLog){ |
| | | if (Cools.isEmpty(operateLog) || null==operateLog.getId()){ |
| | | public R update(OperateLog operateLog) { |
| | | if (Cools.isEmpty(operateLog) || null == operateLog.getId()) { |
| | | return R.error(); |
| | | } |
| | | operateLogService.updateById(operateLog); |
| | |
| | | |
| | | @RequestMapping(value = "/operateLog/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(Integer[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | public R delete(Integer[] ids) { |
| | | if (Cools.isEmpty(ids)) { |
| | | return R.error(); |
| | | } |
| | | operateLogService.deleteBatchIds(Arrays.asList(ids)); |
| | |
| | | |
| | | @RequestMapping(value = "/operateLog/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<OperateLog> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("operateLog")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<OperateLog> page = operateLogService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (OperateLog operateLog : page.getRecords()){ |
| | | for (OperateLog operateLog : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", operateLog.getId()); |
| | | map.put("value", operateLog.getId()); |
| | |
| | | |
| | | @RequestMapping(value = "/permission/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<Permission> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | |
| | | return R.ok(permissionService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | if (entry.getKey().endsWith(">")) { |
| | | wrapper.ge(Cools.deleteChar(entry.getKey()), DateUtils.convert(String.valueOf(entry.getValue()))); |
| | | } else if (entry.getKey().endsWith("<")) { |
| | |
| | | @RequestMapping(value = "/permission/edit/auth") |
| | | @ManagerAuth |
| | | public R edit(Permission permission) { |
| | | if (Cools.isEmpty(permission)){ |
| | | if (Cools.isEmpty(permission)) { |
| | | return R.error(); |
| | | } |
| | | if (null == permission.getId()){ |
| | | if (null == permission.getId()) { |
| | | permissionService.insert(permission); |
| | | } else { |
| | | permissionService.updateById(permission); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/permission/update/auth") |
| | | @RequestMapping(value = "/permission/update/auth") |
| | | @ManagerAuth |
| | | public R update(Permission permission){ |
| | | if (Cools.isEmpty(permission) || null==permission.getId()){ |
| | | public R update(Permission permission) { |
| | | if (Cools.isEmpty(permission) || null == permission.getId()) { |
| | | return R.error(); |
| | | } |
| | | permissionService.updateById(permission); |
| | |
| | | |
| | | @RequestMapping(value = "/permission/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(Integer[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | public R delete(Integer[] ids) { |
| | | if (Cools.isEmpty(ids)) { |
| | | return R.error(); |
| | | } |
| | | permissionService.deleteBatchIds(Arrays.asList(ids)); |
| | |
| | | |
| | | @RequestMapping(value = "/permission/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<Permission> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("permission")); |
| | |
| | | wrapper.like("name", condition); |
| | | Page<Permission> page = permissionService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Permission permission : page.getRecords()){ |
| | | for (Permission permission : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", permission.getId()); |
| | | map.put("value", permission.getName()); |
| | |
| | | |
| | | @RequestMapping(value = "/resource/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<Resource> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | |
| | | |
| | | @RequestMapping(value = "/resource/tree/auth") |
| | | @ManagerAuth |
| | | public R tree(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R tree(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<Resource> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("sort"); |
| | | } |
| | | return R.parse("0-æä½æå").add(resourceService.selectList(wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | if (entry.getKey().endsWith(">")) { |
| | | wrapper.ge(Cools.deleteChar(entry.getKey()), DateUtils.convert(String.valueOf(entry.getValue()))); |
| | | } else if (entry.getKey().endsWith("<")) { |
| | |
| | | @RequestMapping(value = "/resource/edit/auth") |
| | | @ManagerAuth(memo = "èåç¼è¾") |
| | | public R edit(Resource resource) { |
| | | if (Cools.isEmpty(resource)){ |
| | | if (Cools.isEmpty(resource)) { |
| | | return R.error(); |
| | | } |
| | | if (null == resource.getId()){ |
| | | if (resource.getSort() == null){ |
| | | if (null == resource.getId()) { |
| | | if (resource.getSort() == null) { |
| | | resource.setSort(999); |
| | | } |
| | | resourceService.insert(resource); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/resource/update/auth") |
| | | @RequestMapping(value = "/resource/update/auth") |
| | | @ManagerAuth(memo = "èåä¿®æ¹") |
| | | public R update(Resource resource){ |
| | | if (Cools.isEmpty(resource) || null==resource.getId()){ |
| | | public R update(Resource resource) { |
| | | if (Cools.isEmpty(resource) || null == resource.getId()) { |
| | | return R.error(); |
| | | } |
| | | resourceService.updateById(resource); |
| | |
| | | |
| | | @RequestMapping(value = "/resource/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | resourceService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/resource/export/auth") |
| | | @ManagerAuth(memo = "èå导åº") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<Resource> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("resource")); |
| | |
| | | wrapper.like("name", condition); |
| | | Page<Resource> page = resourceService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Resource resource : page.getRecords()){ |
| | | for (Resource resource : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", resource.getId()); |
| | | map.put("value", resource.getName().concat("(").concat(resource.getLevel$().substring(0, 2).concat(")"))); |
| | |
| | | |
| | | @RequestMapping(value = "/role/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<Role> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | |
| | | return R.ok(roleService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | if (entry.getKey().endsWith(">")) { |
| | | wrapper.ge(Cools.deleteChar(entry.getKey()), DateUtils.convert(String.valueOf(entry.getValue()))); |
| | | } else if (entry.getKey().endsWith("<")) { |
| | |
| | | @RequestMapping(value = "/role/edit/auth") |
| | | @ManagerAuth(memo = "è§è²ç¼è¾") |
| | | public R edit(Role role) { |
| | | if (Cools.isEmpty(role)){ |
| | | if (Cools.isEmpty(role)) { |
| | | return R.error(); |
| | | } |
| | | if (null == role.getId()){ |
| | | if (null == role.getId()) { |
| | | roleService.insert(role); |
| | | } else { |
| | | roleService.updateById(role); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/role/update/auth") |
| | | @RequestMapping(value = "/role/update/auth") |
| | | @ManagerAuth(memo = "è§è²ä¿®æ¹") |
| | | public R update(Role role){ |
| | | if (Cools.isEmpty(role) || null==role.getId()){ |
| | | public R update(Role role) { |
| | | if (Cools.isEmpty(role) || null == role.getId()) { |
| | | return R.error(); |
| | | } |
| | | roleService.updateById(role); |
| | |
| | | |
| | | @RequestMapping(value = "/role/delete/auth") |
| | | @ManagerAuth(memo = "è§è²å é¤") |
| | | public R delete(Integer[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | public R delete(Integer[] ids) { |
| | | if (Cools.isEmpty(ids)) { |
| | | return R.error(); |
| | | } |
| | | roleService.deleteBatchIds(Arrays.asList(ids)); |
| | |
| | | |
| | | @RequestMapping(value = "/role/export/auth") |
| | | @ManagerAuth(memo = "è§è²å¯¼åº") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<Role> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("role")); |
| | |
| | | |
| | | Page<Role> page = roleService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Role role : page.getRecords()){ |
| | | for (Role role : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", role.getId()); |
| | | map.put("value", role.getName()); |
| | |
| | | |
| | | @RequestMapping(value = "/user/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<User> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | |
| | | return R.ok(userService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | if (entry.getKey().endsWith(">")) { |
| | | wrapper.ge(Cools.deleteChar(entry.getKey()), DateUtils.convert(String.valueOf(entry.getValue()))); |
| | | } else if (entry.getKey().endsWith("<")) { |
| | |
| | | @RequestMapping(value = "/user/edit/auth") |
| | | @ManagerAuth(memo = "ç³»ç»ç¨æ·ç¼è¾") |
| | | public R edit(User user) { |
| | | if (Cools.isEmpty(user)){ |
| | | if (Cools.isEmpty(user)) { |
| | | return R.error(); |
| | | } |
| | | if (null == user.getId()){ |
| | | if (null == user.getId()) { |
| | | userService.insert(user); |
| | | } else { |
| | | userService.updateById(user); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/user/update/auth") |
| | | @RequestMapping(value = "/user/update/auth") |
| | | @ManagerAuth(memo = "ç³»ç»ç¨æ·ä¿®æ¹") |
| | | public R update(User user){ |
| | | if (Cools.isEmpty(user) || null==user.getId()){ |
| | | public R update(User user) { |
| | | if (Cools.isEmpty(user) || null == user.getId()) { |
| | | return R.error(); |
| | | } |
| | | User entity = userService.selectById(user.getId()); |
| | | if (user.getPassword()!=null) { |
| | | if (user.getPassword() != null) { |
| | | entity.setPassword(user.getPassword()); |
| | | } |
| | | if (user.getUsername()!=null) { |
| | | if (user.getUsername() != null) { |
| | | entity.setUsername(user.getUsername()); |
| | | } |
| | | if (user.getMobile()!=null) { |
| | | if (user.getMobile() != null) { |
| | | entity.setMobile(user.getMobile()); |
| | | } |
| | | userService.updateById(entity); |
| | |
| | | |
| | | @RequestMapping(value = "/user/delete/auth") |
| | | @ManagerAuth(memo = "ç³»ç»ç¨æ·å é¤") |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | userService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/user/export/auth") |
| | | @ManagerAuth(memo = "ç³»ç»ç¨æ·å¯¼åº") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<User> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("user")); |
| | |
| | | wrapper.like("username", condition); |
| | | Page<User> page = userService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (User user : page.getRecords()){ |
| | | for (User user : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", user.getId()); |
| | | map.put("value", user.getUsername()); |
| | |
| | | |
| | | @RequestMapping(value = "/userLogin/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<UserLogin> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | |
| | | return R.ok(userLoginService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | if (entry.getKey().endsWith(">")) { |
| | | wrapper.ge(Cools.deleteChar(entry.getKey()), DateUtils.convert(String.valueOf(entry.getValue()))); |
| | | } else if (entry.getKey().endsWith("<")) { |
| | |
| | | @RequestMapping(value = "/userLogin/edit/auth") |
| | | @ManagerAuth |
| | | public R edit(UserLogin userLogin) { |
| | | if (Cools.isEmpty(userLogin)){ |
| | | if (Cools.isEmpty(userLogin)) { |
| | | return R.error(); |
| | | } |
| | | if (null == userLogin.getId()){ |
| | | if (null == userLogin.getId()) { |
| | | userLoginService.insert(userLogin); |
| | | } else { |
| | | userLoginService.updateById(userLogin); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/userLogin/update/auth") |
| | | @RequestMapping(value = "/userLogin/update/auth") |
| | | @ManagerAuth |
| | | public R update(UserLogin userLogin){ |
| | | if (Cools.isEmpty(userLogin) || null==userLogin.getId()){ |
| | | public R update(UserLogin userLogin) { |
| | | if (Cools.isEmpty(userLogin) || null == userLogin.getId()) { |
| | | return R.error(); |
| | | } |
| | | userLoginService.updateById(userLogin); |
| | |
| | | |
| | | @RequestMapping(value = "/userLogin/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(Integer[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | public R delete(Integer[] ids) { |
| | | if (Cools.isEmpty(ids)) { |
| | | return R.error(); |
| | | } |
| | | userLoginService.deleteBatchIds(Arrays.asList(ids)); |
| | |
| | | |
| | | @RequestMapping(value = "/userLogin/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<UserLogin> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("userLogin")); |
| | |
| | | wrapper.like("token", condition); |
| | | Page<UserLogin> page = userLoginService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (UserLogin userLogin : page.getRecords()){ |
| | | for (UserLogin userLogin : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", userLogin.getId()); |
| | | map.put("value", userLogin.getToken()); |
| | |
| | | */ |
| | | private Short status; |
| | | |
| | | public Api() {} |
| | | public Api() { |
| | | } |
| | | |
| | | public Api(String namespace,Short oauth,String request,String response,Date createTime,Date updateTime,Short status) { |
| | | public Api(String namespace, Short oauth, String request, String response, Date createTime, Date updateTime, Short status) { |
| | | this.namespace = namespace; // å½å空é´[é空] |
| | | this.oauth = oauth; // ææ[é空] |
| | | this.request = request; // 请æ±ç»æ |
| | |
| | | return oauth; |
| | | } |
| | | |
| | | public String getOauth$(){ |
| | | if (null == this.oauth){ return null; } |
| | | switch (this.oauth){ |
| | | public void setOauth(Short oauth) { |
| | | this.oauth = oauth; |
| | | } |
| | | |
| | | public String getOauth$() { |
| | | if (null == this.oauth) { |
| | | return null; |
| | | } |
| | | switch (this.oauth) { |
| | | case 0: |
| | | return "æ éææ"; |
| | | case 1: |
| | |
| | | default: |
| | | return String.valueOf(this.oauth); |
| | | } |
| | | } |
| | | |
| | | public void setOauth(Short oauth) { |
| | | this.oauth = oauth; |
| | | } |
| | | |
| | | public String getRequest() { |
| | |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public Short getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "ææ"; |
| | | case 0: |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | private Short status; |
| | | |
| | | public Config() {} |
| | | public Config() { |
| | | } |
| | | |
| | | public Config(String name,String code,String value,Short type,Short status) { |
| | | public Config(String name, String code, String value, Short type, Short status) { |
| | | this.name = name; |
| | | this.code = code; |
| | | this.value = value; |
| | |
| | | return type; |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | switch (this.type){ |
| | | public void setType(Short type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getType$() { |
| | | if (null == this.type) { |
| | | return null; |
| | | } |
| | | switch (this.type) { |
| | | case 1: |
| | | return "String"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public void setType(Short type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public Short getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | | case 0: |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | private Integer status; |
| | | |
| | | public Host() {} |
| | | public Host() { |
| | | } |
| | | |
| | | public Host(String name,String flag,Date createTime,Date updateTime,Integer status) { |
| | | public Host(String name, String flag, Date createTime, Date updateTime, Integer status) { |
| | | this.name = name; |
| | | this.flag = flag; |
| | | this.createTime = createTime; |
| | |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public Integer getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | | case 0: |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | |
| | | return userId; |
| | | } |
| | | |
| | | public String getUserId$(){ |
| | | public void setUserId(Long userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getUserId$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.userId); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return user.getUsername(); |
| | | } |
| | | return null; |
| | | } |
| | | public void setUserId(Long userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getIp() { |
| | |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | private Short status; |
| | | |
| | | public Permission() {} |
| | | public Permission() { |
| | | } |
| | | |
| | | public Permission(String name,String action,Long resourceId,Short status) { |
| | | public Permission(String name, String action, Long resourceId, Short status) { |
| | | this.name = name; |
| | | this.action = action; |
| | | this.resourceId = resourceId; |
| | |
| | | return resourceId; |
| | | } |
| | | |
| | | public String getResourceName(){ |
| | | public void setResourceId(Long resourceId) { |
| | | this.resourceId = resourceId; |
| | | } |
| | | |
| | | public String getResourceName() { |
| | | ResourceService service = SpringUtils.getBean(ResourceService.class); |
| | | Resource resource = service.selectById(this.resourceId); |
| | | if (!Cools.isEmpty(resource)){ |
| | | if (!Cools.isEmpty(resource)) { |
| | | return resource.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setResourceId(Long resourceId) { |
| | | this.resourceId = resourceId; |
| | | } |
| | | |
| | | public Short getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | | case 0: |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | private Short status; |
| | | |
| | | public Resource() {} |
| | | public Resource() { |
| | | } |
| | | |
| | | public Resource(String code,String name,Long resourceId,Short level,Integer sort,Short status) { |
| | | public Resource(String code, String name, Long resourceId, Short level, Integer sort, Short status) { |
| | | this.code = code; |
| | | this.name = name; |
| | | this.resourceId = resourceId; |
| | |
| | | return resourceId; |
| | | } |
| | | |
| | | public String getResourceName(){ |
| | | public void setResourceId(Long resourceId) { |
| | | this.resourceId = resourceId; |
| | | } |
| | | |
| | | public String getResourceName() { |
| | | ResourceService service = SpringUtils.getBean(ResourceService.class); |
| | | Resource resource = service.selectById(this.resourceId); |
| | | if (!Cools.isEmpty(resource)){ |
| | | if (!Cools.isEmpty(resource)) { |
| | | return resource.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setResourceId(Long resourceId) { |
| | | this.resourceId = resourceId; |
| | | } |
| | | |
| | | public Short getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public String getLevel$(){ |
| | | if (null == this.level){ return null; } |
| | | switch (this.level){ |
| | | public void setLevel(Short level) { |
| | | this.level = level; |
| | | } |
| | | |
| | | public String getLevel$() { |
| | | if (null == this.level) { |
| | | return null; |
| | | } |
| | | switch (this.level) { |
| | | case 1: |
| | | return "ä¸çº§èå"; |
| | | case 2: |
| | |
| | | default: |
| | | return String.valueOf(this.level); |
| | | } |
| | | } |
| | | |
| | | public void setLevel(Short level) { |
| | | this.level = level; |
| | | } |
| | | |
| | | public Integer getSort() { |
| | |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | | case 0: |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * ç¼å· |
| | | */ |
| | | @ApiModelProperty(value= "ç¼å·") |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * ç¼ç |
| | | */ |
| | | @ApiModelProperty(value= "ç¼ç ") |
| | | @ApiModelProperty(value = "ç¼ç ") |
| | | private String code; |
| | | |
| | | /** |
| | | * åç§° |
| | | */ |
| | | @ApiModelProperty(value= "åç§°") |
| | | @ApiModelProperty(value = "åç§°") |
| | | private String name; |
| | | |
| | | /** |
| | | * ä¸çº§ |
| | | */ |
| | | @ApiModelProperty(value= "ä¸çº§") |
| | | @ApiModelProperty(value = "ä¸çº§") |
| | | private Long leader; |
| | | |
| | | /** |
| | | * è§è²ç级 1: ä¸çº§ 2: äºçº§ 3: ä¸çº§ 4: å级 5: äºçº§ |
| | | */ |
| | | @ApiModelProperty(value= "è§è²ç级 1: ä¸çº§ 2: äºçº§ 3: ä¸çº§ 4: å级 5: äºçº§ ") |
| | | @ApiModelProperty(value = "è§è²ç级 1: ä¸çº§ 2: äºçº§ 3: ä¸çº§ 4: å级 5: äºçº§ ") |
| | | private Short level; |
| | | |
| | | public Role() {} |
| | | public Role() { |
| | | } |
| | | |
| | | public Role(String code,String name,Long leader,Short level) { |
| | | public Role(String code, String name, Long leader, Short level) { |
| | | this.code = code; |
| | | this.name = name; |
| | | this.leader = leader; |
| | |
| | | return leader; |
| | | } |
| | | |
| | | public String getLeader$(){ |
| | | public void setLeader(Long leader) { |
| | | this.leader = leader; |
| | | } |
| | | |
| | | public String getLeader$() { |
| | | RoleService service = SpringUtils.getBean(RoleService.class); |
| | | Role role = service.selectById(this.leader); |
| | | if (!Cools.isEmpty(role)){ |
| | | if (!Cools.isEmpty(role)) { |
| | | return String.valueOf(role.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setLeader(Long leader) { |
| | | this.leader = leader; |
| | | } |
| | | |
| | | public Short getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public String getLevel$(){ |
| | | if (null == this.level){ return null; } |
| | | switch (this.level){ |
| | | public void setLevel(Short level) { |
| | | this.level = level; |
| | | } |
| | | |
| | | public String getLevel$() { |
| | | if (null == this.level) { |
| | | return null; |
| | | } |
| | | switch (this.level) { |
| | | case 1: |
| | | return "ä¸çº§"; |
| | | case 2: |
| | |
| | | default: |
| | | return String.valueOf(this.level); |
| | | } |
| | | } |
| | | |
| | | public void setLevel(Short level) { |
| | | this.level = level; |
| | | } |
| | | |
| | | |
| | |
| | | @TableField("permission_id") |
| | | private Long permissionId; |
| | | |
| | | public RolePermission() {} |
| | | public RolePermission() { |
| | | } |
| | | |
| | | public RolePermission(Long roleId,Long permissionId) { |
| | | public RolePermission(Long roleId, Long permissionId) { |
| | | this.roleId = roleId; |
| | | this.permissionId = permissionId; |
| | | } |
| | |
| | | return roleId; |
| | | } |
| | | |
| | | public String getRoleName(){ |
| | | public void setRoleId(Long roleId) { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public String getRoleName() { |
| | | RoleService service = SpringUtils.getBean(RoleService.class); |
| | | Role role = service.selectById(this.roleId); |
| | | if (!Cools.isEmpty(role)){ |
| | | if (!Cools.isEmpty(role)) { |
| | | return role.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public Long getPermissionId() { |
| | | return permissionId; |
| | | } |
| | | |
| | | public String getPermissionName(){ |
| | | public void setPermissionId(Long permissionId) { |
| | | this.permissionId = permissionId; |
| | | } |
| | | |
| | | public String getPermissionName() { |
| | | PermissionService service = SpringUtils.getBean(PermissionService.class); |
| | | Permission permission = service.selectById(this.permissionId); |
| | | if (!Cools.isEmpty(permission)){ |
| | | if (!Cools.isEmpty(permission)) { |
| | | return permission.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setPermissionId(Long permissionId) { |
| | | this.permissionId = permissionId; |
| | | } |
| | | |
| | | |
| | |
| | | return username; |
| | | } |
| | | |
| | | public Long getHostId() { |
| | | return hostId; |
| | | public void setUsername(String username) { |
| | | this.username = username; |
| | | } |
| | | |
| | | public String getHostName() { |
| | | HostService service = SpringUtils.getBean(HostService.class); |
| | | Host host = service.selectById(this.hostId); |
| | | if (!Cools.isEmpty(host)){ |
| | | return host.getName(); |
| | | } |
| | | return null; |
| | | public Long getHostId() { |
| | | return hostId; |
| | | } |
| | | |
| | | public void setHostId(Long hostId) { |
| | | this.hostId = hostId; |
| | | } |
| | | |
| | | public void setUsername(String username) { |
| | | this.username = username; |
| | | public String getHostName() { |
| | | HostService service = SpringUtils.getBean(HostService.class); |
| | | Host host = service.selectById(this.hostId); |
| | | if (!Cools.isEmpty(host)) { |
| | | return host.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getMobile() { |
| | |
| | | return roleId; |
| | | } |
| | | |
| | | public String getRoleName(){ |
| | | public void setRoleId(Long roleId) { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public String getRoleName() { |
| | | RoleService service = SpringUtils.getBean(RoleService.class); |
| | | Role role = service.selectById(this.roleId); |
| | | if (!Cools.isEmpty(role)){ |
| | | if (!Cools.isEmpty(role)) { |
| | | return role.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Integer getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "å¯ç¨"; |
| | | case 2: |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | |
| | | return userId; |
| | | } |
| | | |
| | | public String getUserUsername(){ |
| | | public void setUserId(Long userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getUserUsername() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.userId); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return user.getUsername(); |
| | | } |
| | | return null; |
| | | } |
| | | public void setUserId(Long userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getToken() { |
| | |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * ç»è£
éè¦é¢å¤æ ¡éªçLicenseåæ° |
| | | */ |
| | | public LicenseCheck getServerInfos(){ |
| | | public LicenseCheck getServerInfos() { |
| | | LicenseCheck result = new LicenseCheck(); |
| | | |
| | | try { |
| | |
| | | result.setMacAddress(this.getMacAddress()); |
| | | result.setCpuSerial(this.getCPUSerial()); |
| | | result.setMainBoardSerial(this.getMainBoardSerial()); |
| | | }catch (Exception e){ |
| | | logger.error("è·åæå¡å¨ç¡¬ä»¶ä¿¡æ¯å¤±è´¥",e); |
| | | } catch (Exception e) { |
| | | logger.error("è·åæå¡å¨ç¡¬ä»¶ä¿¡æ¯å¤±è´¥", e); |
| | | } |
| | | |
| | | return result; |
| | |
| | | InetAddress inetAddr = (InetAddress) inetAddresses.nextElement(); |
| | | |
| | | //æé¤LoopbackAddressãSiteLocalAddressãLinkLocalAddressãMulticastAddressç±»åçIPå°å |
| | | if(!inetAddr.isLoopbackAddress() /*&& !inetAddr.isSiteLocalAddress()*/ |
| | | && !inetAddr.isLinkLocalAddress() && !inetAddr.isMulticastAddress()){ |
| | | if (!inetAddr.isLoopbackAddress() /*&& !inetAddr.isSiteLocalAddress()*/ |
| | | && !inetAddr.isLinkLocalAddress() && !inetAddr.isMulticastAddress()) { |
| | | result.add(inetAddr); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * è·åæä¸ªç½ç»æ¥å£çMacå°å |
| | | */ |
| | | protected String getMacByInetAddress(InetAddress inetAddr){ |
| | | protected String getMacByInetAddress(InetAddress inetAddr) { |
| | | try { |
| | | byte[] mac = NetworkInterface.getByInetAddress(inetAddr).getHardwareAddress(); |
| | | StringBuffer stringBuffer = new StringBuffer(); |
| | | |
| | | for(int i=0;i<mac.length;i++){ |
| | | if(i != 0) { |
| | | for (int i = 0; i < mac.length; i++) { |
| | | if (i != 0) { |
| | | stringBuffer.append("-"); |
| | | } |
| | | |
| | | //å°åå
è¿å¶byte转å为å符串 |
| | | String temp = Integer.toHexString(mac[i] & 0xff); |
| | | if(temp.length() == 1){ |
| | | if (temp.length() == 1) { |
| | | stringBuffer.append("0" + temp); |
| | | }else{ |
| | | } else { |
| | | stringBuffer.append(temp); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * èªå®ä¹LicenseManagerï¼ç¨äºå¢å é¢å¤çæå¡å¨ç¡¬ä»¶ä¿¡æ¯æ ¡éª |
| | | */ |
| | | public class CustomLicenseManager extends LicenseManager{ |
| | | private static Logger logger = LogManager.getLogger(CustomLicenseManager.class); |
| | | |
| | | public class CustomLicenseManager extends LicenseManager { |
| | | //XMLç¼ç |
| | | private static final String XML_CHARSET = "UTF-8"; |
| | | //é»è®¤BUFSIZE |
| | | private static final int DEFAULT_BUFSIZE = 8 * 1024; |
| | | private static Logger logger = LogManager.getLogger(CustomLicenseManager.class); |
| | | |
| | | public CustomLicenseManager() { |
| | | |
| | |
| | | final GenericCertificate certificate = getPrivacyGuard().key2cert(key); |
| | | |
| | | notary.verify(certificate); |
| | | final LicenseContent content = (LicenseContent)this.load(certificate.getEncoded()); |
| | | final LicenseContent content = (LicenseContent) this.load(certificate.getEncoded()); |
| | | this.validate(content); |
| | | setLicenseKey(key); |
| | | setCertificate(certificate); |
| | |
| | | |
| | | // Load license key from preferences, |
| | | final byte[] key = getLicenseKey(); |
| | | if (null == key){ |
| | | if (null == key) { |
| | | throw new NoLicenseInstalledException(getLicenseParam().getSubject()); |
| | | } |
| | | |
| | | certificate = getPrivacyGuard().key2cert(key); |
| | | notary.verify(certificate); |
| | | final LicenseContent content = (LicenseContent)this.load(certificate.getEncoded()); |
| | | final LicenseContent content = (LicenseContent) this.load(certificate.getEncoded()); |
| | | this.validate(content); |
| | | setCertificate(certificate); |
| | | |
| | |
| | | final Date now = new Date(); |
| | | final Date notBefore = content.getNotBefore(); |
| | | final Date notAfter = content.getNotAfter(); |
| | | if (null != notAfter && now.after(notAfter)){ |
| | | if (null != notAfter && now.after(notAfter)) { |
| | | throw new LicenseContentException("è¯ä¹¦å¤±ææ¶é´ä¸è½æ©äºå½åæ¶é´"); |
| | | } |
| | | if (null != notBefore && null != notAfter && notAfter.before(notBefore)){ |
| | | if (null != notBefore && null != notAfter && notAfter.before(notBefore)) { |
| | | throw new LicenseContentException("è¯ä¹¦çææ¶é´ä¸è½æäºè¯ä¹¦å¤±ææ¶é´"); |
| | | } |
| | | final String consumerType = content.getConsumerType(); |
| | | if (null == consumerType){ |
| | | if (null == consumerType) { |
| | | throw new LicenseContentException("ç¨æ·ç±»åä¸è½ä¸ºç©º"); |
| | | } |
| | | } |
| | |
| | | //å½åæå¡å¨çå®çåæ°ä¿¡æ¯ |
| | | LicenseCheck serverCheckModel = getServerInfos(); |
| | | |
| | | if(expectedCheckModel != null && serverCheckModel != null){ |
| | | if (expectedCheckModel != null && serverCheckModel != null) { |
| | | //æ ¡éªIPå°å |
| | | if(!checkIpAddress(expectedCheckModel.getIpAddress(),serverCheckModel.getIpAddress())){ |
| | | if (!checkIpAddress(expectedCheckModel.getIpAddress(), serverCheckModel.getIpAddress())) { |
| | | //throw new LicenseContentException("å½åæå¡å¨çIPæ²¡å¨ææèå´å
"); |
| | | } |
| | | |
| | | //æ ¡éªMacå°å |
| | | if(!checkIpAddress(expectedCheckModel.getMacAddress(),serverCheckModel.getMacAddress())){ |
| | | if (!checkIpAddress(expectedCheckModel.getMacAddress(), serverCheckModel.getMacAddress())) { |
| | | //throw new LicenseContentException("å½åæå¡å¨çMacå°åæ²¡å¨ææèå´å
"); |
| | | } |
| | | |
| | | //æ ¡éªä¸»æ¿åºåå· |
| | | if(!checkSerial(expectedCheckModel.getMainBoardSerial(),serverCheckModel.getMainBoardSerial())){ |
| | | if (!checkSerial(expectedCheckModel.getMainBoardSerial(), serverCheckModel.getMainBoardSerial())) { |
| | | throw new LicenseContentException("å½åæå¡å¨ç主æ¿åºåå·æ²¡å¨ææèå´å
"); |
| | | } |
| | | |
| | | //æ ¡éªCPUåºåå· |
| | | if(!checkSerial(expectedCheckModel.getCpuSerial(),serverCheckModel.getCpuSerial())){ |
| | | if (!checkSerial(expectedCheckModel.getCpuSerial(), serverCheckModel.getCpuSerial())) { |
| | | throw new LicenseContentException("å½åæå¡å¨çCPUåºåå·æ²¡å¨ææèå´å
"); |
| | | } |
| | | }else{ |
| | | } else { |
| | | throw new LicenseContentException("ä¸è½è·åæå¡å¨ç¡¬ä»¶ä¿¡æ¯"); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * éåXMLDecoderè§£æXML |
| | | */ |
| | | private Object load(String encoded){ |
| | | private Object load(String encoded) { |
| | | BufferedInputStream inputStream = null; |
| | | XMLDecoder decoder = null; |
| | | try { |
| | | inputStream = new BufferedInputStream(new ByteArrayInputStream(encoded.getBytes(XML_CHARSET))); |
| | | |
| | | decoder = new XMLDecoder(new BufferedInputStream(inputStream, DEFAULT_BUFSIZE),null,null); |
| | | decoder = new XMLDecoder(new BufferedInputStream(inputStream, DEFAULT_BUFSIZE), null, null); |
| | | |
| | | return decoder.readObject(); |
| | | } catch (UnsupportedEncodingException e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | try { |
| | | if(decoder != null){ |
| | | if (decoder != null) { |
| | | decoder.close(); |
| | | } |
| | | if(inputStream != null){ |
| | | if (inputStream != null) { |
| | | inputStream.close(); |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("XMLDecoderè§£æXML失败",e); |
| | | logger.error("XMLDecoderè§£æXML失败", e); |
| | | } |
| | | } |
| | | |
| | |
| | | /** |
| | | * è·åå½åæå¡å¨éè¦é¢å¤æ ¡éªçLicenseåæ° |
| | | */ |
| | | private LicenseCheck getServerInfos(){ |
| | | private LicenseCheck getServerInfos() { |
| | | //æä½ç³»ç»ç±»å |
| | | String osName = System.getProperty("os.name").toLowerCase(); |
| | | AbstractServerInfos abstractServerInfos = null; |
| | |
| | | abstractServerInfos = new WindowsServerInfos(); |
| | | } else if (osName.startsWith("linux")) { |
| | | // abstractServerInfos = new LinuxServerInfos(); |
| | | }else{//å
¶ä»æå¡å¨ç±»å |
| | | } else {//å
¶ä»æå¡å¨ç±»å |
| | | abstractServerInfos = new WindowsServerInfos(); |
| | | } |
| | | |
| | |
| | | * æ ¡éªå½åæå¡å¨çIP/Macå°åæ¯å¦å¨å¯è¢«å
许çIPèå´å
<br/> |
| | | * 妿åå¨IPå¨å¯è¢«å
许çIP/Macå°åèå´å
ï¼åè¿åtrue |
| | | */ |
| | | private boolean checkIpAddress(List<String> expectedList,List<String> serverList){ |
| | | if(expectedList != null && expectedList.size() > 0){ |
| | | if(serverList != null && serverList.size() > 0){ |
| | | for(String expected : expectedList){ |
| | | if(serverList.contains(expected.trim())){ |
| | | private boolean checkIpAddress(List<String> expectedList, List<String> serverList) { |
| | | if (expectedList != null && expectedList.size() > 0) { |
| | | if (serverList != null && serverList.size() > 0) { |
| | | for (String expected : expectedList) { |
| | | if (serverList.contains(expected.trim())) { |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | |
| | | return false; |
| | | }else { |
| | | } else { |
| | | return true; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * æ ¡éªå½åæå¡å¨ç¡¬ä»¶ï¼ä¸»æ¿ãCPUçï¼åºåå·æ¯å¦å¨å¯å
许èå´å
|
| | | */ |
| | | private boolean checkSerial(String expectedSerial,String serverSerial){ |
| | | if(!Cools.isEmpty(expectedSerial)){ |
| | | if(!Cools.isEmpty(serverSerial)){ |
| | | if(expectedSerial.equals(serverSerial)){ |
| | | private boolean checkSerial(String expectedSerial, String serverSerial) { |
| | | if (!Cools.isEmpty(expectedSerial)) { |
| | | if (!Cools.isEmpty(serverSerial)) { |
| | | if (expectedSerial.equals(serverSerial)) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | }else{ |
| | | } else { |
| | | return true; |
| | | } |
| | | } |
| | |
| | | public void onApplicationEvent(ContextRefreshedEvent event) { |
| | | //root application context 没æparent |
| | | ApplicationContext context = event.getApplicationContext().getParent(); |
| | | if(context == null){ |
| | | if (context == null) { |
| | | loadLicense(); |
| | | } |
| | | } |
| | | |
| | | //å è½½è¯ä¹¦ |
| | | public boolean loadLicense() { |
| | | if(!Cools.isEmpty(licensePath)){ |
| | | if (!Cools.isEmpty(licensePath)) { |
| | | logger.info("++++++++ å¼å§å 载许å¯è¯ ++++++++"); |
| | | |
| | | try { |
| | |
| | | * Licenseçæç±» |
| | | */ |
| | | public class LicenseCreator { |
| | | private static Logger logger = LogManager.getLogger(LicenseCreator.class); |
| | | private final static X500Principal DEFAULT_HOLDER_AND_ISSUER = new X500Principal("CN=localhost, OU=localhost, O=localhost, L=SH, ST=SH, C=CN"); |
| | | private static Logger logger = LogManager.getLogger(LicenseCreator.class); |
| | | private LicenseCreatorParam param; |
| | | |
| | | public LicenseCreator(LicenseCreatorParam param) { |
| | |
| | | /** |
| | | * çæLicenseè¯ä¹¦ |
| | | */ |
| | | public boolean generateLicense(){ |
| | | public boolean generateLicense() { |
| | | try { |
| | | LicenseManager licenseManager = new CustomLicenseManager(initLicenseParam()); |
| | | LicenseContent licenseContent = initLicenseContent(); |
| | | |
| | | licenseManager.store(licenseContent,new File(param.getLicensePath())); |
| | | licenseManager.store(licenseContent, new File(param.getLicensePath())); |
| | | |
| | | return true; |
| | | }catch (Exception e){ |
| | | logger.error(MessageFormat.format("è¯ä¹¦çæå¤±è´¥ï¼{0}",param),e); |
| | | } catch (Exception e) { |
| | | logger.error(MessageFormat.format("è¯ä¹¦çæå¤±è´¥ï¼{0}", param), e); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * åå§åè¯ä¹¦çæåæ° |
| | | */ |
| | | private LicenseParam initLicenseParam(){ |
| | | private LicenseParam initLicenseParam() { |
| | | Preferences preferences = Preferences.userNodeForPackage(LicenseCreator.class); |
| | | |
| | | //设置对è¯ä¹¦å
容å å¯çç§é¥ |
| | | CipherParam cipherParam = new DefaultCipherParam(param.getStorePass()); |
| | | |
| | | KeyStoreParam privateStoreParam = new CustomKeyStoreParam(LicenseCreator.class |
| | | ,param.getPrivateKeysStorePath() |
| | | ,param.getPrivateAlias() |
| | | ,param.getStorePass() |
| | | ,param.getKeyPass()); |
| | | , param.getPrivateKeysStorePath() |
| | | , param.getPrivateAlias() |
| | | , param.getStorePass() |
| | | , param.getKeyPass()); |
| | | |
| | | LicenseParam licenseParam = new DefaultLicenseParam(param.getSubject() |
| | | ,preferences |
| | | ,privateStoreParam |
| | | ,cipherParam); |
| | | , preferences |
| | | , privateStoreParam |
| | | , cipherParam); |
| | | |
| | | return licenseParam; |
| | | } |
| | |
| | | /** |
| | | * 设置è¯ä¹¦çææ£æä¿¡æ¯ |
| | | */ |
| | | private LicenseContent initLicenseContent(){ |
| | | private LicenseContent initLicenseContent() { |
| | | LicenseContent licenseContent = new LicenseContent(); |
| | | licenseContent.setHolder(DEFAULT_HOLDER_AND_ISSUER); |
| | | licenseContent.setIssuer(DEFAULT_HOLDER_AND_ISSUER); |
| | |
| | | /** |
| | | * å®è£
Licenseè¯ä¹¦ |
| | | */ |
| | | public synchronized LicenseContent install(LicenseVerifyParam param){ |
| | | public synchronized LicenseContent install(LicenseVerifyParam param) { |
| | | LicenseContent result = null; |
| | | DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | //1. å®è£
è¯ä¹¦ |
| | | try{ |
| | | try { |
| | | LicenseManager licenseManager = LicenseManagerHolder.getInstance(initLicenseParam(param)); |
| | | licenseManager.uninstall(); |
| | | |
| | | result = licenseManager.install(new File(param.getLicensePath())); |
| | | logger.info(MessageFormat.format("许å¯è¯å è½½æåï¼è®¸å¯è¯æææï¼{0} - {1}",format.format(result.getNotBefore()),format.format(result.getNotAfter()))); |
| | | }catch (Exception e){ |
| | | logger.error("许å¯è¯å 载失败ï¼",e); |
| | | logger.info(MessageFormat.format("许å¯è¯å è½½æåï¼è®¸å¯è¯æææï¼{0} - {1}", format.format(result.getNotBefore()), format.format(result.getNotAfter()))); |
| | | } catch (Exception e) { |
| | | logger.error("许å¯è¯å 载失败ï¼", e); |
| | | } |
| | | |
| | | return result; |
| | |
| | | /** |
| | | * æ ¡éªLicenseè¯ä¹¦ |
| | | */ |
| | | public boolean verify(){ |
| | | public boolean verify() { |
| | | try { |
| | | LicenseManager licenseManager = LicenseManagerHolder.getInstance(null); |
| | | DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | |
| | | } |
| | | |
| | | LicenseContent licenseContent = licenseManager.verify(); |
| | | logger.info(MessageFormat.format("许å¯è¯æ ¡éªéè¿ï¼è®¸å¯è¯æææï¼{0} - {1}",format.format(licenseContent.getNotBefore()),format.format(licenseContent.getNotAfter()))); |
| | | logger.info(MessageFormat.format("许å¯è¯æ ¡éªéè¿ï¼è®¸å¯è¯æææï¼{0} - {1}", format.format(licenseContent.getNotBefore()), format.format(licenseContent.getNotAfter()))); |
| | | return true; |
| | | }catch (Exception e){ |
| | | logger.error("许å¯è¯æ ¡éªå¤±è´¥ï¼",e); |
| | | } catch (Exception e) { |
| | | logger.error("许å¯è¯æ ¡éªå¤±è´¥ï¼", e); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * æ ¡éªLicenseè¯ä¹¦å¹¶è·åè¯ä¹¦ä¿¡æ¯ |
| | | */ |
| | | public LicenseContent getVerifyInfo(){ |
| | | public LicenseContent getVerifyInfo() { |
| | | LicenseManager licenseManager = LicenseManagerHolder.getInstance(null); |
| | | |
| | | if (!updateSystemTime()) { |
| | |
| | | try { |
| | | LicenseContent licenseContent = licenseManager.verify(); |
| | | return licenseContent; |
| | | }catch (Exception e){ |
| | | logger.error("许å¯è¯æ ¡éªå¤±è´¥ï¼",e); |
| | | } catch (Exception e) { |
| | | logger.error("许å¯è¯æ ¡éªå¤±è´¥ï¼", e); |
| | | return null; |
| | | } |
| | | } |
| | |
| | | * @param param Licenseæ ¡éªç±»éè¦çåæ° |
| | | * @return de.schlichtherle.license.LicenseParam |
| | | */ |
| | | private LicenseParam initLicenseParam(LicenseVerifyParam param){ |
| | | private LicenseParam initLicenseParam(LicenseVerifyParam param) { |
| | | Preferences preferences = Preferences.userNodeForPackage(LicenseVerify.class); |
| | | |
| | | CipherParam cipherParam = new DefaultCipherParam(param.getStorePass()); |
| | | |
| | | KeyStoreParam publicStoreParam = new CustomKeyStoreParam(LicenseVerify.class |
| | | ,param.getPublicKeysStorePath() |
| | | ,param.getPublicAlias() |
| | | ,param.getStorePass() |
| | | ,null); |
| | | , param.getPublicKeysStorePath() |
| | | , param.getPublicAlias() |
| | | , param.getStorePass() |
| | | , null); |
| | | |
| | | return new DefaultLicenseParam(param.getSubject() |
| | | ,preferences |
| | | ,publicStoreParam |
| | | ,cipherParam); |
| | | , preferences |
| | | , publicStoreParam |
| | | , cipherParam); |
| | | } |
| | | |
| | | /** |
| | |
| | | node.put(key, String.valueOf(System.currentTimeMillis())); |
| | | return true; |
| | | } |
| | | }else { |
| | | } else { |
| | | // åå
¥æ³¨å表 |
| | | node.put(key, String.valueOf(System.currentTimeMillis())); |
| | | return true; |
| | |
| | | //è·åææç½ç»æ¥å£ |
| | | List<InetAddress> inetAddresses = getLocalAllInetAddress(); |
| | | |
| | | if(inetAddresses != null && inetAddresses.size() > 0){ |
| | | if (inetAddresses != null && inetAddresses.size() > 0) { |
| | | result = inetAddresses.stream().map(InetAddress::getHostAddress).distinct().map(String::toLowerCase).collect(Collectors.toList()); |
| | | } |
| | | |
| | |
| | | //1. è·åææç½ç»æ¥å£ |
| | | List<InetAddress> inetAddresses = getLocalAllInetAddress(); |
| | | |
| | | if(inetAddresses != null && inetAddresses.size() > 0){ |
| | | if (inetAddresses != null && inetAddresses.size() > 0) { |
| | | //2. è·åææç½ç»æ¥å£çMacå°å |
| | | result = inetAddresses.stream().map(this::getMacByInetAddress).distinct().collect(Collectors.toList()); |
| | | } |
| | |
| | | process.getOutputStream().close(); |
| | | Scanner scanner = new Scanner(process.getInputStream()); |
| | | |
| | | if(scanner.hasNext()){ |
| | | if (scanner.hasNext()) { |
| | | scanner.next(); |
| | | } |
| | | |
| | | if(scanner.hasNext()){ |
| | | if (scanner.hasNext()) { |
| | | serialNumber = scanner.next().trim(); |
| | | } |
| | | |
| | |
| | | process.getOutputStream().close(); |
| | | Scanner scanner = new Scanner(process.getInputStream()); |
| | | |
| | | if(scanner.hasNext()){ |
| | | if (scanner.hasNext()) { |
| | | scanner.next(); |
| | | } |
| | | |
| | | if(scanner.hasNext()){ |
| | | if (scanner.hasNext()) { |
| | | serialNumber = scanner.next().trim(); |
| | | } |
| | | |
| | |
| | | and start_point = #{startPoint} |
| | | </select> |
| | | |
| | | <select id="selectByBarcode" resultMap="BaseResultMap"> |
| | | select top 1 * from wcs_task_wrk |
| | | where 1=1 |
| | | and io_type=3 |
| | | and barcode = #{barcode} |
| | | </select> |
| | | |
| | | <select id="selectByWrkNo" resultMap="BaseResultMap"> |
| | | select top 1 * from wcs_task_wrk |
| | | where 1=1 |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.zy.asrs.mapper.TaskWrkReportLogMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.TaskWrkReportLog"> |
| | | <id column="id" property="id" /> |
| | | <result column="task_no" property="taskNo" /> |
| | | <result column="status" property="status" /> |
| | | <result column="wrk_no" property="wrkNo" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="io_type" property="ioType" /> |
| | | <result column="io_pri" property="ioPri" /> |
| | | <result column="start_point" property="startPoint" /> |
| | | <result column="target_point" property="targetPoint" /> |
| | | <result column="modi_user" property="modiUser" /> |
| | | <result column="modi_time" property="modiTime" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="barcode" property="barcode" /> |
| | | <result column="assign_time" property="assignTime" /> |
| | | <result column="execute_time" property="executeTime" /> |
| | | <result column="complete_time" property="completeTime" /> |
| | | <result column="cancel_time" property="cancelTime" /> |
| | | <result column="wrk_sts" property="wrkSts" /> |
| | | <result column="crn_no" property="crnNo" /> |
| | | <result column="command_step" property="commandStep" /> |
| | | <result column="transfer_mark" property="transferMark" /> |
| | | |
| | | </resultMap> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.zy.asrs.mapper.TaskWrkReportMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.TaskWrkReport"> |
| | | <result column="task_no" property="taskNo" /> |
| | | <result column="status" property="status" /> |
| | | <result column="wrk_no" property="wrkNo" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="io_type" property="ioType" /> |
| | | <result column="io_pri" property="ioPri" /> |
| | | <result column="start_point" property="startPoint" /> |
| | | <result column="target_point" property="targetPoint" /> |
| | | <result column="modi_user" property="modiUser" /> |
| | | <result column="modi_time" property="modiTime" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="barcode" property="barcode" /> |
| | | <result column="assign_time" property="assignTime" /> |
| | | <result column="execute_time" property="executeTime" /> |
| | | <result column="complete_time" property="completeTime" /> |
| | | <result column="cancel_time" property="cancelTime" /> |
| | | <result column="wrk_sts" property="wrkSts" /> |
| | | <result column="crn_no" property="crnNo" /> |
| | | <result column="command_step" property="commandStep" /> |
| | | <result column="transfer_mark" property="transferMark" /> |
| | | <result column="mark_start" property="markStart"/> |
| | | |
| | | </resultMap> |
| | | |
| | | |
| | | </mapper> |
| | |
| | | where wrk_no > 0) |
| | | )) |
| | | and io_type != 11 |
| | | and source_sta_no = #{sourceStaNo} |
| | | and sta_no = #{staNo} |
| | | order by io_time,wrk_no |
| | | </select> |
| | | </mapper> |