Compare commits
24 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
809c3b7ffe | |
|
|
e5c0e4f9ba | |
|
|
b050ca0bd6 | |
|
|
8c52107808 | |
|
|
2d753fc63b | |
|
|
ccd008d33c | |
|
|
fd8e03cabb | |
|
|
30403abd28 | |
|
|
3c84472af5 | |
|
|
96d1c364df | |
|
|
4324babb91 | |
|
|
f3b1043092 | |
|
|
d2aedbf4a5 | |
|
|
8cb2294b0d | |
|
|
dcb0643a03 | |
|
|
b5a5405836 | |
|
|
9599de6232 | |
|
|
2929a7fc31 | |
|
|
2b4b8694d2 | |
|
|
2b927c7fd0 | |
|
|
d6c197873e | |
|
|
2a881522f6 | |
|
|
0b4ef50484 | |
|
|
33a992429e |
|
|
@ -6,6 +6,10 @@ application:
|
|||
version:
|
||||
gateway: primeport
|
||||
cn-name: 一级口门管理
|
||||
server:
|
||||
port: 801
|
||||
debug: true
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: ${application.name}${application.version}
|
||||
|
|
@ -20,7 +24,7 @@ spring:
|
|||
file-extension: yml
|
||||
shared-configs:
|
||||
- config-common.yml
|
||||
- config-port.yml
|
||||
# - config-port.yml
|
||||
- config-mq.yml
|
||||
- config-log.yml
|
||||
- config-sdk-server.yml
|
||||
|
|
@ -36,3 +40,4 @@ spring:
|
|||
discovery:
|
||||
server-addr: ${spring.cloud.nacos.config.server-addr}
|
||||
namespace: ${spring.cloud.nacos.config.namespace}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
server:
|
||||
port: 80
|
||||
debug: true
|
||||
port: 801
|
||||
debug: true
|
||||
|
|
|
|||
|
|
@ -0,0 +1,70 @@
|
|||
package com.zcloud.primeport.web;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.primeport.api.InspectionDeptServiceI;
|
||||
import com.zcloud.primeport.dto.InspectionDeptAddCmd;
|
||||
import com.zcloud.primeport.dto.InspectionDeptPageQry;
|
||||
import com.zcloud.primeport.dto.InspectionDeptUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptCO;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptInfoCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:07
|
||||
*/
|
||||
@Api(tags = "检查部门表")
|
||||
@RequestMapping("/${application.gateway}/inspectionDept")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class InspectionDeptController {
|
||||
private final InspectionDeptServiceI inspectionDeptService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<InspectionDeptCO> add(@Validated @RequestBody InspectionDeptAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return inspectionDeptService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<InspectionDeptCO> page(@RequestBody InspectionDeptPageQry qry) {
|
||||
return inspectionDeptService.listPage(qry);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<InspectionDeptInfoCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(inspectionDeptService.getInfoById( id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
inspectionDeptService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody InspectionDeptUpdateCmd inspectionDeptUpdateCmd) {
|
||||
inspectionDeptService.edit(inspectionDeptUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
package com.zcloud.primeport.web;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.primeport.api.InspectionVehicleServiceI;
|
||||
import com.zcloud.primeport.dto.InspectionVehicleAddCmd;
|
||||
import com.zcloud.primeport.dto.InspectionVehiclePageQry;
|
||||
import com.zcloud.primeport.dto.InspectionVehicleUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionVehicleCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@Api(tags = "检查部门对应车辆表")
|
||||
@RequestMapping("/${application.gateway}/inspectionVehicle")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class InspectionVehicleController {
|
||||
private final InspectionVehicleServiceI inspectionVehicleService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<InspectionVehicleCO> add(@Validated @RequestBody InspectionVehicleAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return inspectionVehicleService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<InspectionVehicleCO> page(@RequestBody InspectionVehiclePageQry qry) {
|
||||
return inspectionVehicleService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<InspectionVehicleCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<InspectionVehicleCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<InspectionVehicleCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new InspectionVehicleCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
inspectionVehicleService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
inspectionVehicleService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody InspectionVehicleUpdateCmd inspectionVehicleUpdateCmd) {
|
||||
inspectionVehicleService.edit(inspectionVehicleUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.primeport.web;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.primeport.api.MkmjApprovalUserServiceI;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserAddCmd;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserPageQry;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.MkmjApprovalUserCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@Api(tags = "一级口门门禁审批人")
|
||||
@RequestMapping("/${application.gateway}/mkmjApprovalUser")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class MkmjApprovalUserController {
|
||||
private final MkmjApprovalUserServiceI mkmjApprovalUserService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<MkmjApprovalUserCO> add(@Validated @RequestBody MkmjApprovalUserAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return mkmjApprovalUserService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<MkmjApprovalUserCO> page(@RequestBody MkmjApprovalUserPageQry qry) {
|
||||
return mkmjApprovalUserService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<MkmjApprovalUserCO> listAll(@RequestBody MkmjApprovalUserPageQry qry) {
|
||||
List<MkmjApprovalUserCO> mkmjApprovalUserCOS = mkmjApprovalUserService.listAll(qry);
|
||||
return MultiResponse.of(mkmjApprovalUserCOS);
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<MkmjApprovalUserCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new MkmjApprovalUserCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
mkmjApprovalUserService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
// @ApiOperation("删除多个")
|
||||
// @DeleteMapping("/ids")
|
||||
// public Response removeBatch(@RequestParam Long[] ids) {
|
||||
// mkmjApprovalUserService.removeBatch(ids);
|
||||
// return SingleResponse.buildSuccess();
|
||||
// }
|
||||
|
||||
// @ApiOperation("修改")
|
||||
// @PutMapping("/edit")
|
||||
// public SingleResponse edit(@Validated @RequestBody MkmjApprovalUserUpdateCmd mkmjApprovalUserUpdateCmd) {
|
||||
// mkmjApprovalUserService.edit(mkmjApprovalUserUpdateCmd);
|
||||
// return SingleResponse.buildSuccess();
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
package com.zcloud.primeport.web;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.primeport.api.VehicleAuditLogServiceI;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogApprovalCmd;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogPageQry;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleAuditLogCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleLogAndCarCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
@Api(tags = "")
|
||||
@RequestMapping("/${application.gateway}/vehicleAuditLog")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class VehicleAuditLogController {
|
||||
private final VehicleAuditLogServiceI vehicleAuditLogService;
|
||||
|
||||
// @ApiOperation("新增")
|
||||
// @PostMapping("/save")
|
||||
// public SingleResponse<VehicleAuditLogCO> add(@Validated @RequestBody VehicleAuditLogAddCmd cmd) {
|
||||
// SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
// return vehicleAuditLogService.add(cmd);
|
||||
// }
|
||||
|
||||
|
||||
// @ApiOperation("所有数据")
|
||||
// @GetMapping("/listAll")
|
||||
// public MultiResponse<VehicleAuditLogCO> listAll() {
|
||||
// return MultiResponse.of(new ArrayList<VehicleAuditLogCO>());
|
||||
// }
|
||||
// @ApiOperation("详情")
|
||||
// @GetMapping("/{id}")
|
||||
// public SingleResponse<VehicleAuditLogCO> getInfoById(@PathVariable("id") Long id) {
|
||||
// return SingleResponse.of(new VehicleAuditLogCO());
|
||||
// }
|
||||
// @ApiOperation("删除")
|
||||
// @DeleteMapping("/{id}")
|
||||
// public Response remove(@PathVariable("id") Long id) {
|
||||
// vehicleAuditLogService.remove(id);
|
||||
// return SingleResponse.buildSuccess();
|
||||
// }
|
||||
// @ApiOperation("删除多个")
|
||||
// @DeleteMapping("/ids")
|
||||
// public Response removeBatch(@RequestParam Long[] ids) {
|
||||
// vehicleAuditLogService.removeBatch(ids);
|
||||
// return SingleResponse.buildSuccess();
|
||||
// }
|
||||
// @ApiOperation("修改")
|
||||
// @PutMapping("/edit")
|
||||
// public SingleResponse edit(@Validated @RequestBody VehicleAuditLogUpdateCmd vehicleAuditLogUpdateCmd) {
|
||||
// vehicleAuditLogService.edit(vehicleAuditLogUpdateCmd);
|
||||
// return SingleResponse.buildSuccess();
|
||||
// }
|
||||
|
||||
/**
|
||||
* 审批通过/不通过
|
||||
* @param auditLogApprovalCmd
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("通过/不通过")
|
||||
@PutMapping("/approval")
|
||||
public SingleResponse approval(@Validated @RequestBody VehicleAuditLogApprovalCmd auditLogApprovalCmd) {
|
||||
vehicleAuditLogService.approval(auditLogApprovalCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<VehicleAuditLogCO> page(@RequestBody VehicleAuditLogPageQry qry) {
|
||||
return vehicleAuditLogService.listPage(qry);
|
||||
}
|
||||
@ApiOperation("获取登录人的审批车辆信息")
|
||||
@PostMapping("/listFromUser")
|
||||
public PageResponse<VehicleLogAndCarCO> pageAndCarInfo(@RequestBody VehicleAuditLogPageQry qry) {
|
||||
return vehicleAuditLogService.listPageAndCarInfo(qry);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
package com.zcloud.primeport.web;
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.primeport.api.VehicleBlackServiceI;
|
||||
import com.zcloud.primeport.dto.VehicleBlackAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleBlackPageQry;
|
||||
import com.zcloud.primeport.dto.VehicleBlackUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleBlackCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:08
|
||||
*/
|
||||
@Api(tags = "")
|
||||
@RequestMapping("/${application.gateway}/vehicleBlack")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class VehicleBlackController {
|
||||
private final VehicleBlackServiceI vehicleBlackService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<VehicleBlackCO> add(@Validated @RequestBody VehicleBlackAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return vehicleBlackService.add(cmd);
|
||||
}
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<VehicleBlackCO> page(@RequestBody VehicleBlackPageQry qry) {
|
||||
return vehicleBlackService.listPage(qry);
|
||||
}
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
vehicleBlackService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
package com.zcloud.primeport.web;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.primeport.api.VehicleMessageServiceI;
|
||||
import com.zcloud.primeport.dto.*;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleCountByCorpCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
/**
|
||||
* web-adapter
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
|
||||
/**
|
||||
* 车辆管理,相关方车辆.分子公司车辆.监管端车辆.临时访客车辆信息.
|
||||
*/
|
||||
@Api(tags = "车辆管理")
|
||||
@RequestMapping("/${application.gateway}/vehicleMessage")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageController {
|
||||
private final VehicleMessageServiceI vehicleMessageService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<VehicleMessageCO> add(@Validated @RequestBody VehicleMessageAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return vehicleMessageService.add(cmd);
|
||||
}
|
||||
@ApiOperation("新增-监管端,分子公司人员车辆")
|
||||
@PostMapping("/saveFroCorp")
|
||||
public SingleResponse<VehicleMessageCO> addForCorp(@Validated @RequestBody VehicleMessageForCorpAddCmd 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);
|
||||
}
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<VehicleMessageCO> page(@RequestBody VehicleMessagePageQry qry) {
|
||||
return vehicleMessageService.listPage(qry);
|
||||
}
|
||||
/**
|
||||
* 开启/关闭
|
||||
* @param statusCmd
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("修改状态")
|
||||
@PutMapping("/editStatus")
|
||||
public SingleResponse editStatus(@Validated @RequestBody VehicleMessageStatusCmd statusCmd) {
|
||||
vehicleMessageService.updateStatus(statusCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
@ApiOperation("分页-根据企业ID获取企业车辆数量")
|
||||
@PostMapping("/listFromCorp")
|
||||
public PageResponse<VehicleCountByCorpCO> listFromCorp(@RequestBody VehicleMessagePageQry qry) {
|
||||
return vehicleMessageService.listFromCorp(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("根据车牌号获取车辆信息")
|
||||
@GetMapping("/{licenceNo}")
|
||||
public SingleResponse<VehicleMessageCO> getInfoByLicenceNo(@PathVariable("licenceNo") String licenceNo) {
|
||||
VehicleMessageCO infoById = vehicleMessageService.infoByLicenceNo(licenceNo);
|
||||
return SingleResponse.of(infoById);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
package com.zcloud.primeport.web;
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.primeport.api.VehicleViolationsServiceI;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsPageQry;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsListCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:29
|
||||
*/
|
||||
@Api(tags = "车辆违规记录")
|
||||
@RequestMapping("/${application.gateway}/vehicleViolations")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class VehicleViolationsController {
|
||||
private final VehicleViolationsServiceI vehicleViolationsService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<VehicleViolationsCO> add(@Validated @RequestBody VehicleViolationsAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return vehicleViolationsService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<VehicleViolationsCO> page(@RequestBody VehicleViolationsPageQry qry) {
|
||||
return vehicleViolationsService.listPage(qry);
|
||||
}
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<VehicleViolationsCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(vehicleViolationsService.queryById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
vehicleViolationsService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody VehicleViolationsUpdateCmd vehicleViolationsUpdateCmd) {
|
||||
vehicleViolationsService.edit(vehicleViolationsUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("分页-和违规次数")
|
||||
@PostMapping("/pageAncCount")
|
||||
public PageResponse<VehicleViolationsListCO> pageAncCount(@RequestBody VehicleViolationsPageQry qry) {
|
||||
return vehicleViolationsService.listAndCountPage(qry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.InspectionDeptGateway;
|
||||
import com.zcloud.primeport.domain.gateway.InspectionVehicleGateway;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleMessageGateway;
|
||||
import com.zcloud.primeport.domain.model.InspectionDeptE;
|
||||
import com.zcloud.primeport.domain.model.InspectionVehicleE;
|
||||
import com.zcloud.primeport.domain.model.VehicleMessageE;
|
||||
import com.zcloud.primeport.dto.InspectionDeptAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleInspectionAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:07
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class InspectionDeptAddExe {
|
||||
private final InspectionDeptGateway inspectionDeptGateway;
|
||||
private final InspectionVehicleGateway inspectionVehicleGateway;
|
||||
private final VehicleMessageGateway vehicleMessageGateway;
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(InspectionDeptAddCmd cmd) {
|
||||
InspectionDeptE examTypeE = new InspectionDeptE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
boolean res = false;
|
||||
try {
|
||||
InspectionDeptE insDeptAdd = inspectionDeptGateway.add(examTypeE);
|
||||
/**
|
||||
* 1.增加车辆
|
||||
* 2.增加车辆和部门的关系
|
||||
*/
|
||||
for (VehicleInspectionAddCmd vehicleInspectionAddCmd : cmd.getVehicleMessageAddCmd()) {
|
||||
VehicleMessageE vehicleMessageE = new VehicleMessageE();
|
||||
BeanUtils.copyProperties(vehicleInspectionAddCmd, vehicleMessageE);
|
||||
vehicleMessageE.VehicleMessageForInspection(vehicleMessageE);
|
||||
VehicleMessageE vehicleAdd = vehicleMessageGateway.add(vehicleMessageE);// 添加车辆信息
|
||||
InspectionVehicleE inspectionVehicleE = new InspectionVehicleE();
|
||||
inspectionVehicleE.addDeptInspection(insDeptAdd.getId(),vehicleAdd.getId()); //车辆和部门之间的关系
|
||||
res = inspectionVehicleGateway.add(inspectionVehicleE);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.InspectionDeptGateway;
|
||||
import com.zcloud.primeport.domain.gateway.InspectionVehicleGateway;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleMessageGateway;
|
||||
import com.zcloud.primeport.persistence.dataobject.InspectionVehicleDO;
|
||||
import com.zcloud.primeport.persistence.repository.InspectionVehicleRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:08
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class InspectionDeptRemoveExe {
|
||||
private final InspectionDeptGateway inspectionDeptGateway;
|
||||
private final InspectionVehicleRepository inspectionVehicleRepository;
|
||||
private final InspectionVehicleGateway inspectionVehicleGateway;
|
||||
private final VehicleMessageGateway vehicleMessageGateway;
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = inspectionDeptGateway.deletedInspectionDeptById(id);
|
||||
List<InspectionVehicleDO> vehicleDOS = inspectionVehicleRepository.queryInspectionVehicleByDeptId(id); //获取这个部门下的车辆信息
|
||||
Map<Long, InspectionVehicleDO> vehicleMap = vehicleDOS.stream().collect(java.util.stream.Collectors.toMap(InspectionVehicleDO::getId, InspectionVehicleDO -> InspectionVehicleDO)); //循环一下
|
||||
for (InspectionVehicleDO vehicleDO : vehicleMap.values()){ ///删除车辆 删除关系
|
||||
inspectionVehicleGateway.deletedInspectionVehicleById(vehicleDO.getId());
|
||||
vehicleMessageGateway.deletedVehicleMessageById(vehicleDO.getVehicleMessageId());
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = inspectionDeptGateway.deletedInspectionDeptByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.InspectionDeptGateway;
|
||||
import com.zcloud.primeport.domain.gateway.InspectionVehicleGateway;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleMessageGateway;
|
||||
import com.zcloud.primeport.domain.model.InspectionDeptE;
|
||||
import com.zcloud.primeport.domain.model.InspectionVehicleE;
|
||||
import com.zcloud.primeport.domain.model.VehicleMessageE;
|
||||
import com.zcloud.primeport.dto.InspectionDeptUpdateCmd;
|
||||
import com.zcloud.primeport.dto.VehicleInspectionUpdateCmd;
|
||||
import com.zcloud.primeport.persistence.dataobject.InspectionVehicleDO;
|
||||
import com.zcloud.primeport.persistence.repository.InspectionVehicleRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:08
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class InspectionDeptUpdateExe {
|
||||
private final InspectionDeptGateway inspectionDeptGateway;
|
||||
private final InspectionVehicleGateway inspectionVehicleGateway;
|
||||
private final VehicleMessageGateway vehicleMessageGateway;
|
||||
|
||||
private final InspectionVehicleRepository inspectionVehicleRepository;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(InspectionDeptUpdateCmd inspectionDeptUpdateCmd) {
|
||||
InspectionDeptE inspectionDeptE = new InspectionDeptE();
|
||||
BeanUtils.copyProperties(inspectionDeptUpdateCmd, inspectionDeptE);
|
||||
boolean res = inspectionDeptGateway.update(inspectionDeptE);
|
||||
List<InspectionVehicleDO> vehicleDOS = inspectionVehicleRepository.queryInspectionVehicleByDeptId(inspectionDeptE.getId()); //获取这个部门下的车辆信息
|
||||
Map<Long, InspectionVehicleDO> vehicleMap = vehicleDOS.stream().collect(java.util.stream.Collectors.toMap(InspectionVehicleDO::getId, InspectionVehicleDO -> InspectionVehicleDO)); //循环一下
|
||||
for (VehicleInspectionUpdateCmd vehicleInspectionAddCmd : inspectionDeptUpdateCmd.getVehicleMessageAddCmd()) {
|
||||
if (vehicleInspectionAddCmd.getId() == null){ //新增
|
||||
VehicleMessageE vehicleMessageE = new VehicleMessageE();
|
||||
BeanUtils.copyProperties(vehicleInspectionAddCmd, vehicleMessageE);
|
||||
vehicleMessageE.VehicleMessageForInspection(vehicleMessageE);
|
||||
VehicleMessageE vehicleAdd = vehicleMessageGateway.add(vehicleMessageE);// 添加车辆信息
|
||||
InspectionVehicleE inspectionVehicleE = new InspectionVehicleE();
|
||||
inspectionVehicleE.addDeptInspection(inspectionDeptUpdateCmd.getId(),vehicleAdd.getId()); //车辆和部门之间的关系
|
||||
res = inspectionVehicleGateway.add(inspectionVehicleE);
|
||||
}else{
|
||||
//修改
|
||||
VehicleMessageE vehicleMessageE = new VehicleMessageE();
|
||||
BeanUtils.copyProperties(vehicleInspectionAddCmd, vehicleMessageE);
|
||||
vehicleMessageE.VehicleMessageForInspection(vehicleMessageE);
|
||||
vehicleMessageGateway.update(vehicleMessageE);// 添加车辆信息
|
||||
}
|
||||
if (vehicleMap.containsKey(vehicleInspectionAddCmd.getId())){
|
||||
vehicleMap.remove(vehicleInspectionAddCmd.getId());
|
||||
}
|
||||
}
|
||||
for (InspectionVehicleDO vehicleDO : vehicleMap.values()){ ///如果没返回回来,就删除车辆 删除关系
|
||||
inspectionVehicleGateway.deletedInspectionVehicleById(vehicleDO.getId());
|
||||
vehicleMessageGateway.deletedVehicleMessageById(vehicleDO.getVehicleMessageId());
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.primeport.command;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.InspectionVehicleGateway;
|
||||
import com.zcloud.primeport.domain.model.InspectionVehicleE;
|
||||
import com.zcloud.primeport.dto.InspectionVehicleAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class InspectionVehicleAddExe {
|
||||
private final InspectionVehicleGateway inspectionVehicleGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(InspectionVehicleAddCmd cmd) {
|
||||
InspectionVehicleE examTypeE = new InspectionVehicleE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = inspectionVehicleGateway.add(examTypeE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.InspectionVehicleGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class InspectionVehicleRemoveExe {
|
||||
private final InspectionVehicleGateway inspectionVehicleGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = inspectionVehicleGateway.deletedInspectionVehicleById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = inspectionVehicleGateway.deletedInspectionVehicleByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.InspectionVehicleGateway;
|
||||
import com.zcloud.primeport.domain.model.InspectionVehicleE;
|
||||
import com.zcloud.primeport.dto.InspectionVehicleUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class InspectionVehicleUpdateExe {
|
||||
private final InspectionVehicleGateway inspectionVehicleGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(InspectionVehicleUpdateCmd inspectionVehicleUpdateCmd) {
|
||||
InspectionVehicleE inspectionVehicleE = new InspectionVehicleE();
|
||||
BeanUtils.copyProperties(inspectionVehicleUpdateCmd, inspectionVehicleE);
|
||||
boolean res = inspectionVehicleGateway.update(inspectionVehicleE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.MkmjApprovalUserGateway;
|
||||
import com.zcloud.primeport.domain.model.MkmjApprovalUserE;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MkmjApprovalUserAddExe {
|
||||
private final MkmjApprovalUserGateway mkmjApprovalUserGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(MkmjApprovalUserAddCmd cmd) {
|
||||
MkmjApprovalUserE examTypeE = new MkmjApprovalUserE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = mkmjApprovalUserGateway.add(examTypeE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.MkmjApprovalUserGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MkmjApprovalUserRemoveExe {
|
||||
private final MkmjApprovalUserGateway mkmjApprovalUserGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = mkmjApprovalUserGateway.deletedMkmjApprovalUserById(id);
|
||||
if(!res){
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = mkmjApprovalUserGateway.deletedMkmjApprovalUserByIds(ids);
|
||||
if(!res){
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.MkmjApprovalUserGateway;
|
||||
import com.zcloud.primeport.domain.model.MkmjApprovalUserE;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MkmjApprovalUserUpdateExe {
|
||||
private final MkmjApprovalUserGateway mkmjApprovalUserGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(MkmjApprovalUserUpdateCmd mkmjApprovalUserUpdateCmd) {
|
||||
MkmjApprovalUserE mkmjApprovalUserE = new MkmjApprovalUserE();
|
||||
BeanUtils.copyProperties(mkmjApprovalUserUpdateCmd, mkmjApprovalUserE);
|
||||
boolean res = mkmjApprovalUserGateway.update(mkmjApprovalUserE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleAuditLogGateway;
|
||||
import com.zcloud.primeport.domain.model.VehicleAuditLogE;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleAuditLogAddExe {
|
||||
private final VehicleAuditLogGateway vehicleAuditLogGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(VehicleAuditLogAddCmd cmd) {
|
||||
VehicleAuditLogE examTypeE = new VehicleAuditLogE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = vehicleAuditLogGateway.add(examTypeE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleAuditLogGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleAuditLogRemoveExe {
|
||||
private final VehicleAuditLogGateway vehicleAuditLogGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = vehicleAuditLogGateway.deletedVehicleAuditLogById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = vehicleAuditLogGateway.deletedVehicleAuditLogByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleAuditLogGateway;
|
||||
import com.zcloud.primeport.domain.model.VehicleAuditLogE;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogApprovalCmd;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:47
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleAuditLogUpdateExe {
|
||||
private final VehicleAuditLogGateway vehicleAuditLogGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(VehicleAuditLogUpdateCmd vehicleAuditLogUpdateCmd) {
|
||||
VehicleAuditLogE vehicleAuditLogE = new VehicleAuditLogE();
|
||||
BeanUtils.copyProperties(vehicleAuditLogUpdateCmd, vehicleAuditLogE);
|
||||
boolean res = vehicleAuditLogGateway.update(vehicleAuditLogE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 审批功能
|
||||
* @param auditLogApprovalCmd
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(VehicleAuditLogApprovalCmd auditLogApprovalCmd) {
|
||||
boolean res = false;
|
||||
VehicleAuditLogE approval = new VehicleAuditLogE();
|
||||
VehicleAuditLogE vehicleAuditLogE = vehicleAuditLogGateway.queryVehicleAuditLogByVehicleMessageId(auditLogApprovalCmd.getVehicleMessageId()); //找到这个车辆未审批通过的记录
|
||||
if (vehicleAuditLogE == null){
|
||||
throw new BizException("未找到车辆审批记录!");
|
||||
}
|
||||
if (vehicleAuditLogE.getStatus() == 2){ //2通过
|
||||
approval = approval.approvalTongguo(vehicleAuditLogE.getId());
|
||||
}else if (vehicleAuditLogE.getStatus() == 3){ //3不通过
|
||||
approval = approval.approvalNoTongguo(vehicleAuditLogE.getId(),auditLogApprovalCmd.getComments());
|
||||
}else if (vehicleAuditLogE.getStatus() == 1){
|
||||
throw new BizException("车辆已审批通过!");
|
||||
}
|
||||
res = vehicleAuditLogGateway.update(approval);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.primeport.command;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleBlackGateway;
|
||||
import com.zcloud.primeport.domain.model.VehicleBlackE;
|
||||
import com.zcloud.primeport.dto.VehicleBlackAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:08
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleBlackAddExe {
|
||||
private final VehicleBlackGateway vehicleBlackGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(VehicleBlackAddCmd cmd) {
|
||||
VehicleBlackE vehicleBlackE = new VehicleBlackE();
|
||||
BeanUtils.copyProperties(cmd, vehicleBlackE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = vehicleBlackGateway.add(vehicleBlackE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleBlackGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:09
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleBlackRemoveExe {
|
||||
private final VehicleBlackGateway vehicleBlackGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = vehicleBlackGateway.deletedVehicleBlackById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = vehicleBlackGateway.deletedVehicleBlackByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.primeport.command;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleBlackGateway;
|
||||
import com.zcloud.primeport.domain.model.VehicleBlackE;
|
||||
import com.zcloud.primeport.dto.VehicleBlackUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:09
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleBlackUpdateExe {
|
||||
private final VehicleBlackGateway vehicleBlackGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(VehicleBlackUpdateCmd vehicleBlackUpdateCmd) {
|
||||
VehicleBlackE vehicleBlackE = new VehicleBlackE();
|
||||
BeanUtils.copyProperties(vehicleBlackUpdateCmd, vehicleBlackE);
|
||||
boolean res = vehicleBlackGateway.update(vehicleBlackE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
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.model.VehicleAuditLogE;
|
||||
import com.zcloud.primeport.domain.model.VehicleMessageE;
|
||||
import com.zcloud.primeport.dto.VehicleMessageAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleMessageForCorpAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageAddExe {
|
||||
private final VehicleMessageGateway vehicleMessageGateway;
|
||||
private final VehicleAuditLogGateway vehicleAuditLogGateway;
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(VehicleMessageAddCmd cmd) {
|
||||
VehicleMessageE examTypeE = new VehicleMessageE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
boolean res = false;
|
||||
try {
|
||||
VehicleMessageE add = vehicleMessageGateway.add(examTypeE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean executeForCorp(VehicleMessageForCorpAddCmd cmd) {
|
||||
VehicleMessageE examTypeE = new VehicleMessageE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
examTypeE = examTypeE.VehicleMessageForCorpE(examTypeE);
|
||||
boolean res = false;
|
||||
try {
|
||||
VehicleMessageE add = 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) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.primeport.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleMessageGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageRemoveExe {
|
||||
private final VehicleMessageGateway vehicleMessageGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = vehicleMessageGateway.deletedVehicleMessageById(id);
|
||||
if(!res){
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = vehicleMessageGateway.deletedVehicleMessageByIds(ids);
|
||||
if(!res){
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package com.zcloud.primeport.command;
|
||||
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.model.VehicleAuditLogE;
|
||||
import com.zcloud.primeport.domain.model.VehicleMessageE;
|
||||
import com.zcloud.primeport.dto.VehicleMessageStatusCmd;
|
||||
import com.zcloud.primeport.dto.VehicleMessageUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageUpdateExe {
|
||||
private final VehicleMessageGateway vehicleMessageGateway;
|
||||
private final VehicleAuditLogGateway vehicleAuditLogGateway;
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(VehicleMessageUpdateCmd vehicleMessageUpdateCmd) {
|
||||
VehicleMessageE vehicleMessageE = new VehicleMessageE();
|
||||
BeanUtils.copyProperties(vehicleMessageUpdateCmd, vehicleMessageE);
|
||||
boolean res = vehicleMessageGateway.update(vehicleMessageE);
|
||||
if (!res) {
|
||||
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("修改失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void updateStatus(VehicleMessageStatusCmd statusCmd) {
|
||||
VehicleMessageE vehicleMessageE = new VehicleMessageE();
|
||||
BeanUtils.copyProperties(statusCmd, vehicleMessageE);
|
||||
vehicleMessageE.updateFromCorp(vehicleMessageE);
|
||||
boolean res = vehicleMessageGateway.update(vehicleMessageE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.zcloud.primeport.command;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleBlackGateway;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleViolationsGateway;
|
||||
import com.zcloud.primeport.domain.model.VehicleBlackE;
|
||||
import com.zcloud.primeport.domain.model.VehicleViolationsE;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:28
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleViolationsAddExe {
|
||||
private final VehicleViolationsGateway vehicleViolationsGateway;
|
||||
private final VehicleBlackGateway vehicleBlackGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(VehicleViolationsAddCmd cmd) {
|
||||
VehicleViolationsE vehicleViolationsE = new VehicleViolationsE();
|
||||
BeanUtils.copyProperties(cmd, vehicleViolationsE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = vehicleViolationsGateway.add(vehicleViolationsE);
|
||||
Long count = vehicleViolationsGateway.getCountByVehicleId(vehicleViolationsE.getVehicleId());
|
||||
if (count >= 5){ //如果超过5次违规,则加入黑名单
|
||||
VehicleBlackE vehicleBlackE = new VehicleBlackE();
|
||||
vehicleBlackE.setVehicleId(vehicleViolationsE.getVehicleId());
|
||||
res = vehicleBlackGateway.add(vehicleBlackE);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
package com.zcloud.primeport.command;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleViolationsGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:29
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleViolationsRemoveExe {
|
||||
private final VehicleViolationsGateway vehicleViolationsGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = vehicleViolationsGateway.deletedVehicleViolationsById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = vehicleViolationsGateway.deletedVehicleViolationsByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.primeport.command;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.primeport.domain.gateway.VehicleViolationsGateway;
|
||||
import com.zcloud.primeport.domain.model.VehicleViolationsE;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:29
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleViolationsUpdateExe {
|
||||
private final VehicleViolationsGateway vehicleViolationsGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(VehicleViolationsUpdateCmd vehicleViolationsUpdateCmd) {
|
||||
VehicleViolationsE vehicleViolationsE = new VehicleViolationsE();
|
||||
BeanUtils.copyProperties(vehicleViolationsUpdateCmd, vehicleViolationsE);
|
||||
boolean res = vehicleViolationsGateway.update(vehicleViolationsE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.primeport.command.convertor;
|
||||
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptCO;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptInfoCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.InspectionDeptDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:07
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface InspectionDeptCoConvertor {
|
||||
/**
|
||||
* @param inspectionDeptDOs
|
||||
* @return
|
||||
*/
|
||||
List<InspectionDeptCO> converDOsToCOs(List<InspectionDeptDO> inspectionDeptDOs);
|
||||
|
||||
|
||||
InspectionDeptInfoCO converDoToCo (InspectionDeptDO inspectionDeptDO);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package com.zcloud.primeport.command.convertor;
|
||||
|
||||
import com.zcloud.primeport.domain.model.InspectionVehicleE;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionVehicleCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.InspectionVehicleDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface InspectionVehicleCoConvertor {
|
||||
/**
|
||||
* @param inspectionVehicleDOs
|
||||
* @return
|
||||
*/
|
||||
List<InspectionVehicleCO> converDOsToCOs(List<InspectionVehicleDO> inspectionVehicleDOs);
|
||||
|
||||
|
||||
/**
|
||||
* @param inspectionVehicleDO
|
||||
* @return
|
||||
*/
|
||||
InspectionVehicleE converDOToE( InspectionVehicleDO inspectionVehicleDO);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.primeport.command.convertor;
|
||||
|
||||
import com.zcloud.primeport.dto.clientobject.MkmjApprovalUserCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.MkmjApprovalUserDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface MkmjApprovalUserCoConvertor {
|
||||
/**
|
||||
* @param mkmjApprovalUserDOs
|
||||
* @return
|
||||
*/
|
||||
List<MkmjApprovalUserCO> converDOsToCOs(List<MkmjApprovalUserDO> mkmjApprovalUserDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.primeport.command.convertor;
|
||||
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleAuditLogCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleLogAndCarCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleAuditLogDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface VehicleAuditLogCoConvertor {
|
||||
/**
|
||||
* @param vehicleAuditLogDOs
|
||||
* @return
|
||||
*/
|
||||
List<VehicleAuditLogCO> converDOsToCOs(List<VehicleAuditLogDO> vehicleAuditLogDOs);
|
||||
|
||||
List<VehicleLogAndCarCO> converCarDOsToCOs2(List<VehicleAuditLogDO> vehicleAuditLogDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package com.zcloud.primeport.command.convertor;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleBlackCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleBlackDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:08
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface VehicleBlackCoConvertor {
|
||||
/**
|
||||
* @param vehicleBlackDOs
|
||||
* @return
|
||||
*/
|
||||
List<VehicleBlackCO> converDOsToCOs(List<VehicleBlackDO> vehicleBlackDOs);
|
||||
|
||||
VehicleBlackCO converDOToCO(VehicleBlackDO vehicleBlackDO);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.zcloud.primeport.command.convertor;
|
||||
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleCountByCorpCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleDeptInfoCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleCountByCorpDO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleMessageDO;
|
||||
import org.mapstruct.Mapper;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface VehicleMessageCoConvertor {
|
||||
/**
|
||||
* @param vehicleMessageDOs
|
||||
* @return
|
||||
*/
|
||||
List<VehicleMessageCO> converDOsToCOs(List<VehicleMessageDO> vehicleMessageDOs);
|
||||
VehicleMessageCO converDOsToCOs(VehicleMessageDO vehicleMessageDOs);
|
||||
|
||||
/**
|
||||
* @param vehicleMessageDOs
|
||||
* @return
|
||||
*/
|
||||
List<VehicleCountByCorpCO> converCountDOsToCOs(List<VehicleCountByCorpDO> vehicleMessageDOs);
|
||||
|
||||
|
||||
List<VehicleDeptInfoCO> converDOsToDeptInfoCOs(List<VehicleMessageDO> vehicleMessageDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package com.zcloud.primeport.command.convertor;
|
||||
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsListCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleCountFromViolationsDO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleViolationsDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:29
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface VehicleViolationsCoConvertor {
|
||||
/**
|
||||
* @param vehicleViolationsDOs
|
||||
* @return
|
||||
*/
|
||||
List<VehicleViolationsCO> converDOsToCOs(List<VehicleViolationsDO> vehicleViolationsDOs);
|
||||
|
||||
VehicleViolationsCO converDOToCO(VehicleViolationsDO vehicleViolationsDO);
|
||||
|
||||
|
||||
List<VehicleViolationsListCO> converFromViolationsDOsToCOs(List<VehicleCountFromViolationsDO> vehicleViolationsDOs);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
package com.zcloud.primeport.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.zcloud.primeport.command.convertor.InspectionDeptCoConvertor;
|
||||
import com.zcloud.primeport.command.convertor.VehicleMessageCoConvertor;
|
||||
import com.zcloud.primeport.dto.InspectionDeptPageQry;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptCO;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptInfoCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleDeptInfoCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.InspectionDeptDO;
|
||||
import com.zcloud.primeport.persistence.dataobject.InspectionVehicleDO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleMessageDO;
|
||||
import com.zcloud.primeport.persistence.repository.InspectionDeptRepository;
|
||||
import com.zcloud.primeport.persistence.repository.InspectionVehicleRepository;
|
||||
import com.zcloud.primeport.persistence.repository.VehicleMessageRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:07
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class InspectionDeptQueryExe {
|
||||
private final InspectionDeptRepository inspectionDeptRepository;
|
||||
private final InspectionDeptCoConvertor inspectionDeptCoConvertor;
|
||||
|
||||
private final InspectionVehicleRepository inspectionVehicleRepository;
|
||||
private final VehicleMessageRepository vehicleMessageRepository;
|
||||
|
||||
private final VehicleMessageCoConvertor vehicleMessageCoConvertor;
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param inspectionDeptPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<InspectionDeptCO> execute(InspectionDeptPageQry inspectionDeptPageQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(inspectionDeptPageQry);
|
||||
PageResponse<InspectionDeptDO> pageResponse = inspectionDeptRepository.listPage(parmas);
|
||||
List<InspectionDeptCO> examCenterCOS = inspectionDeptCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id获取详情
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public InspectionDeptInfoCO executeById(Long id) {
|
||||
InspectionDeptDO inspectionDeptDO = inspectionDeptRepository.getById(id);
|
||||
InspectionDeptInfoCO deptInfoCO = inspectionDeptCoConvertor.converDoToCo(inspectionDeptDO); // 获取部门信息
|
||||
List<InspectionVehicleDO> inspectionVehicleDOS = inspectionVehicleRepository.queryInspectionVehicleByDeptId(id); // 获取部门下的车辆信息
|
||||
Long[] ids = new Long[inspectionVehicleDOS.size()];
|
||||
for (int i = 0; i < inspectionVehicleDOS.size(); i++) {
|
||||
ids[i] = inspectionVehicleDOS.get(i).getVehicleMessageId();
|
||||
}
|
||||
List<VehicleMessageDO> vehicleMessageDOS = vehicleMessageRepository.listAll(ids); // 获取车辆信息
|
||||
List<VehicleDeptInfoCO> vehicleMessageCOS = vehicleMessageCoConvertor.converDOsToDeptInfoCOs(vehicleMessageDOS); // 获取车辆信息
|
||||
deptInfoCO.setVehicleDeptInfoCOS(vehicleMessageCOS);
|
||||
return deptInfoCO;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.primeport.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.zcloud.primeport.command.convertor.InspectionVehicleCoConvertor;
|
||||
import com.zcloud.primeport.dto.InspectionVehiclePageQry;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionVehicleCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.InspectionVehicleDO;
|
||||
import com.zcloud.primeport.persistence.repository.InspectionVehicleRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class InspectionVehicleQueryExe {
|
||||
private final InspectionVehicleRepository inspectionVehicleRepository;
|
||||
private final InspectionVehicleCoConvertor inspectionVehicleCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param inspectionVehiclePageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<InspectionVehicleCO> execute(InspectionVehiclePageQry inspectionVehiclePageQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(inspectionVehiclePageQry);
|
||||
PageResponse<InspectionVehicleDO> pageResponse = inspectionVehicleRepository.listPage(parmas);
|
||||
List<InspectionVehicleCO> examCenterCOS = inspectionVehicleCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
package com.zcloud.primeport.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.zcloud.primeport.command.convertor.MkmjApprovalUserCoConvertor;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserPageQry;
|
||||
import com.zcloud.primeport.dto.clientobject.MkmjApprovalUserCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.MkmjApprovalUserDO;
|
||||
import com.zcloud.primeport.persistence.repository.MkmjApprovalUserRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MkmjApprovalUserQueryExe {
|
||||
private final MkmjApprovalUserRepository mkmjApprovalUserRepository;
|
||||
private final MkmjApprovalUserCoConvertor mkmjApprovalUserCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param mkmjApprovalUserPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<MkmjApprovalUserCO> execute(MkmjApprovalUserPageQry mkmjApprovalUserPageQry) {
|
||||
Map<String,Object> parmas = PageQueryHelper.toHashMap(mkmjApprovalUserPageQry);
|
||||
PageResponse<MkmjApprovalUserDO> pageResponse = mkmjApprovalUserRepository.listPage(parmas);
|
||||
List<MkmjApprovalUserCO> examCenterCOS = mkmjApprovalUserCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
|
||||
public List<MkmjApprovalUserCO> executeList(MkmjApprovalUserPageQry mkmjApprovalUserPageQry) {
|
||||
Map<String,Object> parmas = PageQueryHelper.toHashMap(mkmjApprovalUserPageQry);
|
||||
List<MkmjApprovalUserDO> examCenterDOs = mkmjApprovalUserRepository.listAll( parmas);
|
||||
List<MkmjApprovalUserCO> examCenterCOS = mkmjApprovalUserCoConvertor.converDOsToCOs(examCenterDOs);
|
||||
return examCenterCOS;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package com.zcloud.primeport.command.query;
|
||||
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.primeport.command.convertor.VehicleAuditLogCoConvertor;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogPageQry;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleAuditLogCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleLogAndCarCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleAuditLogDO;
|
||||
import com.zcloud.primeport.persistence.repository.VehicleAuditLogRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleAuditLogQueryExe {
|
||||
private final VehicleAuditLogRepository vehicleAuditLogRepository;
|
||||
private final VehicleAuditLogCoConvertor vehicleAuditLogCoConvertor;
|
||||
private final VehicleMessageQueryExe vehicleMessageQueryExe;
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param vehicleAuditLogPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<VehicleAuditLogCO> execute(VehicleAuditLogPageQry vehicleAuditLogPageQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(vehicleAuditLogPageQry);
|
||||
PageResponse<VehicleAuditLogDO> pageResponse = vehicleAuditLogRepository.listPage(parmas);
|
||||
List<VehicleAuditLogCO> examCenterCOS = vehicleAuditLogCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public PageResponse<VehicleLogAndCarCO> executeAndCarInfo(VehicleAuditLogPageQry vehicleAuditLogPageQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(vehicleAuditLogPageQry);
|
||||
PageResponse<VehicleAuditLogDO> pageResponse = vehicleAuditLogRepository.listPage(parmas);
|
||||
List<VehicleLogAndCarCO> examCenterCOS = vehicleAuditLogCoConvertor.converCarDOsToCOs2(pageResponse.getData());
|
||||
|
||||
Long [] vehicleMessageIds = new Long[examCenterCOS.size()];
|
||||
for (int i = 0; i < examCenterCOS.size(); i++) {
|
||||
vehicleMessageIds[i] = examCenterCOS.get(i).getVehicleMessageId();
|
||||
}
|
||||
Map<Long, VehicleMessageCO> longVehicleMessageCOMap = vehicleMessageQueryExe.listMapAllByIds(vehicleMessageIds); // 根据id 获取信息
|
||||
for (VehicleLogAndCarCO vehicleAuditLogCO : examCenterCOS){
|
||||
if (longVehicleMessageCOMap.containsKey(vehicleAuditLogCO.getVehicleMessageId())){
|
||||
vehicleAuditLogCO.setVehicleMessageCO(longVehicleMessageCOMap.get(vehicleAuditLogCO.getVehicleMessageId()));
|
||||
}
|
||||
}
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package com.zcloud.primeport.command.query;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.primeport.command.convertor.VehicleBlackCoConvertor;
|
||||
import com.zcloud.primeport.dto.VehicleBlackPageQry;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleBlackCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleBlackDO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleMessageDO;
|
||||
import com.zcloud.primeport.persistence.repository.VehicleBlackRepository;
|
||||
import com.zcloud.primeport.persistence.repository.VehicleMessageRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:09
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleBlackQueryExe {
|
||||
private final VehicleBlackRepository vehicleBlackRepository;
|
||||
private final VehicleBlackCoConvertor vehicleBlackCoConvertor;
|
||||
private final VehicleMessageRepository vehicleMessageRepository;
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public VehicleBlackCO queryById(Long id) {
|
||||
return vehicleBlackCoConvertor.converDOToCO(vehicleBlackRepository.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param vehicleBlackPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<VehicleBlackCO> execute(VehicleBlackPageQry vehicleBlackPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(vehicleBlackPageQry);
|
||||
PageResponse<VehicleBlackDO> pageResponse = vehicleBlackRepository.listPage(params);
|
||||
List<VehicleBlackCO> examCenterCOS = vehicleBlackCoConvertor.converDOsToCOs(pageResponse.getData()); //分页获取信息
|
||||
Long[] vehicleIds = examCenterCOS.stream().map(VehicleBlackCO::getVehicleId).toArray(Long[]::new);
|
||||
List<VehicleMessageDO> vehicleMessageDOS = vehicleMessageRepository.listAll(vehicleIds); // 根据id获取信息
|
||||
Map<Long, VehicleMessageDO> vehicleMessageDOMap = new HashMap<>();
|
||||
for (VehicleMessageDO vehicleMessageDO : vehicleMessageDOS) {
|
||||
vehicleMessageDOMap.put(vehicleMessageDO.getId(), vehicleMessageDO);
|
||||
}
|
||||
for (VehicleBlackCO vehicleBlackCO : examCenterCOS) {
|
||||
if (vehicleMessageDOMap.containsKey(vehicleBlackCO.getVehicleId())){
|
||||
vehicleBlackCO.setVehicleId(vehicleMessageDOMap.get(vehicleBlackCO.getVehicleId()).getId());
|
||||
}
|
||||
}
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
package com.zcloud.primeport.command.query;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.zcloud.primeport.command.convertor.VehicleMessageCoConvertor;
|
||||
import com.zcloud.primeport.dto.VehicleMessagePageQry;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleCountByCorpCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleCountByCorpDO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleMessageDO;
|
||||
import com.zcloud.primeport.persistence.repository.VehicleMessageRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageQueryExe {
|
||||
private final VehicleMessageRepository vehicleMessageRepository;
|
||||
private final VehicleMessageCoConvertor vehicleMessageCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param vehicleMessagePageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<VehicleMessageCO> execute(VehicleMessagePageQry vehicleMessagePageQry) {
|
||||
Map<String,Object> parmas = PageQueryHelper.toHashMap(vehicleMessagePageQry);
|
||||
PageResponse<VehicleMessageDO> pageResponse = vehicleMessageRepository.listPage(parmas);
|
||||
List<VehicleMessageCO> examCenterCOS = vehicleMessageCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
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;
|
||||
}
|
||||
|
||||
public PageResponse<VehicleCountByCorpCO> listFromCorp(VehicleMessagePageQry vehicleMessagePageQry) {
|
||||
Map<String,Object> parmas = BeanUtil.beanToMap(vehicleMessagePageQry);
|
||||
PageResponse<VehicleCountByCorpDO> pageResponse = vehicleMessageRepository.listCountFromCorp(parmas);
|
||||
List<VehicleCountByCorpCO> examCenterCOS = vehicleMessageCoConvertor.converCountDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
|
||||
public Map<Long, VehicleMessageCO> listMapAllByIds(Long[] ids) {
|
||||
if (ids == null || ids.length == 0){
|
||||
return new HashMap<>();
|
||||
}
|
||||
List<VehicleMessageDO> vehicleMessageDOs = vehicleMessageRepository.listAll(ids);
|
||||
List<VehicleMessageCO> vehicleMessageCOS = vehicleMessageCoConvertor.converDOsToCOs(vehicleMessageDOs);
|
||||
Map<Long, VehicleMessageCO> vehicleMessageCOMap = new HashMap<>();
|
||||
for (VehicleMessageCO vehicleMessageCO : vehicleMessageCOS) {
|
||||
vehicleMessageCOMap.put(vehicleMessageCO.getId(), vehicleMessageCO);
|
||||
}
|
||||
return vehicleMessageCOMap;
|
||||
}
|
||||
|
||||
public VehicleMessageCO infoByLicenceNo(String licenceNo) {
|
||||
|
||||
VehicleMessageDO info = vehicleMessageRepository.getByLicenceNo(licenceNo);
|
||||
VehicleMessageCO vehicleMessageCO = vehicleMessageCoConvertor.converDOsToCOs(info);
|
||||
return vehicleMessageCO;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package com.zcloud.primeport.command.query;
|
||||
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.primeport.command.convertor.VehicleViolationsCoConvertor;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsPageQry;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsListCO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleCountFromViolationsDO;
|
||||
import com.zcloud.primeport.persistence.dataobject.VehicleViolationsDO;
|
||||
import com.zcloud.primeport.persistence.repository.VehicleMessageRepository;
|
||||
import com.zcloud.primeport.persistence.repository.VehicleViolationsRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:29
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class VehicleViolationsQueryExe {
|
||||
private final VehicleViolationsRepository vehicleViolationsRepository;
|
||||
private final VehicleViolationsCoConvertor vehicleViolationsCoConvertor;
|
||||
private final VehicleMessageRepository vehicleMessageRepository;
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public VehicleViolationsCO queryById(Long id) {
|
||||
return vehicleViolationsCoConvertor.converDOToCO(vehicleViolationsRepository.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param vehicleViolationsPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<VehicleViolationsCO> execute(VehicleViolationsPageQry vehicleViolationsPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(vehicleViolationsPageQry);
|
||||
PageResponse<VehicleViolationsDO> pageResponse = vehicleViolationsRepository.listPage(params);
|
||||
List<VehicleViolationsCO> examCenterCOS = vehicleViolationsCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
|
||||
public PageResponse<VehicleViolationsListCO> executeFromViolations(VehicleViolationsPageQry vehicleViolationsPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(vehicleViolationsPageQry);
|
||||
PageResponse<VehicleCountFromViolationsDO> pageResponse = vehicleMessageRepository.listPageFromViolations(params);
|
||||
List<VehicleViolationsListCO> examCenterCOS = vehicleViolationsCoConvertor.converFromViolationsDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
package com.zcloud.primeport.service;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.api.InspectionDeptServiceI;
|
||||
import com.zcloud.primeport.command.InspectionDeptAddExe;
|
||||
import com.zcloud.primeport.command.InspectionDeptRemoveExe;
|
||||
import com.zcloud.primeport.command.InspectionDeptUpdateExe;
|
||||
import com.zcloud.primeport.command.query.InspectionDeptQueryExe;
|
||||
import com.zcloud.primeport.dto.InspectionDeptAddCmd;
|
||||
import com.zcloud.primeport.dto.InspectionDeptPageQry;
|
||||
import com.zcloud.primeport.dto.InspectionDeptUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptCO;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptInfoCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:08
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class InspectionDeptServiceImpl implements InspectionDeptServiceI {
|
||||
private final InspectionDeptAddExe inspectionDeptAddExe;
|
||||
private final InspectionDeptUpdateExe inspectionDeptUpdateExe;
|
||||
private final InspectionDeptRemoveExe inspectionDeptRemoveExe;
|
||||
private final InspectionDeptQueryExe inspectionDeptQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<InspectionDeptCO> listPage(InspectionDeptPageQry qry) {
|
||||
|
||||
return inspectionDeptQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(InspectionDeptAddCmd cmd) {
|
||||
|
||||
inspectionDeptAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(InspectionDeptUpdateCmd inspectionDeptUpdateCmd) {
|
||||
inspectionDeptUpdateExe.execute(inspectionDeptUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
inspectionDeptRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
inspectionDeptRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InspectionDeptInfoCO getInfoById(Long id) {
|
||||
return inspectionDeptQueryExe.executeById( id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.primeport.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.api.InspectionVehicleServiceI;
|
||||
import com.zcloud.primeport.command.InspectionVehicleAddExe;
|
||||
import com.zcloud.primeport.command.InspectionVehicleRemoveExe;
|
||||
import com.zcloud.primeport.command.InspectionVehicleUpdateExe;
|
||||
import com.zcloud.primeport.command.query.InspectionVehicleQueryExe;
|
||||
import com.zcloud.primeport.dto.InspectionVehicleAddCmd;
|
||||
import com.zcloud.primeport.dto.InspectionVehiclePageQry;
|
||||
import com.zcloud.primeport.dto.InspectionVehicleUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionVehicleCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class InspectionVehicleServiceImpl implements InspectionVehicleServiceI {
|
||||
private final InspectionVehicleAddExe inspectionVehicleAddExe;
|
||||
private final InspectionVehicleUpdateExe inspectionVehicleUpdateExe;
|
||||
private final InspectionVehicleRemoveExe inspectionVehicleRemoveExe;
|
||||
private final InspectionVehicleQueryExe inspectionVehicleQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<InspectionVehicleCO> listPage(InspectionVehiclePageQry qry) {
|
||||
|
||||
return inspectionVehicleQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(InspectionVehicleAddCmd cmd) {
|
||||
|
||||
inspectionVehicleAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(InspectionVehicleUpdateCmd inspectionVehicleUpdateCmd) {
|
||||
inspectionVehicleUpdateExe.execute(inspectionVehicleUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
inspectionVehicleRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
inspectionVehicleRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package com.zcloud.primeport.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.api.MkmjApprovalUserServiceI;
|
||||
import com.zcloud.primeport.command.MkmjApprovalUserAddExe;
|
||||
import com.zcloud.primeport.command.MkmjApprovalUserRemoveExe;
|
||||
import com.zcloud.primeport.command.MkmjApprovalUserUpdateExe;
|
||||
import com.zcloud.primeport.command.query.MkmjApprovalUserQueryExe;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserAddCmd;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserPageQry;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.MkmjApprovalUserCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class MkmjApprovalUserServiceImpl implements MkmjApprovalUserServiceI {
|
||||
private final MkmjApprovalUserAddExe mkmjApprovalUserAddExe;
|
||||
private final MkmjApprovalUserUpdateExe mkmjApprovalUserUpdateExe;
|
||||
private final MkmjApprovalUserRemoveExe mkmjApprovalUserRemoveExe;
|
||||
private final MkmjApprovalUserQueryExe mkmjApprovalUserQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<MkmjApprovalUserCO> listPage(MkmjApprovalUserPageQry qry){
|
||||
|
||||
return mkmjApprovalUserQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(MkmjApprovalUserAddCmd cmd) {
|
||||
|
||||
mkmjApprovalUserAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(MkmjApprovalUserUpdateCmd mkmjApprovalUserUpdateCmd) {
|
||||
mkmjApprovalUserUpdateExe.execute(mkmjApprovalUserUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
mkmjApprovalUserRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
mkmjApprovalUserRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MkmjApprovalUserCO> listAll(MkmjApprovalUserPageQry qry) {
|
||||
return mkmjApprovalUserQueryExe.executeList(qry);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
package com.zcloud.primeport.service;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.api.VehicleAuditLogServiceI;
|
||||
import com.zcloud.primeport.command.VehicleAuditLogAddExe;
|
||||
import com.zcloud.primeport.command.VehicleAuditLogRemoveExe;
|
||||
import com.zcloud.primeport.command.VehicleAuditLogUpdateExe;
|
||||
import com.zcloud.primeport.command.query.VehicleAuditLogQueryExe;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogApprovalCmd;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogPageQry;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleAuditLogCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleLogAndCarCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:47
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class VehicleAuditLogServiceImpl implements VehicleAuditLogServiceI {
|
||||
private final VehicleAuditLogAddExe vehicleAuditLogAddExe;
|
||||
private final VehicleAuditLogUpdateExe vehicleAuditLogUpdateExe;
|
||||
private final VehicleAuditLogRemoveExe vehicleAuditLogRemoveExe;
|
||||
private final VehicleAuditLogQueryExe vehicleAuditLogQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<VehicleAuditLogCO> listPage(VehicleAuditLogPageQry qry) {
|
||||
|
||||
return vehicleAuditLogQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(VehicleAuditLogAddCmd cmd) {
|
||||
|
||||
vehicleAuditLogAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(VehicleAuditLogUpdateCmd vehicleAuditLogUpdateCmd) {
|
||||
vehicleAuditLogUpdateExe.execute(vehicleAuditLogUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
vehicleAuditLogRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
vehicleAuditLogRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 审批车辆信息,通过/不通过
|
||||
* @param auditLogApprovalCmd
|
||||
*/
|
||||
@Override
|
||||
public void approval(VehicleAuditLogApprovalCmd auditLogApprovalCmd) {
|
||||
vehicleAuditLogUpdateExe.execute(auditLogApprovalCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<VehicleLogAndCarCO> listPageAndCarInfo(VehicleAuditLogPageQry qry) {
|
||||
return vehicleAuditLogQueryExe.executeAndCarInfo(qry);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package com.zcloud.primeport.service;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.api.VehicleBlackServiceI;
|
||||
import com.zcloud.primeport.command.VehicleBlackAddExe;
|
||||
import com.zcloud.primeport.command.VehicleBlackRemoveExe;
|
||||
import com.zcloud.primeport.command.VehicleBlackUpdateExe;
|
||||
import com.zcloud.primeport.command.query.VehicleBlackQueryExe;
|
||||
import com.zcloud.primeport.dto.VehicleBlackAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleBlackPageQry;
|
||||
import com.zcloud.primeport.dto.VehicleBlackUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleBlackCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:09
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class VehicleBlackServiceImpl implements VehicleBlackServiceI {
|
||||
private final VehicleBlackAddExe vehicleBlackAddExe;
|
||||
private final VehicleBlackUpdateExe vehicleBlackUpdateExe;
|
||||
private final VehicleBlackRemoveExe vehicleBlackRemoveExe;
|
||||
private final VehicleBlackQueryExe vehicleBlackQueryExe;
|
||||
|
||||
@Override
|
||||
public VehicleBlackCO queryById(Long id) {
|
||||
return vehicleBlackQueryExe.queryById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<VehicleBlackCO> listPage(VehicleBlackPageQry qry) {
|
||||
|
||||
return vehicleBlackQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(VehicleBlackAddCmd cmd) {
|
||||
|
||||
vehicleBlackAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(VehicleBlackUpdateCmd vehicleBlackUpdateCmd) {
|
||||
vehicleBlackUpdateExe.execute(vehicleBlackUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
vehicleBlackRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
vehicleBlackRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
package com.zcloud.primeport.service;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.api.VehicleMessageServiceI;
|
||||
import com.zcloud.primeport.command.VehicleMessageAddExe;
|
||||
import com.zcloud.primeport.command.VehicleMessageRemoveExe;
|
||||
import com.zcloud.primeport.command.VehicleMessageUpdateExe;
|
||||
import com.zcloud.primeport.command.query.VehicleMessageQueryExe;
|
||||
import com.zcloud.primeport.dto.*;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleCountByCorpCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageServiceImpl implements VehicleMessageServiceI {
|
||||
private final VehicleMessageAddExe vehicleMessageAddExe;
|
||||
private final VehicleMessageUpdateExe vehicleMessageUpdateExe;
|
||||
private final VehicleMessageRemoveExe vehicleMessageRemoveExe;
|
||||
private final VehicleMessageQueryExe vehicleMessageQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<VehicleMessageCO> listPage(VehicleMessagePageQry qry){
|
||||
|
||||
return vehicleMessageQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(VehicleMessageAddCmd cmd) {
|
||||
|
||||
vehicleMessageAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(VehicleMessageUpdateCmd vehicleMessageUpdateCmd) {
|
||||
vehicleMessageUpdateExe.execute(vehicleMessageUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
vehicleMessageRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
vehicleMessageRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse<VehicleMessageCO> addForCorp(VehicleMessageForCorpAddCmd cmdCorp) {
|
||||
vehicleMessageAddExe.executeForCorp(cmdCorp);
|
||||
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;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateStatus(VehicleMessageStatusCmd statusCmd) {
|
||||
vehicleMessageUpdateExe.updateStatus(statusCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<VehicleCountByCorpCO> listFromCorp(VehicleMessagePageQry qry) {
|
||||
return vehicleMessageQueryExe.listFromCorp(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VehicleMessageCO infoByLicenceNo(String licenceNo) {
|
||||
VehicleMessageCO vehicleMessageCO = vehicleMessageQueryExe.infoByLicenceNo(licenceNo);
|
||||
return vehicleMessageCO;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package com.zcloud.primeport.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.api.VehicleViolationsServiceI;
|
||||
import com.zcloud.primeport.command.VehicleViolationsAddExe;
|
||||
import com.zcloud.primeport.command.VehicleViolationsRemoveExe;
|
||||
import com.zcloud.primeport.command.VehicleViolationsUpdateExe;
|
||||
import com.zcloud.primeport.command.query.VehicleViolationsQueryExe;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsPageQry;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsListCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:29
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class VehicleViolationsServiceImpl implements VehicleViolationsServiceI {
|
||||
private final VehicleViolationsAddExe vehicleViolationsAddExe;
|
||||
private final VehicleViolationsUpdateExe vehicleViolationsUpdateExe;
|
||||
private final VehicleViolationsRemoveExe vehicleViolationsRemoveExe;
|
||||
private final VehicleViolationsQueryExe vehicleViolationsQueryExe;
|
||||
|
||||
@Override
|
||||
public VehicleViolationsCO queryById(Long id) {
|
||||
return vehicleViolationsQueryExe.queryById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<VehicleViolationsCO> listPage(VehicleViolationsPageQry qry) {
|
||||
|
||||
return vehicleViolationsQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(VehicleViolationsAddCmd cmd) {
|
||||
|
||||
vehicleViolationsAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(VehicleViolationsUpdateCmd vehicleViolationsUpdateCmd) {
|
||||
vehicleViolationsUpdateExe.execute(vehicleViolationsUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
vehicleViolationsRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
vehicleViolationsRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<VehicleViolationsListCO> listAndCountPage(VehicleViolationsPageQry qry) {
|
||||
return vehicleViolationsQueryExe.executeFromViolations(qry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.primeport.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.dto.InspectionDeptAddCmd;
|
||||
import com.zcloud.primeport.dto.InspectionDeptPageQry;
|
||||
import com.zcloud.primeport.dto.InspectionDeptUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptCO;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionDeptInfoCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:08
|
||||
*/
|
||||
public interface InspectionDeptServiceI {
|
||||
PageResponse<InspectionDeptCO> listPage(InspectionDeptPageQry qry);
|
||||
|
||||
SingleResponse<InspectionDeptCO> add(InspectionDeptAddCmd cmd);
|
||||
|
||||
void edit(InspectionDeptUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
InspectionDeptInfoCO getInfoById(Long id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.primeport.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.dto.InspectionVehicleAddCmd;
|
||||
import com.zcloud.primeport.dto.InspectionVehiclePageQry;
|
||||
import com.zcloud.primeport.dto.InspectionVehicleUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.InspectionVehicleCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
public interface InspectionVehicleServiceI {
|
||||
PageResponse<InspectionVehicleCO> listPage(InspectionVehiclePageQry qry);
|
||||
|
||||
SingleResponse<InspectionVehicleCO> add(InspectionVehicleAddCmd cmd);
|
||||
|
||||
void edit(InspectionVehicleUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.primeport.api;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserAddCmd;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserPageQry;
|
||||
import com.zcloud.primeport.dto.MkmjApprovalUserUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.MkmjApprovalUserCO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
public interface MkmjApprovalUserServiceI {
|
||||
PageResponse<MkmjApprovalUserCO> listPage(MkmjApprovalUserPageQry qry);
|
||||
|
||||
SingleResponse<MkmjApprovalUserCO> add(MkmjApprovalUserAddCmd cmd);
|
||||
|
||||
void edit(MkmjApprovalUserUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
List<MkmjApprovalUserCO> listAll(MkmjApprovalUserPageQry qry);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.zcloud.primeport.api;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogApprovalCmd;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogPageQry;
|
||||
import com.zcloud.primeport.dto.VehicleAuditLogUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleAuditLogCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleLogAndCarCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
public interface VehicleAuditLogServiceI {
|
||||
PageResponse<VehicleAuditLogCO> listPage(VehicleAuditLogPageQry qry);
|
||||
|
||||
SingleResponse<VehicleAuditLogCO> add(VehicleAuditLogAddCmd cmd);
|
||||
|
||||
void edit(VehicleAuditLogUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
void approval(VehicleAuditLogApprovalCmd auditLogApprovalCmd);
|
||||
|
||||
|
||||
PageResponse<VehicleLogAndCarCO> listPageAndCarInfo(VehicleAuditLogPageQry qry);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.primeport.api;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.dto.VehicleBlackAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleBlackPageQry;
|
||||
import com.zcloud.primeport.dto.VehicleBlackUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleBlackCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:09
|
||||
*/
|
||||
public interface VehicleBlackServiceI {
|
||||
VehicleBlackCO queryById(Long id);
|
||||
|
||||
PageResponse<VehicleBlackCO> listPage(VehicleBlackPageQry qry);
|
||||
|
||||
SingleResponse<VehicleBlackCO> add(VehicleBlackAddCmd cmd);
|
||||
|
||||
void edit(VehicleBlackUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.primeport.api;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.dto.*;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleCountByCorpCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleMessageCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
public interface VehicleMessageServiceI {
|
||||
PageResponse<VehicleMessageCO> listPage(VehicleMessagePageQry qry);
|
||||
|
||||
SingleResponse<VehicleMessageCO> add(VehicleMessageAddCmd cmd);
|
||||
|
||||
void edit(VehicleMessageUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
SingleResponse<VehicleMessageCO> addForCorp (VehicleMessageForCorpAddCmd cmdCorp);
|
||||
void editForCorp (VehicleMessageUpdateCmd cmd);
|
||||
|
||||
|
||||
VehicleMessageCO getInfoById(Long id);
|
||||
void updateStatus(VehicleMessageStatusCmd statusCmd);
|
||||
|
||||
|
||||
PageResponse<VehicleCountByCorpCO> listFromCorp(VehicleMessagePageQry qry);
|
||||
|
||||
|
||||
VehicleMessageCO infoByLicenceNo(String licenceNo );
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.primeport.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsAddCmd;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsPageQry;
|
||||
import com.zcloud.primeport.dto.VehicleViolationsUpdateCmd;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsCO;
|
||||
import com.zcloud.primeport.dto.clientobject.VehicleViolationsListCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:29
|
||||
*/
|
||||
public interface VehicleViolationsServiceI {
|
||||
VehicleViolationsCO queryById(Long id);
|
||||
|
||||
PageResponse<VehicleViolationsCO> listPage(VehicleViolationsPageQry qry);
|
||||
|
||||
SingleResponse<VehicleViolationsCO> add(VehicleViolationsAddCmd cmd);
|
||||
|
||||
void edit(VehicleViolationsUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
|
||||
PageResponse<VehicleViolationsListCO> listAndCountPage(VehicleViolationsPageQry qry);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:07
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class InspectionDeptAddCmd extends Command {
|
||||
|
||||
|
||||
@ApiModelProperty(value = "名称", name = "name", required = true)
|
||||
@NotEmpty(message = "名称不能为空")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "单位车辆信息部门为空", name = "VehicleMessageAddCmd", required = true)
|
||||
@NotEmpty(message = "单位车辆信息部门为空")
|
||||
List<VehicleInspectionAddCmd> VehicleMessageAddCmd;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:07
|
||||
*/
|
||||
@Data
|
||||
public class InspectionDeptPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeName;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:08
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class InspectionDeptUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotEmpty(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "名称", name = "name", required = true)
|
||||
@NotEmpty(message = "名称不能为空")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "单位车辆信息部门为空", name = "VehicleMessageAddCmd", required = true)
|
||||
@NotEmpty(message = "单位车辆信息部门为空")
|
||||
List<VehicleInspectionUpdateCmd> VehicleMessageAddCmd;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:19
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class InspectionVehicleAddCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotEmpty(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "检查部门ID", name = "inspectionDeptId", required = true)
|
||||
@NotEmpty(message = "检查部门ID不能为空")
|
||||
private Long inspectionDeptId;
|
||||
@ApiModelProperty(value = "车辆id", name = "vehicleMessageId", required = true)
|
||||
@NotEmpty(message = "车辆id不能为空")
|
||||
private Long vehicleMessageId;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@Data
|
||||
public class InspectionVehiclePageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private Long likeInspectionDeptId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class InspectionVehicleUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotEmpty(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "检查部门ID", name = "inspectionDeptId", required = true)
|
||||
@NotEmpty(message = "检查部门ID不能为空")
|
||||
private Long inspectionDeptId;
|
||||
@ApiModelProperty(value = "车辆id", name = "vehicleMessageId", required = true)
|
||||
@NotEmpty(message = "车辆id不能为空")
|
||||
private Long vehicleMessageId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MkmjApprovalUserAddCmd extends Command {
|
||||
@ApiModelProperty(value = "审批人类型", name = "userType", required = true)
|
||||
@NotNull(message = "审批人类型")
|
||||
private Integer userType;
|
||||
@ApiModelProperty(value = "审批人部门ID", name = "deptName", required = true)
|
||||
@NotEmpty(message = "审批人部门ID不能为空")
|
||||
private String deptName;
|
||||
@ApiModelProperty(value = "审批人部门", name = "deptId", required = true)
|
||||
@NotNull(message = "审批人部门不能为空")
|
||||
private Long deptId;
|
||||
@ApiModelProperty(value = "审批人姓名", name = "name", required = true)
|
||||
@NotEmpty(message = "审批人姓名不能为空")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "审批人", name = "userName", required = true)
|
||||
@NotEmpty(message = "审批人不能为空")
|
||||
private String userName;
|
||||
@ApiModelProperty(value = "审批人名字", name = "userId", required = true)
|
||||
@NotNull(message = "审批人名字不能为空")
|
||||
private Long userId;
|
||||
@ApiModelProperty(value = "岗位名称", name = "postName", required = true)
|
||||
@NotEmpty(message = "岗位名称不能为空")
|
||||
private String postName;
|
||||
@ApiModelProperty(value = "岗位id", name = "postId", required = true)
|
||||
@NotNull(message = "岗位id不能为空")
|
||||
private Long postId;
|
||||
@ApiModelProperty(value = "企业id", name = "corpId", required = true)
|
||||
@NotNull(message = "企业id不能为空")
|
||||
private Long corpId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@Data
|
||||
public class MkmjApprovalUserPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeDeptName;
|
||||
/**
|
||||
* 查询类型 (口门门禁车辆审核人1; 临时访客审核人2)
|
||||
*/
|
||||
private String eqUserType;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MkmjApprovalUserUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键ID", name = "id", required = true)
|
||||
@NotEmpty(message = "主键ID不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "审批人类型", name = "userType", required = true)
|
||||
@NotEmpty(message = "审批人类型")
|
||||
private Integer userType;
|
||||
@ApiModelProperty(value = "审批人部门ID", name = "deptName", required = true)
|
||||
@NotEmpty(message = "审批人部门ID不能为空")
|
||||
private String deptName;
|
||||
@ApiModelProperty(value = "审批人部门", name = "deptId", required = true)
|
||||
@NotEmpty(message = "审批人部门不能为空")
|
||||
private Long deptId;
|
||||
@ApiModelProperty(value = "审批人姓名", name = "name", required = true)
|
||||
@NotEmpty(message = "审批人姓名不能为空")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "审批人", name = "userName", required = true)
|
||||
@NotEmpty(message = "审批人不能为空")
|
||||
private String userName;
|
||||
@ApiModelProperty(value = "审批人名字", name = "userId", required = true)
|
||||
@NotEmpty(message = "审批人名字不能为空")
|
||||
private Long userId;
|
||||
@ApiModelProperty(value = "岗位名称", name = "postName", required = true)
|
||||
@NotEmpty(message = "岗位名称不能为空")
|
||||
private String postName;
|
||||
@ApiModelProperty(value = "岗位id", name = "postId", required = true)
|
||||
@NotEmpty(message = "岗位id不能为空")
|
||||
private Long postId;
|
||||
@ApiModelProperty(value = "企业id", name = "corpId", required = true)
|
||||
@NotEmpty(message = "企业id不能为空")
|
||||
private Long corpId;
|
||||
@ApiModelProperty(value = "删除标识", name = "deleteEnum", required = true)
|
||||
@NotEmpty(message = "删除标识不能为空")
|
||||
private String deleteEnum;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleAuditLogAddCmd extends Command {
|
||||
@ApiModelProperty(value = "id", name = "id", required = true)
|
||||
@NotEmpty(message = "id不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)", name = "batchType", required = true)
|
||||
@NotEmpty(message = "审批批次(1.普通车辆.2危险化学品车辆)不能为空")
|
||||
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)
|
||||
@NotEmpty(message = "审批批次(审批全流程,一次申请一次id)不能为空")
|
||||
private String batchId;
|
||||
@ApiModelProperty(value = "车辆id", name = "vehicleMessageId", required = true)
|
||||
@NotEmpty(message = "车辆id不能为空")
|
||||
private Long vehicleMessageId;
|
||||
@ApiModelProperty(value = "审批人id", name = "userId", required = true)
|
||||
@NotEmpty(message = "审批人id不能为空")
|
||||
private Long userId;
|
||||
@ApiModelProperty(value = "审批人姓名", name = "userName", required = true)
|
||||
@NotEmpty(message = "审批人姓名不能为空")
|
||||
private String userName;
|
||||
@ApiModelProperty(value = "审批部门id", name = "deptId", required = true)
|
||||
@NotEmpty(message = "审批部门id不能为空")
|
||||
private Long deptId;
|
||||
@ApiModelProperty(value = "审批部门名称", name = "deptName", required = true)
|
||||
@NotEmpty(message = "审批部门名称不能为空")
|
||||
private String deptName;
|
||||
@ApiModelProperty(value = "审批步骤排序", name = "stepSort", required = true)
|
||||
@NotEmpty(message = "审批步骤排序不能为空")
|
||||
private Integer stepSort;
|
||||
@ApiModelProperty(value = "审批状态(1未开始.2通过.3不通过)", name = "status", required = true)
|
||||
@NotEmpty(message = "审批状态(1未开始.2通过.3不通过)不能为空")
|
||||
private Integer status;
|
||||
@ApiModelProperty(value = "审批状态(0正常,1.废除)", name = "stepType", required = true)
|
||||
@NotEmpty(message = "审批状态(0正常,1.废除)不能为空")
|
||||
private Integer stepType;
|
||||
@ApiModelProperty(value = "驳回备注", name = "comments", required = true)
|
||||
@NotEmpty(message = "驳回备注不能为空")
|
||||
private String comments;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:47
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleAuditLogApprovalCmd extends Command {
|
||||
|
||||
@ApiModelProperty(value = "车辆id", name = "vehicleMessageId", required = true)
|
||||
@NotEmpty(message = "车辆id不能为空")
|
||||
private Long vehicleMessageId;
|
||||
|
||||
@ApiModelProperty(value = "审批人id", name = "userId", required = true)
|
||||
@NotEmpty(message = "审批人id不能为空")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "审批状态(1未开始.2通过.3不通过)", name = "status", required = true)
|
||||
@NotEmpty(message = "审批状态(1未开始.2通过.3不通过)不能为空")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "驳回备注", name = "comments", required = true)
|
||||
private String comments;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
@Data
|
||||
public class VehicleAuditLogPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
|
||||
@ApiModelProperty("车辆ID")
|
||||
private String eqVehicleMessageId;
|
||||
|
||||
@ApiModelProperty("审批状态(0,申请;2.更新)")
|
||||
private String eqBatchState;
|
||||
|
||||
|
||||
@ApiModelProperty("审批人员")
|
||||
private String eqUserId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:47
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleAuditLogUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "id", name = "id", required = true)
|
||||
@NotEmpty(message = "id不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务id", name = "vehicleAuditLogId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String vehicleAuditLogId;
|
||||
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)", name = "batchType", required = true)
|
||||
@NotEmpty(message = "审批批次(1.普通车辆.2危险化学品车辆)不能为空")
|
||||
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)
|
||||
@NotEmpty(message = "车辆id不能为空")
|
||||
private Long vehicleMessageId;
|
||||
@ApiModelProperty(value = "审批人id", name = "userId", required = true)
|
||||
@NotEmpty(message = "审批人id不能为空")
|
||||
private Long userId;
|
||||
@ApiModelProperty(value = "审批人姓名", name = "userName", required = true)
|
||||
@NotEmpty(message = "审批人姓名不能为空")
|
||||
private String userName;
|
||||
@ApiModelProperty(value = "审批部门id", name = "deptId", required = true)
|
||||
@NotEmpty(message = "审批部门id不能为空")
|
||||
private Long deptId;
|
||||
@ApiModelProperty(value = "审批部门名称", name = "deptName", required = true)
|
||||
@NotEmpty(message = "审批部门名称不能为空")
|
||||
private String deptName;
|
||||
@ApiModelProperty(value = "审批步骤排序", name = "stepSort", required = true)
|
||||
@NotEmpty(message = "审批步骤排序不能为空")
|
||||
private Integer stepSort;
|
||||
@ApiModelProperty(value = "审批状态(1未开始.2通过.3不通过)", name = "status", required = true)
|
||||
@NotEmpty(message = "审批状态(1未开始.2通过.3不通过)不能为空")
|
||||
private Integer status;
|
||||
@ApiModelProperty(value = "审批状态(0正常,1.废除)", name = "stepType", required = true)
|
||||
@NotEmpty(message = "审批状态(0正常,1.废除)不能为空")
|
||||
private Integer stepType;
|
||||
@ApiModelProperty(value = "驳回备注", name = "comments", required = true)
|
||||
@NotEmpty(message = "驳回备注不能为空")
|
||||
private String comments;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:08
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleBlackAddCmd extends Command {
|
||||
@ApiModelProperty(value = "车辆信息表(t_vehicle_message)的主键id", name = "vehicleId", required = true)
|
||||
@NotNull(message = "车辆信息表(t_vehicle_message)的主键id不能为空")
|
||||
private Long vehicleId;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:08
|
||||
*/
|
||||
@Data
|
||||
public class VehicleBlackPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private Long likeVehicleId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:09
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleBlackUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "id", name = "id", required = true)
|
||||
@NotNull(message = "id不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "车辆信息表(t_vehicle_message)的主键id", name = "vehicleId", required = true)
|
||||
@NotNull(message = "车辆信息表(t_vehicle_message)的主键id不能为空")
|
||||
private Long vehicleId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleInspectionAddCmd extends Command {
|
||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌", name = "licenceType", required = true)
|
||||
@NotEmpty(message = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌不能为空")
|
||||
private Integer licenceType;
|
||||
@ApiModelProperty(value = "车牌号", name = "licenceNo", required = true)
|
||||
@NotEmpty(message = "车牌号不能为空")
|
||||
private String licenceNo;
|
||||
@ApiModelProperty(value = "车辆类型", name = "vehicleType", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空")
|
||||
private String vehicleType;
|
||||
@ApiModelProperty(value = "车辆类型-名字", name = "vehicleTypeName", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空-名字")
|
||||
private String vehicleTypeName;
|
||||
@ApiModelProperty(value = "访问起始时间", name = "visitStartTime", required = true)
|
||||
@NotEmpty(message = "访问起始时间不能为空")
|
||||
private Date visitStartTime;
|
||||
@ApiModelProperty(value = "访问结束时间", name = "visitEndTime", required = true)
|
||||
@NotEmpty(message = "访问结束时间不能为空")
|
||||
private Date visitEndTime;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleInspectionUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "车辆id", name = "id")
|
||||
private Integer id;
|
||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌", name = "licenceType", required = true)
|
||||
@NotNull(message = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌不能为空")
|
||||
private Integer licenceType;
|
||||
@ApiModelProperty(value = "车牌号", name = "licenceNo", required = true)
|
||||
@NotEmpty(message = "车牌号不能为空")
|
||||
private String licenceNo;
|
||||
@ApiModelProperty(value = "车辆类型", name = "vehicleType", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空")
|
||||
private String vehicleType;
|
||||
@ApiModelProperty(value = "车辆类型-名字", name = "vehicleTypeName", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空-名字")
|
||||
private String vehicleTypeName;
|
||||
@ApiModelProperty(value = "访问起始时间", name = "visitStartTime", required = true)
|
||||
@NotEmpty(message = "访问起始时间不能为空")
|
||||
private Date visitStartTime;
|
||||
@ApiModelProperty(value = "访问结束时间", name = "visitEndTime", required = true)
|
||||
@NotEmpty(message = "访问结束时间不能为空")
|
||||
private Date visitEndTime;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageAddCmd extends Command {
|
||||
@ApiModelProperty(value = "id", name = "id", required = true)
|
||||
@NotEmpty(message = "id不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务id", name = "vehicleMessageId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String vehicleMessageId;
|
||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌", name = "licenceType", required = true)
|
||||
@NotEmpty(message = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌不能为空")
|
||||
private Integer licenceType;
|
||||
@ApiModelProperty(value = "车牌号", name = "licenceNo", required = true)
|
||||
@NotEmpty(message = "车牌号不能为空")
|
||||
private String licenceNo;
|
||||
@ApiModelProperty(value = "车辆类型", name = "vehicleType", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空")
|
||||
private String vehicleType;
|
||||
@ApiModelProperty(value = "车辆类型-名字", name = "vehicleTypeName", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空-名字")
|
||||
private String vehicleTypeName;
|
||||
@ApiModelProperty(value = "车辆所属类型 0-员工车辆 1- 单位车辆 2-相关方车辆3:货运车辆,4:临时车辆", name = "vehicleBelongType", required = true)
|
||||
@NotEmpty(message = "车辆所属类型 0-员工车辆 1- 单位车辆 2-相关方车辆3:货运车辆,4:临时车辆不能为空")
|
||||
private Integer vehicleBelongType;
|
||||
@ApiModelProperty(value = "所属车队ID", name = "motorcadeId", required = true)
|
||||
@NotEmpty(message = "所属车队ID不能为空")
|
||||
private Long motorcadeId;
|
||||
@ApiModelProperty(value = "是否危化车辆(0:否,1:是)", name = "isDangerous", required = true)
|
||||
@NotEmpty(message = "是否危化车辆(0:否,1:是)不能为空")
|
||||
private Integer isDangerous;
|
||||
@ApiModelProperty(value = "通行港区(0-全部 1-东港区 2-西港区)", name = "portId", required = true)
|
||||
@NotEmpty(message = "通行港区(0-全部 1-东港区 2-西港区)不能为空")
|
||||
private Integer portId;
|
||||
@ApiModelProperty(value = "是否审核(0:未审核 1:审核中;2审核通过; 3:审核驳回)", name = "isAudit", required = true)
|
||||
@NotEmpty(message = "是否审核(0:未审核 1:审核中;2审核通过; 3:审核驳回)不能为空")
|
||||
private Integer isAudit;
|
||||
@ApiModelProperty(value = "进出港权限(1:有 2:无)", name = "mkmjPermission", required = true)
|
||||
@NotEmpty(message = "进出港权限(1:有 2:无)不能为空")
|
||||
private Integer mkmjPermission;
|
||||
@ApiModelProperty(value = "访问起始时间", name = "visitStartTime", required = true)
|
||||
@NotEmpty(message = "访问起始时间不能为空")
|
||||
private Date visitStartTime;
|
||||
@ApiModelProperty(value = "访问结束时间", name = "visitEndTime", required = true)
|
||||
@NotEmpty(message = "访问结束时间不能为空")
|
||||
private Date visitEndTime;
|
||||
@ApiModelProperty(value = "车辆所属部门id", name = "vehicleDepartmentId", required = true)
|
||||
@NotEmpty(message = "车辆所属部门id不能为空")
|
||||
private Long vehicleDepartmentId;
|
||||
@ApiModelProperty(value = "车辆所属部门名称", name = "vehicleDepartmentName", required = true)
|
||||
@NotEmpty(message = "车辆所属部门名称不能为空")
|
||||
private String vehicleDepartmentName;
|
||||
@ApiModelProperty(value = "车辆所属人id(员工车辆)", name = "employeeVehicleUserId", required = true)
|
||||
@NotEmpty(message = "车辆所属人id(员工车辆)不能为空")
|
||||
private Long employeeVehicleUserId;
|
||||
@ApiModelProperty(value = "车辆所属人姓名(员工车辆)", name = "employeeVehicleUserName", required = true)
|
||||
@NotEmpty(message = "车辆所属人姓名(员工车辆)不能为空")
|
||||
private String employeeVehicleUserName;
|
||||
@ApiModelProperty(value = "企业ID", name = "corpId", required = true)
|
||||
@NotEmpty(message = "企业ID不能为空")
|
||||
private Long corpId;
|
||||
@ApiModelProperty(value = "排放标准:", name = " emissionStandards", required = true)
|
||||
@NotEmpty(message = "排放标准:")
|
||||
private String emissionStandards;
|
||||
@ApiModelProperty(value = "附件地址", name = "attachmentUrl", required = true)
|
||||
@NotEmpty(message = "附件地址不能为空")
|
||||
private String attachmentUrl;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageForCorpAddCmd extends Command {
|
||||
|
||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌", name = "licenceType", required = true)
|
||||
@NotNull(message = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌不能为空")
|
||||
private Integer licenceType;
|
||||
|
||||
@ApiModelProperty(value = "车牌号", name = "licenceNo", required = true)
|
||||
@NotEmpty(message = "车牌号不能为空")
|
||||
private String licenceNo;
|
||||
|
||||
@ApiModelProperty(value = "车辆类型", name = "vehicleType", required = true)
|
||||
@NotEmpty(message = "车辆类型")
|
||||
private String vehicleType;
|
||||
@ApiModelProperty(value = "车辆类型-名字", name = "vehicleTypeName", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空-名字")
|
||||
private String vehicleTypeName;
|
||||
|
||||
@ApiModelProperty(value = "车辆所属类型 0-员工车辆 1- 单位车辆 2-外部车辆3:货运车辆", name = "vehicleBelongType", required = true)
|
||||
@NotNull(message = "车辆所属类型 0-员工车辆 1- 单位车辆 2-外部车辆3:货运车辆不能为空")
|
||||
private Integer vehicleBelongType;
|
||||
|
||||
@ApiModelProperty(value = "通行港区(0-全部 1-东港区 2-西港区)", name = "portId", required = true)
|
||||
@NotNull(message = "通行港区(0-全部 1-东港区 2-西港区)不能为空")
|
||||
private Integer portId;
|
||||
|
||||
@ApiModelProperty(value = "车辆所属部门id", name = "vehicleDepartmentId", required = true)
|
||||
@NotNull(message = "车辆所属部门id不能为空")
|
||||
private Long vehicleDepartmentId;
|
||||
@ApiModelProperty(value = "车辆所属部门名称", name = "vehicleDepartmentName", required = true)
|
||||
@NotEmpty(message = "车辆所属部门名称不能为空")
|
||||
private String vehicleDepartmentName;
|
||||
@ApiModelProperty(value = "车辆所属人id(员工车辆)", name = "employeeVehicleUserId", required = true)
|
||||
// @NotEmpty(message = "车辆所属人id(员工车辆)不能为空")
|
||||
private Long employeeVehicleUserId;
|
||||
@ApiModelProperty(value = "车辆所属人姓名(员工车辆)", name = "employeeVehicleUserName", required = true)
|
||||
// @NotEmpty(message = "车辆所属人姓名(员工车辆)不能为空")
|
||||
private String employeeVehicleUserName;
|
||||
@ApiModelProperty(value = "企业ID", name = "corpinfoId", required = true)
|
||||
// @NotNull(message = "企业ID不能为空")
|
||||
private Long corpId;
|
||||
@ApiModelProperty(value = "附件地址", name = "attachmentUrl", required = true)
|
||||
private String attachmentUrl;
|
||||
/**
|
||||
* 审批信息
|
||||
*/
|
||||
@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;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Data
|
||||
public class VehicleMessagePageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
@ApiModelProperty(value = "车牌号")
|
||||
private String likeLicenceNo;
|
||||
|
||||
@ApiModelProperty(value = "车辆所属人姓名")
|
||||
private String liekeEmployeeVehicleUserName;
|
||||
|
||||
@ApiModelProperty(value = "车辆所属部门id")
|
||||
private String eqVehicleDepartmentId;
|
||||
|
||||
@ApiModelProperty(value = "企业ID")
|
||||
private String eqCorpId;
|
||||
|
||||
@ApiModelProperty(value = "删除状态")
|
||||
private String eqDeleteEnum = "FALSE" ;
|
||||
|
||||
@ApiModelProperty(value = "是否审核")
|
||||
private String eqIsAudit;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageStatusCmd extends Command {
|
||||
@ApiModelProperty(value = "id", name = "id", required = true)
|
||||
@NotNull(message = "id不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "进出港权限(1:有 2:无)", name = "mkmjPermission", required = true)
|
||||
@NotNull(message = "进出港权限(1:有 2:无)不能为空")
|
||||
@Min(value = 1, message = "进出港权限错误")
|
||||
@Max(value = 2, message = "进出港权限错误")
|
||||
private Integer mkmjPermission;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleMessageUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "id", name = "id", required = true)
|
||||
@NotNull(message = "id不能为空")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "业务id", name = "vehicleMessageId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String vehicleMessageId;
|
||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌", name = "licenceType", required = true)
|
||||
@NotNull(message = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌不能为空")
|
||||
private Integer licenceType;
|
||||
@ApiModelProperty(value = "车牌号", name = "licenceNo", required = true)
|
||||
@NotEmpty(message = "车牌号不能为空")
|
||||
private String licenceNo;
|
||||
@ApiModelProperty(value = "车辆类型 0-货车 1- 轿车 2-大巴客车", name = "vehicleType", required = true)
|
||||
@NotEmpty(message = "车辆类型 0-货车 1- 轿车 2-大巴客车不能为空")
|
||||
private String vehicleType;
|
||||
@ApiModelProperty(value = "车辆类型-名字", name = "vehicleTypeName", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空-名字")
|
||||
private String vehicleTypeName;
|
||||
@ApiModelProperty(value = "车辆所属类型 0-员工车辆 1- 单位车辆 2-外部车辆3:货运车辆", name = "vehicleBelongType", required = true)
|
||||
@NotNull(message = "车辆所属类型 0-员工车辆 1- 单位车辆 2-外部车辆3:货运车辆不能为空")
|
||||
private Integer vehicleBelongType;
|
||||
@ApiModelProperty(value = "车辆来源(0,1,2 平台新建,3.对接车辆)", name = "carFrom", required = true)
|
||||
@NotNull(message = "车辆来源(0,1,2 平台新建,3.对接车辆)不能为空")
|
||||
private Integer carFrom;
|
||||
@ApiModelProperty(value = "驾驶证x", name = "drivingLicense", required = true)
|
||||
@NotEmpty(message = "驾驶证x不能为空")
|
||||
private String drivingLicense;
|
||||
@ApiModelProperty(value = "绿本x", name = "greenBook", required = true)
|
||||
@NotEmpty(message = "绿本x不能为空")
|
||||
private String greenBook;
|
||||
@ApiModelProperty(value = "环保随车清单x", name = "ecoFriendlyChecklist", required = true)
|
||||
@NotEmpty(message = "环保随车清单x不能为空")
|
||||
private String ecoFriendlyChecklist;
|
||||
@ApiModelProperty(value = "出厂合格证x", name = "factoryCertificate", required = true)
|
||||
@NotEmpty(message = "出厂合格证x不能为空")
|
||||
private String factoryCertificate;
|
||||
@ApiModelProperty(value = "环保信息截图x", name = "environmentalScreenshots", required = true)
|
||||
@NotEmpty(message = "环保信息截图x不能为空")
|
||||
private String environmentalScreenshots;
|
||||
@ApiModelProperty(value = "所属车队ID", name = "motorcadeId", required = true)
|
||||
@NotNull(message = "所属车队ID不能为空")
|
||||
private Long motorcadeId;
|
||||
@ApiModelProperty(value = "是否危化车辆(0:否,1:是)", name = "isDangerousCar", required = true)
|
||||
@NotNull(message = "是否危化车辆(0:否,1:是)不能为空")
|
||||
private Integer isDangerousCar;
|
||||
@ApiModelProperty(value = "是否审核(0:未审核 1:交警支队审核通过 2:分公司审核通过 3:审核驳回)", name = "isAudit", required = true)
|
||||
@NotNull(message = "是否审核(0:未审核 1:交警支队审核通过 2:分公司审核通过 3:审核驳回)不能为空")
|
||||
private Integer isAudit;
|
||||
@ApiModelProperty(value = "通行港区(0-全部 1-东港区 2-西港区)", name = "portId", required = true)
|
||||
@NotNull(message = "通行港区(0-全部 1-东港区 2-西港区)不能为空")
|
||||
private Integer portId;
|
||||
@ApiModelProperty(value = "进出港权限(1:有 2:无)", name = "mkmjPermission", required = true)
|
||||
@NotNull(message = "进出港权限(1:有 2:无)不能为空")
|
||||
private String mkmjPermission;
|
||||
@ApiModelProperty(value = "车辆责任人id", name = "userId", required = true)
|
||||
@NotNull(message = "车辆责任人id不能为空")
|
||||
private Long userId;
|
||||
@ApiModelProperty(value = "车辆责任人姓名", name = "userName", required = true)
|
||||
@NotEmpty(message = "车辆责任人姓名不能为空")
|
||||
private String userName;
|
||||
@ApiModelProperty(value = "车辆所属部门id", name = "vehicleDepartmentId", required = true)
|
||||
@NotNull(message = "车辆所属部门id不能为空")
|
||||
private Long vehicleDepartmentId;
|
||||
@ApiModelProperty(value = "车辆所属部门名称", name = "vehicleDepartmentName", required = true)
|
||||
@NotEmpty(message = "车辆所属部门名称不能为空")
|
||||
private String vehicleDepartmentName;
|
||||
@ApiModelProperty(value = "车辆所属人id(员工车辆)", name = "employeeVehicleUserId", required = true)
|
||||
@NotNull(message = "车辆所属人id(员工车辆)不能为空")
|
||||
private Long employeeVehicleUserId;
|
||||
@ApiModelProperty(value = "车辆所属人姓名(员工车辆)", name = "employeeVehicleUserName", required = true)
|
||||
@NotEmpty(message = "车辆所属人姓名(员工车辆)不能为空")
|
||||
private String employeeVehicleUserName;
|
||||
@ApiModelProperty(value = "企业ID(~~~~~~)", name = "corpId", required = true)
|
||||
@NotNull(message = "企业ID(~~~~~~)不能为空")
|
||||
private Long corpId;
|
||||
@ApiModelProperty(value = "排放标准:level1 -> 国一level2 -> 国二level3 -> 国三level4 -> 国四level5 -> 国五level6 -> 国六", name = "emissionStandards", required = true)
|
||||
@NotEmpty(message = "排放标准:level1 -> 国一level2 -> 国二level3 -> 国三level4 -> 国四level5 -> 国五level6 -> 国六不能为空")
|
||||
private String emissionStandards;
|
||||
@ApiModelProperty(value = "联系人姓名", name = "contact", required = true)
|
||||
@NotEmpty(message = "联系人姓名不能为空")
|
||||
private String contact;
|
||||
@ApiModelProperty(value = "联系人电话", name = "phone", required = true)
|
||||
@NotEmpty(message = "联系人电话不能为空")
|
||||
private String phone;
|
||||
@ApiModelProperty(value = "访问起始时间", name = "visitStartTime", required = true)
|
||||
@NotEmpty(message = "访问起始时间不能为空")
|
||||
private String visitStartTime;
|
||||
@ApiModelProperty(value = "访问结束时间", name = "visitEndTime", required = true)
|
||||
@NotEmpty(message = "访问结束时间不能为空")
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.*;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:28
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleViolationsAddCmd extends Command {
|
||||
@ApiModelProperty(value = "车辆信息表(t_vehicle_message)的主键id", name = "vehicleId", required = true)
|
||||
@NotNull(message = "车辆信息主键")
|
||||
private Long vehicleId;
|
||||
|
||||
@ApiModelProperty(value = "违规类型(0-未按规定车道行驶,1-违规停车)", name = "violationType", required = true)
|
||||
@NotNull(message = "违规类型(0-未按规定车道行驶,1-违规停车)不能为空")
|
||||
private Integer violationType;
|
||||
|
||||
@ApiModelProperty(value = "违规区域(位置)", name = "location", required = true)
|
||||
@NotEmpty(message = "违规区域(位置)不能为空")
|
||||
private String location;
|
||||
|
||||
@ApiModelProperty(value = "违规图片的存储路径", name = "filepath", required = true)
|
||||
@NotEmpty(message = "违规图片的存储路径不能为空")
|
||||
private String filepath;
|
||||
|
||||
@ApiModelProperty(value = "违规说明", name = "describeMessage", required = true)
|
||||
@NotEmpty(message = "违规说明不能为空")
|
||||
private String describeMessage;
|
||||
|
||||
@ApiModelProperty(value = "违规时间", name = "violationtime", required = true)
|
||||
@NotNull(message = "违规时间不能为空")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date violationtime;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:29
|
||||
*/
|
||||
@Data
|
||||
public class VehicleViolationsPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private Long likeVehicleId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.zcloud.primeport.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.*;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:29
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VehicleViolationsUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "车辆违规记录表的id", name = "id", required = true)
|
||||
@NotNull(message = "车辆违规记录表的id不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "车辆信息表(t_vehicle_message)的主键id", name = "vehicleId", required = true)
|
||||
@NotNull(message = "车辆信息表(t_vehicle_message)的主键id不能为空")
|
||||
private Long vehicleId;
|
||||
@ApiModelProperty(value = "违规类型(0-未按规定车道行驶,1-违规停车)", name = "violationType", required = true)
|
||||
@NotNull(message = "违规类型(0-未按规定车道行驶,1-违规停车)不能为空")
|
||||
private Integer violationType;
|
||||
@ApiModelProperty(value = "违规区域(位置)", name = "location", required = true)
|
||||
@NotEmpty(message = "违规区域(位置)不能为空")
|
||||
private String location;
|
||||
@ApiModelProperty(value = "违规图片的存储路径", name = "filepath", required = true)
|
||||
@NotEmpty(message = "违规图片的存储路径不能为空")
|
||||
private String filepath;
|
||||
@ApiModelProperty(value = "违规说明", name = "describeMessage", required = true)
|
||||
@NotEmpty(message = "违规说明不能为空")
|
||||
private String describeMessage;
|
||||
@ApiModelProperty(value = "违规时间", name = "violationtime", required = true)
|
||||
@NotNull(message = "违规时间不能为空")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date violationtime;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:07
|
||||
*/
|
||||
@Data
|
||||
public class InspectionDeptCO extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
//名称
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "检查部门下的车辆数量")
|
||||
@TableField(exist = false)
|
||||
private Integer vehicleCount;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.zcloud.primeport.dto.VehicleInspectionUpdateCmd;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:07
|
||||
*/
|
||||
@Data
|
||||
public class InspectionDeptInfoCO extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
//名称
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "单位车辆信息部门为空", name = "VehicleMessageAddCmd", required = true)
|
||||
@NotEmpty(message = "单位车辆信息部门为空")
|
||||
List<VehicleDeptInfoCO> vehicleDeptInfoCOS;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
@Data
|
||||
public class InspectionVehicleCO extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
//检查部门ID
|
||||
@ApiModelProperty(value = "检查部门ID")
|
||||
private Long inspectionDeptId;
|
||||
//车辆id
|
||||
@ApiModelProperty(value = "车辆id")
|
||||
private Long vehicleMessageId;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
@Data
|
||||
public class MkmjApprovalUserCO extends ClientObject {
|
||||
//主键ID
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
private Long id;
|
||||
//审批类型(口门门禁车辆审核人1;临时访客审核人2)
|
||||
@ApiModelProperty(value = "审批类型(口门门禁车辆审核人1;临时访客审核人2)")
|
||||
private Integer userType;
|
||||
//审批人部门ID
|
||||
@ApiModelProperty(value = "审批人部门ID")
|
||||
private String deptName;
|
||||
//审批人部门
|
||||
@ApiModelProperty(value = "审批人部门")
|
||||
private Long deptId;
|
||||
//审批人姓名
|
||||
@ApiModelProperty(value = "审批人姓名")
|
||||
private String name;
|
||||
//审批人
|
||||
@ApiModelProperty(value = "审批人")
|
||||
private String userName;
|
||||
//审批人名字
|
||||
@ApiModelProperty(value = "审批人名字")
|
||||
private Long userId;
|
||||
//岗位名称
|
||||
@ApiModelProperty(value = "岗位名称")
|
||||
private String postName;
|
||||
//岗位id
|
||||
@ApiModelProperty(value = "岗位id")
|
||||
private Long postId;
|
||||
//企业id
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private Long corpId;
|
||||
//删除标识
|
||||
@ApiModelProperty(value = "删除标识")
|
||||
private String deleteEnum;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
@Data
|
||||
public class VehicleAuditLogCO extends ClientObject {
|
||||
//id
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String vehicleAuditLogId;
|
||||
//审批批次(1.普通车辆.2危险化学品车辆)
|
||||
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)")
|
||||
private Integer batchType;
|
||||
//审批状态(0,申请;2.更新)
|
||||
@ApiModelProperty(value = "审批状态(0,申请;2.更新)")
|
||||
private Integer batchState;
|
||||
//车辆id
|
||||
@ApiModelProperty(value = "车辆id")
|
||||
private Long vehicleMessageId;
|
||||
//审批人id
|
||||
@ApiModelProperty(value = "审批人id")
|
||||
private Long userId;
|
||||
//审批人姓名
|
||||
@ApiModelProperty(value = "审批人姓名")
|
||||
private String userName;
|
||||
//审批部门id
|
||||
@ApiModelProperty(value = "审批部门id")
|
||||
private Long deptId;
|
||||
//审批部门名称
|
||||
@ApiModelProperty(value = "审批部门名称")
|
||||
private String deptName;
|
||||
//审批步骤排序
|
||||
@ApiModelProperty(value = "审批步骤排序")
|
||||
private Integer stepSort;
|
||||
//审批状态(1未开始.2通过.3不通过)
|
||||
@ApiModelProperty(value = "审批状态(1未开始.2通过.3不通过)")
|
||||
private Integer status;
|
||||
//审批状态(0正常,1.废除)
|
||||
@ApiModelProperty(value = "审批状态(0正常,1.废除)")
|
||||
private Integer stepType;
|
||||
//驳回备注
|
||||
@ApiModelProperty(value = "驳回备注")
|
||||
private String comments;
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.sql.Date;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:08
|
||||
*/
|
||||
@Data
|
||||
public class VehicleBlackCO extends ClientObject {
|
||||
//id
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
//车辆信息表(t_vehicle_message)的主键id
|
||||
@ApiModelProperty(value = "车辆信息表(t_vehicle_message)的主键id")
|
||||
private Long vehicleId;
|
||||
|
||||
@ApiModelProperty(value = "车辆信息")
|
||||
private VehicleMessageCO vehicleMessage;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Data
|
||||
public class VehicleCountByCorpCO extends ClientObject {
|
||||
|
||||
private String corpId;
|
||||
private String corpName;
|
||||
private String corpVehicleCount;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Data
|
||||
public class VehicleCountFromViolationsCO extends BaseDO {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String vehicleMessageId;
|
||||
//车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌
|
||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌")
|
||||
private Integer licenceType;
|
||||
//车牌号
|
||||
@ApiModelProperty(value = "车牌号")
|
||||
private String licenceNo;
|
||||
//车辆类型
|
||||
@ApiModelProperty(value = "车辆类型")
|
||||
private String vehicleType;
|
||||
@ApiModelProperty(value = "车辆类型-名字")
|
||||
private String vehicleTypeName;
|
||||
@ApiModelProperty(value = "车辆所属类型 0-员工车辆 1- 单位车辆 2-相关方车辆3:货运车辆,4:临时车辆")
|
||||
private Integer vehicleBelongType;
|
||||
@ApiModelProperty(value = "违规数量")
|
||||
private String violationsCount;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Data
|
||||
public class VehicleDeptInfoCO extends ClientObject {
|
||||
|
||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌", name = "licenceType", required = true)
|
||||
@NotNull(message = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌不能为空")
|
||||
private Integer licenceType;
|
||||
@ApiModelProperty(value = "车牌号", name = "licenceNo", required = true)
|
||||
@NotEmpty(message = "车牌号不能为空")
|
||||
private String licenceNo;
|
||||
@ApiModelProperty(value = "车辆类型", name = "vehicleType", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空")
|
||||
private String vehicleType;
|
||||
@ApiModelProperty(value = "车辆类型-名字", name = "vehicleTypeName", required = true)
|
||||
@NotEmpty(message = "车辆类型不能为空-名字")
|
||||
private String vehicleTypeName;
|
||||
@ApiModelProperty(value = "访问起始时间", name = "visitStartTime", required = true)
|
||||
@NotEmpty(message = "访问起始时间不能为空")
|
||||
private Date visitStartTime;
|
||||
@ApiModelProperty(value = "访问结束时间", name = "visitEndTime", required = true)
|
||||
@NotEmpty(message = "访问结束时间不能为空")
|
||||
private Date visitEndTime;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-18 14:07:46
|
||||
*/
|
||||
@Data
|
||||
public class VehicleLogAndCarCO extends ClientObject {
|
||||
//id
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String vehicleAuditLogId;
|
||||
//审批批次(1.普通车辆.2危险化学品车辆)
|
||||
@ApiModelProperty(value = "审批批次(1.普通车辆.2危险化学品车辆)")
|
||||
private Integer batchType;
|
||||
//审批状态(0,申请;2.更新)
|
||||
@ApiModelProperty(value = "审批状态(0,申请;2.更新)")
|
||||
private Integer batchState;
|
||||
//车辆id
|
||||
@ApiModelProperty(value = "车辆id")
|
||||
private Long vehicleMessageId;
|
||||
//审批人id
|
||||
@ApiModelProperty(value = "审批人id")
|
||||
private Long userId;
|
||||
//审批人姓名
|
||||
@ApiModelProperty(value = "审批人姓名")
|
||||
private String userName;
|
||||
//审批部门id
|
||||
@ApiModelProperty(value = "审批部门id")
|
||||
private Long deptId;
|
||||
//审批部门名称
|
||||
@ApiModelProperty(value = "审批部门名称")
|
||||
private String deptName;
|
||||
//审批步骤排序
|
||||
@ApiModelProperty(value = "审批步骤排序")
|
||||
private Integer stepSort;
|
||||
//审批状态(1未开始.2通过.3不通过)
|
||||
@ApiModelProperty(value = "审批状态(1未开始.2通过.3不通过)")
|
||||
private Integer status;
|
||||
//审批状态(0正常,1.废除)
|
||||
@ApiModelProperty(value = "审批状态(0正常,1.废除)")
|
||||
private Integer stepType;
|
||||
//驳回备注
|
||||
@ApiModelProperty(value = "驳回备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "车辆信息")
|
||||
private VehicleMessageCO vehicleMessageCO;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-15 11:41:21
|
||||
*/
|
||||
@Data
|
||||
public class VehicleMessageCO extends ClientObject {
|
||||
//id
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String vehicleMessageId;
|
||||
//车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌
|
||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌")
|
||||
private Integer licenceType;
|
||||
//车牌号
|
||||
@ApiModelProperty(value = "车牌号")
|
||||
private String licenceNo;
|
||||
//车辆类型
|
||||
@ApiModelProperty(value = "车辆类型")
|
||||
private String vehicleType;
|
||||
@ApiModelProperty(value = "车辆类型-名字", name = "vehicleTypeName", required = true)
|
||||
private String vehicleTypeName;
|
||||
//车辆所属类型 0-员工车辆 1- 单位车辆 2-相关方车辆3:货运车辆,4:临时车辆
|
||||
@ApiModelProperty(value = "车辆所属类型 0-员工车辆 1- 单位车辆 2-相关方车辆3:货运车辆,4:临时车辆")
|
||||
private Integer vehicleBelongType;
|
||||
//所属车队ID
|
||||
@ApiModelProperty(value = "所属车队ID")
|
||||
private Long motorcadeId;
|
||||
//是否危化车辆(0:否,1:是)
|
||||
@ApiModelProperty(value = "是否危化车辆(0:否,1:是)")
|
||||
private Integer isDangerous;
|
||||
//通行港区(0-全部 1-东港区 2-西港区)
|
||||
@ApiModelProperty(value = "通行港区(0-全部 1-东港区 2-西港区)")
|
||||
private Integer portId;
|
||||
//是否审核(0:未审核 1:审核中;2审核通过; 3:审核驳回)
|
||||
@ApiModelProperty(value = "是否审核(0:未审核 1:审核中;2审核通过; 3:审核驳回)")
|
||||
private Integer isAudit;
|
||||
//进出港权限(1:有 2:无)
|
||||
@ApiModelProperty(value = "进出港权限(1:有 2:无)")
|
||||
private Integer mkmjPermission;
|
||||
//访问起始时间
|
||||
@ApiModelProperty(value = "访问起始时间")
|
||||
private Date visitStartTime;
|
||||
//访问结束时间
|
||||
@ApiModelProperty(value = "访问结束时间")
|
||||
private Date visitEndTime;
|
||||
//车辆所属部门id
|
||||
@ApiModelProperty(value = "车辆所属部门id")
|
||||
private Long vehicleDepartmentId;
|
||||
//车辆所属部门名称
|
||||
@ApiModelProperty(value = "车辆所属部门名称")
|
||||
private String vehicleDepartmentName;
|
||||
//车辆所属人id(员工车辆)
|
||||
@ApiModelProperty(value = "车辆所属人id(员工车辆)")
|
||||
private Long employeeVehicleUserId;
|
||||
//车辆所属人姓名(员工车辆)
|
||||
@ApiModelProperty(value = "车辆所属人姓名(员工车辆)")
|
||||
private String employeeVehicleUserName;
|
||||
//企业ID
|
||||
@ApiModelProperty(value = "企业ID")
|
||||
private Long corpId;
|
||||
//排放标准:
|
||||
@ApiModelProperty(value = "排放标准:")
|
||||
private String emissionStandards;
|
||||
//附件地址
|
||||
@ApiModelProperty(value = "附件地址")
|
||||
private String attachmentUrl;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.sql.Date;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:28
|
||||
*/
|
||||
@Data
|
||||
public class VehicleViolationsCO extends ClientObject {
|
||||
//车辆违规记录表的id
|
||||
@ApiModelProperty(value = "车辆违规记录表的id")
|
||||
private Long id;
|
||||
//车辆信息表(t_vehicle_message)的主键id
|
||||
@ApiModelProperty(value = "车辆信息表(t_vehicle_message)的主键id")
|
||||
private Long vehicleId;
|
||||
//违规类型(0-未按规定车道行驶,1-违规停车)
|
||||
@ApiModelProperty(value = "违规类型(0-未按规定车道行驶,1-违规停车)")
|
||||
private Integer violationType;
|
||||
//违规区域(位置)
|
||||
@ApiModelProperty(value = "违规区域(位置)")
|
||||
private String location;
|
||||
//违规图片的存储路径
|
||||
@ApiModelProperty(value = "违规图片的存储路径")
|
||||
private String filepath;
|
||||
//违规说明
|
||||
@ApiModelProperty(value = "违规说明")
|
||||
private String describeMessage;
|
||||
//违规时间
|
||||
@ApiModelProperty(value = "违规时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date violationtime;
|
||||
//删除标识
|
||||
@ApiModelProperty(value = "删除标识")
|
||||
private String deleteEnum;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
package com.zcloud.primeport.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.sql.Date;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-21 16:34:28
|
||||
*/
|
||||
@Data
|
||||
public class VehicleViolationsListCO extends ClientObject {
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String vehicleMessageId;
|
||||
//车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌
|
||||
@ApiModelProperty(value = "车牌类型 0-白牌 1- 蓝牌 2-黄牌 3-绿牌 4-黑牌")
|
||||
private Integer licenceType;
|
||||
//车牌号
|
||||
@ApiModelProperty(value = "车牌号")
|
||||
private String licenceNo;
|
||||
//车辆类型
|
||||
@ApiModelProperty(value = "车辆类型")
|
||||
private String vehicleType;
|
||||
@ApiModelProperty(value = "车辆类型-名字")
|
||||
private String vehicleTypeName;
|
||||
@ApiModelProperty(value = "车辆所属类型 0-员工车辆 1- 单位车辆 2-相关方车辆3:货运车辆,4:临时车辆")
|
||||
private Integer vehicleBelongType;
|
||||
@ApiModelProperty(value = "违规数量")
|
||||
private String violationsCount;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.primeport.domain.gateway;
|
||||
|
||||
import com.zcloud.primeport.domain.model.InspectionDeptE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:24:07
|
||||
*/
|
||||
public interface InspectionDeptGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
InspectionDeptE add(InspectionDeptE inspectionDeptE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(InspectionDeptE inspectionDeptE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedInspectionDeptById(Long id);
|
||||
|
||||
Boolean deletedInspectionDeptByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.primeport.domain.gateway;
|
||||
|
||||
|
||||
import com.zcloud.primeport.domain.model.InspectionVehicleE;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-20 15:25:20
|
||||
*/
|
||||
public interface InspectionVehicleGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(InspectionVehicleE inspectionVehicleE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(InspectionVehicleE inspectionVehicleE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedInspectionVehicleById(Long id);
|
||||
|
||||
Boolean deletedInspectionVehicleByIds(Long[] id);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.zcloud.primeport.domain.gateway;
|
||||
|
||||
import com.zcloud.primeport.domain.model.MkmjApprovalUserE;
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author guoyuepeng
|
||||
* @Date 2025-11-14 10:09:22
|
||||
*/
|
||||
public interface MkmjApprovalUserGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(MkmjApprovalUserE mkmjApprovalUserE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(MkmjApprovalUserE mkmjApprovalUserE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedMkmjApprovalUserById(Long id);
|
||||
|
||||
Boolean deletedMkmjApprovalUserByIds(Long[] id);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue