예제 #1
0
 function act_delSku()
 {
     $data = array();
     $id_arr = $_POST['id'];
     $id = implode(',', $id_arr);
     $where = "where id in(" . $id . ")";
     $list = WhStandardModel::delete($where);
     if ($list) {
         return $list;
     } else {
         self::$errCode = "003";
         self::$errMsg = "退回失败,请重试!";
         return false;
     }
 }
예제 #2
0
 function act_getSkuInfo()
 {
     $sku = $_POST['sku'];
     $where = "where sku='{$sku}' and sellerId=0 and detectStatus=0 order by id desc";
     $list = WhStandardModel::getNowWhList("*", $where);
     if ($list) {
         return $list;
     } else {
         self::$errCode = "003";
         self::$errMsg = "没有找到对应的料号!";
         return false;
     }
 }