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.
|
|
|
|
<?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.IssueVoteDetailDao">
|
|
|
|
|
|
|
|
|
|
<resultMap type="com.epmet.entity.IssueVoteDetailEntity" id="issueVoteDetailMap">
|
|
|
|
|
<result property="id" column="ID"/>
|
|
|
|
|
<result property="issueId" column="ISSUE_ID"/>
|
|
|
|
|
<result property="attitude" column="ATTITUDE"/>
|
|
|
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
|
|
|
<result property="revision" column="REVISION"/>
|
|
|
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
|
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
|
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
|
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<!-- 支持、反对校验 -->
|
|
|
|
|
<select id="checkoutVote" parameterType="com.epmet.dto.form.VoteFormDTO" resultType="integer">
|
|
|
|
|
SELECT
|
|
|
|
|
COUNT(*)
|
|
|
|
|
FROM
|
|
|
|
|
issue_vote_detail
|
|
|
|
|
WHERE
|
|
|
|
|
del_flag = 0
|
|
|
|
|
AND issue_id = #{issueId}
|
|
|
|
|
AND created_by = #{createdBy}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 动态获取表决中状态 -->
|
|
|
|
|
<select id="getAttitudes" resultType="string">
|
|
|
|
|
SELECT
|
|
|
|
|
DISTINCT
|
|
|
|
|
ATTITUDE
|
|
|
|
|
FROM
|
|
|
|
|
ISSUE_VOTE_DETAIL
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|