| | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.account.pojo.AccountSubject"> |
| | | <id column="id" property="id" /> |
| | | <result column="parent_id" property="parentId" /> |
| | | <result column="subject_code" property="subjectCode" /> |
| | | <result column="subject_name" property="subjectName" /> |
| | | <result column="subject_type" property="subjectType" /> |
| | |
| | | <result column="dept_id" property="deptId" /> |
| | | </resultMap> |
| | | |
| | | <select id="countReferencedBySubjectCodes" resultType="java.lang.Long"> |
| | | SELECT COUNT(1) |
| | | FROM fin_voucher_entry |
| | | WHERE subject_code IN |
| | | <foreach collection="subjectCodes" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | |
| | | </mapper> |