Commit bb96356b by 赵增煜

测试脚本

parent 594f8cc5
......@@ -41,9 +41,9 @@ public function handle()
// }
// 刷新存量问诊人年龄
$query = PatientModel::query()->whereNotNull('id_card')->where('age','0');
$query = PatientModel::query()->whereNotNull('id_card')->whereRaw('age = ?', [0]);
$sql = $query->toSql();
dd($sql);
var_dump($sql);
$patients = $query->get();
if( $patients->count() > 0 ){
foreach ($patients as $patient) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment