芯片管理平台数据统计(二)

所有芯片的内外部分配、签收等流转数据(含 1 中的待签收数据)

请求 URL:
请求方式:
  • GET/POST
参数形式:
  • form-data
参数:
参数名位置类型说明是否必填
access_tokenheaderString用户 token
返回:
返回示例
查询 sql
status 流转状态(0--分配中,1--签收,2--拒签)
select  
<if test='status == "0" and receiver != null'>  
 ea.ALARM_INFO_ID alarmInfoId,  
</if>  
 sc.COMPANY_NAME fromCompanyName,  
 su.USER_NAME fromUserName,  
 su.FULL_NAME fromFullName,  
 date_format(e.send_time,'%Y-%m-%d %H:%i:%S') dateStr,  
 DATE_FORMAT(e.receive_time,'%Y-%m-%d %H:%i:%S') endDateSt,  
 rc.COMPANY_NAME toCompanyName,  
 ru.USER_NAME toUserName,  
 ru.FULL_NAME toFullName,  
 count(1) count,  
 e.send_type sourceTypeName,  
 e.uuid uuid  
from   
 equipment_info_distribute e  
join user su on su.USER_ID = e.sender  
join user ru on ru.USER_ID = e.receiver  
join company sc on sc.COMPANY_ID = e.sender_company  
join company rc on rc.COMPANY_ID = e.receiver_company  
<if test='status == "0"  and receiver != null'>  
 left join equipment_alarm_info ea on ea.OTHER_DATA_ID = e.uuid  
</if>  
where  
1=1  
 and e.`status` = #{status}  
<if test="sender != null and sender != ''">  
 and e.sender = #{sender}  
</if>  
<if test="receiver != null and receiver != ''">  
 and e.receiver = #{receiver}  
</if>  
group by e.uuid  
order by e.send_time desc  
备注

上一篇 芯片管理平台数据统计 (一)
芯片管理平台接口目录
下一篇 芯片管理平台数据统计(三)