9 changed files with 90 additions and 10 deletions
@ -0,0 +1,25 @@ |
|||||
|
package com.ccsens.tcm.persist.dao; |
||||
|
|
||||
|
import com.ccsens.tcm.bean.vo.InpatientVo; |
||||
|
import com.ccsens.tcm.persist.mapper.InpatientMapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author whj |
||||
|
*/ |
||||
|
public interface InpatientDao extends InpatientMapper { |
||||
|
/** |
||||
|
* 查询全部对照组(含禁用) |
||||
|
* @return |
||||
|
*/ |
||||
|
List<InpatientVo.InpatientInfo> queryAllInpatient(); |
||||
|
|
||||
|
/** |
||||
|
* 根据ID查询对象(含禁用) |
||||
|
* @param id |
||||
|
* @return |
||||
|
*/ |
||||
|
InpatientVo.InpatientInfo getAllById(@Param("id") Long id); |
||||
|
} |
||||
@ -1,5 +1,5 @@ |
|||||
spring: |
spring: |
||||
profiles: |
profiles: |
||||
active: dev |
active: prod |
||||
include: common, util-dev |
include: common, util-prod |
||||
|
|
||||
|
|||||
@ -0,0 +1,30 @@ |
|||||
|
<?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.ccsens.tcm.persist.dao.InpatientDao"> |
||||
|
|
||||
|
|
||||
|
<select id="queryAllInpatient" resultType="com.ccsens.tcm.bean.vo.InpatientVo$InpatientInfo"> |
||||
|
SELECT |
||||
|
id, |
||||
|
name, |
||||
|
remarks, |
||||
|
collection_num AS collectionNum |
||||
|
FROM |
||||
|
t_inpatient |
||||
|
WHERE |
||||
|
rec_status IN ( 0, 1 ) |
||||
|
ORDER BY CODE |
||||
|
</select> |
||||
|
<select id="getAllById" resultType="com.ccsens.tcm.bean.vo.InpatientVo$InpatientInfo"> |
||||
|
SELECT |
||||
|
id, |
||||
|
name, |
||||
|
remarks, |
||||
|
collection_num AS collectionNum |
||||
|
FROM |
||||
|
t_inpatient |
||||
|
WHERE |
||||
|
id = #{id} |
||||
|
AND rec_status IN ( 0, 1 ) |
||||
|
</select> |
||||
|
</mapper> |
||||
Loading…
Reference in new issue