|
@@ -116,12 +116,14 @@ class After extends Base
|
|
|
if($create>0){
|
|
|
|
|
|
//维护台账
|
|
|
- Db::name('standing_book')
|
|
|
- ->where('outCode', $outCode)
|
|
|
- ->update([
|
|
|
- 'returnCode' => $returnCode,
|
|
|
- 'updatetime' => date("Y-m-d H:i:s")
|
|
|
- ]);
|
|
|
+// Db::name('standing_book')
|
|
|
+// ->whereFindInSet('outCode', $outCode)
|
|
|
+// ->update([
|
|
|
+// 'returnCode' => $returnCode,
|
|
|
+// 'updatetime' => date("Y-m-d H:i:s")
|
|
|
+// ]);
|
|
|
+
|
|
|
+ Db::execute("UPDATE `wsm_standing_book` SET `returnCode`=CONCAT(`returnCode`,',{$returnCode}'),`updatetime`='" . date('Y-m-d H:i:s') . "' WHERE FIND_IN_SET('{$outCode}',`outCode`)");
|
|
|
|
|
|
$process=["order_code"=>$returnCode,"order_id"=>$create,"order_status"=>$in['status'],"order_type"=>'SHD',"before_status"=>1];
|
|
|
ProcessOrder::AddProcess($token,$process);
|