|
@@ -1,6 +1,7 @@
|
|
|
package com.rongwei.zhsw.system.wechat.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.rongwe.zhsw.system.domain.SwFeedBackOpinionDo;
|
|
|
import com.rongwe.zhsw.system.domain.SwUserRepairDo;
|
|
|
import com.rongwei.rwcommon.base.BaseDo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
@@ -44,15 +45,35 @@ public class WeChatMineServiceImpl implements WeChatMineService {
|
|
|
if(StringUtils.isBlank(images)){
|
|
|
return;
|
|
|
}
|
|
|
- String imgIds = Arrays.stream(images.split("\\^_\\^")).map(img -> img.split("-;-")[1]).collect(Collectors.joining(","));
|
|
|
+ String imgIds = Arrays.stream(images.split("\\^_\\^"))
|
|
|
+ .map(img -> img.split("-;-")[0])
|
|
|
+ .collect(Collectors.joining(","));
|
|
|
data.setImages(imgIds);
|
|
|
});
|
|
|
+ // 数据字典切换
|
|
|
+ ZhswCommonUtils.replaceSysDictMethod(list,SwUserRepairDo::getRepairtype,SwUserRepairDo::setRepairtype,"repair_management_report_type");
|
|
|
+
|
|
|
return R.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public R feedbackList() {
|
|
|
String currentWeChatOpenId = WeChatUtils.getCurrentWeChatOpenId();
|
|
|
- return null;
|
|
|
+ List<SwFeedBackOpinionDo> list = swFeedBackOpinionService.list(new LambdaQueryWrapper<SwFeedBackOpinionDo>()
|
|
|
+ .eq(BaseDo::getDeleted, "0")
|
|
|
+ .eq(BaseDo::getCreateuserid, currentWeChatOpenId)
|
|
|
+ .orderByDesc(BaseDo::getCreatedate));
|
|
|
+ // 对附件信息数据进行处理
|
|
|
+ list.forEach(data->{
|
|
|
+ String images = data.getFile();
|
|
|
+ if(StringUtils.isBlank(images)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ String imgIds = Arrays.stream(images.split("\\^_\\^"))
|
|
|
+ .map(img -> img.split("-;-")[0])
|
|
|
+ .collect(Collectors.joining(","));
|
|
|
+ data.setFile(imgIds);
|
|
|
+ });
|
|
|
+ return R.ok(list);
|
|
|
}
|
|
|
}
|