25 lines
982 B
XML
25 lines
982 B
XML
<?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.engine.salary.mapper.siaccount.SIAccountUtilMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.engine.salary.entity.siaccount.dto.SIAccountUtilDTO">
|
|
<result column="num" property="num"/>
|
|
<result column="billmonth" property="billmonth"/>
|
|
<result column="taxcycle" property="taxcycle"/>
|
|
</resultMap>
|
|
|
|
<select id="checkIfBusinessaccounting" resultMap="BaseResultMap">
|
|
SELECT
|
|
a.bill_month billmonth,c.tax_cycle taxcycle
|
|
FROM
|
|
hrsa_bill_batch a,hrsa_salary_sob b,hrsa_salary_acct_record c
|
|
WHERE
|
|
a.payment_organization = b.tax_agent_id
|
|
AND b.id=c.salary_sob_id
|
|
AND a.id = #{id}
|
|
AND a.delete_type = 0
|
|
AND b.delete_type = 0
|
|
AND c.delete_type = 0
|
|
AND c.status != 1
|
|
</select>
|
|
</mapper> |