|
@@ -20,9 +20,31 @@ class Yyys extends Lyapi_Controller{
|
|
|
// }
|
|
// }
|
|
|
$ys_no = "";
|
|
$ys_no = "";
|
|
|
if(!empty($data['content'])){
|
|
if(!empty($data['content'])){
|
|
|
- if(!empty($data['content']['code'])){
|
|
|
|
|
- $ys_no = $data['content']['code'];
|
|
|
|
|
|
|
+ //调拨单审核
|
|
|
|
|
+ if($data['type'] == "st_transferapply_bill_audit"){
|
|
|
|
|
+ if(!empty($data['content']['code'])){
|
|
|
|
|
+ $ys_no = $data['content']['code'];
|
|
|
|
|
+ }
|
|
|
|
|
+ }elseif($data['type'] == "SALE_AUDITORDER_NOTIFY_SENT"){
|
|
|
|
|
+ //销售单
|
|
|
|
|
+ if(!empty($data['content']['BILL_INFO'])){
|
|
|
|
|
+ if(!empty($data['content']['BILL_INFO']['billCode'])){
|
|
|
|
|
+ $ys_no = $data['content']['BILL_INFO']['billCode'];
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ if(empty($data['gsmc'])){
|
|
|
|
|
+ $this->db->insert("ysnorecords",[
|
|
|
|
|
+ 'ys_no'=>"",
|
|
|
|
|
+ 'recept_cont'=>$json_str,
|
|
|
|
|
+ 'addtime'=>time(),
|
|
|
|
|
+ ]);
|
|
|
|
|
+ echo "SUCCESS";
|
|
|
|
|
+ exit;
|
|
|
}
|
|
}
|
|
|
if($jiami_str != $data['gsmc']){
|
|
if($jiami_str != $data['gsmc']){
|
|
|
$this->db->insert("ysnorecords",[
|
|
$this->db->insert("ysnorecords",[
|
|
@@ -30,8 +52,6 @@ class Yyys extends Lyapi_Controller{
|
|
|
'recept_cont'=>$json_str,
|
|
'recept_cont'=>$json_str,
|
|
|
'addtime'=>time(),
|
|
'addtime'=>time(),
|
|
|
]);
|
|
]);
|
|
|
- echo "ERROR";
|
|
|
|
|
- exit;
|
|
|
|
|
}else{
|
|
}else{
|
|
|
$time = time();
|
|
$time = time();
|
|
|
$info = $this->ysrecords->find("ys_no = '{$ys_no}'");
|
|
$info = $this->ysrecords->find("ys_no = '{$ys_no}'");
|
|
@@ -56,7 +76,7 @@ class Yyys extends Lyapi_Controller{
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
//调拨订单弃审
|
|
//调拨订单弃审
|
|
|
- if($data['type'] == 'st_transferapply_bill_unaudit'){
|
|
|
|
|
|
|
+ if($data['type'] == 'SALE_AUDITORDER_NOTIFY_SENT'){
|
|
|
$this->ysrecords->save(
|
|
$this->ysrecords->save(
|
|
|
[
|
|
[
|
|
|
'recept_cont'=>$json_str,
|
|
'recept_cont'=>$json_str,
|