Commit 55677a2a by 刘宇峰

围栏审核状态

1 parent 40b7134d
package cn.com.glsx.admin.modules.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import java.util.Date;
@Data
public class ElectricFenceDTO extends BaseAreaDto{
public class ElectricFenceDTO extends BaseAreaDto {
private Long fenceId;
private String shopName;
......@@ -18,4 +17,8 @@ public class ElectricFenceDTO extends BaseAreaDto{
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdDate;
private Integer approvalStatus;
private String approvalResult;
private String approvalRemark;
}
......@@ -42,4 +42,13 @@ public class ElectricFenceExport extends BaseAreaDto {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdDate;
@ExcelIgnore
private Integer approvalStatus;
@ExcelProperty(value = "审核结果", index = 9)
private String approvalResult;
@ExcelProperty(value = "审核备注", index = 10)
private String approvalRemark;
}
......@@ -77,6 +77,7 @@ public class ElectricFenceService {
organizaService.drawOrganization(list);
list.forEach(index -> {
index.setBizFenceType(BizFenceTypeEnum.getNameByCode(Integer.valueOf(index.getBizFenceType())));
index.setApprovalResult(ApprovalStatusEnum.getValueByCode(index.getApprovalStatus()));
});
return new PageInfo<>(list);
}
......@@ -86,6 +87,7 @@ public class ElectricFenceService {
organizaService.drawOrganization(list);
list.forEach(index -> {
index.setBizFenceType(BizFenceTypeEnum.getNameByCode(Integer.valueOf(index.getBizFenceType())));
index.setApprovalResult(ApprovalStatusEnum.getValueByCode(index.getApprovalStatus()));
});
return list;
}
......
......@@ -85,10 +85,14 @@
ttds.shop_level shopLevel,
tef.created_date createdDate,
tef.created_by createdBy,
biz_fence_type as bizFenceType
tef.biz_fence_type as bizFenceType,
ta.status approvalStatus,
ta.remark approvalRemark
from t_electric_fence tef
left join t_user tu on tu.id = tef.created_by
left join t_trial_drive_shop ttds on ttds.fence_id = tef.id
left join t_electric_fence_copy tefc on tefc.fence_id = tef.id
left join t_approval ta on ta.biz_id = tefc.id and ta.biz_type = 1
where tef.del_flag = 0
and tef.biz_fence_type = 12
<if test="term != null and term !=''">
......@@ -111,10 +115,14 @@
ttds.shop_level shopLevel,
tef.created_date createdDate,
tef.created_by createdBy,
tef.biz_fence_type bizFenceType
tef.biz_fence_type bizFenceType,
ta.status approvalStatus,
ta.remark approvalRemark
from t_electric_fence tef
left join t_user tu on tu.id = tef.created_by
left join t_trial_drive_shop ttds on ttds.fence_id = tef.id
left join t_electric_fence_copy tefc on tefc.fence_id = tef.id
left join t_approval ta on ta.biz_id = tefc.id and ta.biz_type = 1
where tef.del_flag = 0
and tef.biz_fence_type = 12
<if test="term != null and term !=''">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!