Commit 9dc8fcd5 by 黄小葱

修复bug

1 parent 3b88fe25
......@@ -454,7 +454,8 @@ public class VehicleService {
} else {
vehicle.setServeType(ConstantsVehicle.UN_VEHICLE_TYPE_PLATE);
}
vehicle.setCreatedBy(ShieldContextHolder.getUserId());
List<User> userList = findByNameAndCode(vi.getShopName(), vi.getShopCode());
vehicle.setCreatedBy(userList.get(0).getId());
vehicle.setCreatedDate(new Date());
vehicle.setVehicleType(ConstantsVehicle.TRIAL_DRIVE_TYPE);
vehicle.setServeType(ConstantsVehicle.UN_VEHICLE_TYPE_PLATE);
......
......@@ -71,8 +71,8 @@
<sql id="search_sql_condition" >
<if test="searchKey != null and searchKey != '' ">
and (
ttds.shop_code like concat('%',#{searchKey},'%')
or ttds.shop_name like concat('%',#{searchKey},'%')
tu.account like concat('%',#{searchKey},'%')
or tu.username like concat('%',#{searchKey},'%')
or tv.vin like concat('%',#{searchKey},'%')
or tvd.sn like concat('%',#{searchKey},'%')
or tv.model_name like concat('%',#{searchKey},'%')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!