隐患排查APP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

<?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.hisense.hiatmp.server_api.mapper.OperatorMapper">
<select id="getOperatorByName" resultType="com.hisense.hiatmp.model.common.Operator">
select *
from operator
where cusername = #{cusername}
</select>
<select id="getOperatorById" resultType="com.hisense.hiatmp.model.common.Operator">
select *
from operator
where nuserid = #{nuserid}
</select>
<select id="getAllOperator" resultType="com.hisense.hiatmp.model.common.Operator">
select *
from operator;
</select>
<select id="updateByPrimaryKeySelective" resultType="String">
update operator
set cuserpwd = #{cuserpwd}
where nuserid = #{nuserid} RETURNING nuserid;
</select>
<select id="getRoleById" resultType="String">
select r.rolename from role_operation_relation ror
LEFT JOIN "public"."role" r on ror.roleid = r.roleid
where ror.operationid = 'ld0001'
</select>
</mapper>