parent
d9441949e2
commit
c5d64d9742
@ -0,0 +1,9 @@ |
|||||||
|
package com.dxhy.order.invoice.module.invoice.dao; |
||||||
|
|
||||||
|
import com.dxhy.order.invoice.module.invoice.model.GsClient; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
public interface GsClientFindMapper { ; |
||||||
|
List<GsClient> selectByGsdm(String gsdm); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,19 @@ |
|||||||
|
package com.dxhy.order.invoice.module.invoice.model; |
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.util.Date; |
||||||
|
|
||||||
|
@Data |
||||||
|
public class GsClient { |
||||||
|
private Integer id; |
||||||
|
|
||||||
|
private String gsdm; |
||||||
|
|
||||||
|
private String gsmc; |
||||||
|
|
||||||
|
private String client; |
||||||
|
|
||||||
|
private Date createTime; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,22 @@ |
|||||||
|
<?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.dxhy.order.invoice.module.invoice.dao.GsClientFindMapper" > |
||||||
|
<resultMap id="BaseResultMap" type="com.dxhy.order.invoice.module.invoice.model.GsClient" > |
||||||
|
<id column="id" property="id" jdbcType="INTEGER" /> |
||||||
|
<result column="gsdm" property="gsdm" jdbcType="VARCHAR" /> |
||||||
|
<result column="gsmc" property="gsmc" jdbcType="VARCHAR" /> |
||||||
|
<result column="client" property="client" jdbcType="VARCHAR" /> |
||||||
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> |
||||||
|
</resultMap> |
||||||
|
<sql id="Base_Column_List" > |
||||||
|
id, gsdm, gsmc, client, create_time |
||||||
|
</sql> |
||||||
|
|
||||||
|
<select id="selectByGsdm" resultMap="BaseResultMap" parameterType="java.lang.String" > |
||||||
|
select |
||||||
|
<include refid="Base_Column_List" /> |
||||||
|
from gs_client |
||||||
|
where gsdm = #{gsdm,jdbcType=VARCHAR} |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
Loading…
Reference in new issue