zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
commit | author | age
a18bfa 1 <?xml version="1.0" encoding="UTF-8" ?>  
Z 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >  
3 <mapper namespace="cn.autoform.web.mapper.templateusedinfo.TemplateUsedInfoMapper" >
4     <select id="getTemplateUsedInfo" resultType="cn.autoform.bean.TemplateUsedDetails">
5         SELECT
6             COUNT(*) USEDCOUNT, 
7             UPDATEUSER,
8             CREATEUSER,
9             MAX(UPDATEDATETIME) MAXUPDATEDATETIME,
10             MAX(CREATEDATETIME) MAXCREATEDATETIME
11              
12         FROM 
13             FORMBASE
14         WHERE 
15             TENANTID = #{tenantID} 
16         AND
17             TEMPLATEID = #{templateID}
18         AND 
19             DELETEFLG = "0"
20         GROUP BY UPDATEUSER
21     </select>
22 </mapper>