修改点位真删除
This commit is contained in:
@@ -25,6 +25,7 @@ import org.springframework.data.domain.Pageable;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -186,17 +187,9 @@ public class PointServiceImpl implements PointService {
|
|||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void deleteAll(Long[] ids) {
|
public void deleteAll(Long[] ids) {
|
||||||
String currentUserId = SecurityUtils.getCurrentUserId();
|
WQLObject pointTab = WQLObject.getWQLObject("SCH_BASE_Point");
|
||||||
String nickName = SecurityUtils.getCurrentNickName();
|
for (Long id : ids) {
|
||||||
WQLObject wo = WQLObject.getWQLObject("sch_base_point");
|
pointTab.delete("point_id = '" + id + "'");
|
||||||
for (Long point_id : ids) {
|
|
||||||
JSONObject param = new JSONObject();
|
|
||||||
param.put("point_id", String.valueOf(point_id));
|
|
||||||
param.put("is_delete", "1");
|
|
||||||
param.put("update_id", currentUserId);
|
|
||||||
param.put("update_name", nickName);
|
|
||||||
param.put("update_time", DateUtil.now());
|
|
||||||
wo.update(param);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user