1.口门门禁-车辆信息查询等接口
parent
b5a5405836
commit
dcb0643a03
|
|
@ -54,19 +54,6 @@ public class VehicleMessageController {
|
||||||
return MultiResponse.of(new ArrayList<VehicleMessageCO>());
|
return MultiResponse.of(new ArrayList<VehicleMessageCO>());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("详情")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public SingleResponse<VehicleMessageCO> getInfoById(@PathVariable("id") Long id) {
|
|
||||||
return SingleResponse.of(new VehicleMessageCO());
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("删除")
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Response remove(@PathVariable("id") Long id) {
|
|
||||||
vehicleMessageService.remove(id);
|
|
||||||
return SingleResponse.buildSuccess();
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("删除多个")
|
@ApiOperation("删除多个")
|
||||||
@DeleteMapping("/ids")
|
@DeleteMapping("/ids")
|
||||||
public Response removeBatch(@RequestParam Long[] ids) {
|
public Response removeBatch(@RequestParam Long[] ids) {
|
||||||
|
|
@ -74,17 +61,28 @@ public class VehicleMessageController {
|
||||||
return SingleResponse.buildSuccess();
|
return SingleResponse.buildSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("修改")
|
|
||||||
@PutMapping("/edit")
|
|
||||||
public SingleResponse edit(@Validated @RequestBody VehicleMessageUpdateCmd vehicleMessageUpdateCmd) {
|
|
||||||
vehicleMessageService.edit(vehicleMessageUpdateCmd);
|
|
||||||
return SingleResponse.buildSuccess();
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("新增-监管端,分子公司人员车辆")
|
@ApiOperation("新增-监管端,分子公司人员车辆")
|
||||||
@PostMapping("/saveFroCorp")
|
@PostMapping("/saveFroCorp")
|
||||||
public SingleResponse<VehicleMessageCO> addForCorp(@Validated @RequestBody VehicleMessageForCorpAddCmd cmd) {
|
public SingleResponse<VehicleMessageCO> addForCorp(@Validated @RequestBody VehicleMessageForCorpAddCmd cmd) {
|
||||||
return vehicleMessageService.addForCorp(cmd);
|
return vehicleMessageService.addForCorp(cmd);
|
||||||
}
|
}
|
||||||
|
@ApiOperation("修改")
|
||||||
|
@PutMapping("/editFroCorp")
|
||||||
|
public SingleResponse editFroCorp(@Validated @RequestBody VehicleMessageUpdateCmd updateCmd) {
|
||||||
|
vehicleMessageService.editForCorp(updateCmd);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
@ApiOperation("删除")
|
||||||
|
@DeleteMapping("/{id}")
|
||||||
|
public Response remove(@PathVariable("id") Long id) {
|
||||||
|
vehicleMessageService.remove(id);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
@ApiOperation("详情")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public SingleResponse<VehicleMessageCO> getInfoById(@PathVariable("id") Long id) {
|
||||||
|
VehicleMessageCO infoById = vehicleMessageService.getInfoById(id);
|
||||||
|
return SingleResponse.of(infoById);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ public class VehicleMessageAddExe {
|
||||||
if (!Tools.isEmpty(cmd.getApprovalUserId())){
|
if (!Tools.isEmpty(cmd.getApprovalUserId())){
|
||||||
VehicleAuditLogE vehicleAuditLogE = new VehicleAuditLogE();
|
VehicleAuditLogE vehicleAuditLogE = new VehicleAuditLogE();
|
||||||
BeanUtils.copyProperties(cmd, vehicleAuditLogE);
|
BeanUtils.copyProperties(cmd, vehicleAuditLogE);
|
||||||
vehicleAuditLogE.addFroVehicleLog(vehicleAuditLogE,add.getId()); // 添加审批信息
|
vehicleAuditLogE.addFroVehicleLog(vehicleAuditLogE,add.getId(),1); // 添加审批信息
|
||||||
res = vehicleAuditLogGateway.add(vehicleAuditLogE); // 添加审批信息
|
res = vehicleAuditLogGateway.add(vehicleAuditLogE); // 添加审批信息
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.zcloud.primeport.command;
|
package com.zcloud.primeport.command;
|
||||||
import com.alibaba.cola.exception.BizException;
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.gbscommon.utils.Tools;
|
||||||
|
import com.zcloud.primeport.domain.gateway.VehicleAuditLogGateway;
|
||||||
import com.zcloud.primeport.domain.gateway.VehicleMessageGateway;
|
import com.zcloud.primeport.domain.gateway.VehicleMessageGateway;
|
||||||
|
import com.zcloud.primeport.domain.model.VehicleAuditLogE;
|
||||||
import com.zcloud.primeport.domain.model.VehicleMessageE;
|
import com.zcloud.primeport.domain.model.VehicleMessageE;
|
||||||
import com.zcloud.primeport.dto.VehicleMessageUpdateCmd;
|
import com.zcloud.primeport.dto.VehicleMessageUpdateCmd;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
|
@ -20,7 +23,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class VehicleMessageUpdateExe {
|
public class VehicleMessageUpdateExe {
|
||||||
private final VehicleMessageGateway vehicleMessageGateway;
|
private final VehicleMessageGateway vehicleMessageGateway;
|
||||||
|
private final VehicleAuditLogGateway vehicleAuditLogGateway;
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void execute(VehicleMessageUpdateCmd vehicleMessageUpdateCmd) {
|
public void execute(VehicleMessageUpdateCmd vehicleMessageUpdateCmd) {
|
||||||
VehicleMessageE vehicleMessageE = new VehicleMessageE();
|
VehicleMessageE vehicleMessageE = new VehicleMessageE();
|
||||||
|
|
@ -30,5 +33,33 @@ public class VehicleMessageUpdateExe {
|
||||||
throw new BizException("修改失败");
|
throw new BizException("修改失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业端和监管端修改车辆信息
|
||||||
|
* @param vehicleMessageUpdateCmd
|
||||||
|
*/
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public void executeFormCorp(VehicleMessageUpdateCmd vehicleMessageUpdateCmd) {
|
||||||
|
VehicleMessageE vehicleMessageE = new VehicleMessageE();
|
||||||
|
BeanUtils.copyProperties(vehicleMessageUpdateCmd, vehicleMessageE);
|
||||||
|
vehicleMessageE.updateFromCorp(vehicleMessageE); //车辆状态变成不通过
|
||||||
|
VehicleMessageE infoById = vehicleMessageGateway.getInfoById(vehicleMessageUpdateCmd.getId());
|
||||||
|
if (infoById == null){
|
||||||
|
throw new BizException("车辆信息不存在");
|
||||||
|
}
|
||||||
|
if (infoById.getIsAudit() == 1){
|
||||||
|
throw new BizException("车辆信息正在审核");
|
||||||
|
}
|
||||||
|
boolean res = vehicleMessageGateway.update(vehicleMessageE); //修改车辆信息
|
||||||
|
if (!Tools.isEmpty(vehicleMessageUpdateCmd.getApprovalUserId())){ //新增一个审批记录
|
||||||
|
VehicleAuditLogE vehicleAuditLogE = new VehicleAuditLogE();
|
||||||
|
BeanUtils.copyProperties(vehicleMessageUpdateCmd, vehicleAuditLogE);
|
||||||
|
vehicleAuditLogE.addFroVehicleLog(vehicleAuditLogE,vehicleMessageUpdateCmd.getId(),2); // 添加审批信息
|
||||||
|
res = vehicleAuditLogGateway.add(vehicleAuditLogE); // 添加审批信息
|
||||||
|
}
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("修改失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,6 @@ public interface VehicleMessageCoConvertor {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<VehicleMessageCO> converDOsToCOs(List<VehicleMessageDO> vehicleMessageDOs);
|
List<VehicleMessageCO> converDOsToCOs(List<VehicleMessageDO> vehicleMessageDOs);
|
||||||
|
VehicleMessageCO converDOsToCOs(VehicleMessageDO vehicleMessageDOs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,5 +38,10 @@ public class VehicleMessageQueryExe {
|
||||||
List<VehicleMessageCO> examCenterCOS = vehicleMessageCoConvertor.converDOsToCOs(pageResponse.getData());
|
List<VehicleMessageCO> examCenterCOS = vehicleMessageCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||||
}
|
}
|
||||||
|
public VehicleMessageCO queryById(Long id) {
|
||||||
|
VehicleMessageDO byId = vehicleMessageRepository.getById(id);
|
||||||
|
VehicleMessageCO vehicleMessageCO = vehicleMessageCoConvertor.converDOsToCOs(byId);
|
||||||
|
return vehicleMessageCO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,5 +60,16 @@ public class VehicleMessageServiceImpl implements VehicleMessageServiceI {
|
||||||
vehicleMessageAddExe.executeForCorp(cmdCorp);
|
vehicleMessageAddExe.executeForCorp(cmdCorp);
|
||||||
return SingleResponse.buildSuccess();
|
return SingleResponse.buildSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void editForCorp(VehicleMessageUpdateCmd vehicleMessageUpdateCmd) {
|
||||||
|
vehicleMessageUpdateExe.executeFormCorp(vehicleMessageUpdateCmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VehicleMessageCO getInfoById(Long id) {
|
||||||
|
VehicleMessageCO vehicleMessageCO = vehicleMessageQueryExe.queryById(id);
|
||||||
|
return vehicleMessageCO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@ public interface VehicleMessageServiceI {
|
||||||
void removeBatch(Long[] ids);
|
void removeBatch(Long[] ids);
|
||||||
|
|
||||||
SingleResponse<VehicleMessageCO> addForCorp (VehicleMessageForCorpAddCmd cmdCorp);
|
SingleResponse<VehicleMessageCO> addForCorp (VehicleMessageForCorpAddCmd cmdCorp);
|
||||||
|
void editForCorp (VehicleMessageUpdateCmd cmd);
|
||||||
|
|
||||||
|
|
||||||
|
VehicleMessageCO getInfoById(Long id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,12 @@ public class VehicleAuditLogAddCmd extends Command {
|
||||||
@ApiModelProperty(value = "id", name = "id", required = true)
|
@ApiModelProperty(value = "id", name = "id", required = true)
|
||||||
@NotEmpty(message = "id不能为空")
|
@NotEmpty(message = "id不能为空")
|
||||||
private Long id;
|
private Long id;
|
||||||
@ApiModelProperty(value = "业务id", name = "vehicleAuditLogId", required = true)
|
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)", name = "batchType", required = true)
|
||||||
@NotEmpty(message = "业务id不能为空")
|
@NotEmpty(message = "审批批次(1.普通车辆.2危险化学品车辆)不能为空")
|
||||||
private String vehicleAuditLogId;
|
private Integer batchType;
|
||||||
|
@ApiModelProperty(value = "审批状态(0,申请;2.更新)", name = "batchState", required = true)
|
||||||
|
@NotEmpty(message = "审批状态(0,申请;2.更新)不能为空")
|
||||||
|
private Integer batchState;
|
||||||
@ApiModelProperty(value = "审批批次(审批全流程,一次申请一次id)", name = "batchId", required = true)
|
@ApiModelProperty(value = "审批批次(审批全流程,一次申请一次id)", name = "batchId", required = true)
|
||||||
@NotEmpty(message = "审批批次(审批全流程,一次申请一次id)不能为空")
|
@NotEmpty(message = "审批批次(审批全流程,一次申请一次id)不能为空")
|
||||||
private String batchId;
|
private String batchId;
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,12 @@ public class VehicleAuditLogUpdateCmd extends Command {
|
||||||
@ApiModelProperty(value = "业务id", name = "vehicleAuditLogId", required = true)
|
@ApiModelProperty(value = "业务id", name = "vehicleAuditLogId", required = true)
|
||||||
@NotEmpty(message = "业务id不能为空")
|
@NotEmpty(message = "业务id不能为空")
|
||||||
private String vehicleAuditLogId;
|
private String vehicleAuditLogId;
|
||||||
@ApiModelProperty(value = "审批批次(审批全流程,一次申请一次id)", name = "batchId", required = true)
|
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)", name = "batchType", required = true)
|
||||||
@NotEmpty(message = "审批批次(审批全流程,一次申请一次id)不能为空")
|
@NotEmpty(message = "审批批次(1.普通车辆.2危险化学品车辆)不能为空")
|
||||||
private String batchId;
|
private Integer batchType;
|
||||||
|
@ApiModelProperty(value = "审批状态(0,申请;2.更新)", name = "batchState", required = true)
|
||||||
|
@NotEmpty(message = "审批状态(0,申请;2.更新)不能为空")
|
||||||
|
private Integer batchState;
|
||||||
@ApiModelProperty(value = "车辆id", name = "vehicleMessageId", required = true)
|
@ApiModelProperty(value = "车辆id", name = "vehicleMessageId", required = true)
|
||||||
@NotEmpty(message = "车辆id不能为空")
|
@NotEmpty(message = "车辆id不能为空")
|
||||||
private Long vehicleMessageId;
|
private Long vehicleMessageId;
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,16 @@ public class VehicleMessagePageQry extends PageQuery {
|
||||||
* - `le`: 小于等于比较查询
|
* - `le`: 小于等于比较查询
|
||||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||||
*/
|
*/
|
||||||
private Integer likeLicenceType;
|
@ApiModelProperty(value = "车牌号")
|
||||||
|
private String likeLicenceNo;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "车辆所属人姓名")
|
||||||
|
private String liekeEmployeeVehicleUserName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "车辆所属部门id")
|
||||||
|
private String eqVehicleDepartmentId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "企业ID")
|
||||||
|
private String eqCorpId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ public class VehicleMessageUpdateCmd extends Command {
|
||||||
private String employeeVehicleUserName;
|
private String employeeVehicleUserName;
|
||||||
@ApiModelProperty(value = "企业ID(~~~~~~)", name = "corpinfoId", required = true)
|
@ApiModelProperty(value = "企业ID(~~~~~~)", name = "corpinfoId", required = true)
|
||||||
@NotEmpty(message = "企业ID(~~~~~~)不能为空")
|
@NotEmpty(message = "企业ID(~~~~~~)不能为空")
|
||||||
private Long corpinfoId;
|
private Long corpId;
|
||||||
@ApiModelProperty(value = "排放标准:level1 -> 国一level2 -> 国二level3 -> 国三level4 -> 国四level5 -> 国五level6 -> 国六", name = "emissionStandards", required = true)
|
@ApiModelProperty(value = "排放标准:level1 -> 国一level2 -> 国二level3 -> 国三level4 -> 国四level5 -> 国五level6 -> 国六", name = "emissionStandards", required = true)
|
||||||
@NotEmpty(message = "排放标准:level1 -> 国一level2 -> 国二level3 -> 国三level4 -> 国四level5 -> 国五level6 -> 国六不能为空")
|
@NotEmpty(message = "排放标准:level1 -> 国一level2 -> 国二level3 -> 国三level4 -> 国四level5 -> 国五level6 -> 国六不能为空")
|
||||||
private String emissionStandards;
|
private String emissionStandards;
|
||||||
|
|
@ -106,5 +106,18 @@ public class VehicleMessageUpdateCmd extends Command {
|
||||||
@ApiModelProperty(value = "访问结束时间", name = "visitEndTime", required = true)
|
@ApiModelProperty(value = "访问结束时间", name = "visitEndTime", required = true)
|
||||||
@NotEmpty(message = "访问结束时间不能为空")
|
@NotEmpty(message = "访问结束时间不能为空")
|
||||||
private String visitEndTime;
|
private String visitEndTime;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "审核人ID", name = "approvalUserId")
|
||||||
|
public Long approvalUserId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "审核人名字", name = "approvalUserName")
|
||||||
|
public String approvalUserName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "审核人部门ID", name = "approvalDeptId")
|
||||||
|
public Long approvalDeptId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "审核人部门名字", name = "approvalDeptName")
|
||||||
|
public String approvalDeptName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,12 @@ public class VehicleAuditLogCO extends ClientObject {
|
||||||
//业务id
|
//业务id
|
||||||
@ApiModelProperty(value = "业务id")
|
@ApiModelProperty(value = "业务id")
|
||||||
private String vehicleAuditLogId;
|
private String vehicleAuditLogId;
|
||||||
//审批批次(审批全流程,一次申请一次id)
|
//审批批次(1.普通车辆.2危险化学品车辆)
|
||||||
@ApiModelProperty(value = "审批批次(审批全流程,一次申请一次id)")
|
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)")
|
||||||
private String batchId;
|
private Integer batchType;
|
||||||
|
//审批状态(0,申请;2.更新)
|
||||||
|
@ApiModelProperty(value = "审批状态(0,申请;2.更新)")
|
||||||
|
private Integer batchState;
|
||||||
//车辆id
|
//车辆id
|
||||||
@ApiModelProperty(value = "车辆id")
|
@ApiModelProperty(value = "车辆id")
|
||||||
private Long vehicleMessageId;
|
private Long vehicleMessageId;
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ public interface VehicleMessageGateway {
|
||||||
Boolean deletedVehicleMessageById(Long id);
|
Boolean deletedVehicleMessageById(Long id);
|
||||||
Boolean deletedVehicleMessageByIds(Long[] id);
|
Boolean deletedVehicleMessageByIds(Long[] id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详情
|
||||||
|
*/
|
||||||
|
VehicleMessageE getInfoById(Long id);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,10 @@ public class VehicleAuditLogE extends BaseE {
|
||||||
private Long id;
|
private Long id;
|
||||||
//业务id
|
//业务id
|
||||||
private String vehicleAuditLogId;
|
private String vehicleAuditLogId;
|
||||||
//审批批次(审批全流程,一次申请一次id)
|
//审批批次(1.普通车辆.2危险化学品车辆)
|
||||||
private String batchId;
|
private Integer batchType;
|
||||||
|
//审批状态(0,申请;2.更新)
|
||||||
|
private Integer batchState;
|
||||||
//车辆id
|
//车辆id
|
||||||
private Long vehicleMessageId;
|
private Long vehicleMessageId;
|
||||||
//审批人id
|
//审批人id
|
||||||
|
|
@ -52,16 +54,17 @@ public class VehicleAuditLogE extends BaseE {
|
||||||
* 申请车辆的时候,审批信息.
|
* 申请车辆的时候,审批信息.
|
||||||
* @param examTypeE
|
* @param examTypeE
|
||||||
*/
|
*/
|
||||||
public void addFroVehicleLog ( VehicleAuditLogE examTypeE,Long vehicleMessageId) {
|
public void addFroVehicleLog ( VehicleAuditLogE examTypeE,Long vehicleMessageId,Integer batchState) {
|
||||||
userId = approvalUserId;
|
this.userId = approvalUserId;
|
||||||
userName = approvalUserName;
|
this.userName = approvalUserName;
|
||||||
deptId = approvalDeptId;
|
this.deptId = approvalDeptId;
|
||||||
this.deptName = approvalDeptName;
|
this.deptName = approvalDeptName;
|
||||||
this.batchId = "1";
|
this.batchState = batchState; //审批状态(0,申请;2.更新)
|
||||||
this.vehicleMessageId = vehicleMessageId;
|
this.batchType = 1; //审批批次(1.普通车辆.2危险化学品车辆)
|
||||||
this.status = 1;
|
this.vehicleMessageId = vehicleMessageId; // //车辆id
|
||||||
stepType = 0;
|
this.status = 1; //审批状态(1未开始.2通过.3不通过)
|
||||||
stepSort = 1;
|
this.stepType = 0; //审批状态(0正常,1.废除)
|
||||||
|
this.stepSort = 1; //审批步骤排序
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,9 @@ public class VehicleMessageE extends BaseE {
|
||||||
this.visitEndTime = DateUtil.fomatDate(DateUtil.getCurrYearLast());
|
this.visitEndTime = DateUtil.fomatDate(DateUtil.getCurrYearLast());
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
public VehicleMessageE updateFromCorp( VehicleMessageE e) {
|
||||||
|
this.isAudit = 0;//未审核
|
||||||
|
return e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,12 +40,24 @@ public class VehicleMessageGatewayImpl implements VehicleMessageGateway {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean deletedVehicleMessageById(Long id) {
|
public Boolean deletedVehicleMessageById(Long id) {
|
||||||
return vehicleMessageRepository.removeById(id);
|
VehicleMessageDO d = new VehicleMessageDO();
|
||||||
|
d.setDeleteEnum("TRUE");
|
||||||
|
d.setId( id);
|
||||||
|
boolean updateById = vehicleMessageRepository.updateById(d);
|
||||||
|
return updateById;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean deletedVehicleMessageByIds(Long[] ids) {
|
public Boolean deletedVehicleMessageByIds(Long[] ids) {
|
||||||
return vehicleMessageRepository.removeByIds(Arrays.asList(ids));
|
return vehicleMessageRepository.removeByIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VehicleMessageE getInfoById(Long id) {
|
||||||
|
VehicleMessageDO repositoryById = vehicleMessageRepository.getById(id);
|
||||||
|
VehicleMessageE vehicleMessageE = new VehicleMessageE();
|
||||||
|
BeanUtils.copyProperties(repositoryById, vehicleMessageE);
|
||||||
|
return vehicleMessageE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,12 @@ public class VehicleAuditLogDO extends BaseDO {
|
||||||
//业务id
|
//业务id
|
||||||
@ApiModelProperty(value = "业务id")
|
@ApiModelProperty(value = "业务id")
|
||||||
private String vehicleAuditLogId;
|
private String vehicleAuditLogId;
|
||||||
//审批批次(审批全流程,一次申请一次id)
|
//审批批次(1.普通车辆.2危险化学品车辆)
|
||||||
@ApiModelProperty(value = "审批批次(审批全流程,一次申请一次id)")
|
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)")
|
||||||
private String batchId;
|
private Integer batchType;
|
||||||
|
//审批状态(0,申请;2.更新)
|
||||||
|
@ApiModelProperty(value = "审批状态(0,申请;2.更新)")
|
||||||
|
private Integer batchState;
|
||||||
//车辆id
|
//车辆id
|
||||||
@ApiModelProperty(value = "车辆id")
|
@ApiModelProperty(value = "车辆id")
|
||||||
private Long vehicleMessageId;
|
private Long vehicleMessageId;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue