Commit 775e3eb2 authored by hanshuai's avatar hanshuai

Merge branch 'V2.0.3' of ssh://103.249.252.28:10022/lcy/education

# Conflicts:
#	src/main/java/org/rcisoft/business/barrange/service/impl/BArrangeServiceImpl.java
parent c46adda4
...@@ -138,10 +138,7 @@ public class BArrangeServiceImpl implements BArrangeService { ...@@ -138,10 +138,7 @@ public class BArrangeServiceImpl implements BArrangeService {
JSONObject subtask = childList.getJSONObject(i); JSONObject subtask = childList.getJSONObject(i);
BSubtask bSubtask = new BSubtask(); BSubtask bSubtask = new BSubtask();
List<BSubAgency> bSubAgencyList = new ArrayList<>(); List<BSubAgency> bSubAgencyList = new ArrayList<>();
if (subtask.getString("name").equals("")){ if (subtask.getString("name").equals("") ||subtask.getString("name").length()>256){
throw new ServiceException(ResultServiceEnums.PARAMETER_ERROR);
}
if(subtask.getString("name").length()>256){
throw new ServiceException(ResultServiceEnums.PARAMETER_ERROR); throw new ServiceException(ResultServiceEnums.PARAMETER_ERROR);
} }
bSubtask.setName(subtask.getString("name")); bSubtask.setName(subtask.getString("name"));
......
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