Compare commits
No commits in common. "dcb0643a03facb0d0d9da327aff4d332c6947276" and "9599de62320ce779ebed93c4115683c4ccbf60e9" have entirely different histories.
dcb0643a03
...
9599de6232
|
|
@ -54,6 +54,19 @@ 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) {
|
||||||
|
|
@ -61,28 +74,17 @@ 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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
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.VehicleMessageAddCmd;
|
import com.zcloud.primeport.dto.VehicleMessageAddCmd;
|
||||||
import com.zcloud.primeport.dto.VehicleMessageForCorpAddCmd;
|
import com.zcloud.primeport.dto.VehicleMessageForCorpAddCmd;
|
||||||
|
|
@ -25,14 +22,14 @@ import org.springframework.transaction.annotation.Transactional;
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class VehicleMessageAddExe {
|
public class VehicleMessageAddExe {
|
||||||
private final VehicleMessageGateway vehicleMessageGateway;
|
private final VehicleMessageGateway vehicleMessageGateway;
|
||||||
private final VehicleAuditLogGateway vehicleAuditLogGateway;
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public boolean execute(VehicleMessageAddCmd cmd) {
|
public boolean execute(VehicleMessageAddCmd cmd) {
|
||||||
VehicleMessageE examTypeE = new VehicleMessageE();
|
VehicleMessageE examTypeE = new VehicleMessageE();
|
||||||
BeanUtils.copyProperties(cmd, examTypeE);
|
BeanUtils.copyProperties(cmd, examTypeE);
|
||||||
boolean res = false;
|
boolean res = false;
|
||||||
try {
|
try {
|
||||||
VehicleMessageE add = vehicleMessageGateway.add(examTypeE);
|
res = vehicleMessageGateway.add(examTypeE);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
@ -49,13 +46,7 @@ public class VehicleMessageAddExe {
|
||||||
examTypeE = examTypeE.VehicleMessageForCorpE(examTypeE);
|
examTypeE = examTypeE.VehicleMessageForCorpE(examTypeE);
|
||||||
boolean res = false;
|
boolean res = false;
|
||||||
try {
|
try {
|
||||||
VehicleMessageE add = vehicleMessageGateway.add(examTypeE);
|
res = vehicleMessageGateway.add(examTypeE);
|
||||||
if (!Tools.isEmpty(cmd.getApprovalUserId())){
|
|
||||||
VehicleAuditLogE vehicleAuditLogE = new VehicleAuditLogE();
|
|
||||||
BeanUtils.copyProperties(cmd, vehicleAuditLogE);
|
|
||||||
vehicleAuditLogE.addFroVehicleLog(vehicleAuditLogE,add.getId(),1); // 添加审批信息
|
|
||||||
res = vehicleAuditLogGateway.add(vehicleAuditLogE); // 添加审批信息
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
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;
|
||||||
|
|
@ -23,7 +20,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();
|
||||||
|
|
@ -33,33 +30,5 @@ 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,6 +19,5 @@ public interface VehicleMessageCoConvertor {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<VehicleMessageCO> converDOsToCOs(List<VehicleMessageDO> vehicleMessageDOs);
|
List<VehicleMessageCO> converDOsToCOs(List<VehicleMessageDO> vehicleMessageDOs);
|
||||||
VehicleMessageCO converDOsToCOs(VehicleMessageDO vehicleMessageDOs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,5 @@ 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,16 +60,5 @@ 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,9 +26,6 @@ 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,15 +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 = "审批批次(1.普通车辆.2危险化学品车辆)", name = "batchType", required = true)
|
@ApiModelProperty(value = "业务id", name = "vehicleAuditLogId", required = true)
|
||||||
@NotEmpty(message = "审批批次(1.普通车辆.2危险化学品车辆)不能为空")
|
@NotEmpty(message = "业务id不能为空")
|
||||||
private Integer batchType;
|
private String vehicleAuditLogId;
|
||||||
@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 Long batchId;
|
||||||
@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;
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,9 @@ 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 = "审批批次(1.普通车辆.2危险化学品车辆)", name = "batchType", required = true)
|
@ApiModelProperty(value = "审批批次(审批全流程,一次申请一次id)", name = "batchId", required = true)
|
||||||
@NotEmpty(message = "审批批次(1.普通车辆.2危险化学品车辆)不能为空")
|
@NotEmpty(message = "审批批次(审批全流程,一次申请一次id)不能为空")
|
||||||
private Integer batchType;
|
private Long batchId;
|
||||||
@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;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ import lombok.EqualsAndHashCode;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* web-client
|
* web-client
|
||||||
|
|
@ -24,7 +23,7 @@ import javax.validation.constraints.NotNull;
|
||||||
public class VehicleMessageForCorpAddCmd extends Command {
|
public class VehicleMessageForCorpAddCmd extends Command {
|
||||||
|
|
||||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌", name = "licenceType", required = true)
|
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌", name = "licenceType", required = true)
|
||||||
@NotNull(message = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌不能为空")
|
@NotEmpty(message = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌不能为空")
|
||||||
private Integer licenceType;
|
private Integer licenceType;
|
||||||
|
|
||||||
@ApiModelProperty(value = "车牌号", name = "licenceNo", required = true)
|
@ApiModelProperty(value = "车牌号", name = "licenceNo", required = true)
|
||||||
|
|
@ -36,15 +35,15 @@ public class VehicleMessageForCorpAddCmd extends Command {
|
||||||
private String vehicleType;
|
private String vehicleType;
|
||||||
|
|
||||||
@ApiModelProperty(value = "车辆所属类型 0-员工车辆 1- 单位车辆 2-外部车辆3:货运车辆", name = "vehicleBelongType", required = true)
|
@ApiModelProperty(value = "车辆所属类型 0-员工车辆 1- 单位车辆 2-外部车辆3:货运车辆", name = "vehicleBelongType", required = true)
|
||||||
@NotNull(message = "车辆所属类型 0-员工车辆 1- 单位车辆 2-外部车辆3:货运车辆不能为空")
|
@NotEmpty(message = "车辆所属类型 0-员工车辆 1- 单位车辆 2-外部车辆3:货运车辆不能为空")
|
||||||
private Integer vehicleBelongType;
|
private Integer vehicleBelongType;
|
||||||
|
|
||||||
@ApiModelProperty(value = "通行港区(0-全部 1-东港区 2-西港区)", name = "portId", required = true)
|
@ApiModelProperty(value = "通行港区(0-全部 1-东港区 2-西港区)", name = "portId", required = true)
|
||||||
@NotNull(message = "通行港区(0-全部 1-东港区 2-西港区)不能为空")
|
@NotEmpty(message = "通行港区(0-全部 1-东港区 2-西港区)不能为空")
|
||||||
private Integer portId;
|
private Integer portId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "车辆所属部门id", name = "vehicleDepartmentId", required = true)
|
@ApiModelProperty(value = "车辆所属部门id", name = "vehicleDepartmentId", required = true)
|
||||||
@NotNull(message = "车辆所属部门id不能为空")
|
@NotEmpty(message = "车辆所属部门id不能为空")
|
||||||
private Long vehicleDepartmentId;
|
private Long vehicleDepartmentId;
|
||||||
@ApiModelProperty(value = "车辆所属部门名称", name = "vehicleDepartmentName", required = true)
|
@ApiModelProperty(value = "车辆所属部门名称", name = "vehicleDepartmentName", required = true)
|
||||||
@NotEmpty(message = "车辆所属部门名称不能为空")
|
@NotEmpty(message = "车辆所属部门名称不能为空")
|
||||||
|
|
@ -56,24 +55,22 @@ public class VehicleMessageForCorpAddCmd extends Command {
|
||||||
// @NotEmpty(message = "车辆所属人姓名(员工车辆)不能为空")
|
// @NotEmpty(message = "车辆所属人姓名(员工车辆)不能为空")
|
||||||
private String employeeVehicleUserName;
|
private String employeeVehicleUserName;
|
||||||
@ApiModelProperty(value = "企业ID", name = "corpinfoId", required = true)
|
@ApiModelProperty(value = "企业ID", name = "corpinfoId", required = true)
|
||||||
// @NotNull(message = "企业ID不能为空")
|
// @NotEmpty(message = "企业ID不能为空")
|
||||||
private Long corpId;
|
private Long corpId;
|
||||||
@ApiModelProperty(value = "附件地址", name = "attachmentUrl", required = true)
|
@ApiModelProperty(value = "附件地址", name = "attachmentUrl", required = true)
|
||||||
private String attachmentUrl;
|
private String attachmentUrl;
|
||||||
/**
|
|
||||||
* 审批信息
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "审核人ID", name = "approvalUserId")
|
@ApiModelProperty(value = "审核人ID", name = "approvalUserId")
|
||||||
public Long approvalUserId;
|
public Long approvalUserId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "审核人名字", name = "approvalUserName")
|
@ApiModelProperty(value = "审核人名字", name = "approvalUserName")
|
||||||
public String approvalUserName;
|
public Long approvalUserName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "审核人部门ID", name = "approvalDeptId")
|
@ApiModelProperty(value = "审核人部门ID", name = "approvalDeptId")
|
||||||
public Long approvalDeptId;
|
public Long approvalDeptId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "审核人部门名字", name = "approvalDeptName")
|
@ApiModelProperty(value = "审核人部门名字", name = "approvalDeptName")
|
||||||
public String approvalDeptName;
|
public Long approvalDeptName;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,16 +25,6 @@ public class VehicleMessagePageQry extends PageQuery {
|
||||||
* - `le`: 小于等于比较查询
|
* - `le`: 小于等于比较查询
|
||||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "车牌号")
|
private Integer likeLicenceType;
|
||||||
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 corpId;
|
private Long corpinfoId;
|
||||||
@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,18 +106,5 @@ 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,12 +18,9 @@ public class VehicleAuditLogCO extends ClientObject {
|
||||||
//业务id
|
//业务id
|
||||||
@ApiModelProperty(value = "业务id")
|
@ApiModelProperty(value = "业务id")
|
||||||
private String vehicleAuditLogId;
|
private String vehicleAuditLogId;
|
||||||
//审批批次(1.普通车辆.2危险化学品车辆)
|
//审批批次(审批全流程,一次申请一次id)
|
||||||
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)")
|
@ApiModelProperty(value = "审批批次(审批全流程,一次申请一次id)")
|
||||||
private Integer batchType;
|
private Long batchId;
|
||||||
//审批状态(0,申请;2.更新)
|
|
||||||
@ApiModelProperty(value = "审批状态(0,申请;2.更新)")
|
|
||||||
private Integer batchState;
|
|
||||||
//车辆id
|
//车辆id
|
||||||
@ApiModelProperty(value = "车辆id")
|
@ApiModelProperty(value = "车辆id")
|
||||||
private Long vehicleMessageId;
|
private Long vehicleMessageId;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
package com.zcloud.primeport.domain.gateway;
|
package com.zcloud.primeport.domain.gateway;
|
||||||
|
|
||||||
|
|
||||||
import com.zcloud.primeport.domain.model.VehicleAuditLogE;
|
import com.zcloud.primeport.domain.model.VehicleAuditLogE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* web-domain
|
* web-domain
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ public interface VehicleMessageGateway {
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
*/
|
*/
|
||||||
VehicleMessageE add(VehicleMessageE vehicleMessageE) ;
|
Boolean add(VehicleMessageE vehicleMessageE) ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改
|
* 修改
|
||||||
|
|
@ -24,11 +24,5 @@ public interface VehicleMessageGateway {
|
||||||
*/
|
*/
|
||||||
Boolean deletedVehicleMessageById(Long id);
|
Boolean deletedVehicleMessageById(Long id);
|
||||||
Boolean deletedVehicleMessageByIds(Long[] id);
|
Boolean deletedVehicleMessageByIds(Long[] id);
|
||||||
|
|
||||||
/**
|
|
||||||
* 详情
|
|
||||||
*/
|
|
||||||
VehicleMessageE getInfoById(Long id);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ package com.zcloud.primeport.domain.model;
|
||||||
|
|
||||||
import com.alibaba.cola.domain.Entity;
|
import com.alibaba.cola.domain.Entity;
|
||||||
import com.jjb.saas.framework.domain.model.BaseE;
|
import com.jjb.saas.framework.domain.model.BaseE;
|
||||||
import com.zcloud.gbscommon.utils.Tools;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
|
@ -22,10 +20,8 @@ public class VehicleAuditLogE extends BaseE {
|
||||||
private Long id;
|
private Long id;
|
||||||
//业务id
|
//业务id
|
||||||
private String vehicleAuditLogId;
|
private String vehicleAuditLogId;
|
||||||
//审批批次(1.普通车辆.2危险化学品车辆)
|
//审批批次(审批全流程,一次申请一次id)
|
||||||
private Integer batchType;
|
private Long batchId;
|
||||||
//审批状态(0,申请;2.更新)
|
|
||||||
private Integer batchState;
|
|
||||||
//车辆id
|
//车辆id
|
||||||
private Long vehicleMessageId;
|
private Long vehicleMessageId;
|
||||||
//审批人id
|
//审批人id
|
||||||
|
|
@ -42,29 +38,6 @@ public class VehicleAuditLogE extends BaseE {
|
||||||
private Integer status;
|
private Integer status;
|
||||||
//审批状态(0正常,1.废除)
|
//审批状态(0正常,1.废除)
|
||||||
private Integer stepType;
|
private Integer stepType;
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public Long approvalUserId;
|
|
||||||
public String approvalUserName;
|
|
||||||
public Long approvalDeptId;
|
|
||||||
public String approvalDeptName;
|
|
||||||
|
|
||||||
/** 监管端申请
|
|
||||||
* 申请车辆的时候,审批信息.
|
|
||||||
* @param examTypeE
|
|
||||||
*/
|
|
||||||
public void addFroVehicleLog ( VehicleAuditLogE examTypeE,Long vehicleMessageId,Integer batchState) {
|
|
||||||
this.userId = approvalUserId;
|
|
||||||
this.userName = approvalUserName;
|
|
||||||
this.deptId = approvalDeptId;
|
|
||||||
this.deptName = approvalDeptName;
|
|
||||||
this.batchState = batchState; //审批状态(0,申请;2.更新)
|
|
||||||
this.batchType = 1; //审批批次(1.普通车辆.2危险化学品车辆)
|
|
||||||
this.vehicleMessageId = vehicleMessageId; // //车辆id
|
|
||||||
this.status = 1; //审批状态(1未开始.2通过.3不通过)
|
|
||||||
this.stepType = 0; //审批状态(0正常,1.废除)
|
|
||||||
this.stepSort = 1; //审批步骤排序
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ package com.zcloud.primeport.domain.model;
|
||||||
import com.jjb.saas.framework.domain.model.BaseE;
|
import com.jjb.saas.framework.domain.model.BaseE;
|
||||||
import com.zcloud.gbscommon.utils.DateUtil;
|
import com.zcloud.gbscommon.utils.DateUtil;
|
||||||
import com.zcloud.gbscommon.utils.Tools;
|
import com.zcloud.gbscommon.utils.Tools;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import javax.tools.Tool;
|
import javax.tools.Tool;
|
||||||
|
|
@ -73,9 +72,8 @@ 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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,12 +22,11 @@ public class VehicleMessageGatewayImpl implements VehicleMessageGateway {
|
||||||
private final VehicleMessageRepository vehicleMessageRepository;
|
private final VehicleMessageRepository vehicleMessageRepository;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public VehicleMessageE add(VehicleMessageE vehicleMessageE) {
|
public Boolean add(VehicleMessageE vehicleMessageE) {
|
||||||
VehicleMessageDO d = new VehicleMessageDO();
|
VehicleMessageDO d = new VehicleMessageDO();
|
||||||
BeanUtils.copyProperties(vehicleMessageE, d);
|
BeanUtils.copyProperties(vehicleMessageE, d);
|
||||||
vehicleMessageRepository.save(d);
|
vehicleMessageRepository.save(d);
|
||||||
BeanUtils.copyProperties( d,vehicleMessageE);
|
return true;
|
||||||
return vehicleMessageE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -41,23 +40,15 @@ public class VehicleMessageGatewayImpl implements VehicleMessageGateway {
|
||||||
@Override
|
@Override
|
||||||
public Boolean deletedVehicleMessageById(Long id) {
|
public Boolean deletedVehicleMessageById(Long id) {
|
||||||
VehicleMessageDO d = new VehicleMessageDO();
|
VehicleMessageDO d = new VehicleMessageDO();
|
||||||
d.setDeleteEnum("TRUE");
|
|
||||||
d.setId( id);
|
d.setId( id);
|
||||||
boolean updateById = vehicleMessageRepository.updateById(d);
|
d.setDeleteEnum("TRUE");
|
||||||
return updateById;
|
vehicleMessageRepository.updateById(d);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@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,12 +26,9 @@ public class VehicleAuditLogDO extends BaseDO {
|
||||||
//业务id
|
//业务id
|
||||||
@ApiModelProperty(value = "业务id")
|
@ApiModelProperty(value = "业务id")
|
||||||
private String vehicleAuditLogId;
|
private String vehicleAuditLogId;
|
||||||
//审批批次(1.普通车辆.2危险化学品车辆)
|
//审批批次(审批全流程,一次申请一次id)
|
||||||
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)")
|
@ApiModelProperty(value = "审批批次(审批全流程,一次申请一次id)")
|
||||||
private Integer batchType;
|
private Long batchId;
|
||||||
//审批状态(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