|
@@ -228,7 +228,7 @@ public class SocialServiceImpl implements SocialServiceI {
|
228
|
228
|
|
229
|
229
|
@Transactional
|
230
|
230
|
@Override
|
231
|
|
- public ResponseBean addAllTransaction(Integer userId, String paramets, MultipartFile uploadFile) throws IOException {
|
|
231
|
+ public ResponseBean addAllTransaction(Integer userId, String paramets) throws IOException {
|
232
|
232
|
|
233
|
233
|
ResponseBean response = new ResponseBean();
|
234
|
234
|
|
|
@@ -236,6 +236,7 @@ public class SocialServiceImpl implements SocialServiceI {
|
236
|
236
|
String transactionTitle = (String) jsonObject.get("title");
|
237
|
237
|
String transactionContent = (String) jsonObject.get("content");
|
238
|
238
|
String type= (String) jsonObject.get("type");
|
|
239
|
+ String imageUrl = (String) jsonObject.get("imageUrl");
|
239
|
240
|
|
240
|
241
|
TaUser user=taUserMapper.selectByPrimaryKey(userId);
|
241
|
242
|
TpTransaction tpTransaction = new TpTransaction();
|
|
@@ -270,7 +271,7 @@ public class SocialServiceImpl implements SocialServiceI {
|
270
|
271
|
|
271
|
272
|
if (Constant.EFFECTIVE.equals(taUser.getStatus()) && (Constant.RELATION.equals(sysRole.getRoleName()) || Constant.TENANT.equals(sysRole.getRoleName()) || Constant.OWNER.equals(sysRole.getRoleName()))){
|
272
|
273
|
tpTransactionMapper.insertSelective(tpTransaction);
|
273
|
|
- insertTdImage(tpTransaction, uploadFile, type, userId);
|
|
274
|
+ insertTdImage(tpTransaction, imageUrl, type, userId);
|
274
|
275
|
|
275
|
276
|
TpTransaction tpTransaction1=tpTransactionMapper.getById(tpTransaction.getId());
|
276
|
277
|
response.addSuccess(tpTransaction1);
|
|
@@ -280,10 +281,9 @@ public class SocialServiceImpl implements SocialServiceI {
|
280
|
281
|
return response;
|
281
|
282
|
}
|
282
|
283
|
|
283
|
|
- private void insertTdImage(TpTransaction tpTransaction, MultipartFile uploadFile, String type, Integer userId) throws IOException {
|
|
284
|
+ private void insertTdImage(TpTransaction tpTransaction, String imageUrl, String type, Integer userId) throws IOException {
|
284
|
285
|
TdImages tdImages = new TdImages();
|
285
|
286
|
Integer uuId = tpTransaction.getId();
|
286
|
|
- String imageUrl = imageServiceI.getImageUrl(uploadFile);
|
287
|
287
|
tdImages.setImageUrl(imageUrl);
|
288
|
288
|
tdImages.setType(type);
|
289
|
289
|
tdImages.setUuid(uuId);
|