Commit 7de201fb by zhouhaibao

[+]试驾服务

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