From 5662d2f2f5f5d8e36b52ac139effa9cf5bf92bc8 Mon Sep 17 00:00:00 2001 From: qitz <18810291185@163.com> Date: Mon, 11 Sep 2023 14:29:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=8B=E6=A1=88=E7=94=B3=E8=AF=B7=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CaseApplicationController.java | 108 +++++++++ .../constant/CaseApplicationConstants.java | 23 ++ .../wisdomarbitrate/domain/CaseAffiliate.java | 150 ++++++++++++ .../domain/CaseApplication.java | 218 ++++++++++++++++++ .../mapper/CaseAffiliateMapper.java | 20 ++ .../mapper/CaseApplicationMapper.java | 23 ++ .../service/ICaseApplicationService.java | 22 ++ .../impl/CaseApplicationServiceImpl.java | 98 ++++++++ .../wisdomarbitrate/CaseAffiliateMapper.xml | 78 +++++++ .../wisdomarbitrate/CaseApplicationMapper.xml | 164 +++++++++++++ 10 files changed, 904 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java create mode 100644 ruoyi-common/src/main/java/com/ruoyi/common/constant/CaseApplicationConstants.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java new file mode 100644 index 0000000..1ccaea8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java @@ -0,0 +1,108 @@ +package com.ruoyi.web.controller.wisdomarbitrate; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.wisdomarbitrate.domain.CaseApplication; +import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService; +import org.apache.commons.lang3.ArrayUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +import static com.ruoyi.common.core.domain.AjaxResult.error; + + +@RestController +@RequestMapping("/caseApplication") +public class CaseApplicationController extends BaseController { + @Autowired + private ICaseApplicationService caseApplicationService; + + /** + * 查询立案数据 + */ + @PreAuthorize("@ss.hasPermi('caseApplication:list')") + @PostMapping("/list") + public TableDataInfo list(@Validated @RequestBody CaseApplication caseApplication) + { + startPage(); + List list = caseApplicationService.selectCaseApplicationList(caseApplication); + return getDataTable(list); + } + + /** + * 新增立案数据 + */ + @PreAuthorize("@ss.hasPermi('caseApplication:add')") + @Log(title = "新增立案数据", businessType = BusinessType.INSERT) + @PostMapping("/addCaseApplication") + public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication) + { + int caseApplicationCount = caseApplicationService.selectCaseApplicationCount(caseApplication); + if(caseApplicationCount>0){ + return error("新增立案申请'" + caseApplication.getCaseNum() + "'案件编号已存在"); + } + caseApplication.setCreateBy(getUsername()); + return toAjax(caseApplicationService.insertcaseApplication(caseApplication)); + } + + /** + * 修改立案数据 + */ + @PreAuthorize("@ss.hasPermi('caseApplication:edit')") + @Log(title = "修改立案数据", businessType = BusinessType.UPDATE) + @PostMapping("/editCaseApplication") + public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) + { + + caseApplication.setUpdateBy(getUsername()); + return toAjax(caseApplicationService.editCaseApplication(caseApplication)); + } + + /** + * 提交立案数据 + */ + @PreAuthorize("@ss.hasPermi('caseApplication:submit')") + @Log(title = "提交立案数据", businessType = BusinessType.UPDATE) + @PostMapping("/submitCaseApplication") + public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication) + { + + return toAjax(caseApplicationService.submitCaseApplication(caseApplication)); + } + + /** + * 删除立案数据 + */ + @PreAuthorize("@ss.hasPermi('caseApplication:remove')") + @Log(title = "删除立案数据", businessType = BusinessType.DELETE) + @PostMapping("/removeCaseApplication") + public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication) + { + + return toAjax(caseApplicationService.deletecaseApplicationByIds(caseApplication)); + } + + /** + * 查询立案信息 + */ + @PostMapping("/selectCaseApplication") + public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) + { + CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication); + return success(caseApplicationselect); + } + + + + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/CaseApplicationConstants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/CaseApplicationConstants.java new file mode 100644 index 0000000..8f338f3 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/CaseApplicationConstants.java @@ -0,0 +1,23 @@ +package com.ruoyi.common.constant; +/** + * 立案申请案件状态 + * + */ +public class CaseApplicationConstants { + /** 立案申请 */ + public static final int CASE_APPLICATION = 0; + /** 待缴费 */ + public static final int PENDING_PAYMENT = 1; + /** 待缴费确认 */ + public static final int PENDING_PAYMENT_CONFIRM = 2; + /** 待确认证据 */ + public static final int EVIDENCE_CONFREMED = 3; + /** 待组庭 */ + public static final int PENDING_TRIAL = 4; + + + + + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java new file mode 100644 index 0000000..719b699 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java @@ -0,0 +1,150 @@ +package com.ruoyi.wisdomarbitrate.domain; + +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +public class CaseAffiliate extends BaseEntity { + private static final long serialVersionUID = 1L; + /** ID */ + @Excel(name = "ID", cellType = Excel.ColumnType.NUMERIC, prompt = "ID") + private Long id; + /** 案件申请id */ + private Long caseAppliId; + /** 身份类型 */ + private int identityType; + /** 姓名 */ + @Excel(name = "姓名") + private String name; + /** 身份证号 */ + @Excel(name = "身份证号") + private String identityNum; + /** 单位电话 */ + @Excel(name = "单位电话") + private String workTelphone; + /** 联系电话 */ + @Excel(name = "联系电话") + private String contactTelphone; + /** 联系地址 */ + @Excel(name = "联系地址") + private String contactAddress; + /** 单位地址 */ + @Excel(name = "单位地址") + private String workAddress; + + /** 代理人姓名 */ + @Excel(name = "代理人姓名") + private String nameAgent; + /** 身份证号 */ + @Excel(name = "代理人身份证号") + private String identityNumAgent; + /** 联系电话 */ + @Excel(name = "代理人联系电话") + private String contactTelphoneAgent; + /** 联系地址 */ + @Excel(name = "代理人联系地址") + private String contactAddressAgent; + + public String getNameAgent() { + return nameAgent; + } + + public void setNameAgent(String nameAgent) { + this.nameAgent = nameAgent; + } + + public String getIdentityNumAgent() { + return identityNumAgent; + } + + public void setIdentityNumAgent(String identityNumAgent) { + this.identityNumAgent = identityNumAgent; + } + + public String getContactTelphoneAgent() { + return contactTelphoneAgent; + } + + public void setContactTelphoneAgent(String contactTelphoneAgent) { + this.contactTelphoneAgent = contactTelphoneAgent; + } + + public String getContactAddressAgent() { + return contactAddressAgent; + } + + public void setContactAddressAgent(String contactAddressAgent) { + this.contactAddressAgent = contactAddressAgent; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getCaseAppliId() { + return caseAppliId; + } + + public void setCaseAppliId(Long caseAppliId) { + this.caseAppliId = caseAppliId; + } + + public int getIdentityType() { + return identityType; + } + + public void setIdentityType(int identityType) { + this.identityType = identityType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getIdentityNum() { + return identityNum; + } + + public void setIdentityNum(String identityNum) { + this.identityNum = identityNum; + } + + public String getWorkTelphone() { + return workTelphone; + } + + public void setWorkTelphone(String workTelphone) { + this.workTelphone = workTelphone; + } + + public String getContactTelphone() { + return contactTelphone; + } + + public void setContactTelphone(String contactTelphone) { + this.contactTelphone = contactTelphone; + } + + public String getContactAddress() { + return contactAddress; + } + + public void setContactAddress(String contactAddress) { + this.contactAddress = contactAddress; + } + + public String getWorkAddress() { + return workAddress; + } + + public void setWorkAddress(String workAddress) { + this.workAddress = workAddress; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java new file mode 100644 index 0000000..91976d3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java @@ -0,0 +1,218 @@ +package com.ruoyi.wisdomarbitrate.domain; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +public class CaseApplication extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** ID */ + @Excel(name = "ID", cellType = Excel.ColumnType.NUMERIC, prompt = "ID") + private Long id; + /** 案件编号 */ + @Excel(name = "案件编号") + private String caseNum; + /** 合同编号 */ + @Excel(name = "合同编号") + private String contractNumber; + /** 案件标的 */ + @Excel(name = "案件标的") + private BigDecimal caseSubjectAmount; + /** 立案日期 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date registerDate; + /** 仲裁方式 */ + private String arbitratMethod; + /** 案件状态 */ + private int caseStatus; + /** 开庭日期 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date hearDate; + /** 申请人仲裁诉求 */ + private String arbitratClaims; + /** 借款开始日期 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date loanStartDate; + /** 借款结束日期 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date loanEndDate; + /** 申请人主张欠本金 */ + @Excel(name = "申请人主张欠本金") + private BigDecimal claimPrinciOwed; + /** 申请人主张欠利息 */ + @Excel(name = "申请人主张欠利息") + private BigDecimal claimInterestOwed; + /** 申请人主张违约金 */ + @Excel(name = "申请人主张违约金") + private BigDecimal claimLiquidDamag; + /** 仲裁应缴费用 */ + private BigDecimal feePayable; + /** 仲裁实缴费用 */ + private BigDecimal paidExpenses; + /** 开始在线视频时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date beginVideoDate; + /** 在线视频人员 */ + private String onlineVideoPerson; + + /** 案件关联人信息 */ + private List caseAffiliates; + + + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getCaseNum() { + return caseNum; + } + + public void setCaseNum(String caseNum) { + this.caseNum = caseNum; + } + + public String getContractNumber() { + return contractNumber; + } + + public void setContractNumber(String contractNumber) { + this.contractNumber = contractNumber; + } + + public BigDecimal getCaseSubjectAmount() { + return caseSubjectAmount; + } + + public void setCaseSubjectAmount(BigDecimal caseSubjectAmount) { + this.caseSubjectAmount = caseSubjectAmount; + } + + public Date getRegisterDate() { + return registerDate; + } + + public void setRegisterDate(Date registerDate) { + this.registerDate = registerDate; + } + + public String getArbitratMethod() { + return arbitratMethod; + } + + public void setArbitratMethod(String arbitratMethod) { + this.arbitratMethod = arbitratMethod; + } + + public int getCaseStatus() { + return caseStatus; + } + + public void setCaseStatus(int caseStatus) { + this.caseStatus = caseStatus; + } + + public Date getHearDate() { + return hearDate; + } + + public void setHearDate(Date hearDate) { + this.hearDate = hearDate; + } + + public String getArbitratClaims() { + return arbitratClaims; + } + + public void setArbitratClaims(String arbitratClaims) { + this.arbitratClaims = arbitratClaims; + } + + public Date getLoanStartDate() { + return loanStartDate; + } + + public void setLoanStartDate(Date loanStartDate) { + this.loanStartDate = loanStartDate; + } + + public Date getLoanEndDate() { + return loanEndDate; + } + + public void setLoanEndDate(Date loanEndDate) { + this.loanEndDate = loanEndDate; + } + + public BigDecimal getClaimPrinciOwed() { + return claimPrinciOwed; + } + + public void setClaimPrinciOwed(BigDecimal claimPrinciOwed) { + this.claimPrinciOwed = claimPrinciOwed; + } + + public BigDecimal getClaimInterestOwed() { + return claimInterestOwed; + } + + public void setClaimInterestOwed(BigDecimal claimInterestOwed) { + this.claimInterestOwed = claimInterestOwed; + } + + public BigDecimal getClaimLiquidDamag() { + return claimLiquidDamag; + } + + public void setClaimLiquidDamag(BigDecimal claimLiquidDamag) { + this.claimLiquidDamag = claimLiquidDamag; + } + + public BigDecimal getFeePayable() { + return feePayable; + } + + public void setFeePayable(BigDecimal feePayable) { + this.feePayable = feePayable; + } + + public BigDecimal getPaidExpenses() { + return paidExpenses; + } + + public void setPaidExpenses(BigDecimal paidExpenses) { + this.paidExpenses = paidExpenses; + } + + public Date getBeginVideoDate() { + return beginVideoDate; + } + + public void setBeginVideoDate(Date beginVideoDate) { + this.beginVideoDate = beginVideoDate; + } + + public String getOnlineVideoPerson() { + return onlineVideoPerson; + } + + public void setOnlineVideoPerson(String onlineVideoPerson) { + this.onlineVideoPerson = onlineVideoPerson; + } + + public List getCaseAffiliates() { + return caseAffiliates; + } + + public void setCaseAffiliates(List caseAffiliates) { + this.caseAffiliates = caseAffiliates; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateMapper.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateMapper.java new file mode 100644 index 0000000..52e0057 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseAffiliateMapper.java @@ -0,0 +1,20 @@ +package com.ruoyi.wisdomarbitrate.mapper; + +import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate; +import com.ruoyi.wisdomarbitrate.domain.CaseApplication; + +import java.util.List; + +public interface CaseAffiliateMapper { + + + int batchCaseAffiliate(List caseAffiliates); + + + void deletecaseAffiliate(CaseApplication caseApplication); + + + List selectCaseAffiliate(CaseAffiliate caseAffiliate); + + int updataCaseAffiliate(CaseAffiliate caseAffiliate); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java new file mode 100644 index 0000000..f4c7bba --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java @@ -0,0 +1,23 @@ +package com.ruoyi.wisdomarbitrate.mapper; + +import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate; +import com.ruoyi.wisdomarbitrate.domain.CaseApplication; + +import java.util.List; + +public interface CaseApplicationMapper { + List selectCaseApplicationList(CaseApplication caseApplication); + + int selectCaseApplicationCount(CaseApplication caseApplication); + + int insertCaseApplication(CaseApplication caseApplication); + + + int updataCaseApplication(CaseApplication caseApplication); + + int submitCaseApplication(CaseApplication caseApplication); + + int deletecaseApplication(CaseApplication caseApplication); + + CaseApplication selectCaseApplication(CaseApplication caseApplication); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java new file mode 100644 index 0000000..97dfe2f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java @@ -0,0 +1,22 @@ +package com.ruoyi.wisdomarbitrate.service; + +import com.ruoyi.wisdomarbitrate.domain.CaseApplication; + +import java.util.List; + +public interface ICaseApplicationService { + List selectCaseApplicationList(CaseApplication caseApplication); + + + int insertcaseApplication(CaseApplication caseApplication); + + int selectCaseApplicationCount(CaseApplication caseApplication); + + int editCaseApplication(CaseApplication caseApplication); + + int submitCaseApplication(CaseApplication caseApplication); + + int deletecaseApplicationByIds(CaseApplication caseApplication); + + CaseApplication selectCaseApplication(CaseApplication caseApplication); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java new file mode 100644 index 0000000..75980b1 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java @@ -0,0 +1,98 @@ +package com.ruoyi.wisdomarbitrate.service.impl; + +import com.ruoyi.common.constant.CaseApplicationConstants; +import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate; +import com.ruoyi.wisdomarbitrate.domain.CaseApplication; +import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper; +import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper; +import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.lang.reflect.Field; +import java.util.List; + +import static com.ruoyi.common.core.domain.AjaxResult.error; + +@Service +public class CaseApplicationServiceImpl implements ICaseApplicationService { + @Autowired + private CaseApplicationMapper caseApplicationMapper; + + @Autowired + private CaseAffiliateMapper caseAffiliateMapper; + + + @Override + public List selectCaseApplicationList(CaseApplication caseApplication) { + return caseApplicationMapper.selectCaseApplicationList(caseApplication); + + } + + @Override + @Transactional + public int insertcaseApplication(CaseApplication caseApplication) { + // 新增立案信息 + caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION); + int rows = caseApplicationMapper.insertCaseApplication(caseApplication); + List caseAffiliates = caseApplication.getCaseAffiliates(); + if(caseAffiliates!=null&&caseAffiliates.size()>0){ + for (CaseAffiliate caseAffiliate : caseAffiliates){ + caseAffiliate.setCaseAppliId(caseApplication.getId()); + } + caseAffiliateMapper.batchCaseAffiliate(caseAffiliates); + } + + return rows; + } + + @Override + public int selectCaseApplicationCount(CaseApplication caseApplication) { + return caseApplicationMapper.selectCaseApplicationCount(caseApplication); + } + + @Override + @Transactional + public int editCaseApplication(CaseApplication caseApplication) { + int rows = caseApplicationMapper.updataCaseApplication(caseApplication); + List caseAffiliates = caseApplication.getCaseAffiliates(); + if(caseAffiliates!=null&&caseAffiliates.size()>0){ + for (CaseAffiliate caseAffiliate : caseAffiliates){ + caseAffiliateMapper.updataCaseAffiliate(caseAffiliate); + } + } + + return rows; + } + + @Override + @Transactional + public int submitCaseApplication(CaseApplication caseApplication) { + //提交立案申请 + caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT); + int rows = caseApplicationMapper.submitCaseApplication(caseApplication); + return rows; + } + + @Override + @Transactional + public int deletecaseApplicationByIds(CaseApplication caseApplication) { + + caseAffiliateMapper.deletecaseAffiliate(caseApplication); + return caseApplicationMapper.deletecaseApplication(caseApplication); + } + + @Override + public CaseApplication selectCaseApplication(CaseApplication caseApplication) { + CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication); + CaseAffiliate caseAffiliate = new CaseAffiliate(); + caseAffiliate.setCaseAppliId(caseApplication.getId()); + List caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate); + caseApplicationselect.setCaseAffiliates(caseAffiliatListeselect); + + return caseApplicationselect; + } + + +} diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml new file mode 100644 index 0000000..c1a9fd0 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + insert into case_affiliate(case_appli_id, identity_type,name,identity_num,contact_telphone, + contact_address,work_address,work_telphone ,name_agent,identity_num_agent,contact_telphone_agent, + contact_address_agent ) values + + (#{item.caseAppliId},#{item.identityType},#{item.name},#{item.identityNum},#{item.contactTelphone}, + #{item.contactAddress},#{item.workAddress},#{item.workTelphone}, #{item.nameAgent},#{item.identityNumAgent}, + #{item.contactTelphoneAgent},#{item.contactAddressAgent}) + + + + + + + update case_affiliate + set + identity_type= #{identityType}, + name = #{name}, + identity_num = #{identityNum}, + contact_telphone = #{contactTelphone}, + contact_address = #{contactAddress}, + work_address = #{workAddress}, + work_telphone = #{workTelphone}, + + name_agent = #{nameAgent}, + identity_num_agent = #{identityNumAgent}, + contact_telphone_agent = #{contactTelphoneAgent}, + contact_address_agent = #{contactAddressAgent} + where id = #{id} + + + + + delete from case_affiliate where case_appli_id = #{id} + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml new file mode 100644 index 0000000..c2f7aba --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into case_application( + + case_num, + case_subject_amount, + register_date, + arbitrat_method, + case_status, + hear_date, + arbitrat_claims, + loan_start_date, + loan_end_date, + claim_princi_owed, + + claim_interest_owed, + claim_liquid_damag, + fee_payable, + paid_expenses, + begin_video_date, + online_video_person, + + contract_number, + create_by, + create_time + )values( + #{caseNum}, + #{caseSubjectAmount}, + #{registerDate}, + #{arbitratMethod}, + #{caseStatus}, + #{hearDate}, + #{arbitratClaims}, + #{loanStartDate}, + #{loanEndDate}, + #{claimPrinciOwed}, + + #{claimInterestOwed}, + #{claimLiquidDamag}, + #{feePayable}, + #{paidExpenses}, + #{beginVideoDate}, + #{onlineVideoPerson}, + + #{contractNumber}, + #{createBy}, + sysdate() + ) + + + + update case_application + + case_subject_amount = #{caseSubjectAmount}, + register_date = #{registerDate}, + arbitrat_method = #{arbitratMethod}, + hear_date = #{hearDate}, + arbitrat_claims = #{arbitratClaims}, + loan_start_date = #{loanStartDate}, + loan_end_date = #{loanEndDate}, + claim_princi_owed = #{claimPrinciOwed}, + claim_interest_owed = #{claimInterestOwed}, + claim_liquid_damag = #{claimLiquidDamag}, + fee_payable = #{feePayable}, + paid_expenses = #{paidExpenses}, + begin_video_date = #{beginVideoDate}, + online_video_person = #{onlineVideoPerson}, + + contract_number = #{contractNumber}, + update_by = #{updateBy}, + update_time = sysdate() + + where id = #{id} + + + + update case_application + + case_status = #{caseStatus} + + where id = #{id} + + + + delete from case_application where id = #{id} + + + + + + + + + \ No newline at end of file