Exemplo n.º 1
0
 function act_getNowStandardList($select = '*', $where)
 {
     $list = DetectStandardModel::getNowStandardList($select, $where);
     if ($list) {
         return $list;
     } else {
         self::$errCode = DetectStandardModel::$errCode;
         self::$errMsg = DetectStandardModel::$errMsg;
         return false;
     }
 }
Exemplo n.º 2
0
 function act_getTypeInfo()
 {
     $cate = $_POST['cate'];
     $num = $_POST['num'];
     $sku = $_POST['sku'];
     $where = "where sampleTypeId='{$cate}' and minimumLimit<='{$num}' and maximumLimit>='{$num}' limit 1";
     $list = DetectStandardModel::getNowStandardList("*", $where);
     if ($list) {
         $list[0]['sku'] = get_sku_imgName($sku);
         return $list;
     } else {
         self::$errCode = "003";
         self::$errMsg = "未找到该类别的检测标准!";
         return false;
     }
 }