|
@@ -152,6 +152,7 @@ public class promotionItems extends Controller {
|
|
|
saleFactory.addParameter("orderminqty", 1);
|
|
|
}
|
|
|
saleFactory.addParameter("islimit", iteminfo.getLong("islimit"));
|
|
|
+ saleFactory.addParameter("signaturecode", iteminfo.getStringValue("signaturecode"));
|
|
|
sqlList.add(saleFactory.getSQL());
|
|
|
Rows rows = itempricerowsMap.get(iteminfo.getLong("itemid"));
|
|
|
if (!rows.isEmpty()) {
|
|
@@ -181,6 +182,7 @@ public class promotionItems extends Controller {
|
|
|
saleFactory.addParameter("orderminqty", iteminfo.getBigDecimal("orderminqty"));
|
|
|
saleFactory.addParameter("islimit", iteminfo.getLong("islimit"));
|
|
|
saleFactory.addParameter("isonsale", iteminfo.getBooleanValue("isonsale"));
|
|
|
+ saleFactory.addParameter("signaturecode", iteminfo.getStringValue("signaturecode"));
|
|
|
sqlList.add(saleFactory.getSQL());
|
|
|
}
|
|
|
|
|
@@ -314,6 +316,7 @@ public class promotionItems extends Controller {
|
|
|
keys.add("price3");
|
|
|
keys.add("price4");
|
|
|
keys.add("price5");
|
|
|
+ keys.add("signaturecode");
|
|
|
|
|
|
int i = 0;
|
|
|
int a = 0;
|
|
@@ -338,6 +341,7 @@ public class promotionItems extends Controller {
|
|
|
String price3 = row.getString("price3");
|
|
|
String price4 = row.getString("price4");
|
|
|
String price5 = row.getString("price5");
|
|
|
+ String signaturecode = row.getString("signaturecode");
|
|
|
if (StringUtils.isEmpty(itemno)) {
|
|
|
iserr = true;
|
|
|
row.put("msg", "产品编码不能为空");
|
|
@@ -390,6 +394,8 @@ public class promotionItems extends Controller {
|
|
|
row.put("oldprice3", item.getDouble("price3"));
|
|
|
row.put("oldprice4", item.getDouble("price4"));
|
|
|
row.put("oldprice5", item.getDouble("price5"));
|
|
|
+
|
|
|
+
|
|
|
rowssuc.add(row);
|
|
|
}
|
|
|
if (iserr) {
|
|
@@ -404,6 +410,7 @@ public class promotionItems extends Controller {
|
|
|
map.put("price3", "价格三活动价");
|
|
|
map.put("price4", "价格四活动价");
|
|
|
map.put("price5", "价格五活动价");
|
|
|
+ map.put("signaturecode", "特征码");
|
|
|
map.put("msg", "错误信息");
|
|
|
ArrayList<String> colNameList = new ArrayList<String>();
|
|
|
HashMap<String, Class> keytypemap = new HashMap<String, Class>();
|
|
@@ -416,6 +423,7 @@ public class promotionItems extends Controller {
|
|
|
colNameList.add("price3");
|
|
|
colNameList.add("price4");
|
|
|
colNameList.add("price5");
|
|
|
+ colNameList.add("signaturecode");
|
|
|
colNameList.add("msg");
|
|
|
keytypemap.put("itemno", String.class);
|
|
|
keytypemap.put("orderminqty", String.class);
|
|
@@ -426,6 +434,7 @@ public class promotionItems extends Controller {
|
|
|
keytypemap.put("price3", String.class);
|
|
|
keytypemap.put("price4", String.class);
|
|
|
keytypemap.put("price5", String.class);
|
|
|
+ keytypemap.put("signaturecode", String.class);
|
|
|
keytypemap.put("msg", String.class);
|
|
|
rowserr.setFieldList(colNameList);
|
|
|
rowserr.setFieldTypeMap(keytypemap);
|
|
@@ -453,6 +462,7 @@ public class promotionItems extends Controller {
|
|
|
sqlFactory.addParameter("orderaddqty", row.getString("orderaddqty"));
|
|
|
sqlFactory.addParameter("orderminqty", row.getString("orderminqty"));
|
|
|
sqlFactory.addParameter("islimit", row.getString("islimit"));
|
|
|
+ sqlFactory.addParameter("signaturecode", row.getString("signaturecode"));
|
|
|
sqllist.add(sqlFactory.getSQL());
|
|
|
for (int o = 1; o <= 5; o++) {
|
|
|
long sa_promotion_itempriceid = sa_promotion_itempriceids[a];
|
|
@@ -518,7 +528,7 @@ public class promotionItems extends Controller {
|
|
|
} else {
|
|
|
datarow.createCell(i1).setCellValue(row.getString((String) keylist.get(i1)));
|
|
|
}
|
|
|
- if (i1 == 9) {
|
|
|
+ if (i1 == 10) {
|
|
|
datarow.getCell(i1).setCellStyle(xssfCellStyle1);
|
|
|
}
|
|
|
}
|