1、优化
parent
8d2f1ff615
commit
3de60b4b06
@ -0,0 +1,19 @@
|
||||
package com.glxp.api.dao.basic;
|
||||
|
||||
import com.glxp.api.entity.basic.YbNotCode;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface YbNotCodeMapper {
|
||||
int deleteByPrimaryKey(String ybbm);
|
||||
|
||||
int insert(YbNotCode record);
|
||||
|
||||
int insertSelective(YbNotCode record);
|
||||
|
||||
YbNotCode selectByPrimaryKey(String ybbm);
|
||||
|
||||
int updateByPrimaryKeySelective(YbNotCode record);
|
||||
|
||||
int updateByPrimaryKey(YbNotCode record);
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.glxp.api.entity.basic;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 医保无码信息表
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class YbNotCode {
|
||||
/**
|
||||
* 国家医保目录编码
|
||||
*/
|
||||
private String ybbm;
|
||||
|
||||
/**
|
||||
* 机构编码
|
||||
*/
|
||||
private String organizationcode;
|
||||
|
||||
/**
|
||||
* 无码类型
|
||||
*/
|
||||
private String notcodetype;
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.glxp.api.service.auth;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import com.glxp.api.entity.basic.YbNotCode;
|
||||
import com.glxp.api.dao.basic.YbNotCodeMapper;
|
||||
@Service
|
||||
public class YbNotCodeService{
|
||||
|
||||
@Resource
|
||||
private YbNotCodeMapper ybNotCodeMapper;
|
||||
|
||||
|
||||
public int deleteByPrimaryKey(String ybbm) {
|
||||
return ybNotCodeMapper.deleteByPrimaryKey(ybbm);
|
||||
}
|
||||
|
||||
|
||||
public int insert(YbNotCode record) {
|
||||
return ybNotCodeMapper.insert(record);
|
||||
}
|
||||
|
||||
|
||||
public int insertSelective(YbNotCode record) {
|
||||
return ybNotCodeMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
|
||||
public YbNotCode selectByPrimaryKey(String ybbm) {
|
||||
return ybNotCodeMapper.selectByPrimaryKey(ybbm);
|
||||
}
|
||||
|
||||
|
||||
public int updateByPrimaryKeySelective(YbNotCode record) {
|
||||
return ybNotCodeMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
|
||||
public int updateByPrimaryKey(YbNotCode record) {
|
||||
return ybNotCodeMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
<?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.glxp.api.dao.basic.YbNotCodeMapper">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.YbNotCode">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table yb_not_code-->
|
||||
<id column="ybbm" jdbcType="VARCHAR" property="ybbm" />
|
||||
<result column="organizationCode" jdbcType="VARCHAR" property="organizationcode" />
|
||||
<result column="notCodeType" jdbcType="VARCHAR" property="notcodetype" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
ybbm, organizationCode, notCodeType
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from yb_not_code
|
||||
where ybbm = #{ybbm,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
<!--@mbg.generated-->
|
||||
delete from yb_not_code
|
||||
where ybbm = #{ybbm,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.glxp.api.entity.basic.YbNotCode">
|
||||
<!--@mbg.generated-->
|
||||
insert into yb_not_code (ybbm, organizationCode, notCodeType
|
||||
)
|
||||
values (#{ybbm,jdbcType=VARCHAR}, #{organizationcode,jdbcType=VARCHAR}, #{notcodetype,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.glxp.api.entity.basic.YbNotCode">
|
||||
<!--@mbg.generated-->
|
||||
insert into yb_not_code
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="ybbm != null">
|
||||
ybbm,
|
||||
</if>
|
||||
<if test="organizationcode != null">
|
||||
organizationCode,
|
||||
</if>
|
||||
<if test="notcodetype != null">
|
||||
notCodeType,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="ybbm != null">
|
||||
#{ybbm,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="organizationcode != null">
|
||||
#{organizationcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="notcodetype != null">
|
||||
#{notcodetype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.entity.basic.YbNotCode">
|
||||
<!--@mbg.generated-->
|
||||
update yb_not_code
|
||||
<set>
|
||||
<if test="organizationcode != null">
|
||||
organizationCode = #{organizationcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="notcodetype != null">
|
||||
notCodeType = #{notcodetype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where ybbm = #{ybbm,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.basic.YbNotCode">
|
||||
<!--@mbg.generated-->
|
||||
update yb_not_code
|
||||
set organizationCode = #{organizationcode,jdbcType=VARCHAR},
|
||||
notCodeType = #{notcodetype,jdbcType=VARCHAR}
|
||||
where ybbm = #{ybbm,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue