Commit 7de201fb by zhouhaibao

[+]试驾服务

1 parent acdf1313
...@@ -31,8 +31,9 @@ public class VehicleApproDto extends BaseAreaDto { ...@@ -31,8 +31,9 @@ public class VehicleApproDto extends BaseAreaDto {
private String modelName; private String modelName;
private String vehicleType; private String vehicleType;
private String approvalStatus; private String approvalStatus;
private String approvalResult;
private String configDesc; private String configDesc;
private int submitStatus; private String submitStatus;
private Integer status; private Integer status;
private String remark; private String remark;
private String saleManager; private String saleManager;
...@@ -40,4 +41,5 @@ public class VehicleApproDto extends BaseAreaDto { ...@@ -40,4 +41,5 @@ public class VehicleApproDto extends BaseAreaDto {
private String velRemark; private String velRemark;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date submitTime; private Date submitTime;
private boolean isbutton;
} }
...@@ -108,9 +108,14 @@ public class VehicleDocService { ...@@ -108,9 +108,14 @@ public class VehicleDocService {
List<VehicleApproDto> vehicleDtoPageInfo = vehicleDocMapper.search(vehicleDocSearch); List<VehicleApproDto> vehicleDtoPageInfo = vehicleDocMapper.search(vehicleDocSearch);
vehicleDtoPageInfo.forEach(index->{ vehicleDtoPageInfo.forEach(index->{
if(index.getStatus()==null||index.getStatus()== ApprovalStatusEnum.APPROVAL_STATUS_REJECT.getCode()){ if(index.getStatus()==null||index.getStatus()== ApprovalStatusEnum.APPROVAL_STATUS_REJECT.getCode()){
index.setSubmitStatus(0); index.setIsbutton(true);
}else{ }else{
index.setSubmitStatus(1); index.setIsbutton(false);
}
if(index.getStatus()==null){
index.setSubmitStatus("0");
}else{
index.setSubmitStatus("1");
} }
}); });
organizaService.drawOrganization(vehicleDtoPageInfo); organizaService.drawOrganization(vehicleDtoPageInfo);
......
...@@ -81,8 +81,8 @@ ...@@ -81,8 +81,8 @@
t1.sale_manager as saleManager, t1.sale_manager as saleManager,
t1.sale_manager_phone as saleManagerPhone, t1.sale_manager_phone as saleManagerPhone,
t1.remark as velRemark, t1.remark as velRemark,
t6.dict_label AS approvalStatus, t5.status as approvalStatus,
if(t6.dict_label=null,"未提交","已提交") as submitStatus, (select dict_label from t_dict_data where dict_value=t5.status and dict_type = 'approval_status') AS approvalResult,
t5.remark as remark, t5.remark as remark,
t5.created_date as submitTime t5.created_date as submitTime
FROM FROM
...@@ -137,8 +137,8 @@ ...@@ -137,8 +137,8 @@
and app.status=#{search.approvalStatus} and app.status=#{search.approvalStatus}
</if> </if>
<if test="search.keywords !=null and search.keywords != ''"> <if test="search.keywords !=null and search.keywords != ''">
and (t4.shop_name like concat('%',#{search.keywords},'%') and (shop.shop_name like concat('%',#{search.keywords},'%')
or t4.shop_code like concat('%',#{search.keywords},'%') or shop.shop_code like concat('%',#{search.keywords},'%')
or tvd.fence_name like concat('%',#{search.keywords},'%') or tvd.fence_name like concat('%',#{search.keywords},'%')
) )
</if> </if>
......
...@@ -69,11 +69,11 @@ ...@@ -69,11 +69,11 @@
<if test="search.approvalStatus !=null and search.approvalStatus != ''"> <if test="search.approvalStatus !=null and search.approvalStatus != ''">
and t5.status=#{search.approvalStatus} and t5.status=#{search.approvalStatus}
</if> </if>
<if test="search.submitStatus ==0">
and t6.dict_label is null
</if>
<if test="search.submitStatus ==1"> <if test="search.submitStatus ==1">
and t6.dict_label is not null and t5.id is not null
</if>
<if test="search.submitStatus ==0">
and t5.id is null
</if> </if>
<if test="search.keywords !=null and search.keywords != ''"> <if test="search.keywords !=null and search.keywords != ''">
and (t4.shop_name like concat('%',#{search.keywords},'%') and (t4.shop_name like concat('%',#{search.keywords},'%')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!