| | |
| | | } |
| | | |
| | | 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, DictTypeCode.DICT_SYS_BUSINESS_TYPE).eq(DictData::getValue, this.wkType)); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, typeCode).eq(DictData::getValue, this.wkType)); |
| | | if (Objects.isNull(dictData)) { |
| | | return null; |
| | | } |
| | |
| | | } |
| | | |
| | | public String getCheckType$(){ |
| | | if (Cools.isEmpty(this.wkType)){ |
| | | if (Cools.isEmpty(this.checkType)){ |
| | | return ""; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.SYS_CHECK_ORDER_TYPE).eq(DictData::getValue, this.wkType)); |
| | | 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; |
| | | } |