|
@@ -159,6 +159,7 @@ private TpAnnouncementMapper tpAnnouncementMapper;
|
159
|
159
|
//为草稿时不跟新时间
|
160
|
160
|
TpAnnouncement AnnouncementStatus=tpAnnouncementMapper.selectById(tpAnnouncement.getId());
|
161
|
161
|
tpAnnouncement.setUpdateDate("2".equals(AnnouncementStatus.getStatus())?null:new Date());
|
|
162
|
+ tpAnnouncement.setUpdateUser("2".equals(AnnouncementStatus.getStatus())?null:userId);
|
162
|
163
|
tpAnnouncementMapper.updateTpAnnouncement(tpAnnouncement);
|
163
|
164
|
|
164
|
165
|
JSONObject parseObject = JSONObject.parseObject(paramets);
|
|
@@ -167,7 +168,6 @@ private TpAnnouncementMapper tpAnnouncementMapper;
|
167
|
168
|
Integer tdImagesUuid = parseObject.getInteger("id");
|
168
|
169
|
String[] contentImgArray = contentImg.toArray(new String[]{});
|
169
|
170
|
//修改图片时删除原来图片
|
170
|
|
- if (contentImg.size()!=0) {
|
171
|
171
|
QueryWrapper<TdImages> queryWrapper = new QueryWrapper<>();
|
172
|
172
|
queryWrapper.lambda().eq(TdImages::getUuid, tdImagesUuid);
|
173
|
173
|
queryWrapper.lambda().eq(TdImages::getType, "announcement");
|
|
@@ -183,7 +183,6 @@ private TpAnnouncementMapper tpAnnouncementMapper;
|
183
|
183
|
imagesMapper.insert(tdImages);
|
184
|
184
|
}
|
185
|
185
|
}
|
186
|
|
- }
|
187
|
186
|
return response;
|
188
|
187
|
}
|
189
|
188
|
|