修改校验
This commit is contained in:
parent
55985133af
commit
4826ae00c7
|
|
@ -13,10 +13,7 @@ import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -160,8 +157,7 @@ public class CarSupServiceImpl implements CarSupService{
|
||||||
if(StringHelper.isEmpty(data.getUserId())){
|
if(StringHelper.isEmpty(data.getUserId())){
|
||||||
return ServerResponse.createErroe("至少选择一个用户进行绑定");
|
return ServerResponse.createErroe("至少选择一个用户进行绑定");
|
||||||
}
|
}
|
||||||
|
String user= Objects.requireNonNull(UserUtil.getLoginUser()).getUserId()+"";
|
||||||
String user= UserUtil.getLoginUser().getUserId()+"";
|
|
||||||
data.setCreator(user);
|
data.setCreator(user);
|
||||||
data.setUpdater(user);
|
data.setUpdater(user);
|
||||||
String supId=data.getSupId();
|
String supId=data.getSupId();
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,12 @@
|
||||||
select count(1)
|
select count(1)
|
||||||
from car_ma_type
|
from car_ma_type
|
||||||
where name=#{name} and level=#{level}
|
where name=#{name} and level=#{level}
|
||||||
<if test="id!=null and id!=''">
|
<if test="parentId!=null and parentId!=''">
|
||||||
|
and parent_id=#{parentId}
|
||||||
|
</if>
|
||||||
|
<if test="id!=null and id!=''">
|
||||||
and id!=#{id}
|
and id!=#{id}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="getCarTypeById" resultType="com.bonus.gzcar.business.backstage.entity.CarTypeVo">
|
<select id="getCarTypeById" resultType="com.bonus.gzcar.business.backstage.entity.CarTypeVo">
|
||||||
select if(cmt.id=1,0, cmt.id) id ,cmt.parent_id parentId,cmt.`name` title,cmt.is_active isActive,
|
select if(cmt.id=1,0, cmt.id) id ,cmt.parent_id parentId,cmt.`name` title,cmt.is_active isActive,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue