$expiry_date = $balance_arr['data']['ecash_purseExpiry'];
$expiry_date = new DateTime($expiry_date);
$details['expiry_date'] = $expiry_date->format('Y-m-d');
去芜存菁
$expiry_date = $balance_arr['data']['ecash_purseExpiry'];
$expiry_date = new DateTime($expiry_date);
$details['expiry_date'] = $expiry_date->format('Y-m-d');
select * from new_mg.voucher_payment a, voucher b where a.payment_id =12 and b.submission_id in (a.submission_ids)
使用这种方式并没有办法 in到 ids里的所有id
解决办法是使用FIND_IN_SET
select b.voucher_id from new_mg.voucher_payment a, voucher b where a.payment_id =12 and FIND_IN_SET(b.submission_id,a.submission_ids)