Commit f098643f by huangshunlin

actGetBlkCeb <> 补充 or is not null /is null 条件

parent df81effb
...@@ -1350,7 +1350,8 @@ public class GlemodServiceImpl implements GlemodService { ...@@ -1350,7 +1350,8 @@ public class GlemodServiceImpl implements GlemodService {
* source:glemod.0017.script * source:glemod.0017.script
*/ */
public String actgetsql(String ptyinr, String dsp, String cur) { public String actgetsql(String ptyinr, String dsp, String cur) {
String res = "WHERE EXTKEY <> ''"; // String res = "WHERE EXTKEY <> ''";
String res = "WHERE (EXTKEY is not null or EXTKEY <> '') ";
if (StringUtils.isNotEmpty(cur)) { if (StringUtils.isNotEmpty(cur)) {
res += " AND (CUR = '" + cur + "' or CUR = ' ')"; res += " AND (CUR = '" + cur + "' or CUR = ' ')";
} }
...@@ -1689,11 +1690,11 @@ public class GlemodServiceImpl implements GlemodService { ...@@ -1689,11 +1690,11 @@ public class GlemodServiceImpl implements GlemodService {
} }
String res = ""; String res = "";
if (MdaUtils.compareTo(amt, 0) < 0) { if (MdaUtils.compareTo(amt, 0) < 0) {
sqlblk += " AND DIRFLG <> 'D'"; sqlblk += " AND (DIRFLG is null or DIRFLG <> 'D' )";
} else { } else {
sqlblk += " AND DIRFLG <> 'C'"; sqlblk += " AND (DIRFLG is null or DIRFLG <> 'C' )";
} }
sqlblk += " AND DELFLG <> 'X' "; sqlblk += " AND (DELFLG is null or DELFLG <> 'X') ";
sqlblk = Utils.sdbEtyGenSql("ACT", sqlblk); sqlblk = Utils.sdbEtyGenSql("ACT", sqlblk);
sqlblk += " ORDER BY PRI DESC, INR DESC"; sqlblk += " ORDER BY PRI DESC, INR DESC";
String sql = "select EXTKEY from ACT " + sqlblk; String sql = "select EXTKEY from ACT " + sqlblk;
......
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