提交代码,工程,设备权限,设备数据
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.njcn.csdevice.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.csdevice.pojo.po.CsDeviceUserPO;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2023/6/27 9:40【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface CsDeviceUserPOMapper extends BaseMapper<CsDeviceUserPO> {
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.csdevice.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.csdevice.pojo.po.CsTouristDataPO;
|
||||
import com.njcn.csdevice.pojo.vo.CsTouristDataParmVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2023/6/27 15:50【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface CsTouristDataPOMapper extends BaseMapper<CsTouristDataPO> {
|
||||
List<CsTouristDataParmVO> queryAll();
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.csdevice.mapper.CsDeviceUserPOMapper">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.csdevice.pojo.po.CsDeviceUserPO">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table cs_device_user-->
|
||||
<result column="primary_user_id" jdbcType="VARCHAR" property="primaryUserId" />
|
||||
<result column="sub_user_id" jdbcType="VARCHAR" property="subUserId" />
|
||||
<result column="device_id" jdbcType="VARCHAR" property="deviceId" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
primary_user_id, sub_user_id, device_id, create_by, create_time, update_by, update_time
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.csdevice.mapper.CsTouristDataPOMapper">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.csdevice.pojo.po.CsTouristDataPO">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table cs_tourist_data-->
|
||||
<result column="enginer_id" jdbcType="VARCHAR" property="enginerId" />
|
||||
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
|
||||
<result column="device_id" jdbcType="VARCHAR" property="deviceId" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
enginer_id, project_id, device_id
|
||||
</sql>
|
||||
|
||||
<select id="queryAll" resultType="com.njcn.csdevice.pojo.vo.CsTouristDataParmVO">
|
||||
SELECT
|
||||
a.device_id,
|
||||
a.enginer_id,
|
||||
a.project_id,
|
||||
b. NAME deviceName,
|
||||
c. NAME projectName,
|
||||
d. NAME enginerName
|
||||
FROM
|
||||
cs_tourist_data a
|
||||
LEFT JOIN cs_ledger b ON a.device_id = b.id
|
||||
LEFT JOIN cs_ledger c ON a.project_id = c.id
|
||||
LEFT JOIN cs_ledger d ON a.enginer_id = d.id;
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user