Merge branch 'qtz' of SH-Arbitrate/Arbitrate-Backend into dev
This commit was merged in pull request #23.
This commit is contained in:
@@ -24,7 +24,26 @@ public class CaseApplication extends BaseEntity {
|
|||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date registerDate;
|
private Date registerDate;
|
||||||
/** 仲裁方式 */
|
/** 仲裁方式 */
|
||||||
private int arbitratMethod;
|
private Integer arbitratMethod;
|
||||||
|
|
||||||
|
public Integer getArbitratMethod() {
|
||||||
|
return arbitratMethod;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setArbitratMethod(Integer arbitratMethod) {
|
||||||
|
this.arbitratMethod = arbitratMethod;
|
||||||
|
}
|
||||||
|
/** 仲裁方式名称 */
|
||||||
|
private String arbitratMethodName;
|
||||||
|
|
||||||
|
public String getArbitratMethodName() {
|
||||||
|
return arbitratMethodName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setArbitratMethodName(String arbitratMethodName) {
|
||||||
|
this.arbitratMethodName = arbitratMethodName;
|
||||||
|
}
|
||||||
|
|
||||||
/** 案件状态 */
|
/** 案件状态 */
|
||||||
private Integer caseStatus;
|
private Integer caseStatus;
|
||||||
|
|
||||||
@@ -82,12 +101,37 @@ public class CaseApplication extends BaseEntity {
|
|||||||
private String caseDescribe;
|
private String caseDescribe;
|
||||||
|
|
||||||
/** 是否同意组庭 */
|
/** 是否同意组庭 */
|
||||||
private int isAgreePendTral;
|
private Integer isAgreePendTral;
|
||||||
|
|
||||||
/** 是否有异议需要举证 */
|
/** 是否有异议需要举证 */
|
||||||
private int objectionAddEviden;
|
private Integer objectionAddEviden;
|
||||||
/** 是否需要开庭审理 */
|
/** 是否需要开庭审理 */
|
||||||
private int openCourtHear;
|
private Integer openCourtHear;
|
||||||
|
|
||||||
|
public Integer getIsAgreePendTral() {
|
||||||
|
return isAgreePendTral;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsAgreePendTral(Integer isAgreePendTral) {
|
||||||
|
this.isAgreePendTral = isAgreePendTral;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getObjectionAddEviden() {
|
||||||
|
return objectionAddEviden;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setObjectionAddEviden(Integer objectionAddEviden) {
|
||||||
|
this.objectionAddEviden = objectionAddEviden;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOpenCourtHear() {
|
||||||
|
return openCourtHear;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpenCourtHear(Integer openCourtHear) {
|
||||||
|
this.openCourtHear = openCourtHear;
|
||||||
|
}
|
||||||
|
|
||||||
/** 案件状态名称 */
|
/** 案件状态名称 */
|
||||||
private String caseStatusName;
|
private String caseStatusName;
|
||||||
/** 是否同意审核 */
|
/** 是否同意审核 */
|
||||||
@@ -130,29 +174,7 @@ public class CaseApplication extends BaseEntity {
|
|||||||
this.respondentName = respondentName;
|
this.respondentName = respondentName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getObjectionAddEviden() {
|
|
||||||
return objectionAddEviden;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setObjectionAddEviden(int objectionAddEviden) {
|
|
||||||
this.objectionAddEviden = objectionAddEviden;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getOpenCourtHear() {
|
|
||||||
return openCourtHear;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOpenCourtHear(int openCourtHear) {
|
|
||||||
this.openCourtHear = openCourtHear;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getIsAgreePendTral() {
|
|
||||||
return isAgreePendTral;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIsAgreePendTral(int isAgreePendTral) {
|
|
||||||
this.isAgreePendTral = isAgreePendTral;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCaseName() {
|
public String getCaseName() {
|
||||||
return caseName;
|
return caseName;
|
||||||
@@ -414,13 +436,6 @@ public class CaseApplication extends BaseEntity {
|
|||||||
this.registerDate = registerDate;
|
this.registerDate = registerDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getArbitratMethod() {
|
|
||||||
return arbitratMethod;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setArbitratMethod(int arbitratMethod) {
|
|
||||||
this.arbitratMethod = arbitratMethod;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+7
@@ -20,6 +20,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@@ -53,6 +54,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
public int insertcaseApplication(CaseApplication caseApplication) {
|
public int insertcaseApplication(CaseApplication caseApplication) {
|
||||||
// 新增立案信息
|
// 新增立案信息
|
||||||
caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
|
caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
|
||||||
|
//根据仲裁费用计费规则计算应缴费用
|
||||||
|
//暂时设置计费比率为0.01
|
||||||
|
BigDecimal feeRate = new BigDecimal(0.01);
|
||||||
|
BigDecimal feePayable = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
|
||||||
|
caseApplication.setFeePayable(feePayable);
|
||||||
|
|
||||||
int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
|
int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
|
||||||
List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
|
List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
|
||||||
if(caseAffiliates!=null&&caseAffiliates.size()>0){
|
if(caseAffiliates!=null&&caseAffiliates.size()>0){
|
||||||
|
|||||||
@@ -28,12 +28,20 @@
|
|||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
<result property="updateBy" column="update_by" />
|
<result property="updateBy" column="update_by" />
|
||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="arbitratMethodName" column="arbitratMethodName" />
|
||||||
|
|
||||||
|
<result property="arbitratorId" column="arbitrator_id" />
|
||||||
|
<result property="arbitratorName" column="arbitrator_name" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
<select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
||||||
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,
|
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
||||||
|
CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
|
||||||
|
ELSE '无审理方式'
|
||||||
|
END arbitratMethodName,
|
||||||
|
c.case_status ,
|
||||||
CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
|
CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
|
||||||
when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
|
when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
|
||||||
when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
|
when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
|
||||||
@@ -61,6 +69,7 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by c.create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectCaseApplicationCount" parameterType="CaseApplication" resultType="int">
|
<select id="selectCaseApplicationCount" parameterType="CaseApplication" resultType="int">
|
||||||
@@ -173,10 +182,23 @@
|
|||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="selectCaseApplication" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
<select id="selectCaseApplication" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
||||||
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,c.hear_date ,c.arbitrat_claims ,
|
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
||||||
|
CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
|
||||||
|
ELSE '无审理方式'
|
||||||
|
END arbitratMethodName,
|
||||||
|
c.case_status ,
|
||||||
|
CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
|
||||||
|
when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
|
||||||
|
when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
|
||||||
|
when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
|
||||||
|
when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
|
||||||
|
when 15 then '待仲裁文书送达' when 16 then '待案件归档'
|
||||||
|
ELSE '无案件状态'
|
||||||
|
END caseStatusName,
|
||||||
|
c.hear_date ,c.arbitrat_claims ,
|
||||||
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
|
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
|
||||||
c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
|
c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
|
||||||
c.update_by ,c.update_time
|
c.update_by ,c.update_time,c.arbitrator_id,c.arbitrator_name
|
||||||
from case_application c
|
from case_application c
|
||||||
<where>
|
<where>
|
||||||
<if test="id != null ">
|
<if test="id != null ">
|
||||||
|
|||||||
Reference in New Issue
Block a user