| | |
| | | package com.zy.asrs.common.wms.entity; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.common.sys.entity.User; |
| | | import com.zy.asrs.common.sys.service.UserService; |
| | | import com.zy.asrs.common.wms.service.MatService; |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import com.zy.asrs.framework.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "货主") |
| | | private String owner; |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.modiUser); |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public void setQueryDate(String queryDate) { |
| | | this.queryDate = queryDate; |
| | | if (queryDate.contains(" - ")) { |
| | | String[] dates = queryDate.split(" - "); |
| | | this.beginDate = dates[0]; |
| | | this.endDate = dates[1]; |
| | | public Mat getMat$(){ |
| | | MatService service = SpringUtils.getBean(MatService.class); |
| | | Mat mat = service.getOne(new LambdaQueryWrapper<Mat>().eq(Mat::getMatnr, matnr)); |
| | | if (!Cools.isEmpty(mat)){ |
| | | return mat; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setQueryDate(String queryDate) { |
| | | if(!Cools.isEmpty(queryDate)){ |
| | | this.queryDate = queryDate; |
| | | if (queryDate.contains(" - ")) { |
| | | String[] dates = queryDate.split(" - "); |
| | | this.beginDate = dates[0]; |
| | | this.endDate = dates[1]; |
| | | } |
| | | } |
| | | } |
| | | |