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.project.ProjectDao">
|
|
|
|
|
|
|
|
<select id="selectProjectList" resultType="com.epmet.entity.project.ProjectEntity">
|
|
|
|
SELECT
|
|
|
|
*
|
|
|
|
FROM
|
|
|
|
project
|
|
|
|
WHERE
|
|
|
|
del_flag = '0'
|
|
|
|
AND customer_id = #{customerId}
|
|
|
|
AND status = #{status}
|
|
|
|
<![CDATA[AND DATE_FORMAT(created_time, "%Y-%m-%d") <= DATE_FORMAT(#{createdTime}, "%Y-%m-%d")]]>
|
|
|
|
ORDER BY created_time DESC
|
|
|
|
</select>
|
|
|
|
<select id="selectAgencyClosedProjectTotal" resultType="com.epmet.dto.project.ProjectAgencyDTO">
|
|
|
|
SELECT
|
|
|
|
AGENCY_ID AS "agencyId",
|
|
|
|
ORG_ID_PATH AS "pIds",
|
|
|
|
CLOSED_STATUS AS "status",
|
|
|
|
COUNT(ID) AS "count"
|
|
|
|
FROM project
|
|
|
|
WHERE
|
|
|
|
DEL_FLAG = '0'
|
|
|
|
AND ORIGIN = 'issue'
|
|
|
|
AND STATUS = 'closed'
|
|
|
|
AND CUSTOMER_ID = #{customerId}
|
|
|
|
AND UPDATED_TIME <![CDATA[ <= ]]> #{date}
|
|
|
|
GROUP BY
|
|
|
|
AGENCY_ID, CLOSED_STATUS
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectAgencyClosedProjectInc" resultType="com.epmet.dto.project.ProjectAgencyDTO">
|
|
|
|
SELECT
|
|
|
|
AGENCY_ID AS "agencyId",
|
|
|
|
ORG_ID_PATH AS "pIds",
|
|
|
|
CLOSED_STATUS AS "status",
|
|
|
|
COUNT(ID) AS "count"
|
|
|
|
FROM project
|
|
|
|
WHERE
|
|
|
|
DEL_FLAG = '0'
|
|
|
|
AND ORIGIN = 'issue'
|
|
|
|
AND STATUS = 'closed'
|
|
|
|
AND CUSTOMER_ID = #{customerId}
|
|
|
|
AND UPDATED_TIME = #{date}
|
|
|
|
GROUP BY
|
|
|
|
AGENCY_ID, CLOSED_STATUS
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|