|
@@ -1,4 +1,4 @@
|
|
|
-package org.dromara.zhxy.service.impl;
|
|
|
|
|
|
|
+package org.dromara.zhxy.hq.service.impl;
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
@@ -16,12 +16,12 @@ import org.dromara.common.oss.core.OssClient;
|
|
|
import org.dromara.common.oss.entity.UploadResult;
|
|
import org.dromara.common.oss.entity.UploadResult;
|
|
|
import org.dromara.common.oss.factory.OssFactory;
|
|
import org.dromara.common.oss.factory.OssFactory;
|
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
|
-import org.dromara.zhxy.domain.PmRepairAttachment;
|
|
|
|
|
-import org.dromara.zhxy.domain.bo.PmRepairAttachmentBo;
|
|
|
|
|
-import org.dromara.zhxy.domain.vo.PmRepairAttachmentVo;
|
|
|
|
|
-import org.dromara.zhxy.mapper.PmRepairAttachmentMapper;
|
|
|
|
|
-import org.dromara.zhxy.mapper.PmRepairOrderMapper;
|
|
|
|
|
-import org.dromara.zhxy.service.IPmRepairAttachmentService;
|
|
|
|
|
|
|
+import org.dromara.zhxy.hq.domain.PmRepairAttachment;
|
|
|
|
|
+import org.dromara.zhxy.hq.domain.bo.PmRepairAttachmentBo;
|
|
|
|
|
+import org.dromara.zhxy.hq.domain.vo.PmRepairAttachmentVo;
|
|
|
|
|
+import org.dromara.zhxy.hq.mapper.PmRepairAttachmentMapper;
|
|
|
|
|
+import org.dromara.zhxy.hq.mapper.PmRepairOrderMapper;
|
|
|
|
|
+import org.dromara.zhxy.hq.service.IPmRepairAttachmentService;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
@@ -297,9 +297,9 @@ public class PmRepairAttachmentServiceImpl implements IPmRepairAttachmentService
|
|
|
long count = baseMapper.selectCount(lqw);
|
|
long count = baseMapper.selectCount(lqw);
|
|
|
|
|
|
|
|
// 更新工单的附件数量
|
|
// 更新工单的附件数量
|
|
|
- LambdaUpdateWrapper<org.dromara.zhxy.domain.PmRepairOrder> updateWrapper = Wrappers.lambdaUpdate();
|
|
|
|
|
- updateWrapper.eq(org.dromara.zhxy.domain.PmRepairOrder::getId, orderId)
|
|
|
|
|
- .set(org.dromara.zhxy.domain.PmRepairOrder::getAttachmentCount, (int) count);
|
|
|
|
|
|
|
+ LambdaUpdateWrapper<org.dromara.zhxy.hq.domain.PmRepairOrder> updateWrapper = Wrappers.lambdaUpdate();
|
|
|
|
|
+ updateWrapper.eq(org.dromara.zhxy.hq.domain.PmRepairOrder::getId, orderId)
|
|
|
|
|
+ .set(org.dromara.zhxy.hq.domain.PmRepairOrder::getAttachmentCount, (int) count);
|
|
|
repairOrderMapper.update(null, updateWrapper);
|
|
repairOrderMapper.update(null, updateWrapper);
|
|
|
}
|
|
}
|
|
|
|
|
|