新增违法犯罪可疑线索

parent 9fef9e74
......@@ -108,10 +108,8 @@ public class WffzkyxsController {
@ResponseBody
public ResultVO toDelWffzkyxs(String xxzjbhs){
ResultVO resultVO = null;
User user = null;
try {
boolean flag = wffzkyxsService.delWffzkyxs(xxzjbhs);
resultVO = ResultVOUtil.success(flag);
resultVO = wffzkyxsService.delWffzkyxs(xxzjbhs);
}catch (InterServiceException e){
e.printStackTrace();
resultVO = ResultVOUtil.error(e.getCode(),e.getMessage());
......
package com.founder.interservice.wffzkyxs.service;
import com.founder.interservice.VO.ResultVO;
import com.founder.interservice.exception.InterServiceException;
import com.founder.interservice.wffzkyxs.model.TbStWffzkyxs;
import org.springframework.stereotype.Service;
......@@ -13,7 +14,7 @@ public interface WffzkyxsService {
boolean updateWffzkyxs(TbStWffzkyxs tbStWffzkyxs) throws InterServiceException;
boolean delWffzkyxs(String xxzjbh) throws InterServiceException;
ResultVO delWffzkyxs(String xxzjbh) throws InterServiceException;
TbStWffzkyxs getByXxzjbh(String xxzjbh) throws InterServiceException;
}
package com.founder.interservice.wffzkyxs.service.impl;
import com.founder.interservice.VO.ResultVO;
import com.founder.interservice.enums.ResultEnum;
import com.founder.interservice.exception.InterServiceException;
import com.founder.interservice.mapper.xzxt.WffzkyxsMapper;
import com.founder.interservice.util.ResultVOUtil;
import com.founder.interservice.wffzkyxs.model.TbStWffzkyxs;
import com.founder.interservice.wffzkyxs.service.WffzkyxsService;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.List;
......@@ -52,8 +55,9 @@ public class WffzkyxsServiceImpl implements WffzkyxsService{
}
@Override
public boolean delWffzkyxs(String xxzjbh) throws InterServiceException {
boolean flag = false;
@Transactional
public ResultVO delWffzkyxs(String xxzjbh) throws InterServiceException {
ResultVO resultVO = ResultVOUtil.error(ResultEnum.RESULT_ERROR.getCode(),ResultEnum.RESULT_ERROR.getMessage());
try{
List<String> xxzjbhList = new ArrayList<>();
if(xxzjbh != null && !xxzjbh.isEmpty()){
......@@ -62,13 +66,13 @@ public class WffzkyxsServiceImpl implements WffzkyxsService{
}
Integer count = wffzkyxsMapper.delWffzkyxs(xxzjbhList);
if(count > 0){
flag = true;
resultVO = ResultVOUtil.success(true);
}
}catch (Exception e){
e.printStackTrace();
throw new InterServiceException(ResultEnum.DB_UPDATEERROR.getCode(),ResultEnum.DB_UPDATEERROR.getMessage(),e);
}
return flag;
return resultVO;
}
@Override
......
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