| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.vincent.rsf.server.manager.enums.OrderType; |
| | | import com.vincent.rsf.server.manager.enums.OrderWorkType; |
| | | import com.vincent.rsf.server.system.constant.DictTypeCode; |
| | | import com.vincent.rsf.server.system.entity.DictData; |
| | | import com.vincent.rsf.server.system.service.DictDataService; |
| | |
| | | import com.vincent.rsf.framework.common.SpringUtils; |
| | | import com.vincent.rsf.server.system.service.UserService; |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | public WkOrder() {} |
| | | public WkOrder() { |
| | | } |
| | | |
| | | public WkOrder(String code, String poCode, Long poId, String type, String wkType, Double anfme, Double qty, String logisNo, Date arrTime, Short rleStatus, Integer status, Integer deleted, Integer tenantId, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | | this.code = code; |
| | |
| | | |
| | | |
| | | public String getType$(){ |
| | | if (Cools.isEmpty(this.type)){ |
| | | return ""; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE) |
| | | .eq(DictData::getValue, this.type)); |
| | | if (Objects.isNull(dictData)) { |
| | | return null; |
| | | } |
| | | return dictData.getLabel(); |
| | | return OrderType.getValType(this.type); |
| | | |
| | | // if (this.type.equals(OrderType.ORDER_TRANSFER.type)) { |
| | | // return OrderType.getValType(this.type); |
| | | // } else { |
| | | // if (Cools.isEmpty(this.type)) { |
| | | // return ""; |
| | | // } |
| | | // DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | // DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | // .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE) |
| | | // .eq(DictData::getValue, this.type)); |
| | | // if (Objects.isNull(dictData)) { |
| | | // return null; |
| | | // } |
| | | // return dictData.getLabel(); |
| | | // } |
| | | } |
| | | |
| | | public String getWkType$(){ |
| | | String typeCode = DictTypeCode.DICT_SYS_BUSINESS_TYPE; |
| | | if (type.equals(OrderType.ORDER_CHECK.type)) { |
| | | typeCode = DictTypeCode.SYS_CHECK_ORDER_TYPE; |
| | | } |
| | | if (Cools.isEmpty(this.wkType)){ |
| | | return ""; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, typeCode).eq(DictData::getValue, this.wkType)); |
| | | if (Objects.isNull(dictData)) { |
| | | return null; |
| | | } |
| | | return dictData.getLabel(); |
| | | // if (this.type.equals(OrderType.ORDER_TRANSFER.type)) { |
| | | return OrderWorkType.getWorkDesc(this.wkType); |
| | | // } else { |
| | | // String typeCode = DictTypeCode.DICT_SYS_BUSINESS_TYPE; |
| | | // if (type.equals(OrderType.ORDER_CHECK.type)) { |
| | | // typeCode = DictTypeCode.SYS_CHECK_ORDER_TYPE; |
| | | // } |
| | | // if (Cools.isEmpty(this.wkType)) { |
| | | // return ""; |
| | | // } |
| | | // DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | // DictData dictData = dictDataService |
| | | // .getOne(new LambdaQueryWrapper<DictData>() |
| | | // .eq(DictData::getDictTypeCode, typeCode) |
| | | // .eq(DictData::getValue, this.wkType)); |
| | | // if (Objects.isNull(dictData)) { |
| | | // return null; |
| | | // } |
| | | // return dictData.getLabel(); |
| | | // } |
| | | } |
| | | |
| | | public String getCheckType$(){ |
| | |
| | | return ""; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.SYS_CHECK_TYPE).eq(DictData::getValue, this.checkType)); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.SYS_CHECK_TYPE) |
| | | .eq(DictData::getValue, this.checkType)); |
| | | if (Objects.isNull(dictData)) { |
| | | return null; |
| | | } |
| | |
| | | } |
| | | |
| | | public String getRleStatus$(){ |
| | | if (null == this.rleStatus){ return null; } |
| | | if (null == this.rleStatus) { |
| | | return null; |
| | | } |
| | | switch (this.rleStatus){ |
| | | case 0: |
| | | return " 正常"; |
| | |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "正常"; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | public Boolean getStatusBool(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return true; |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | public String getNtyStatus$(){ |
| | | if (null == this.ntyStatus){ return "error"; } |
| | | if (null == this.ntyStatus) { |
| | | return "error"; |
| | | } |
| | | switch (this.ntyStatus){ |
| | | case 0: |
| | | return "未上报"; |