mysql里使用JSON_EXTRACT取值

{"contractStatusName":"拒签","msg":"操作成功","reason":"123","signers":[{"signName":"123","signStatus":4,"phoneNum":"123","userType":1,"signCode":"123","signStatusName":"签署完成","signOrder":1},{"signName":"北京外企人力资源服务有限公司","signStatus":1,"phoneNum":"18911869539","userType":2,"signCode":"9111010574470043X2","signStatusName":"待我签","signOrder":2}],"templateNo":"123","code":20000,"contractStatus":3,"contractId":"123","contractName":"劳动合同书-MFP","templateId":"123"}

 

--取到姓名
  SELECT JSON_EXTRACT(original_param, '$.signers[0].signName'), original_param 'o1' from fesco_sys_invoke_log where original_param like '%签署完成%'
     and  create_time>'2022-04-11 00:00:00' and create_time<'2022-06-01'

 

     
     
     
    

posted @ 2022-06-13 11:26  甜菜波波  阅读(123)  评论(0编辑  收藏  举报