| | |
| | | .eq(BaseParam::getIsdeleted,Constants.ZERO) |
| | | .eq(BaseParam::getName,baseParam.getName()); |
| | | |
| | | Integer count = baseParamMapper.selectCount(wrapper); |
| | | long count = baseParamMapper.selectCount(wrapper); |
| | | if (count > 0){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"车辆问题已存在"); |
| | | } |
| | |
| | | updateWrapper |
| | | .lambda() |
| | | .eq(BaseParam::getId,baseParam.getId()) |
| | | .set(BaseParam::getRequired,baseParam.getRequired()) |
| | | .set(BaseParam::getName,baseParam.getName()) |
| | | .set(BaseParam::getSortnum,baseParam.getSortnum()) |
| | | .set(BaseParam::getEditDate,new Date()) |