16 changed files with 362 additions and 366 deletions
@ -1,13 +1,44 @@ |
|||
<?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.yxt.anrui.fin.biz.fincostapply.FinCostapplyMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.fincostapply.FinCostapplyVo"> |
|||
SELECT * FROM fin_costapply <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.fincostapply.FinCostapplyVo"> |
|||
SELECT * FROM fin_costapply <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.fincostapply.FinCostapplyVo"> |
|||
SELECT fc.sid, |
|||
DATE_FORMAT(fc.createTime, '%Y-%m-%d') as createTime, |
|||
fc.costTypeValue, |
|||
fc.costTitleValue, |
|||
fc.cost, |
|||
case fc.state |
|||
when 1 then '已报销' |
|||
when 0 then '未报销' end as state |
|||
FROM fin_costapply fc |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.fincostapply.FinCostapplyVo"> |
|||
SELECT * |
|||
FROM fin_costapply |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="fetchDetailsVoBySid" resultType="com.yxt.anrui.fin.api.fincostapply.FinCostapplyDetailsVo"> |
|||
select fc.name, |
|||
DATE_FORMAT(fc.createTime, '%Y-%m-%d') as createTime, |
|||
fc.costTitleKey, |
|||
fc.costTitleValue, |
|||
fc.costTypeKey, |
|||
fc.costTypeValue, |
|||
fc.cost, |
|||
fc.useTypeKey, |
|||
fc.useTypeValue, |
|||
fc.isVeh, |
|||
fc.isOutDoor |
|||
from fin_costapply fc |
|||
where fc.sid = #{sid} |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue