From a294ca89d87d1fc5a8c1649103fd3b231aefbbe0 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 19 Mar 2024 09:08:31 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E7=94=B3=E8=AF=B7--=E9=83=A8=E5=88=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chukubanli/chukushenqingAdd.vue | 21 +++++++++++++++---- .../chukubanli/chukushenqingInfo.vue | 4 ++-- .../chukuguanli/chukuDaiBanInfo.vue | 4 ++-- .../chukuguanliFlow/chukuguanli/chukuEdit.vue | 21 +++++++++++++++---- .../chukuguanli/chukuYiBanInfo.vue | 4 ++-- 5 files changed, 40 insertions(+), 14 deletions(-) diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue index ea1853bbcf..9ef922b3f7 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue @@ -14,7 +14,7 @@
出库开票申请
- +
发起部门
{{ formobj.pcApplyDept }}
@@ -28,7 +28,7 @@
- +
销售部门
{{ formobj.staffDeptName }}
@@ -46,7 +46,7 @@
合同编号
{{ formobj.contractId }}
- +
客户名称
{{ formobj.name }}
@@ -98,7 +98,7 @@
- +
车型
{{ formobj.modelName }}
@@ -792,6 +792,19 @@ export default { .addinputw { margin-left: 110px !important; } +.tlineheightb { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; +} +/deep/ .tlineheightb .el-form-item .el-form-item__content .addinputInfo { + line-height: 15px !important; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; +} /deep/ .el-form-item__error { margin-left: 110px !important; } diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue index 5d604ca012..b3aa63f0e1 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue @@ -43,7 +43,7 @@
合同编号
{{ formobj.contractId }}
- +
客户名称
{{ formobj.name }}
@@ -333,7 +333,7 @@ export default { justify-content: flex-start; align-items: center; } -/deep/ .tlineheightb .el-form-item .el-form-item__content { +/deep/ .tlineheightb .el-form-item .el-form-item__content .addinputInfo { line-height: 15px !important; display: flex; flex-direction: row; diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuDaiBanInfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuDaiBanInfo.vue index 4586f81ad4..80559b17a4 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuDaiBanInfo.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuDaiBanInfo.vue @@ -45,7 +45,7 @@
合同编号
{{ formobj.contractId }}
- +
客户名称
{{ formobj.name }}
@@ -581,7 +581,7 @@ export default { justify-content: flex-start; align-items: center; } -/deep/ .tlineheightb .el-form-item .el-form-item__content { +/deep/ .tlineheightb .el-form-item .el-form-item__content .addinputInfo { line-height: 15px !important; display: flex; flex-direction: row; diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuEdit.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuEdit.vue index 8bd1796f40..838758fbca 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuEdit.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuEdit.vue @@ -13,7 +13,7 @@
出库开票申请
- +
发起部门
{{ formobj.pcApplyDept }}
@@ -27,7 +27,7 @@
- +
销售部门
{{ formobj.staffDeptName }}
@@ -45,7 +45,7 @@
合同编号
{{ formobj.contractId }}
- +
客户名称
{{ formobj.name }}
@@ -97,7 +97,7 @@
- +
车型
{{ formobj.modelName }}
@@ -734,6 +734,19 @@ export default { .addinputw { margin-left: 110px !important; } +.tlineheightb { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; +} +/deep/ .tlineheightb .el-form-item .el-form-item__content .addinputInfo { + line-height: 15px !important; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; +} /deep/ .el-form-item__error { margin-left: 110px !important; } diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuYiBanInfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuYiBanInfo.vue index 52f5135fa0..a4f80f95a5 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuYiBanInfo.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuYiBanInfo.vue @@ -43,7 +43,7 @@
合同编号
{{ formobj.contractId }}
- +
客户名称
{{ formobj.name }}
@@ -453,7 +453,7 @@ export default { justify-content: flex-start; align-items: center; } -/deep/ .tlineheightb .el-form-item .el-form-item__content { +/deep/ .tlineheightb .el-form-item .el-form-item__content .addinputInfo { line-height: 15px !important; display: flex; flex-direction: row; From ab8df5a4a3416b05504085c560da19f4b5490640 Mon Sep 17 00:00:00 2001 From: fanzongzhe <285169773@qq.com> Date: Tue, 19 Mar 2024 09:15:52 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E9=80=80=E6=96=99=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ScmApplyInboundVehQueryMapper.java | 1 - .../ScmApplyInboundVehQueryMapper.xml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.java b/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.java index 9fb5fc19d4..38312ecd3f 100644 --- a/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.java +++ b/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.java @@ -67,6 +67,5 @@ public interface ScmApplyInboundVehQueryMapper extends BaseMapper fetchByMainSid(String cgrkdSid); - @Select("SELECT * FROM scm_apply_inbound_veh_query WHERE vinNo LIKE CONCAT('%',#{vinNo},'%')") ScmApplyInboundVehQueryDetailsVo fetchDetailsByVinNo(@Param("vinNo") String vinNo); } \ No newline at end of file diff --git a/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.xml b/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.xml index 5dc71394da..84d608ef67 100644 --- a/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.xml +++ b/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.xml @@ -10,4 +10,19 @@ + \ No newline at end of file From 6dddd35a85ea7bd8e4dc90643d869dfbd66bb486 Mon Sep 17 00:00:00 2001 From: fanzongzhe <285169773@qq.com> Date: Tue, 19 Mar 2024 09:23:50 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E9=80=80=E6=96=99=E5=8D=95=E6=97=A5=E6=9C=9F=E5=8D=87=E5=BA=8F?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.xml b/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.xml index 84d608ef67..b6d8c3b5eb 100644 --- a/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.xml +++ b/anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinboundvehquery/ScmApplyInboundVehQueryMapper.xml @@ -22,7 +22,7 @@ vinNo LIKE CONCAT( '%', #{vinNo}, '%' ) AND i.nodeState = '已办结' ORDER BY - i.createTime DESC + i.createTime asc LIMIT 1 \ No newline at end of file From d30e820afcf65c4061a5722daf012b67cf9e5ac9 Mon Sep 17 00:00:00 2001 From: God <10745413@qq.com> Date: Tue, 19 Mar 2024 09:33:24 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BaseShuntingInvoicingApplyService.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/baseshuntinginvoicingapply/BaseShuntingInvoicingApplyService.java b/anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/baseshuntinginvoicingapply/BaseShuntingInvoicingApplyService.java index 1308a99b6d..1521c7a3b8 100644 --- a/anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/baseshuntinginvoicingapply/BaseShuntingInvoicingApplyService.java +++ b/anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/baseshuntinginvoicingapply/BaseShuntingInvoicingApplyService.java @@ -39,11 +39,13 @@ import com.yxt.anrui.base.api.baseshuntinginvoicinapplyeveh.BaseShuntingInvoicin import com.yxt.anrui.base.api.baseshuntinginvoicingapply.*; import com.yxt.anrui.base.api.baseshuntinginvoicingapply.flow.BaseShuntingInvoicingApplyTaskQuery; import com.yxt.anrui.base.api.baseshuntinginvoicingapply.flow.SubmitBaseShuntingInvoicingApplyDto; +import com.yxt.anrui.base.api.basevehicle.BaseVehicle; import com.yxt.anrui.base.api.basevehiclecertificate.BaseVehicleCertificate; import com.yxt.anrui.base.api.busvehicleapply.flow.GetNodeQuery; import com.yxt.anrui.base.api.busvehicleapply.flow.GetNodeVo; import com.yxt.anrui.base.biz.baseinternalpurchasevehicle.BaseInternalPurchaseVehicleService; import com.yxt.anrui.base.biz.baseshuntinginvoicinapplyeveh.BaseShuntingInvoicinApplyeVehService; +import com.yxt.anrui.base.biz.basevehicle.BaseVehicleService; import com.yxt.anrui.base.biz.basevehiclecertificate.BaseVehicleCertificateService; import com.yxt.anrui.base.common.enums.VehicleState; import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTempVo; @@ -118,6 +120,8 @@ public class BaseShuntingInvoicingApplyService extends MybatisBaseService createQueryWrapper(BaseShuntingInvoicingApplyQuery query) { // todo: 这里根据具体业务调整查询条件 @@ -440,7 +444,9 @@ public class BaseShuntingInvoicingApplyService extends MybatisBaseService Date: Tue, 19 Mar 2024 15:24:49 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=AC=A0=E6=AC=BE?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=A4=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../delinquentcustomerfilingAdd.vue | 10 ++++++++++ .../delinquentcustomerfilingInfo.vue | 12 ++++++------ .../delinquentcustomerfilingDaiBan.vue | 12 ++++++------ .../delinquentcustomerfilingEdit.vue | 10 ++++++++++ .../delinquentcustomerfilingYiBan.vue | 10 +++++----- 5 files changed, 37 insertions(+), 17 deletions(-) diff --git a/anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingAdd.vue b/anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingAdd.vue index 8415e10a3d..a436fe3fc9 100644 --- a/anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingAdd.vue +++ b/anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingAdd.vue @@ -581,6 +581,16 @@ export default { this.$message({ showClose: true, type: 'error', message: '证件号码不能为空' }) return } + if (this.formobj.customerTypeKey === '1') { + if (this.formobj.isAnchored === '') { + this.$message({ showClose: true, type: 'error', message: '是否挂靠运输公司请选择是或否' }) + return + } + if (this.formobj.isAnchored === '1' && (this.formobj.businessName === '' || this.formobj.taxpayerNo === '')) { + this.$message({ showClose: true, type: 'error', message: '是否挂靠运输公司选则是的情况下,请完善挂靠运输公司信息' }) + return + } + } this.getUrl() this.submitdisabled = true req.submit(this.formobj).then((res) => { diff --git a/anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingInfo.vue b/anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingInfo.vue index 5f8437c176..4c41049df9 100644 --- a/anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingInfo.vue +++ b/anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingInfo.vue @@ -83,7 +83,7 @@
是否挂靠运输公司
- {{ formobj.isAnchored = '1' ? '是' : '否' }} + {{ formobj.isAnchored == 1 ? '是' : '否' }}
@@ -113,7 +113,7 @@ -
+
挂靠运输公司信息
@@ -147,17 +147,17 @@
附件清单
- +
营业执照
- +
法人和实际控制人身份证 - 本人身份证 + 本人身份证
@@ -168,7 +168,7 @@
- +
车队挂靠协议
diff --git a/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingDaiBan.vue b/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingDaiBan.vue index 34294048ce..4a242ab23e 100644 --- a/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingDaiBan.vue +++ b/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingDaiBan.vue @@ -86,7 +86,7 @@
是否挂靠运输公司
- {{ formobj.isAnchored = '1' ? '是' : '否' }} + {{ formobj.isAnchored == 1 ? '是' : '否' }}
@@ -116,7 +116,7 @@
-
+
挂靠运输公司信息
@@ -150,17 +150,17 @@
附件清单
- +
营业执照
- +
法人和实际控制人身份证 - 本人身份证 + 本人身份证
@@ -171,7 +171,7 @@
- +
车队挂靠协议
diff --git a/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingEdit.vue b/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingEdit.vue index b5b139117e..d496c3c315 100644 --- a/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingEdit.vue +++ b/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingEdit.vue @@ -584,6 +584,16 @@ export default { this.$message({ showClose: true, type: 'error', message: '证件号码不能为空' }) return } + if (this.formobj.customerTypeKey === '1') { + if (this.formobj.isAnchored === '') { + this.$message({ showClose: true, type: 'error', message: '是否挂靠运输公司请选择是或否' }) + return + } + if (this.formobj.isAnchored === '1' && (this.formobj.businessName === '' || this.formobj.taxpayerNo === '')) { + this.$message({ showClose: true, type: 'error', message: '是否挂靠运输公司选则是的情况下,请完善挂靠运输公司信息' }) + return + } + } this.getUrl() this.submitdisabled = true req.submit(this.formobj).then((res) => { diff --git a/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingYiBan.vue b/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingYiBan.vue index c87dbbf351..34f59d1da4 100644 --- a/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingYiBan.vue +++ b/anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingYiBan.vue @@ -83,7 +83,7 @@
是否挂靠运输公司
- {{ formobj.isAnchored = '1' ? '是' : '否' }} + {{ formobj.isAnchored == 1 ? '是' : '否' }}
@@ -147,17 +147,17 @@
附件清单
- +
营业执照
- +
法人和实际控制人身份证 - 本人身份证 + 本人身份证
@@ -168,7 +168,7 @@
- +
车队挂靠协议
From daac564489b21c2ec9c8f5e3dd9405092158f722 Mon Sep 17 00:00:00 2001 From: fanzongzhe <285169773@qq.com> Date: Tue, 19 Mar 2024 17:14:32 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=94=AE=E5=90=8E?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=BD=A6=E8=BE=86=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ascustomervehicle/AsCustomerCrmVehVo.java | 18 +++ .../ascustomervehicle/AsCustomerVehicle.java | 86 ++++++++++++++ .../AsCustomerVehicleDetailsVo.java | 91 +++++++++++++++ .../AsCustomerVehicleDto.java | 91 +++++++++++++++ .../AsCustomerVehicleQuery.java | 89 ++++++++++++++ .../AsCustomerVehicleVo.java | 91 +++++++++++++++ .../AsCustomerVehicleMapper.java | 69 +++++++++++ .../AsCustomerVehicleMapper.xml | 13 +++ .../AsCustomerVehicleRest.java | 102 ++++++++++++++++ .../AsCustomerVehicleService.java | 109 ++++++++++++++++++ 10 files changed, 759 insertions(+) create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerCrmVehVo.java create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicle.java create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleDetailsVo.java create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleDto.java create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleQuery.java create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleVo.java create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.java create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.xml create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleRest.java create mode 100644 yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerCrmVehVo.java b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerCrmVehVo.java new file mode 100644 index 0000000000..097d5827a6 --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerCrmVehVo.java @@ -0,0 +1,18 @@ +package com.yxt.anrui.as.api.ascustomervehicle; + +import com.yxt.common.core.vo.Vo; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author Fan + * @description + * @date 2024/3/19 11:52 + */ +@Data +public class AsCustomerCrmVehVo implements Vo { + @ApiModelProperty("客户sid") + private String customerSid; // 客户sid + @ApiModelProperty("车牌号") + private String vehMark; // 车牌号 +} diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicle.java b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicle.java new file mode 100644 index 0000000000..2c129f5db4 --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicle.java @@ -0,0 +1,86 @@ +/********************************************************* + ********************************************************* + ******************** ******************* + ************* ************ + ******* _oo0oo_ ******* + *** o8888888o *** + * 88" . "88 * + * (| -_- |) * + * 0\ = /0 * + * ___/`---'\___ * + * .' \\| |// '. * + * / \\||| : |||// \ * + * / _||||| -:- |||||- \ * + * | | \\\ - /// | | * + * | \_| ''\---/'' |_/ | * + * \ .-\__ '-' ___/-. / * + * ___'. .' /--.--\ `. .'___ * + * ."" '< `.___\_<|>_/___.' >' "". * + * | | : `- \`.;`\ _ /`;.`/ - ` : | | * + * \ \ `_. \_ __\ /__ _/ .-` / / * + * =====`-.____`.___ \_____/___.-`___.-'===== * + * `=---=' * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * + *********__佛祖保佑__永无BUG__验收通过__钞票多多__********* + *********************************************************/ +package com.yxt.anrui.as.api.ascustomervehicle; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.yxt.common.core.domain.BaseEntity; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * Project: asdfasd(sdg)
+ * File: AsCustomerVehicle.java
+ * Class: as.api.ascustomervehicle.AsCustomerVehicle
+ * Description: 客户车辆信息.
+ * Copyright: Copyright (c) 2011
+ * Company: https://gitee.com/liuzp315
+ * Makedate: 2024-03-19 11:28:19
+ * + * @author liupopo + * @version 1.0 + * @since 1.0 + */ +@Data +@ApiModel(value = "客户车辆信息", description = "客户车辆信息") +@TableName("as_customer_vehicle") +public class AsCustomerVehicle extends BaseEntity { + private static final long serialVersionUID = 1L; + + @ApiModelProperty("客户sid") + private String customerSid; // 客户sid + @ApiModelProperty("车牌号") + private String vehMark; // 车牌号 + @ApiModelProperty("车架号") + private String vinNo; // 车架号 + @ApiModelProperty("发动机号") + private String engineNo; // 发动机号 + @ApiModelProperty("车型sid") + private String vehModelSid; // 车型sid + @ApiModelProperty("车型") + private String vehModel; // 车型 + @ApiModelProperty("行驶里程") + private Integer mileage; // 行驶里程 + @ApiModelProperty("上次保养里程") + private Integer lastMileage; // 上次保养里程 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("下次保养日期") + private Date nextMaintainDate; // 下次保养日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("购车日期") + private Date buyDate; // 购车日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("商业险到期日期") + private Date commercialInsuranceEndDate; // 商业险到期日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("交强险到期日期") + private Date compulsoryInsuranceEndDate; // 交强险到期日期 + @ApiModelProperty("0为内部车,1为外部车") + private Integer vehState; // 0为内部车,1为外部车 + +} diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleDetailsVo.java b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleDetailsVo.java new file mode 100644 index 0000000000..dd65b5c33c --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleDetailsVo.java @@ -0,0 +1,91 @@ +/********************************************************* + ********************************************************* + ******************** ******************* + ************* ************ + ******* _oo0oo_ ******* + *** o8888888o *** + * 88" . "88 * + * (| -_- |) * + * 0\ = /0 * + * ___/`---'\___ * + * .' \\| |// '. * + * / \\||| : |||// \ * + * / _||||| -:- |||||- \ * + * | | \\\ - /// | | * + * | \_| ''\---/'' |_/ | * + * \ .-\__ '-' ___/-. / * + * ___'. .' /--.--\ `. .'___ * + * ."" '< `.___\_<|>_/___.' >' "". * + * | | : `- \`.;`\ _ /`;.`/ - ` : | | * + * \ \ `_. \_ __\ /__ _/ .-` / / * + * =====`-.____`.___ \_____/___.-`___.-'===== * + * `=---=' * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * + *********__佛祖保佑__永无BUG__验收通过__钞票多多__********* + *********************************************************/ +package com.yxt.anrui.as.api.ascustomervehicle; + + +import com.yxt.common.core.vo.Vo; + +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * Project: asdfasd(sdg)
+ * File: AsCustomerVehicleVo.java
+ * Class: as.api.ascustomervehicle.AsCustomerVehicleVo
+ * Description: 客户车辆信息 视图数据对象.
+ * Copyright: Copyright (c) 2011
+ * Company: https://gitee.com/liuzp315
+ * Makedate: 2024-03-19 11:28:19
+ * + * @author liupopo + * @version 1.0 + * @since 1.0 + */ +@Data +@ApiModel(value = "客户车辆信息 视图数据详情", description = "客户车辆信息 视图数据详情") +public class AsCustomerVehicleDetailsVo implements Vo { + + private String sid; // sid + + @ApiModelProperty("客户sid") + private String customerSid; // 客户sid + @ApiModelProperty("车牌号") + private String vehMark; // 车牌号 + @ApiModelProperty("车架号") + private String vinNo; // 车架号 + @ApiModelProperty("发动机号") + private String engineNo; // 发动机号 + @ApiModelProperty("车型sid") + private String vehModelSid; // 车型sid + @ApiModelProperty("车型") + private String vehModel; // 车型 + @ApiModelProperty("行驶里程") + private Integer mileage; // 行驶里程 + @ApiModelProperty("上次保养里程") + private Integer lastMileage; // 上次保养里程 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("下次保养日期") + private Date nextMaintainDateStart; // 下次保养日期 + private Date nextMaintainDateEnd; // 下次保养日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("购车日期") + private Date buyDateStart; // 购车日期 + private Date buyDateEnd; // 购车日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("商业险到期日期") + private Date commercialInsuranceEndDateStart; // 商业险到期日期 + private Date commercialInsuranceEndDateEnd; // 商业险到期日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("交强险到期日期") + private Date compulsoryInsuranceEndDateStart; // 交强险到期日期 + private Date compulsoryInsuranceEndDateEnd; // 交强险到期日期 + @ApiModelProperty("0为内部车,1为外部车") + private Integer vehState; // 0为内部车,1为外部车 + +} \ No newline at end of file diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleDto.java b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleDto.java new file mode 100644 index 0000000000..837b055df6 --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleDto.java @@ -0,0 +1,91 @@ +/********************************************************* + ********************************************************* + ******************** ******************* + ************* ************ + ******* _oo0oo_ ******* + *** o8888888o *** + * 88" . "88 * + * (| -_- |) * + * 0\ = /0 * + * ___/`---'\___ * + * .' \\| |// '. * + * / \\||| : |||// \ * + * / _||||| -:- |||||- \ * + * | | \\\ - /// | | * + * | \_| ''\---/'' |_/ | * + * \ .-\__ '-' ___/-. / * + * ___'. .' /--.--\ `. .'___ * + * ."" '< `.___\_<|>_/___.' >' "". * + * | | : `- \`.;`\ _ /`;.`/ - ` : | | * + * \ \ `_. \_ __\ /__ _/ .-` / / * + * =====`-.____`.___ \_____/___.-`___.-'===== * + * `=---=' * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * + *********__佛祖保佑__永无BUG__验收通过__钞票多多__********* + *********************************************************/ +package com.yxt.anrui.as.api.ascustomervehicle; + + +import com.yxt.common.core.dto.Dto; + +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * Project: asdfasd(sdg)
+ * File: AsCustomerVehicleDto.java
+ * Class: as.api.ascustomervehicle.AsCustomerVehicleDto
+ * Description: 客户车辆信息 数据传输对象.
+ * Copyright: Copyright (c) 2011
+ * Company: https://gitee.com/liuzp315
+ * Makedate: 2024-03-19 11:28:19
+ * + * @author liupopo + * @version 1.0 + * @since 1.0 + */ +@Data +@ApiModel(value = "客户车辆信息 数据传输对象", description = "客户车辆信息 数据传输对象") +public class AsCustomerVehicleDto implements Dto { + + private String sid; // sid + + @ApiModelProperty("客户sid") + private String customerSid; // 客户sid + @ApiModelProperty("车牌号") + private String vehMark; // 车牌号 + @ApiModelProperty("车架号") + private String vinNo; // 车架号 + @ApiModelProperty("发动机号") + private String engineNo; // 发动机号 + @ApiModelProperty("车型sid") + private String vehModelSid; // 车型sid + @ApiModelProperty("车型") + private String vehModel; // 车型 + @ApiModelProperty("行驶里程") + private Integer mileage; // 行驶里程 + @ApiModelProperty("上次保养里程") + private Integer lastMileage; // 上次保养里程 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("下次保养日期") + private Date nextMaintainDateStart; // 下次保养日期 + private Date nextMaintainDateEnd; // 下次保养日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("购车日期") + private Date buyDateStart; // 购车日期 + private Date buyDateEnd; // 购车日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("商业险到期日期") + private Date commercialInsuranceEndDateStart; // 商业险到期日期 + private Date commercialInsuranceEndDateEnd; // 商业险到期日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("交强险到期日期") + private Date compulsoryInsuranceEndDateStart; // 交强险到期日期 + private Date compulsoryInsuranceEndDateEnd; // 交强险到期日期 + @ApiModelProperty("0为内部车,1为外部车") + private Integer vehState; // 0为内部车,1为外部车 + +} \ No newline at end of file diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleQuery.java b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleQuery.java new file mode 100644 index 0000000000..6bd119c709 --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleQuery.java @@ -0,0 +1,89 @@ +/********************************************************* + ********************************************************* + ******************** ******************* + ************* ************ + ******* _oo0oo_ ******* + *** o8888888o *** + * 88" . "88 * + * (| -_- |) * + * 0\ = /0 * + * ___/`---'\___ * + * .' \\| |// '. * + * / \\||| : |||// \ * + * / _||||| -:- |||||- \ * + * | | \\\ - /// | | * + * | \_| ''\---/'' |_/ | * + * \ .-\__ '-' ___/-. / * + * ___'. .' /--.--\ `. .'___ * + * ."" '< `.___\_<|>_/___.' >' "". * + * | | : `- \`.;`\ _ /`;.`/ - ` : | | * + * \ \ `_. \_ __\ /__ _/ .-` / / * + * =====`-.____`.___ \_____/___.-`___.-'===== * + * `=---=' * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * + *********__佛祖保佑__永无BUG__验收通过__钞票多多__********* + *********************************************************/ +package com.yxt.anrui.as.api.ascustomervehicle; + + +import com.yxt.common.core.query.Query; + +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * Project: asdfasd(sdg)
+ * File: AsCustomerVehicleQuery.java
+ * Class: as.api.ascustomervehicle.AsCustomerVehicleQuery
+ * Description: 客户车辆信息 查询条件.
+ * Copyright: Copyright (c) 2011
+ * Company: https://gitee.com/liuzp315
+ * Makedate: 2024-03-19 11:28:19
+ * + * @author liupopo + * @version 1.0 + * @since 1.0 + */ +@Data +@ApiModel(value = "客户车辆信息 查询条件", description = "客户车辆信息 查询条件") +public class AsCustomerVehicleQuery implements Query { + + @ApiModelProperty("客户sid") + private String customerSid; // 客户sid + @ApiModelProperty("车牌号") + private String vehMark; // 车牌号 + @ApiModelProperty("车架号") + private String vinNo; // 车架号 + @ApiModelProperty("发动机号") + private String engineNo; // 发动机号 + @ApiModelProperty("车型sid") + private String vehModelSid; // 车型sid + @ApiModelProperty("车型") + private String vehModel; // 车型 + @ApiModelProperty("行驶里程") + private Integer mileage; // 行驶里程 + @ApiModelProperty("上次保养里程") + private Integer lastMileage; // 上次保养里程 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("下次保养日期") + private Date nextMaintainDateStart; // 下次保养日期 + private Date nextMaintainDateEnd; // 下次保养日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("购车日期") + private Date buyDateStart; // 购车日期 + private Date buyDateEnd; // 购车日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("商业险到期日期") + private Date commercialInsuranceEndDateStart; // 商业险到期日期 + private Date commercialInsuranceEndDateEnd; // 商业险到期日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("交强险到期日期") + private Date compulsoryInsuranceEndDateStart; // 交强险到期日期 + private Date compulsoryInsuranceEndDateEnd; // 交强险到期日期 + @ApiModelProperty("0为内部车,1为外部车") + private Integer vehState; // 0为内部车,1为外部车 + +} diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleVo.java b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleVo.java new file mode 100644 index 0000000000..baf501a242 --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/api/ascustomervehicle/AsCustomerVehicleVo.java @@ -0,0 +1,91 @@ +/********************************************************* + ********************************************************* + ******************** ******************* + ************* ************ + ******* _oo0oo_ ******* + *** o8888888o *** + * 88" . "88 * + * (| -_- |) * + * 0\ = /0 * + * ___/`---'\___ * + * .' \\| |// '. * + * / \\||| : |||// \ * + * / _||||| -:- |||||- \ * + * | | \\\ - /// | | * + * | \_| ''\---/'' |_/ | * + * \ .-\__ '-' ___/-. / * + * ___'. .' /--.--\ `. .'___ * + * ."" '< `.___\_<|>_/___.' >' "". * + * | | : `- \`.;`\ _ /`;.`/ - ` : | | * + * \ \ `_. \_ __\ /__ _/ .-` / / * + * =====`-.____`.___ \_____/___.-`___.-'===== * + * `=---=' * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * + *********__佛祖保佑__永无BUG__验收通过__钞票多多__********* + *********************************************************/ +package com.yxt.anrui.as.api.ascustomervehicle; + + +import com.yxt.common.core.vo.Vo; + +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * Project: asdfasd(sdg)
+ * File: AsCustomerVehicleVo.java
+ * Class: as.api.ascustomervehicle.AsCustomerVehicleVo
+ * Description: 客户车辆信息 视图数据对象.
+ * Copyright: Copyright (c) 2011
+ * Company: https://gitee.com/liuzp315
+ * Makedate: 2024-03-19 11:28:19
+ * + * @author liupopo + * @version 1.0 + * @since 1.0 + */ +@Data +@ApiModel(value = "客户车辆信息 视图数据对象", description = "客户车辆信息 视图数据对象") +public class AsCustomerVehicleVo implements Vo { + + private String sid; // sid + + @ApiModelProperty("客户sid") + private String customerSid; // 客户sid + @ApiModelProperty("车牌号") + private String vehMark; // 车牌号 + @ApiModelProperty("车架号") + private String vinNo; // 车架号 + @ApiModelProperty("发动机号") + private String engineNo; // 发动机号 + @ApiModelProperty("车型sid") + private String vehModelSid; // 车型sid + @ApiModelProperty("车型") + private String vehModel; // 车型 + @ApiModelProperty("行驶里程") + private Integer mileage; // 行驶里程 + @ApiModelProperty("上次保养里程") + private Integer lastMileage; // 上次保养里程 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("下次保养日期") + private Date nextMaintainDateStart; // 下次保养日期 + private Date nextMaintainDateEnd; // 下次保养日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("购车日期") + private Date buyDateStart; // 购车日期 + private Date buyDateEnd; // 购车日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("商业险到期日期") + private Date commercialInsuranceEndDateStart; // 商业险到期日期 + private Date commercialInsuranceEndDateEnd; // 商业险到期日期 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @ApiModelProperty("交强险到期日期") + private Date compulsoryInsuranceEndDateStart; // 交强险到期日期 + private Date compulsoryInsuranceEndDateEnd; // 交强险到期日期 + @ApiModelProperty("0为内部车,1为外部车") + private Integer vehState; // 0为内部车,1为外部车 + +} diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.java b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.java new file mode 100644 index 0000000000..2d9b2e4dcb --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.java @@ -0,0 +1,69 @@ +/********************************************************* + ********************************************************* + ******************** ******************* + ************* ************ + ******* _oo0oo_ ******* + *** o8888888o *** + * 88" . "88 * + * (| -_- |) * + * 0\ = /0 * + * ___/`---'\___ * + * .' \\| |// '. * + * / \\||| : |||// \ * + * / _||||| -:- |||||- \ * + * | | \\\ - /// | | * + * | \_| ''\---/'' |_/ | * + * \ .-\__ '-' ___/-. / * + * ___'. .' /--.--\ `. .'___ * + * ."" '< `.___\_<|>_/___.' >' "". * + * | | : `- \`.;`\ _ /`;.`/ - ` : | | * + * \ \ `_. \_ __\ /__ _/ .-` / / * + * =====`-.____`.___ \_____/___.-`___.-'===== * + * `=---=' * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * + *********__佛祖保佑__永无BUG__验收通过__钞票多多__********* + *********************************************************/ +package com.yxt.anrui.as.biz.ascustomervehicle; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.toolkit.Constants; +import com.yxt.anrui.as.api.ascustomervehicle.AsCustomerCrmVehVo; +import com.yxt.anrui.as.api.ascustomervehicle.AsCustomerVehicle; +import com.yxt.anrui.as.api.ascustomervehicle.AsCustomerVehicleVo; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; + +import java.util.List; + +/** + * Project: asdfasd(sdg)
+ * File: AsCustomerVehicleMapper.java
+ * Class: as.biz.ascustomervehicle.AsCustomerVehicleMapper
+ * Description: 客户车辆信息.
+ * Copyright: Copyright (c) 2011
+ * Company: https://gitee.com/liuzp315
+ * Makedate: 2024-03-19 11:28:19
+ * + * @author liupopo + * @version 1.0 + * @since 1.0 + */ +@Mapper +public interface AsCustomerVehicleMapper extends BaseMapper { + + //@Update("update as_customer_vehicle set name=#{msg} where id=#{id}") + //IPage voPage(IPage page, @Param(Constants.WRAPPER) QueryWrapper qw); + + IPage selectPageVo(IPage page, @Param(Constants.WRAPPER) Wrapper qw); + + List selectListAllVo(@Param(Constants.WRAPPER) Wrapper qw); + + @Select("select * from as_customer_vehicle") + List selectListVo(); + + @Select("select * from as_customer_vehicle") + List listCustomerVeh(); +} \ No newline at end of file diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.xml b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.xml new file mode 100644 index 0000000000..c6b92f3c2c --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleRest.java b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleRest.java new file mode 100644 index 0000000000..c199853bc7 --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleRest.java @@ -0,0 +1,102 @@ +/********************************************************* + ********************************************************* + ******************** ******************* + ************* ************ + ******* _oo0oo_ ******* + *** o8888888o *** + * 88" . "88 * + * (| -_- |) * + * 0\ = /0 * + * ___/`---'\___ * + * .' \\| |// '. * + * / \\||| : |||// \ * + * / _||||| -:- |||||- \ * + * | | \\\ - /// | | * + * | \_| ''\---/'' |_/ | * + * \ .-\__ '-' ___/-. / * + * ___'. .' /--.--\ `. .'___ * + * ."" '< `.___\_<|>_/___.' >' "". * + * | | : `- \`.;`\ _ /`;.`/ - ` : | | * + * \ \ `_. \_ __\ /__ _/ .-` / / * + * =====`-.____`.___ \_____/___.-`___.-'===== * + * `=---=' * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * + *********__佛祖保佑__永无BUG__验收通过__钞票多多__********* + *********************************************************/ +package com.yxt.anrui.as.biz.ascustomervehicle; + +import com.yxt.anrui.as.api.ascustomervehicle.*; +import com.yxt.common.core.query.PagerQuery; +import com.yxt.common.core.result.ResultBean; +import com.yxt.common.core.vo.PagerVo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * Project: asdfasd(sdg)
+ * File: AsCustomerVehicleFeignFallback.java
+ * Class: as.biz.ascustomervehicle.AsCustomerVehicleRest
+ * Description: 客户车辆信息.
+ * Copyright: Copyright (c) 2011
+ * Company: https://gitee.com/liuzp315
+ * Makedate: 2024-03-19 11:28:19
+ * + * @author liupopo + * @version 1.0 + * @since 1.0 + */ +@Api(tags = "客户车辆信息") +@RestController +@RequestMapping("as/v1/ascustomervehicle") +public class AsCustomerVehicleRest{ + + @Autowired + private AsCustomerVehicleService asCustomerVehicleService; + + + @ApiOperation("根据条件分页查询数据的列表") + @PostMapping("/listPage") + public ResultBean> listPage(@RequestBody PagerQuery pq){ + ResultBean rb = ResultBean.fireFail(); + PagerVo pv = asCustomerVehicleService.listPageVo(pq); + return rb.success().setData(pv); + } + + @ApiOperation("查询数据的列表") + @PostMapping("/listCustomerVeh") + public ResultBean> listCustomerVeh(){ + ResultBean rb = ResultBean.fireFail(); + List list = asCustomerVehicleService.listCustomerVeh(); + return rb.success().setData(list); + } + + @ApiOperation("新增或修改") + @PostMapping("/save") + public ResultBean save(@RequestBody AsCustomerVehicleDto dto){ + ResultBean rb = ResultBean.fireFail(); + asCustomerVehicleService.saveOrUpdateDto(dto); + return rb.success(); + } + + + @ApiOperation("根据sid批量删除") + @PostMapping("/delBySids") + public ResultBean delBySids(@RequestBody String[] sids){ + ResultBean rb = ResultBean.fireFail(); + asCustomerVehicleService.delBySids(sids); + return rb.success(); + } + + + @ApiOperation("根据SID获取一条记录") + @GetMapping("/fetchDetailsBySid/{sid}") + public ResultBean fetchDetailsBySid(@PathVariable("sid") String sid){ + ResultBean rb = ResultBean.fireFail(); + AsCustomerVehicleDetailsVo vo = asCustomerVehicleService.fetchDetailsVoBySid(sid); + return rb.success().setData(vo); + } +} diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java new file mode 100644 index 0000000000..921e1477db --- /dev/null +++ b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java @@ -0,0 +1,109 @@ +/********************************************************* + ********************************************************* + ******************** ******************* + ************* ************ + ******* _oo0oo_ ******* + *** o8888888o *** + * 88" . "88 * + * (| -_- |) * + * 0\ = /0 * + * ___/`---'\___ * + * .' \\| |// '. * + * / \\||| : |||// \ * + * / _||||| -:- |||||- \ * + * | | \\\ - /// | | * + * | \_| ''\---/'' |_/ | * + * \ .-\__ '-' ___/-. / * + * ___'. .' /--.--\ `. .'___ * + * ."" '< `.___\_<|>_/___.' >' "". * + * | | : `- \`.;`\ _ /`;.`/ - ` : | | * + * \ \ `_. \_ __\ /__ _/ .-` / / * + * =====`-.____`.___ \_____/___.-`___.-'===== * + * `=---=' * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * + *********__佛祖保佑__永无BUG__验收通过__钞票多多__********* + *********************************************************/ +package com.yxt.anrui.as.biz.ascustomervehicle; + +import cn.hutool.core.bean.BeanUtil; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.yxt.anrui.as.api.ascustomervehicle.*; +import org.apache.commons.lang3.StringUtils; +import com.yxt.common.base.service.MybatisBaseService; +import com.yxt.common.base.utils.PagerUtil; +import com.yxt.common.core.query.PagerQuery; +import com.yxt.common.core.result.ResultBean; +import com.yxt.common.core.vo.PagerVo; + +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * Project: asdfasd(sdg)
+ * File: AsCustomerVehicleService.java
+ * Class: as.biz.ascustomervehicle.AsCustomerVehicleService
+ * Description: 客户车辆信息 业务逻辑.
+ * Copyright: Copyright (c) 2011
+ * Company: https://gitee.com/liuzp315
+ * Makedate: 2024-03-19 11:28:19
+ * + * @author liupopo + * @version 1.0 + * @since 1.0 + */ +@Service +public class AsCustomerVehicleService extends MybatisBaseService { + private QueryWrapper createQueryWrapper(AsCustomerVehicleQuery query) { + // todo: 这里根据具体业务调整查询条件 + // 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName())); + QueryWrapper qw = new QueryWrapper<>(); + return qw; + } + + public PagerVo listPageVo(PagerQuery pq) { + AsCustomerVehicleQuery query = pq.getParams(); + QueryWrapper qw = createQueryWrapper(query); + IPage page = PagerUtil.queryToPage(pq); + IPage pagging = baseMapper.selectPageVo(page, qw); + PagerVo p = PagerUtil.pageToVo(pagging, null); + return p; + } + + public void saveOrUpdateDto(AsCustomerVehicleDto dto){ + String dtoSid = dto.getSid(); + if (StringUtils.isBlank(dtoSid)) { + this.insertByDto(dto); + return; + } + this.updateByDto(dto); + } + + public void insertByDto(AsCustomerVehicleDto dto){ + AsCustomerVehicle entity = new AsCustomerVehicle(); + BeanUtil.copyProperties(dto, entity, "id", "sid"); + baseMapper.insert(entity); + } + + public void updateByDto(AsCustomerVehicleDto dto){ + String dtoSid = dto.getSid(); + if (StringUtils.isBlank(dtoSid)) { + return; + } + AsCustomerVehicle entity = fetchBySid(dtoSid); + BeanUtil.copyProperties(dto, entity, "id", "sid"); + baseMapper.updateById(entity); + } + + public AsCustomerVehicleDetailsVo fetchDetailsVoBySid(String sid){ + AsCustomerVehicle entity = fetchBySid(sid); + AsCustomerVehicleDetailsVo vo = new AsCustomerVehicleDetailsVo(); + BeanUtil.copyProperties(entity, vo); + return vo; + } + + public List listCustomerVeh() { + return baseMapper.listCustomerVeh(); + } +} \ No newline at end of file