| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.fasterxml.jackson.annotation.JsonAnyGetter; |
| | | import com.zy.asrs.common.utils.Synchro; |
| | | import com.zy.asrs.wms.asrs.service.MatService; |
| | | import com.zy.asrs.wms.asrs.service.OrderDetlService; |
| | | import com.zy.asrs.wms.asrs.service.OrderService; |
| | | import com.zy.asrs.wms.asrs.service.TaskService; |
| | | import com.zy.asrs.wms.asrs.entity.param.FieldParam; |
| | | import com.zy.asrs.wms.asrs.service.*; |
| | | import com.zy.asrs.wms.system.entity.Host; |
| | | import com.zy.asrs.wms.system.entity.User; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 波次ID |
| | | */ |
| | | @ApiModelProperty(value= "波次ID") |
| | | private Long waveId; |
| | | |
| | | public TaskDetl() {} |
| | | |
| | | public TaskDetl(Long taskId,String taskNo,Double anfme,String batch,String barcode,Long orderId,String orderNo,Long detlId,Long matId,Long hostId,Integer status,Integer deleted,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { |
| | |
| | | Mat mat = service.getById(this.matId); |
| | | if (!Cools.isEmpty(mat)){ |
| | | return mat; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public Wave getWave$(){ |
| | | WaveService service = SpringUtils.getBean(WaveService.class); |
| | | Wave wave = service.getById(this.waveId); |
| | | if (!Cools.isEmpty(wave)){ |
| | | return wave; |
| | | } |
| | | return null; |
| | | } |
| | |
| | | dynamicFields.put(key, value); |
| | | } |
| | | |
| | | //获取索引字段 |
| | | public List<FieldParam> getUniqueField() { |
| | | MatFieldService service = SpringUtils.getBean(MatFieldService.class); |
| | | |
| | | List<FieldParam> list = new ArrayList<>(); |
| | | for (MatField matField : service.list(new LambdaQueryWrapper<MatField>().eq(MatField::getUnique, 1))) { |
| | | FieldParam param = new FieldParam(); |
| | | param.setName(matField.getName()); |
| | | param.setValue(dynamicFields.get(matField.getName())); |
| | | list.add(param); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | |
| | | } |