| | |
| | | <result column="wd" property="wd"/> |
| | | <result column="addvcd" property="addvcd"/> |
| | | <result column="street" property="street"/> |
| | | <result column="serialNumber" property="serialNumber"/> |
| | | <result column="stype" property="stype"/> |
| | | <result column="channelNumber" property="channelNumber"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="treeNodeResultMap" type="org.springblade.core.tool.node.TreeNode"> |
| | |
| | | |
| | | |
| | | <select id="selectEquipmentPage" resultMap="equipmentResultMap"> |
| | | select * from sys_equipment where is_deleted = 0 |
| | | select id,deviceName,deviceNumber,deviceType,ownership,ownerId,devicestate,stime,ST_ASTEXT (coordinate ) AS coordinate,dtype, |
| | | parent_id, |
| | | FORMAT( jd, 6 ) AS jd, |
| | | FORMAT( wd, 6 ) AS wd, |
| | | street, |
| | | addvcd from sys_equipment where 1=1 |
| | | <if test="equipment.deviceName!=null"> |
| | | and deviceName like concat('%',#{equipment.deviceName},'%') |
| | | </if> |
| | | <if test="equipment.addvcd!=null"> |
| | | and addvcd=#{equipment.addvcd} |
| | | </if> |
| | | <if test="equipment.deviceType!=null"> |
| | | and deviceType like concat('%',#{equipment.deviceType},'%') |
| | | </if> |
| | | <if test="equipment.deviceNumber!=null"> |
| | | and deviceNumber IN (${equipment.deviceNumber}) |
| | | </if> |
| | | <if test="equipment.dtype!=null"> |
| | | and dtype=#{equipment.dtype} |
| | | </if> |
| | | and parent_id!=0 |
| | | </select> |
| | | |
| | | <!--新增--> |
| | |
| | | coordinate=POINT(#{jd},#{wd}),parent_id=#{parentId},jd=#{jd},wd=#{wd},addvcd=#{addvnm},street=#{streeName},dtype=#{dtype} where id=#{id} |
| | | </update> |
| | | |
| | | <update id="updateOnes" parameterType="org.springblade.modules.equipment.entity.Equipment"> |
| | | update sys_equipment SET deviceName=#{deviceName},deviceNumber=#{deviceNumber},deviceType=#{deviceType}, |
| | | ownership=#{ownership},ownerId=#{yname},devicestate=#{devicestate},stime=#{stime}, |
| | | coordinate=POINT(#{jd},#{wd}),parent_id=#{parentId},jd=#{jd},wd=#{wd},addvcd=#{addvnm},street=#{streeName},dtype=#{dtype} where id=#{id} |
| | | </update> |
| | | |
| | | |
| | | <select id="selectInfo" resultMap="deptVOResultMap" |
| | | parameterType="org.springblade.modules.equipment.entity.Equipment"> |