31 lines
1.2 KiB
XML
31 lines
1.2 KiB
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="app.module.front.usecase.info.monthly.getMonthlyInputStatus.adapters.persistence.GetMonthlyInputStatusMapper">
|
|
<select id="getMonthlyInputStatus"
|
|
resultType="app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus">
|
|
|
|
<if test="id != null">
|
|
SELECT
|
|
a.id AS id,
|
|
a.household_seq AS householdSeq,
|
|
a.month AS month,
|
|
a.forest_product_status AS forestProductStatus,
|
|
a.bank_auto_transfer_input_status AS bankAutoTransferInputStatus,
|
|
a.bank_auto_transfer_output_status AS bankAutoTransferOutputStatus,
|
|
a.created_at AS createdAt,
|
|
a.created_by AS createdBy,
|
|
a.updated_at AS updatedAt,
|
|
a.updated_by AS updatedBy
|
|
FROM monthly_input_status a
|
|
WHERE a.id = #{id}
|
|
AND a.is_deleted = false
|
|
<if test="householdSeq != null">
|
|
AND a.household_seq = #{householdSeq}
|
|
</if>
|
|
|
|
</if>
|
|
</select>
|
|
|
|
</mapper> |