From a2f435a11e416f6752c2351b3b757e1e19bf1628 Mon Sep 17 00:00:00 2001 From: 8ga Date: Thu, 5 Jun 2025 17:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E9=BB=84=E6=96=87?= =?UTF-8?q?=E8=8D=A3.sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 黄文荣.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 黄文荣.sql diff --git a/黄文荣.sql b/黄文荣.sql new file mode 100644 index 0000000..01833c5 --- /dev/null +++ b/黄文荣.sql @@ -0,0 +1,8 @@ +select JSON_OBJECT( + 'id', t.contract_id, + 'code', t.contract_code, + 'contract_remark', t.contract_remark, + 'other_remark', t.other_remark + ) AS json_result +from biz_contract AS t where t.del_flag = '0' +and t.counsel_user_id = (select user_id from sys_user where del_flag ='0' and user_name = '黄文荣'); \ No newline at end of file