Ejemplo n.º 1
0
 public static function editDetail()
 {
     $mainid = $_POST['mainid'];
     $detailid = $_POST['detailid'];
     $beforecount = $_POST['beforecount'];
     $aftercount = $_POST['aftercount'];
     $rtnData = PurToWhModel::editDetail($mainid, $detailid, $beforecount, $aftercount);
     if ($rtnData) {
         $result['code'] = '1';
         $result['msg'] = '更新收货记录成功';
     } else {
         $result['code'] = '2';
         $result['msg'] = '更新收货记录失败';
     }
     return json_encode($result);
 }