curl-X POST -H'X-Access-Token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MjA3OTI2NDcsInVzZXJuYW1lIjoibGlyZW4ifQ.7-u5-GfA-K_EbDQcO6LsnJJumE2aCuonOxf-LYnVSNM'-F'mineNo=370982030705'-F'equipNo=ruqin@10.68.83.33'-F'eventTypeCode=A03A06'-F'modelId=1715203693151416321'-F'alarmContent=人员进入:报警'-F'occurTime=2024-07-12 10:32:07' http://localhost:8080/aiAlarm/saveDibholeEnter
9、
UPDATE ai_p
SET alarm_id =(SELECT b.id FROM ai_a AS b WHERE event_c ='A05232A01232'AND b.occur_time ='2023-07-04 01:18:23')WHERE
parent_id =(SELECT a.id FROM ai_pc AS a WHERE a.occur_time ='2023-07-04 01:18:23')update ai_r a set a.rid =(select id from ai_rdata b where a.name = b.name)
8、npm install 报错
pm ERR! invalid json response body at http://registry.npm.taobao.org/posthtml reason: Unexpected token <in JSON at position 0
1、先执行这两个命令
npm config set proxy null 回车
npm config set https-proxy null 回车
2、再执行: npm config set registry http://registry.cnpmjs.org/ 回车
3、最后执行:npm install-g cnpm --registry=https://registry.npm.taobao.org 回车
一般都能解决。
7、
<resultMapid="aMap"type="org.jeecg.modules.archive.entity.A"><idproperty="id"column="id"/><resultproperty="xxxXxx"column="xxx_xxx"/><resultproperty="createBy"column="create_by"/><resultproperty="createTime"column="create_time"/><associationproperty="archiveFile"javaType="org.jeecg.modules.archive.entity.F"><idproperty="id"column="f_id"/><resultproperty="fileId"column="f_file_id"/><resultproperty="createBy"column="f_create_by"/><resultproperty="createTime"column="f_create_time"/></association></resultMap><selectid="listBypage"parameterType="org.jeecg.modules.archive.entity.A"resultMap="aMap">
SELECT a.*, b.*
FROM archive a
LEFT JOIN file b ON a.id = b.archive_id
WHERE a.state = '0' AND a.code like concat(#{entity.code},'%')
<iftest="entity.year!= null"><choose><whentest="entity.month!= null">
AND ( ( DATE_FORMAT(a.start_time,'%Y-%c') <![CDATA[ <concat(concat(#{entity.year}, '-'), #{entity.month}) ]]>
AND DATE_FORMAT(a.end_time,'%Y-%c') <![CDATA[ > concat(concat(#{entity.year}, '-'), #{entity.month}) ) ]]>
or ( DATE_FORMAT(a.start_time,'%Y-%c') = concat(concat(#{entity.year}, '-'), #{entity.month})
or DATE_FORMAT(a.end_time,'%Y-%c') = concat(concat(#{entity.year}, '-'), #{entity.month}) ) )
</when><otherwise>
AND (a.start_time REGEXP #{entity.year} or a.end_time REGEXP #{entity.year})
</otherwise></choose></if></select>
6、mybatais 一对多
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPEmapperPUBLIC"-//mybatis.org//DTD Mapper 3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mappernamespace="org.jeecg.modules.archive.mapper.Mapper"><resultMapid="BaseResultMap"type="org.jeecg.modules.archive.entity.A"><idproperty="id"column="id"/><resultproperty="xxXx"column="xx_xx"/><resultproperty="createBy"column="create_by"/><resultproperty="createTime"column="create_time"/><collectionproperty="archiveFileList"ofType="org.jeecg.modules.archive.entity.F"select="selectArchiveFileList"column="{pId = id}"/></resultMap><selectid="listByPage"parameterType="org.jeecg.modules.archive.entity.A"resultMap="BaseResultMap">
SELECT a.* FROM a a
WHERE a.state = '0'
</select><selectid="selectArchiveFileList"resultType="org.jeecg.modules.archive.entity.F">
SELECT b.* FROM f b
<where>
b.archive_id = #{archiveId}
</where></select></mapper>