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; |
| | | } |
| | |
| | | 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){ |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public void setDesc(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public void setDesc(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | |
| | | } |
| | |
| | | DISTRIBUTE(2,"æ´¾å"), |
| | | COMPLETE(3,"å½ä»¤å®æ"), |
| | | CANCEL(4,"åæ¶"), |
| | | OVER(5,"å®ç»") |
| | | ; |
| | | OVER(5, "å®ç»"); |
| | | |
| | | public Integer id; |
| | | public String desc; |
| | |
| | | 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; |
| | | } |
| | |
| | | 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") |
| | |
| | | @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) { |
| | | this.url = url; |
| | |
| | | // ); |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 0: |
| | | return "æ£å¸¸"; |
| | |
| | | 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") |
| | |
| | | @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) { |
| | | this.uuid = uuid; |
| | |
| | | // ); |
| | | |
| | | public String getResult$(){ |
| | | if (null == this.result){ return null; } |
| | | if (null == this.result) { |
| | | return null; |
| | | } |
| | | switch (this.result){ |
| | | case 1: |
| | | return "æå"; |
| | |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | |
| | | @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 void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | @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) { |
| | | this.wrkNo = wrkNo; |
| | |
| | | return 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 void setResponse(Integer response) { |
| | | this.response = response; |
| | | } |
| | | |
| | | public String getResponse$(){ |
| | | if (null == this.response){ return null; } |
| | | if (null == this.response) { |
| | | return null; |
| | | } |
| | | switch (this.response){ |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | |
| | | } |
| | | } |
| | | |
| | | public void setResponse(Integer response) { |
| | | this.response = response; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public Long getUpdateBy() { |
| | | return updateBy; |
| | | } |
| | | |
| | | public void setUpdateBy(Long updateBy) { |
| | | this.updateBy = updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setUpdateBy(Long updateBy) { |
| | | this.updateBy = updateBy; |
| | | } |
| | | |
| | | |
| | |
| | | @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 void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | @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) { |
| | | this.inEnable = inEnable; |
| | |
| | | return "æªç¥"; |
| | | } |
| | | } |
| | | |
| | | public Integer getCrnNo() { |
| | | return crnNo; |
| | | } |
| | |
| | | return frmLocno; |
| | | } |
| | | |
| | | public void setFrmLocno(String frmLocno) { |
| | | this.frmLocno = frmLocno; |
| | | } |
| | | |
| | | public String getFrmLocno$(){ |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.frmLocno); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setFrmLocno(String frmLocno) { |
| | | this.frmLocno = frmLocno; |
| | | } |
| | | |
| | | public Integer getFrmSta() { |
| | | return frmSta; |
| | | } |
| | | |
| | | public void setFrmSta(Integer frmSta) { |
| | | this.frmSta = frmSta; |
| | | } |
| | | |
| | | public String getFrmSta$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setFrmSta(Integer frmSta) { |
| | | this.frmSta = frmSta; |
| | | } |
| | | |
| | | public Integer getToSta() { |
| | | return toSta; |
| | | } |
| | | |
| | | public void setToSta(Integer toSta) { |
| | | this.toSta = toSta; |
| | | } |
| | | |
| | | public String getToSta$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setToSta(Integer toSta) { |
| | | this.toSta = toSta; |
| | | } |
| | | |
| | | public String getToLocno() { |
| | | return toLocno; |
| | | } |
| | | |
| | | public void setToLocno(String toLocno) { |
| | | this.toLocno = toLocno; |
| | | } |
| | | |
| | | public String getToLocno$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setToLocno(String toLocno) { |
| | | this.toLocno = toLocno; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | 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 void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getHpMk() { |
| | |
| | | } |
| | | |
| | | public String getLocType1$() { |
| | | if (null == this.locType1){ return null; } |
| | | if (null == this.locType1) { |
| | | return null; |
| | | } |
| | | switch (this.locType1){ |
| | | case 0: |
| | | return "æªç¥"; |
| | |
| | | } |
| | | |
| | | public String getLocType2$() { |
| | | if (null == this.locType2){ return null; } |
| | | if (null == this.locType2) { |
| | | return null; |
| | | } |
| | | switch (this.locType2){ |
| | | case 0: |
| | | return "æªç¥"; |
| | |
| | | } |
| | | |
| | | public String getLocType3$() { |
| | | if (null == this.locType3){ return null; } |
| | | if (null == this.locType3) { |
| | | return null; |
| | | } |
| | | switch (this.locType3){ |
| | | case 0: |
| | | return "æªç¥"; |
| | |
| | | @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) { |
| | | this.uuid = uuid; |
| | |
| | | return 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 void setEndTime(Date endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | |
| | | public String getEndTime$(){ |
| | |
| | | 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 void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "æªå¤ç"; |
| | |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | |
| | | 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 void setCreateBy(Long createBy) { |
| | | this.createBy = createBy; |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setCreateBy(Long createBy) { |
| | | this.createBy = createBy; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public Long getUpdateBy() { |
| | | return updateBy; |
| | | } |
| | | |
| | | public void setUpdateBy(Long updateBy) { |
| | | this.updateBy = updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setUpdateBy(Long updateBy) { |
| | | this.updateBy = updateBy; |
| | | } |
| | | |
| | | public String getMemo() { |
| | |
| | | @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 void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | @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 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 void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | 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") |
| | |
| | | @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) { |
| | | this.wrkNo = wrkNo; |
| | |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "æªå¤ç"; |
| | |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasWrkIotype() {} |
| | | public BasWrkIotype() { |
| | | } |
| | | |
| | | public BasWrkIotype(String ioPri,String ioDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | this.ioPri = ioPri; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasWrkStatus() {} |
| | | public BasWrkStatus() { |
| | | } |
| | | |
| | | public BasWrkStatus(String wrkDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | this.wrkDesc = wrkDesc; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | |
| | |
| | | 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; |
| | | } |
| | |
| | | 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") |
| | |
| | | @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; |
| | |
| | | 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") |
| | |
| | | @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) { |
| | | this.wrkNo = wrkNo; |
| | |
| | | // ); |
| | | |
| | | public String getCommandStatus$(){ |
| | | if (null == this.commandStatus){ return null; } |
| | | if (null == this.commandStatus) { |
| | | return null; |
| | | } |
| | | switch (this.commandStatus){ |
| | | case 1: |
| | | return "å建"; |
| | |
| | | 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") |
| | |
| | | @ApiModelProperty(value= "夿³¨") |
| | | private String memo; |
| | | |
| | | public DataResource() {} |
| | | public DataResource() { |
| | | } |
| | | |
| | | public DataResource(String data,String name,Integer resourceId,Date createTime,String memo) { |
| | | this.data = data; |
| | |
| | | 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") |
| | |
| | | @ApiModelProperty(value= "å¼å¸¸ä¿¡æ¯") |
| | | private String msg; |
| | | |
| | | public DeviceError() {} |
| | | public DeviceError() { |
| | | } |
| | | |
| | | public DeviceError(String device,Integer deviceId,Date createTime,String msg) { |
| | | this.device = device; |
| | |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch){ |
| | | case 1: |
| | | return "æ¯"; |
| | |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source){ |
| | | case 1: |
| | | return "å¶é "; |
| | |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect){ |
| | | case 1: |
| | | return "æ¯"; |
| | |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger){ |
| | | case 1: |
| | | return "æ¯"; |
| | |
| | | return "N"; |
| | | } |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | } |
| | | |
| | | public String getLocType1$() { |
| | | if (null == this.locType1){ return null; } |
| | | if (null == this.locType1) { |
| | | return null; |
| | | } |
| | | switch (this.locType1){ |
| | | case 0: |
| | | return "æªç¥"; |
| | |
| | | } |
| | | |
| | | public String getLocType2$() { |
| | | if (null == this.locType2){ return null; } |
| | | if (null == this.locType2) { |
| | | return null; |
| | | } |
| | | switch (this.locType2){ |
| | | case 0: |
| | | return "æªç¥"; |
| | |
| | | } |
| | | |
| | | public String getLocType3$() { |
| | | if (null == this.locType3){ return null; } |
| | | if (null == this.locType3) { |
| | | return null; |
| | | } |
| | | switch (this.locType3){ |
| | | case 0: |
| | | return "æªç¥"; |
| | |
| | | @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) { |
| | | this.barcode = barcode; |
| | |
| | | return 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | 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 void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Short getStatus() { |
| | |
| | | @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) { |
| | | this.wrkMk = wrkMk; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public Integer getLimintLoc() { |
| | |
| | | @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) { |
| | | this.typeDesc = typeDesc; |
| | |
| | | return stnNo; |
| | | } |
| | | |
| | | public void setStnNo(Integer stnNo) { |
| | | this.stnNo = stnNo; |
| | | } |
| | | |
| | | public String getStnNo$(){ |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.stnNo); |
| | |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setStnNo(Integer stnNo) { |
| | | this.stnNo = stnNo; |
| | | } |
| | | |
| | | public String getStnDesc() { |
| | |
| | | return crnNo; |
| | | } |
| | | |
| | | public void setCrnNo(Integer crnNo) { |
| | | this.crnNo = crnNo; |
| | | } |
| | | |
| | | public String getCrnNo$(){ |
| | | BasCrnpService service = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = service.selectById(this.crnNo); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setCrnNo(Integer crnNo) { |
| | | this.crnNo = crnNo; |
| | | } |
| | | |
| | | public Integer getCrnStn() { |
| | | return crnStn; |
| | | } |
| | | |
| | | public void setCrnStn(Integer crnStn) { |
| | | this.crnStn = crnStn; |
| | | } |
| | | |
| | | public String getCrnStn$(){ |
| | |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setCrnStn(Integer crnStn) { |
| | | this.crnStn = crnStn; |
| | | } |
| | | |
| | | public String getMemo() { |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getTypeNo$() { |
| | |
| | | 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") |
| | |
| | | @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) { |
| | | this.taskNo = taskNo; |
| | |
| | | this.crnNo = crnNo; |
| | | this.commandStep = commandStep; |
| | | } |
| | | |
| | | public TaskWrkLog(TaskWrk taskWrk) { |
| | | this.taskNo = taskWrk.getTaskNo(); |
| | | this.status = taskWrk.getStatus(); |
| | |
| | | // ); |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "æ¥æ¶"; |
| 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; |
| | |
| | | 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 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 getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch){ |
| | | case 1: |
| | | return "æ¯"; |
| | |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source){ |
| | | case 1: |
| | | return "å¶é "; |
| | |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect){ |
| | | case 1: |
| | | return "æ¯"; |
| | |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger){ |
| | | case 1: |
| | | return "æ¯"; |
| | |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger){ |
| | | case 1: |
| | | return "æ¯"; |
| | |
| | | @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) { |
| | | this.wrkNo = wrkNo; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | 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 void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | 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; |
| | |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date endTime; |
| | | |
| | | public WrkMastLog() {} |
| | | public WrkMastLog() { |
| | | } |
| | | |
| | | public String getWrkNo$(){ |
| | | WrkMastService service = SpringUtils.getBean(WrkMastService.class); |
| | |
| | | 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){ |
| | | this.taskNo = param.getTaskNo(); |
| | |
| | | this.targetPoint = param.getTargetLocationCode(); |
| | | this.emptyContainer = param.getEmptyContainer(); |
| | | this.crn = param.getTaskTunnel(); |
| | | }; |
| | | } |
| | | |
| | | ; |
| | | |
| | | public TaskCreateParam(CarryParam param, Integer crn){ |
| | | this.taskNo = param.getTaskNo(); |
| | |
| | | this.targetPoint = param.getTerminalNo(); |
| | | this.emptyContainer = "N"; |
| | | this.crn = crn; |
| | | }; |
| | | } |
| | | |
| | | ; |
| | | |
| | | |
| | | public static Integer convertParamIoType(String paramIoType){ |
| | |
| | | * */ |
| | | |
| | | |
| | | |
| | | //ä»»å¡åæ¶æ¥å£ |
| | | /*æä½ç±»å: |
| | | * 1.æ£å¸¸åæ¶--åªè½åæ¶æªæ§è¡çä»»å¡ï¼è´§ç©å¤å¨æªæ§è¡ä»»å¡ç¶æ |
| | |
| | | private String requestType; //请æ±ç±»å: 1=åè´§ï¼2=æ¾è´§ |
| | | private String wharfCode; //ç 头ç¼å· |
| | | |
| | | public TaskStatusFeedbackParam(){} |
| | | public TaskStatusFeedbackParam() { |
| | | } |
| | | |
| | | public TaskStatusFeedbackParam(TaskWrk taskWrk){ |
| | | this.taskNo = taskWrk.getTaskNo(); |
| | |
| | | return "æªç¥"; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| 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; |
| | | |
| | |
| | | |
| | | //å页æ¥è¯¢åºåæ»çæ¶é´ |
| | | 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); |
| | | |
| | |
| | | |
| | | //å页æ¥è¯¢æ¥åºåºè®°å½ |
| | | 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; |
| | |
| | | List<WrkMast> selectPakOutStep11(@Param("crnNo")Integer crnNO, @Param("sourceStaNo")Integer sourceStaNo); |
| | | |
| | | WrkMast selectWorkingPakin(@Param("sourceStaNo")Integer sourceStaNo); |
| | | WrkMast selectWorkingPakout(@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; |
| | |
| | | void getAgvTaskOver(TaskOverParam param); |
| | | |
| | | R getAgvPickAndPlaceV1(TaskOverParam param); |
| | | |
| | | R getAgvPickAndPlaceV2(TaskOverParam param); |
| | | } |
| 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 { |
| | |
| | | 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") |
| | |
| | | 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; |
| | |
| | | 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 { |
| 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 { |
| 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; |
| | | } |
| | | } |
| | |
| | | |
| | | 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; |
| | |
| | | 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; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //转æ¢wmsä¼ è¾çåºä½å· |
| | | public static String getWcsLocNo(String locNo){ |
| | | String[] split = locNo.split("-"); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | return wcsLocNo; |
| | | } |
| | | |
| | | public static int[] getWcsRow(String row){ |
| | | int[] array = null; |
| | | switch (row){ |
| | |
| | | int shallowRow = getShallowRow(row); |
| | | return zerofill(String.valueOf(shallowRow), 2) + deepLoc.substring(2); |
| | | } |
| | | |
| | | 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(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); |
| | | } |
| | |
| | | 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; |
| | |
| | | OperateResult connect = siemens_net.ConnectServer(); |
| | | if(connect.IsSuccess){ |
| | | System.out.println("connect success!"); |
| | | } |
| | | else { |
| | | } else { |
| | | System.out.println("failed:"+connect.Message); |
| | | } |
| | | siemens_net.ConnectClose(); |
| | |
| | | |
| | | MelsecMcAsciiNet melsec = new MelsecMcAsciiNet("192.168.1.192",6001); |
| | | OperateResultExOne<short[]> read = melsec.ReadInt16("D100",(short) 2); |
| | | if(read.IsSuccess) |
| | | { |
| | | if (read.IsSuccess) { |
| | | System.out.println(Arrays.toString(read.Content)); |
| | | } |
| | | else { |
| | | } else { |
| | | System.out.println(read.ToMessageShowString()); |
| | | } |
| | | } |
| | |
| | | OperateResult connect = siemens_net.ConnectServer(); |
| | | if(connect.IsSuccess){ |
| | | System.out.println("connect success!"); |
| | | } |
| | | else { |
| | | } else { |
| | | System.out.println("failed:"+connect.Message); |
| | | } |
| | | siemens_net.ConnectClose(); |
| | |
| | | |
| | | 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 { |
| | | // åçäºå¼å¸¸ |
| | | } |
| | | } |
| | |
| | | OperateResultExOne<Double> read = modbusTcpNet.ReadDouble("s=2;x=4;200"); |
| | | if(read.IsSuccess){ |
| | | System.out.println(read.Content); |
| | | } |
| | | else { |
| | | } else { |
| | | System.out.println(read.Message); |
| | | } |
| | | |
| | |
| | | @Component |
| | | public class AdminInterceptor extends HandlerInterceptorAdapter { |
| | | |
| | | private final RateLimiter rateLimiter = RateLimiter.create(10);// é»è®¤æ¯ç§æå¤å¤ç 10 ä¸ªè¯·æ± |
| | | @Value("${super.pwd}") |
| | | private String superPwd; |
| | | @Autowired |
| | |
| | | private RolePermissionService rolePermissionService; |
| | | @Autowired |
| | | private ApiConfigService apiConfigService; |
| | | |
| | | private final RateLimiter rateLimiter = RateLimiter.create(10);// é»è®¤æ¯ç§æå¤å¤ç 10 ä¸ªè¯·æ± |
| | | |
| | | @Override |
| | | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { |
| | |
| | | public class Parameter { |
| | | |
| | | private volatile static Parameter instance = null; |
| | | // éªè¯ç å¼å
³ |
| | | private String codeSwitch; |
| | | private String ledDefaultMsg; |
| | | // åºä½åå§åå£ä»¤ |
| | | private String locMastInitPwd; |
| | | |
| | | private Parameter(){ |
| | | } |
| | |
| | | instance = Cools.conver(data, Parameter.class); |
| | | return instance; |
| | | } |
| | | |
| | | // éªè¯ç å¼å
³ |
| | | private String codeSwitch; |
| | | |
| | | private String ledDefaultMsg; |
| | | |
| | | // åºä½åå§åå£ä»¤ |
| | | private String locMastInitPwd; |
| | | |
| | | |
| | | } |
| | |
| | | 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); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * åå§åæ¹æ³ãç§æã |
| | | */ |
| | |
| | | } |
| | | } |
| | | 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); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ElementType.FIELD,ElementType.TYPE,ElementType.METHOD}) |
| | | public @interface little {} |
| | | public @interface little { |
| | | } |
| | |
| | | @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(å·¥ä½å·) |
| | |
| | | } |
| | | return workNo; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ£ç´¢åºä½å· |
| | |
| | | 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(); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | // response.getOutputStream().flush(); |
| | | // response.getOutputStream().close(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | 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; |
| | | |
| | |
| | | private transient byte[] encodeBytes = null; |
| | | private transient byte[] unusedBytes = 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 static String toHex(byte[] bytes) { |
| | | StringBuilder buf = new StringBuilder(bytes.length * 2); |
| | | 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]; |
| | | byte[] bytes = new byte[str.length() / 2]; |
| | | 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 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) { |
| | | int sum = 0; |
| | | 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转æ¢ä¸º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 Class getClassType(String name){ |
| | | return null; |
| | | } |
| | |
| | | } |
| | | return mapping; |
| | | } |
| | | |
| | | public Map<String,String> toEncodeHexMapping() throws Exception{ |
| | | if(this.encodeBytes==null)this.encode(this); |
| | | if(this.encodeByteMapping==null)this.encodeByteMapping=new HashMap<>(); |
| | |
| | | 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(); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | public byte[] convert(int size, long value) throws Exception{ |
| | | ByteArrayOutputStream baOs = new ByteArrayOutputStream(); |
| | | DataOutputStream dos = new DataOutputStream(baOs); |
| | |
| | | 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); |
| | | } |
| | | |
| | | /** |
| | |
| | | return (T) instance; |
| | | } |
| | | |
| | | // åèæ°ç» ===>> 转为åå
è¿å¶å符串 |
| | | public static String toHex(byte[] bytes) { |
| | | StringBuilder buf = new StringBuilder(bytes.length * 2); |
| | | 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]; |
| | | byte[] bytes = new byte[str.length() / 2]; |
| | | 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(1) byte subpkg;//æ¶æ¯ä½å±æ§>æ¯å¦åå
,0表示ä¸åå
|
| | | public @bit(3) byte encrypt;//æ¶æ¯ä½å±æ§>å 坿¹å¼,0表示ä¸å å¯ |
| | | public @bit(10) short length;//æ¶æ¯ä½é¿åº¦ |
| | | public @size(6) @flag("BCD") String number;//ææºå·ç |
| | | 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; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ±æ ¡éªåçç®æ³ |
| | | * @param b éè¦æ±æ ¡éªåçåèæ°ç» |
| | | * @return æ ¡éªå |
| | | */ |
| | | public static byte sumCheck(byte[] b,int start, int end){ |
| | | int sum = 0; |
| | | 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转æ¢ä¸ºstring |
| | | public static String AscToStr(byte[] bytes){ |
| | | StringBuffer sbu = new StringBuffer(); |
| | | for (byte aByte : bytes) { |
| | | sbu.append(Character.toString((char) aByte)); |
| | | } |
| | | return sbu.toString(); |
| | | } |
| | | |
| | | } |
| | |
| | | @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(); |
| | |
| | | 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(){ |
| | | List<EnInitData> list = new ArrayList<>(); |
| | | for (int i = 0; i<1000; i++) { |
| | |
| | | } |
| | | 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()); |
| | | } |
| | | } |
| | |
| | | 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("æ ¸å¿æ§å¶å±å·²å¯å¨..............................................."); |
| | | } |
| | | |
| | |
| | | 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 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; |
| | |
| | | |
| | | 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; |
| | | } |
| | |
| | | |
| | | private List<Sta> pickSta = new ArrayList<>(); |
| | | |
| | | |
| | | @Data |
| | | public static class Sta { |
| | | |
| | |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æä»¤æ°æ®å
|
| | | */ |
| | |
| | | //æä»¤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(); |
| | | Calendar cal = Calendar.getInstance(); |
| | |
| | | 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.crnError4.yLooseBrakeTimeout = error4[2]; |
| | | this.crnError4.zLooseBrakeTimeout = error4[3]; |
| | | } |
| | | |
| | | /** |
| | | * æè¿ä¸æ¬¡å
¥åºåºç±»å |
| | | * I:å
¥åº |
| | | * O:åºåº |
| | | */ |
| | | private String lastIo = "I"; |
| | | |
| | | |
| | | public BasCrnp toSqlModel(BasCrnp basCrnp){ |
| | | basCrnp.setCrnErr(alarm.longValue()); |
| | |
| | | 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; //å
许æ¾è´§ |
| | |
| | | } |
| | | return alarm; |
| | | } |
| | | |
| | | |
| | | |
| | | public BasDevp toSqlModel(){ |
| | |
| | | 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 |
| | |
| | | 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); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | public void write(byte[] msg, int len) throws IOException { |
| | | if (null != dataInputStream) |
| | | { |
| | | if (null != dataInputStream) { |
| | | dataOutputStream.write(msg, 0, len); |
| | | dataOutputStream.flush(); |
| | | } |
| | |
| | | @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) { |
| | |
| | | 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; |
| | | } |
| | | |
| | | } |
| | |
| | | int id; |
| | | int start; |
| | | int end; |
| | | |
| | | StatsType(int id, int start, int end) { |
| | | this.id = id; |
| | | this.start = start; |
| | |
| | | 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 Short status; |
| | | |
| | | public Api() {} |
| | | public Api() { |
| | | } |
| | | |
| | | public Api(String namespace,Short oauth,String request,String response,Date createTime,Date updateTime,Short status) { |
| | | this.namespace = namespace; // å½å空é´[é空] |
| | |
| | | return oauth; |
| | | } |
| | | |
| | | public void setOauth(Short oauth) { |
| | | this.oauth = oauth; |
| | | } |
| | | |
| | | public String getOauth$(){ |
| | | if (null == this.oauth){ return null; } |
| | | if (null == this.oauth) { |
| | | return null; |
| | | } |
| | | switch (this.oauth){ |
| | | case 0: |
| | | return "æ éææ"; |
| | |
| | | default: |
| | | return String.valueOf(this.oauth); |
| | | } |
| | | } |
| | | |
| | | public void setOauth(Short oauth) { |
| | | this.oauth = oauth; |
| | | } |
| | | |
| | | public String getRequest() { |
| | |
| | | return 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 void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | |
| | | 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 void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "ææ"; |
| | |
| | | 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) { |
| | | this.name = name; |
| | |
| | | return type; |
| | | } |
| | | |
| | | public void setType(Short type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | if (null == this.type) { |
| | | return null; |
| | | } |
| | | switch (this.type){ |
| | | case 1: |
| | | return "String"; |
| | |
| | | } |
| | | } |
| | | |
| | | public void setType(Short type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public Short getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | |
| | | 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) { |
| | | this.name = name; |
| | |
| | | return 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 void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | |
| | | 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 void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Long userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getUserId$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.userId); |
| | |
| | | return user.getUsername(); |
| | | } |
| | | return null; |
| | | } |
| | | public void setUserId(Long userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getIp() { |
| | |
| | | return 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) { |
| | | this.name = name; |
| | |
| | | return resourceId; |
| | | } |
| | | |
| | | public void setResourceId(Long resourceId) { |
| | | this.resourceId = resourceId; |
| | | } |
| | | |
| | | public String getResourceName(){ |
| | | ResourceService service = SpringUtils.getBean(ResourceService.class); |
| | | Resource resource = service.selectById(this.resourceId); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setResourceId(Long resourceId) { |
| | | this.resourceId = resourceId; |
| | | } |
| | | |
| | | public Short getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | |
| | | 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) { |
| | | this.code = code; |
| | |
| | | return resourceId; |
| | | } |
| | | |
| | | public void setResourceId(Long resourceId) { |
| | | this.resourceId = resourceId; |
| | | } |
| | | |
| | | public String getResourceName(){ |
| | | ResourceService service = SpringUtils.getBean(ResourceService.class); |
| | | Resource resource = service.selectById(this.resourceId); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setResourceId(Long resourceId) { |
| | | this.resourceId = resourceId; |
| | | } |
| | | |
| | | public Short getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(Short level) { |
| | | this.level = level; |
| | | } |
| | | |
| | | public String getLevel$(){ |
| | | if (null == this.level){ return null; } |
| | | if (null == this.level) { |
| | | return null; |
| | | } |
| | | switch (this.level){ |
| | | case 1: |
| | | return "ä¸çº§èå"; |
| | |
| | | default: |
| | | return String.valueOf(this.level); |
| | | } |
| | | } |
| | | |
| | | public void setLevel(Short level) { |
| | | this.level = level; |
| | | } |
| | | |
| | | public Integer getSort() { |
| | |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "æ£å¸¸"; |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | |
| | | @ApiModelProperty(value= "è§è²ç级 1: ä¸çº§ 2: äºçº§ 3: ä¸çº§ 4: å级 5: äºçº§ ") |
| | | private Short level; |
| | | |
| | | public Role() {} |
| | | public Role() { |
| | | } |
| | | |
| | | public Role(String code,String name,Long leader,Short level) { |
| | | this.code = code; |
| | |
| | | return leader; |
| | | } |
| | | |
| | | public void setLeader(Long leader) { |
| | | this.leader = leader; |
| | | } |
| | | |
| | | public String getLeader$(){ |
| | | RoleService service = SpringUtils.getBean(RoleService.class); |
| | | Role role = service.selectById(this.leader); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setLeader(Long leader) { |
| | | this.leader = leader; |
| | | } |
| | | |
| | | public Short getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(Short level) { |
| | | this.level = level; |
| | | } |
| | | |
| | | public String getLevel$(){ |
| | | if (null == this.level){ return null; } |
| | | if (null == this.level) { |
| | | return null; |
| | | } |
| | | switch (this.level){ |
| | | case 1: |
| | | return "ä¸çº§"; |
| | |
| | | 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) { |
| | | this.roleId = roleId; |
| | |
| | | return roleId; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public String getRoleName(){ |
| | | RoleService service = SpringUtils.getBean(RoleService.class); |
| | | Role role = service.selectById(this.roleId); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public Long getPermissionId() { |
| | | return permissionId; |
| | | } |
| | | |
| | | public void setPermissionId(Long permissionId) { |
| | | this.permissionId = permissionId; |
| | | } |
| | | |
| | | public String getPermissionName(){ |
| | |
| | | return permission.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setPermissionId(Long permissionId) { |
| | | this.permissionId = permissionId; |
| | | } |
| | | |
| | | |
| | |
| | | return username; |
| | | } |
| | | |
| | | public void setUsername(String username) { |
| | | this.username = username; |
| | | } |
| | | |
| | | public Long getHostId() { |
| | | return hostId; |
| | | } |
| | | |
| | | public void setHostId(Long hostId) { |
| | | this.hostId = hostId; |
| | | } |
| | | |
| | | public String getHostName() { |
| | |
| | | return host.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setHostId(Long hostId) { |
| | | this.hostId = hostId; |
| | | } |
| | | |
| | | public void setUsername(String username) { |
| | | this.username = username; |
| | | } |
| | | |
| | | public String getMobile() { |
| | |
| | | return roleId; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public String getRoleName(){ |
| | | RoleService service = SpringUtils.getBean(RoleService.class); |
| | | Role role = service.selectById(this.roleId); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | |
| | | 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 void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "å¯ç¨"; |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Long userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getUserUsername(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.userId); |
| | |
| | | return user.getUsername(); |
| | | } |
| | | return null; |
| | | } |
| | | public void setUserId(Long userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getToken() { |
| | |
| | | return 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; |
| | | } |
| | | |
| | | |
| | |
| | | * èªå®ä¹LicenseManagerï¼ç¨äºå¢å é¢å¤çæå¡å¨ç¡¬ä»¶ä¿¡æ¯æ ¡éª |
| | | */ |
| | | public class CustomLicenseManager extends LicenseManager{ |
| | | private static Logger logger = LogManager.getLogger(CustomLicenseManager.class); |
| | | |
| | | //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() { |
| | | |
| | |
| | | * 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) { |
| | |
| | | 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> |