| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.constant.CacheConstant; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | |
| | | return count(qw)==0; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public Object addSecret(String type, String sql) { |
| | | if(type.equals("insert")){ |
| | | return baseMapper.secretOfInsert(sql); |
| | | }else if(type.equals("delete")) { |
| | | return baseMapper.secretOfDelete(sql); |
| | | }else if(type.equals("update")){ |
| | | return baseMapper.secretOfUpdate(sql); |
| | | }else { |
| | | return baseMapper.secretOfSelect(sql); |
| | | } |
| | | } |
| | | |
| | | } |