Commit ffe11036 by 宋祥

1.字符串校验方法错误修正

parent c1a0de21
...@@ -245,7 +245,7 @@ public class HGSCTools { ...@@ -245,7 +245,7 @@ public class HGSCTools {
* @return * @return
*/ */
public static HGSC001 getByCode(String code) { public static HGSC001 getByCode(String code) {
AssertUtils.isNull(code, "项目Code不能为空!"); AssertUtils.isEmpty(code, "项目Code不能为空!");
Map queryMap = new HashMap(); Map queryMap = new HashMap();
queryMap.put(HGSC001.FIELD_proj_code, code); queryMap.put(HGSC001.FIELD_proj_code, code);
queryMap.put("notAuth", true); queryMap.put("notAuth", true);
...@@ -259,7 +259,7 @@ public class HGSCTools { ...@@ -259,7 +259,7 @@ public class HGSCTools {
* @return * @return
*/ */
public static HGSC001 queryByCode(String code) { public static HGSC001 queryByCode(String code) {
AssertUtils.isNull(code, "项目Code不能为空!"); AssertUtils.isEmpty(code, "项目Code不能为空!");
List<HGSC001> results = DaoBase.getInstance().query(HGSC001.QUERY, new HashMap<String, Object>() { List<HGSC001> results = DaoBase.getInstance().query(HGSC001.QUERY, new HashMap<String, Object>() {
{ {
put("projCode", code); put("projCode", code);
......
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