|
@@ -382,7 +382,14 @@ public class GetBaseDAOUtil {
|
|
|
return (String) iuap.executeQuery(sql, new ColumnProcessor());
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ public static String getCubasdocpk(String custname)throws Exception {
|
|
|
+ String sql = "select pk_cubasdoc from bd_cubasdoc where custname = '"+custname+"' and dr = 0";
|
|
|
+ String pk_cubasdoc = (String) iuap.executeQuery(sql, new ColumnProcessor());
|
|
|
+ if(pk_cubasdoc == null) {
|
|
|
+ throw new Exception("客商"+custname+"未查到,请检查");
|
|
|
+ }
|
|
|
+ return pk_cubasdoc;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|