导入时加案件名称
This commit is contained in:
@@ -16,6 +16,9 @@ public class CaseApplication extends BaseEntity {
|
||||
|
||||
/** ID */
|
||||
private Long id;
|
||||
/** 案件名称 */
|
||||
@Excel(name = "案件名称")
|
||||
private String caseName;
|
||||
/** 案件编号 */
|
||||
// @Excel(name = "案件编号")
|
||||
private String caseNum;
|
||||
@@ -127,8 +130,7 @@ public class CaseApplication extends BaseEntity {
|
||||
/** 仲裁员名称 */
|
||||
private String arbitratorName;
|
||||
|
||||
/** 案件名称 */
|
||||
private String caseName;
|
||||
|
||||
|
||||
/** 案件描述 */
|
||||
private String caseDescribe;
|
||||
|
||||
+6
@@ -1472,6 +1472,11 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
* @param failureMsg
|
||||
*/
|
||||
private void validBaseColumn(CaseApplication caseApplication, StringBuilder failureMsg) {
|
||||
if( StrUtil.isEmpty(caseApplication.getCaseName())){
|
||||
failureMsg.append("【案件名称】字段不能为空;");
|
||||
}else if(caseApplication.getCaseName().length()>50){
|
||||
failureMsg.append("【案件名称】字段超出指定长度,最大长度为50;");
|
||||
}
|
||||
BigDecimal caseSubjectAmount = caseApplication.getCaseSubjectAmount();
|
||||
if(null== caseSubjectAmount){
|
||||
failureMsg.append("【案件标的】字段不合法;");
|
||||
@@ -2391,6 +2396,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
private void copyCaseApplication(CaseApplication caseApplicationinsertDiffer, CaseApplication caseApplicationNew) {
|
||||
caseApplicationNew.setArbitratClaims(caseApplicationinsertDiffer.getArbitratClaims());
|
||||
caseApplicationNew.setCaseNum(caseApplicationinsertDiffer.getCaseNum());
|
||||
caseApplicationNew.setCaseName(caseApplicationinsertDiffer.getCaseName());
|
||||
caseApplicationNew.setCaseSubjectAmount(caseApplicationinsertDiffer.getCaseSubjectAmount());
|
||||
caseApplicationNew.setLoanStartDate(caseApplicationinsertDiffer.getLoanStartDate());
|
||||
caseApplicationNew.setLoanEndDate(caseApplicationinsertDiffer.getLoanEndDate());
|
||||
|
||||
Reference in New Issue
Block a user