mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-03-04 19:33:08 +08:00
bug修改
This commit is contained in:
parent
aeb50118c7
commit
382ae082b7
1 changed files with 6 additions and 3 deletions
|
@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||
import com.skyeye.base.business.service.impl.SkyeyeBusinessServiceImpl;
|
||||
import com.skyeye.coderule.entity.CodeRule;
|
||||
import com.skyeye.coderule.service.CodeRuleService;
|
||||
import com.skyeye.common.constans.CommonConstants;
|
||||
import com.skyeye.common.constans.CommonNumConstants;
|
||||
import com.skyeye.common.object.InputObject;
|
||||
import com.skyeye.common.object.OutputObject;
|
||||
|
@ -66,9 +67,11 @@ public class ServiceBeanCustomServiceImpl extends SkyeyeBusinessServiceImpl<Serv
|
|||
|
||||
@Override
|
||||
public ServiceBeanCustom getDataFromDb(String className) {
|
||||
QueryWrapper<ServiceBeanCustom> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq(MybatisPlusUtil.toColumns(ServiceBeanCustom::getClassName), className);
|
||||
ServiceBeanCustom serviceBeanCustom = getOne(wrapper);
|
||||
QueryWrapper<ServiceBeanCustom> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.and(wrapper ->
|
||||
wrapper.eq(MybatisPlusUtil.toColumns(ServiceBeanCustom::getClassName), className)
|
||||
.or().eq(CommonConstants.ID, className));
|
||||
ServiceBeanCustom serviceBeanCustom = getOne(queryWrapper);
|
||||
return serviceBeanCustom;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue