Authored by wangnan

skn下面所有skc状态为0,则skn状态为0 fix

... ... @@ -46,14 +46,16 @@ public class ProductGoodsBuilder implements ViewBuilder {
boolean sknInvalid = true;
for (int i = 0; i < jsonArray.size(); i++) {
JSONObject jsonObject = (JSONObject) jsonArray.get(i);
String status = jsonObject.get("status").toString();
if(status.equals("1")){
sknInvalid = false;
if (jsonObject.get("status") != null) {
String status = jsonObject.get("status").toString();
if (status.equals("1")) {
sknInvalid = false;
}
}
}
if(sknInvalid){
if (sknInvalid) {
productIndexBO.setStatus(0);
}else{
} else {
Product product = productService.getById(productIndexBO.getProductId());
if (product.getStatus() == 1) {
productIndexBO.setStatus(1);
... ...