更新了对外接口的板车监控
parent
c3f0275dce
commit
cd10f2eb9a
|
@ -3,8 +3,6 @@ package com.haitongauto.mapper.admin;
|
||||||
import com.haitongauto.models.pojo.Announcement;
|
import com.haitongauto.models.pojo.Announcement;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
package com.haitongauto.mapper.base;
|
package com.haitongauto.mapper.base;
|
||||||
|
|
||||||
import com.haitongauto.models.pojo.Appointment;
|
import com.haitongauto.models.pojo.Appointment;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>models</artifactId>
|
<artifactId>models</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
|
|
@ -281,7 +281,7 @@ public class AppointmentController {
|
||||||
|
|
||||||
//内贸出口的品牌不能为空(商品车)
|
//内贸出口的品牌不能为空(商品车)
|
||||||
if ("NE".equals(enter_type) && "C".equals(goods_type)) {
|
if ("NE".equals(enter_type) && "C".equals(goods_type)) {
|
||||||
List<String> vinss = Linq.of(appointmentDetailList).where(p -> p.getBrand_id() != null && !p.getBrand_id().isEmpty()).select(AppointmentDetail::getBrand_id).distinct().toList();
|
List<String> vinss = Linq.of(appointmentDetailList).where(p -> p.getBrand_id() == null || p.getBrand_id().isEmpty()).select(AppointmentDetail::getVin).distinct().toList();
|
||||||
if (vinss != null && vinss.size() > 0) {
|
if (vinss != null && vinss.size() > 0) {
|
||||||
String myVins = String.join(",", vinss);
|
String myVins = String.join(",", vinss);
|
||||||
msg = "内贸出口,vin:" + myVins + "预约明细的品牌不能为空。";
|
msg = "内贸出口,vin:" + myVins + "预约明细的品牌不能为空。";
|
||||||
|
@ -551,9 +551,9 @@ public class AppointmentController {
|
||||||
return response.getResponseData(bl, data, msg);
|
return response.getResponseData(bl, data, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
//内贸出口的品牌不能为空
|
//内贸出口的品牌不能为空(商品车)
|
||||||
if ("NE".equals(enter_type) && "C".equals(goods_type)) {
|
if ("NE".equals(enter_type) && "C".equals(goods_type)) {
|
||||||
List<String> vinss = Linq.of(appointmentDetailList).where(p -> p.getBrand_id() != null && !p.getBrand_id().isEmpty()).select(AppointmentDetail::getBrand_id).distinct().toList();
|
List<String> vinss = Linq.of(appointmentDetailList).where(p -> p.getBrand_id() == null || p.getBrand_id().isEmpty()).select(AppointmentDetail::getVin).distinct().toList();
|
||||||
if (vinss != null && vinss.size() > 0) {
|
if (vinss != null && vinss.size() > 0) {
|
||||||
String myVins = String.join(",", vinss);
|
String myVins = String.join(",", vinss);
|
||||||
msg = "内贸出口,vin:" + myVins + "预约明细的品牌不能为空。";
|
msg = "内贸出口,vin:" + myVins + "预约明细的品牌不能为空。";
|
||||||
|
|
Loading…
Reference in New Issue