|
|
@@ -1894,9 +1894,13 @@ public class OrderItems extends Controller {
|
|
|
updateSQL.setSiteid(siteid);
|
|
|
updateSQL.setUniqueid(row.getLong("sa_orderitemsid"));
|
|
|
updateSQL.setValue("billingstatus", row.getString("billingstatus"));
|
|
|
- updateSQL.setValue("canoffqty", row.getString("qty"));
|
|
|
updateSQL.setValue("tobeoffqty", 0);
|
|
|
- updateSQL.setValue("offstatus", 1);
|
|
|
+ if (row.getString("billingstatus").equals("保内收费")) {
|
|
|
+ updateSQL.setValue("canoffqty", row.getString("qty"));
|
|
|
+ updateSQL.setValue("offstatus", 1);
|
|
|
+ } else {
|
|
|
+ updateSQL.setValue("canoffqty", 0);
|
|
|
+ }
|
|
|
|
|
|
// 将生成的 SQL 加入列表
|
|
|
sqlList.add(updateSQL.getSQL());
|