Commit 834b8d48 authored by huyuchen's avatar huyuchen

明细接口改造

parent 63773fa5
...@@ -239,8 +239,7 @@ public class EkpSocialInfoServiceImpl extends ServiceImpl<EkpSocialInfoMapper, E ...@@ -239,8 +239,7 @@ public class EkpSocialInfoServiceImpl extends ServiceImpl<EkpSocialInfoMapper, E
if (Optional.ofNullable(list).isPresent()) { if (Optional.ofNullable(list).isPresent()) {
for (EkpSocialStatusUpdateVo socialStatusUpdateVo : list) { for (EkpSocialStatusUpdateVo socialStatusUpdateVo : list) {
String updateSql = socialStatusUpdateVo.getUpdateSql().replaceAll("\\?","%s"); String updateSql = socialStatusUpdateVo.getUpdateSql().replaceAll("\\?","%s");
List<Object> paramList = socialStatusUpdateVo.getParam(); String sql = String.format(updateSql, socialStatusUpdateVo.getParam().toArray());
String sql = String.format(updateSql, paramList.toArray());
baseMapper.updateSocialStatus(sql); baseMapper.updateSocialStatus(sql);
} }
return R.ok(); return R.ok();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment