|
|
@@ -56,6 +56,10 @@ public class PositionServiceImpl implements IPositionService {
|
|
|
|
|
|
private final RegionMapper regionMapper;
|
|
|
|
|
|
+ private final SysImgMapper sysImgMapper;
|
|
|
+
|
|
|
+ private final ImgTypeMapper imgTypeMapper;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 查询【请填写功能名称】
|
|
|
@@ -199,7 +203,8 @@ public class PositionServiceImpl implements IPositionService {
|
|
|
positionCommunityService.insertByBo(pcBo);
|
|
|
}
|
|
|
|
|
|
- imgTypeService.batchDelete(List.of(bo.getPositionId()));
|
|
|
+// imgTypeService.batchDelete(List.of(bo.getPositionId()));
|
|
|
+ imgTypeMapper.batchDeleteByTypeC(List.of(bo.getPositionId()));
|
|
|
//图片更新
|
|
|
String[] ossId = new String[bo.getSysimg().size()];
|
|
|
for (int i=0; i<bo.getSysimg().size(); i++){
|
|
|
@@ -211,7 +216,8 @@ public class PositionServiceImpl implements IPositionService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- sysImgService.batchDelete(List.of(ossId));
|
|
|
+// sysImgService.batchDelete(List.of(ossId));
|
|
|
+ sysImgMapper.batchDeleteByType(List.of(ossId));
|
|
|
for (SysImgBo voq : bo.getSysimg()){
|
|
|
//关联图片
|
|
|
ImgTypeBo types = new ImgTypeBo();
|