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.
 
 
 
 
 

29 lines
776 B

<?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.epmet.dao.CustomerFunctionDao">
<select id="selectCustomerFunctionList" resultType="com.epmet.dto.CustomerFunctionDTO">
SELECT
id,
function_id,
customer_id
FROM
customer_function
WHERE
del_flag = '0'
AND customer_id = #{customerId}
</select>
<update id="updateByCustomerId" parameterType="string">
UPDATE
customer_function
SET
del_flag = '1'
WHERE
del_flag = '0'
AND
customer_id = #{customerId}
</update>
</mapper>