| | |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | 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.asrs.service.BasCrnpService; |
| | | import com.zy.asrs.entity.BasCrnp; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.entity.BasDevp; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.entity.BasDevp; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.entity.LocMast; |
| | | 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 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 io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @TableName("wcs_wms_wrk") |
| | |
| | | private String sourceLocNo; |
| | | |
| | | /** |
| | | * 库位状态 |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "库位状态") |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | | |
| | | /** |
| | | * 拣料(checkBox) |
| | | */ |
| | | @ApiModelProperty(value= "拣料(checkBox)") |
| | | private String picking; |
| | | @ApiModelProperty(value= "条码") |
| | | @TableField("barcode") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 修改人员 |
| | |
| | | private String memo; |
| | | |
| | | /** |
| | | * 条码 |
| | | * 结束时间 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @TableField("barcode") |
| | | private String barcode; |
| | | @ApiModelProperty(value= "结束时间") |
| | | @TableField("end_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date endTime; |
| | | |
| | | public WmsWrk() {} |
| | | |
| | | public WmsWrk(Integer wmsWrkNo, Integer wmsStatus, Integer wrkNo, Date createTime, Integer ioType, Double ioPri, String locNo, Integer staNo, Integer sourceStaNo, String sourceLocNo, String locSts, String picking, Long modiUser, Date modiTime, Long appeUser, Date appeTime, String memo, String barcode) { |
| | | public WmsWrk(Integer wmsWrkNo, Integer wmsStatus, Integer wrkNo, Date createTime, Integer ioType, Double ioPri, String locNo, Integer staNo, Integer sourceStaNo, String sourceLocNo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, String memo, String barcode, Date endTime) { |
| | | this.wmsWrkNo = wmsWrkNo; |
| | | this.wmsStatus = wmsStatus; |
| | | this.wrkNo = wrkNo; |
| | |
| | | this.staNo = staNo; |
| | | this.sourceStaNo = sourceStaNo; |
| | | this.sourceLocNo = sourceLocNo; |
| | | this.locSts = locSts; |
| | | this.picking = picking; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | | this.appeUser = appeUser; |
| | | this.appeTime = appeTime; |
| | | this.memo = memo; |
| | | this.barcode = barcode; |
| | | this.endTime = endTime; |
| | | } |
| | | |
| | | // WmsWrk wmsWrk = new WmsWrk( |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getEndTime$(){ |
| | | if (Cools.isEmpty(this.endTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime); |
| | | } |
| | | |
| | | /** |
| | | * 获取持续时间 |
| | | */ |
| | |
| | | } |
| | | |
| | | Date endDate = new Date(); |
| | | if (!Cools.isEmpty(this.endTime)) { |
| | | endDate = this.endTime; |
| | | } |
| | | |
| | | //用来获取两个时间相差的毫秒数 |
| | | long l = this.createTime.getTime() - endDate.getTime(); |