| | |
| | | |
| | | import org.jeecg.modules.dnc.entity.*; |
| | | import org.jeecg.modules.dnc.response.*; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipment; |
| | | import org.jeecg.modules.system.service.ISysDictService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | DocInfo en = super.getById(id); |
| | | if(en == null) |
| | | ExceptionCast.cast(DocumentCode.DOC_NOT_EXIST); |
| | | List<DeviceInfo> deviceList = docRelativeService.findDeviceByDocId(en.getDocId()); |
| | | List<MdcEquipment> deviceList = docRelativeService.findDeviceByDocId(en.getDocId()); |
| | | if(deviceList != null && !deviceList.isEmpty()) |
| | | ExceptionCast.cast(DocumentCode.DOC_DEVICE_EXIST); |
| | | String suffix = FileUtilS.getFileSuffix(file.getOriginalFilename()); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public QueryListResponseResult<DocInfo> findList(DocInfoQueryRequest docQuery) { |
| | | public List<DocInfo> findList(DocInfoQueryRequest docQuery) { |
| | | if(docQuery == null || !ValidateUtil.validateString(docQuery.getAttributionId()) |
| | | || !ValidateUtil.validateInteger(docQuery.getAttributionType()) || |
| | | !ValidateUtil.validateString(docQuery.getDocClassCode())) { |
| | |
| | | } |
| | | queryWrapper.ge(StrUtil.isNotEmpty(docQuery.getStartTime()),"date_format(u.create_time,'%Y-%m-%d %H:%i:%s')",docQuery.getStartTime()); |
| | | queryWrapper.le(StrUtil.isNotEmpty(docQuery.getEndTime()),"date_format(u.create_time,'%Y-%m-%d %H:%i:%s')",docQuery.getEndTime()); |
| | | List<DocInfo> docInfoIPage = super.getBaseMapper().findDocExtList(queryWrapper); |
| | | return new QueryListResponseResult<>(CommonCode.SUCCESS, docInfoIPage); |
| | | queryWrapper.orderByDesc("u.create_time"); |
| | | return super.getBaseMapper().findDocExtList(queryWrapper); |
| | | } |
| | | |
| | | @Override |