垛型参数管理更新
This commit is contained in:
@@ -112,19 +112,9 @@ public class CribbinginfoServiceImpl implements CribbinginfoService {
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void deleteAll(Long[] ids) {
|
||||
Long currentUserId = SecurityUtils.getCurrentUserId();
|
||||
String nickName = SecurityUtils.getNickName();
|
||||
String now = DateUtil.now();
|
||||
|
||||
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||
for (Long info_id: ids) {
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("info_id", String.valueOf(info_id));
|
||||
param.put("is_delete", "1");
|
||||
param.put("update_optid", currentUserId);
|
||||
param.put("update_optname", nickName);
|
||||
param.put("update_time", now);
|
||||
wo.update(param);
|
||||
for (Long info_id : ids) {
|
||||
wo.delete("info_id = '" + info_id + "'");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user