Commit 9cf069b3 authored by hongguangwu's avatar hongguangwu

优化合同

parent 894a17f7
......@@ -38,7 +38,7 @@ public class EmployeeConstants {
public static final String OTHERS = "其他";
public static final String SUB_MUST = "业务细分必填";
public static final String CONTRACT_END_MUST = "合同到期时间必填";
public static final String CONTRACT_TYPE_TWO = "2";
public static final String CONTRACT_TYPE_ONE = "1";
public static final String CONTRACT_NO_IN_USE = "暂无可操作的合同";
public static final String CONTRACT_NAME_EMPTY = "合同类型不能为空";
......
......@@ -843,7 +843,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
insert.setContractEnd(contractInfo.getContractEnd());
}
} else {
if (!EmployeeConstants.CONTRACT_TYPE_TWO.equals(insert.getContractType())
if (EmployeeConstants.CONTRACT_TYPE_ONE.equals(insert.getContractType())
&& Common.isEmpty(insert.getContractEnd())) {
errorInfo.append(EmployeeConstants.CONTRACT_END_MUST);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment