修改字典处理
This commit is contained in:
+10
@@ -6,6 +6,7 @@ import com.murong.ecp.netpay.mbu.web.common.utils.CommonMessageCode;
|
||||
import com.murong.ecp.netpay.mbu.web.common.utils.ResultT;
|
||||
import com.murong.ecp.netpay.mbu.web.common.utils.ValidatorUtil;
|
||||
import com.murong.ecp.netpay.mbu.web.pub.dal.dao.BuiDctMapper;
|
||||
import com.murong.ecp.netpay.mbu.web.pub.dal.dao.BuiHlpMapper;
|
||||
import com.murong.ecp.netpay.mbu.web.pub.dal.entity.BuiDctDO;
|
||||
import com.murong.ecp.netpay.mbu.web.pub.model.BuiDctDeleteReqBO;
|
||||
import com.yuangou.ecp.bp.core.common.exception.YGException;
|
||||
@@ -14,6 +15,7 @@ import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext;
|
||||
import com.yuangou.ecp.bp.core.common.yglog4j.Logger;
|
||||
import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -28,6 +30,8 @@ public class BuiDctDeleteAction extends BaseAction {
|
||||
@Autowired
|
||||
private BuiDctMapper buiDctMapper;
|
||||
|
||||
@Autowired
|
||||
private BuiHlpMapper buiHlpMapper;
|
||||
/**
|
||||
* 删除记录
|
||||
*
|
||||
@@ -43,6 +47,12 @@ public class BuiDctDeleteAction extends BaseAction {
|
||||
|
||||
ValidatorUtil.validateObject(reqBO);
|
||||
|
||||
String[] idList = StringUtils.split(reqBO.getIds(), ",");
|
||||
for( String id : idList ) {
|
||||
BuiDctDO buiDctDO = buiDctMapper.selectByPrimaryKey(Long.valueOf(id));
|
||||
buiHlpMapper.deleteByName(buiDctDO.getDctNm());
|
||||
}
|
||||
|
||||
int retCod = buiDctMapper.deleteByIds(reqBO.getIds());
|
||||
|
||||
ResultT resultT = new ResultT();
|
||||
|
||||
@@ -35,4 +35,7 @@ public interface BuiDctMapper {
|
||||
|
||||
int deleteByIds(String ids);
|
||||
|
||||
BuiDctDO selectByPrimaryKey(Long id);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user