操作日志,指标来源,辅助项资料,文号

This commit is contained in:
hecan 2024-08-19 17:20:54 +08:00
parent 4ac86bfe86
commit a3acc9a1d1
24 changed files with 1977 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package com.hzya.frame.grpU8.nxproof.glczrz.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity;
/**
* (GL_Czrz: table)表数据库访问层
*
* @author makejava
* @since 2024-08-06 15:27:05
*/
public interface IGlCzrzDao extends IBaseDao<GlCzrzEntity, String> {
/**
*
* @content 查询操作日志的最大no值+1
* @Param
* @Return
* @Author hecan
* @Date 2024/8/6 15:45
* **/
GlCzrzEntity queryCzrzNo(GlCzrzEntity glCzrzEntity);
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.grpU8.nxproof.glczrz.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.grpU8.nxproof.glczrz.dao.IGlCzrzDao;
import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity;
import org.springframework.stereotype.Repository;
/**
* (GlCzrz)表数据库访问层
*
* @author makejava
* @since 2024-08-06 15:27:05
*/
@Repository(value = "GlCzrzDaoImpl")
public class GlCzrzDaoImpl extends MybatisGenericDao<GlCzrzEntity, String> implements IGlCzrzDao {
@Override
public GlCzrzEntity queryCzrzNo(GlCzrzEntity glCzrzEntity) {
return (GlCzrzEntity)super.selectOne("queryCzrzNo",glCzrzEntity);
}
}

View File

@ -0,0 +1,98 @@
package com.hzya.frame.grpU8.nxproof.glczrz.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (GlCzrz)实体类
*
* @author makejava
* @since 2024-08-06 15:27:05
*/
public class GlCzrzEntity extends BaseEntity {
private String station;
private Integer no;
private String name;
private String date;
private String zwrq;
private String qssj;
private String zzsj;
private String cznr;
private String cznrkz;
public String getStation() {
return station;
}
public void setStation(String station) {
this.station = station;
}
public Integer getNo() {
return no;
}
public void setNo(Integer no) {
this.no = no;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getZwrq() {
return zwrq;
}
public void setZwrq(String zwrq) {
this.zwrq = zwrq;
}
public String getQssj() {
return qssj;
}
public void setQssj(String qssj) {
this.qssj = qssj;
}
public String getZzsj() {
return zzsj;
}
public void setZzsj(String zzsj) {
this.zzsj = zzsj;
}
public String getCznr() {
return cznr;
}
public void setCznr(String cznr) {
this.cznr = cznr;
}
public String getCznrkz() {
return cznrkz;
}
public void setCznrkz(String cznrkz) {
this.cznrkz = cznrkz;
}
}

View File

@ -0,0 +1,194 @@
<?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.hzya.frame.grpU8.nxproof.glczrz.dao.impl.GlCzrzDaoImpl">
<resultMap id="get-GlCzrzEntity-result" type="com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" >
<result property="station" column="station" jdbcType="VARCHAR"/>
<result property="no" column="no" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="date" column="date" jdbcType="VARCHAR"/>
<result property="zwrq" column="zwrq" jdbcType="VARCHAR"/>
<result property="qssj" column="qssj" jdbcType="VARCHAR"/>
<result property="zzsj" column="zzsj" jdbcType="VARCHAR"/>
<result property="cznr" column="cznr" jdbcType="VARCHAR"/>
<result property="cznrkz" column="CZNRKZ" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "GlCzrzEntity_Base_Column_List">
station
,no
,name
,date
,zwrq
,qssj
,zzsj
,cznr
,CZNRKZ
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-GlCzrzEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
select
<include refid="GlCzrzEntity_Base_Column_List" />
from GL_Czrz
<trim prefix="where" prefixOverrides="and">
<if test="station != null and station != ''"> and station = #{station} </if>
<if test="no != null"> and no = #{no} </if>
<if test="name != null and name != ''"> and name = #{name} </if>
<if test="date != null and date != ''"> and date = #{date} </if>
<if test="zwrq != null and zwrq != ''"> and zwrq = #{zwrq} </if>
<if test="qssj != null and qssj != ''"> and qssj = #{qssj} </if>
<if test="zzsj != null and zzsj != ''"> and zzsj = #{zzsj} </if>
<if test="cznr != null and cznr != ''"> and cznr = #{cznr} </if>
<if test="cznrkz != null and cznrkz != ''"> and CZNRKZ = #{cznrkz} </if>
</trim>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
select count(1) from GL_Czrz
<trim prefix="where" prefixOverrides="and">
<if test="station != null and station != ''"> and station = #{station} </if>
<if test="no != null"> and no = #{no} </if>
<if test="name != null and name != ''"> and name = #{name} </if>
<if test="date != null and date != ''"> and date = #{date} </if>
<if test="zwrq != null and zwrq != ''"> and zwrq = #{zwrq} </if>
<if test="qssj != null and qssj != ''"> and qssj = #{qssj} </if>
<if test="zzsj != null and zzsj != ''"> and zzsj = #{zzsj} </if>
<if test="cznr != null and cznr != ''"> and cznr = #{cznr} </if>
<if test="cznrkz != null and cznrkz != ''"> and CZNRKZ = #{cznrkz} </if>
</trim>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-GlCzrzEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
select
<include refid="GlCzrzEntity_Base_Column_List" />
from GL_Czrz
<trim prefix="where" prefixOverrides="and">
<if test="station != null and station != ''"> and station like concat('%',#{station},'%') </if>
<if test="no != null"> and no like concat('%',#{no},'%') </if>
<if test="name != null and name != ''"> and name like concat('%',#{name},'%') </if>
<if test="date != null and date != ''"> and date like concat('%',#{date},'%') </if>
<if test="zwrq != null and zwrq != ''"> and zwrq like concat('%',#{zwrq},'%') </if>
<if test="qssj != null and qssj != ''"> and qssj like concat('%',#{qssj},'%') </if>
<if test="zzsj != null and zzsj != ''"> and zzsj like concat('%',#{zzsj},'%') </if>
<if test="cznr != null and cznr != ''"> and cznr like concat('%',#{cznr},'%') </if>
<if test="cznrkz != null and cznrkz != ''"> and CZNRKZ like concat('%',#{cznrkz},'%') </if>
</trim>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="GlCzrzentity_list_or" resultMap="get-GlCzrzEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
select
<include refid="GlCzrzEntity_Base_Column_List" />
from GL_Czrz
<trim prefix="where" prefixOverrides="and">
<if test="station != null and station != ''"> or station = #{station} </if>
<if test="no != null"> or no = #{no} </if>
<if test="name != null and name != ''"> or name = #{name} </if>
<if test="date != null and date != ''"> or date = #{date} </if>
<if test="zwrq != null and zwrq != ''"> or zwrq = #{zwrq} </if>
<if test="qssj != null and qssj != ''"> or qssj = #{qssj} </if>
<if test="zzsj != null and zzsj != ''"> or zzsj = #{zzsj} </if>
<if test="cznr != null and cznr != ''"> or cznr = #{cznr} </if>
<if test="cznrkz != null and cznrkz != ''"> or CZNRKZ = #{cznrkz} </if>
</trim>
</select>
<!--操作日志no最大值+1-->
<select id="queryCzrzNo" resultMap="get-GlCzrzEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
select isnull(max(no),0)+1 as no from Gl_czrz where station like concat(#{station},'%')
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" keyProperty="station" useGeneratedKeys="true">
insert into GL_Czrz(
<trim suffix="" suffixOverrides=",">
<if test="no != null"> no , </if>
<if test="name != null and name != ''"> name , </if>
<if test="date != null and date != ''"> date , </if>
<if test="zwrq != null and zwrq != ''"> zwrq , </if>
<if test="qssj != null and qssj != ''"> qssj , </if>
<if test="zzsj != null and zzsj != ''"> zzsj , </if>
<if test="cznr != null and cznr != ''"> cznr , </if>
<if test="cznrkz != null and cznrkz != ''"> CZNRKZ , </if>
<if test="station != null and station != ''"> station </if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="no != null"> #{no} ,</if>
<if test="name != null and name != ''"> #{name} ,</if>
<if test="date != null and date != ''"> select convert(char(8),getdate(),112),</if>
<if test="zwrq != null and zwrq != ''"> select convert(char(8),getdate(),112) ,</if>
<if test="qssj != null and qssj != ''"> select convert(char(8),getdate(),108) ,</if>
<if test="zzsj != null and zzsj != ''"> select convert(char(8),getdate(),108) ,</if>
<if test="cznr != null and cznr != ''"> #{cznr} ,</if>
<if test="cznrkz != null and cznrkz != ''"> #{cznrkz} ,</if>
<if test="station != null and station != ''"> #{station} </if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="station" useGeneratedKeys="true">
insert into GL_Czrz(name, date, zwrq, qssj, zzsj, cznr, CZNRKZ, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.name},#{entity.date},#{entity.zwrq},#{entity.qssj},#{entity.zzsj},#{entity.cznr},#{entity.cznrkz}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="station" useGeneratedKeys="true">
insert into GL_Czrz(name, date, zwrq, qssj, zzsj, cznr, CZNRKZ)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.name},#{entity.date},#{entity.zwrq},#{entity.qssj},#{entity.zzsj},#{entity.cznr},#{entity.cznrkz})
</foreach>
on duplicate key update
name = values(name),
date = values(date),
zwrq = values(zwrq),
qssj = values(qssj),
zzsj = values(zzsj),
cznr = values(cznr),
CZNRKZ = values(CZNRKZ)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" >
update GL_Czrz set
<trim suffix="" suffixOverrides=",">
<if test="name != null and name != ''"> name = #{name},</if>
<if test="date != null and date != ''"> date = #{date},</if>
<if test="zwrq != null and zwrq != ''"> zwrq = #{zwrq},</if>
<if test="qssj != null and qssj != ''"> qssj = #{qssj},</if>
<if test="zzsj != null and zzsj != ''"> zzsj = #{zzsj},</if>
<if test="cznr != null and cznr != ''"> cznr = #{cznr},</if>
<if test="cznrkz != null and cznrkz != ''"> CZNRKZ = #{cznrkz},</if>
</trim>
where station = #{station}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" >
update GL_Czrz set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where station = #{station}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" >
update GL_Czrz set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="station != null and station != ''"> and station = #{station} </if>
<if test="no != null"> and no = #{no} </if>
<if test="name != null and name != ''"> and name = #{name} </if>
<if test="date != null and date != ''"> and date = #{date} </if>
<if test="zwrq != null and zwrq != ''"> and zwrq = #{zwrq} </if>
<if test="qssj != null and qssj != ''"> and qssj = #{qssj} </if>
<if test="zzsj != null and zzsj != ''"> and zzsj = #{zzsj} </if>
<if test="cznr != null and cznr != ''"> and cznr = #{cznr} </if>
<if test="cznrkz != null and cznrkz != ''"> and CZNRKZ = #{cznrkz} </if>
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from GL_Czrz where station = #{station}
</delete>
</mapper>

View File

@ -0,0 +1,14 @@
package com.hzya.frame.grpU8.nxproof.glczrz.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity;
/**
* (GlCzrz)表服务接口
*
* @author makejava
* @since 2024-08-06 15:27:05
*/
public interface IGlCzrzService extends IBaseService<GlCzrzEntity, String> {
}

View File

@ -0,0 +1,27 @@
package com.hzya.frame.grpU8.nxproof.glczrz.service.impl;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.grpU8.nxproof.glczrz.dao.IGlCzrzDao;
import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity;
import com.hzya.frame.grpU8.nxproof.glczrz.service.IGlCzrzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* (GlCzrz)表服务实现类
*
* @author makejava
* @since 2024-08-06 15:27:05
*/
@Service(value = "glCzrzService")
public class GlCzrzServiceImpl extends BaseService<GlCzrzEntity, String> implements IGlCzrzService {
private IGlCzrzDao glCzrzDao;
@Autowired
public void setGlCzrzDao(IGlCzrzDao dao) {
this.glCzrzDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.grpU8.nxproof.glfzxzl.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity;
/**
* (GL_Fzxzl: table)表数据库访问层
*
* @author makejava
* @since 2024-08-06 10:56:28
*/
public interface IGlFzxzlDao extends IBaseDao<GlFzxzlEntity, String> {
}

View File

@ -0,0 +1,18 @@
package com.hzya.frame.grpU8.nxproof.glfzxzl.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.grpU8.nxproof.glfzxzl.dao.IGlFzxzlDao;
import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity;
import org.springframework.stereotype.Repository;
/**
* (GlFzxzl)表数据库访问层
*
* @author makejava
* @since 2024-08-06 10:56:28
*/
@Repository(value = "GlFzxzlDaoImpl")
public class GlFzxzlDaoImpl extends MybatisGenericDao<GlFzxzlEntity, String> implements IGlFzxzlDao {
}

View File

@ -0,0 +1,179 @@
package com.hzya.frame.grpU8.nxproof.glfzxzl.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (GlFzxzl)实体类
*
* @author makejava
* @since 2024-08-06 10:56:29
*/
public class GlFzxzlEntity extends BaseEntity {
private String gsdm;
private String kjnd;
private String lbdm;
private String fzdm;
private String fzmc;
private String zjm;
private String f1;
private String f2;
private String syzt;
private String bz;
private String sjly;
private Integer jlrId;
private String jlRq;
private Integer xgrId;
private String xgRq;
private String sfmx;
private String gnlb;
private String gnlbmc;
public String getGsdm() {
return gsdm;
}
public void setGsdm(String gsdm) {
this.gsdm = gsdm;
}
public String getKjnd() {
return kjnd;
}
public void setKjnd(String kjnd) {
this.kjnd = kjnd;
}
public String getLbdm() {
return lbdm;
}
public void setLbdm(String lbdm) {
this.lbdm = lbdm;
}
public String getFzdm() {
return fzdm;
}
public void setFzdm(String fzdm) {
this.fzdm = fzdm;
}
public String getFzmc() {
return fzmc;
}
public void setFzmc(String fzmc) {
this.fzmc = fzmc;
}
public String getZjm() {
return zjm;
}
public void setZjm(String zjm) {
this.zjm = zjm;
}
public String getF1() {
return f1;
}
public void setF1(String f1) {
this.f1 = f1;
}
public String getF2() {
return f2;
}
public void setF2(String f2) {
this.f2 = f2;
}
public String getSyzt() {
return syzt;
}
public void setSyzt(String syzt) {
this.syzt = syzt;
}
public String getBz() {
return bz;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
public Integer getJlrId() {
return jlrId;
}
public void setJlrId(Integer jlrId) {
this.jlrId = jlrId;
}
public String getJlRq() {
return jlRq;
}
public void setJlRq(String jlRq) {
this.jlRq = jlRq;
}
public Integer getXgrId() {
return xgrId;
}
public void setXgrId(Integer xgrId) {
this.xgrId = xgrId;
}
public String getXgRq() {
return xgRq;
}
public void setXgRq(String xgRq) {
this.xgRq = xgRq;
}
public String getSfmx() {
return sfmx;
}
public void setSfmx(String sfmx) {
this.sfmx = sfmx;
}
public String getGnlb() {
return gnlb;
}
public void setGnlb(String gnlb) {
this.gnlb = gnlb;
}
public String getGnlbmc() {
return gnlbmc;
}
public void setGnlbmc(String gnlbmc) {
this.gnlbmc = gnlbmc;
}
}

View File

@ -0,0 +1,284 @@
<?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.hzya.frame.grpU8.nxproof.glfzxzl.dao.impl.GlFzxzlDaoImpl">
<resultMap id="get-GlFzxzlEntity-result" type="com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" >
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
<result property="lbdm" column="lbdm" jdbcType="VARCHAR"/>
<result property="fzdm" column="fzdm" jdbcType="VARCHAR"/>
<result property="fzmc" column="fzmc" jdbcType="VARCHAR"/>
<result property="zjm" column="zjm" jdbcType="VARCHAR"/>
<result property="f1" column="f1" jdbcType="VARCHAR"/>
<result property="f2" column="f2" jdbcType="VARCHAR"/>
<result property="syzt" column="syzt" jdbcType="VARCHAR"/>
<result property="bz" column="bz" jdbcType="VARCHAR"/>
<result property="sjly" column="Sjly" jdbcType="VARCHAR"/>
<result property="jlrId" column="Jlr_ID" jdbcType="INTEGER"/>
<result property="jlRq" column="Jl_RQ" jdbcType="VARCHAR"/>
<result property="xgrId" column="Xgr_ID" jdbcType="INTEGER"/>
<result property="xgRq" column="Xg_RQ" jdbcType="VARCHAR"/>
<result property="sfmx" column="SFMX" jdbcType="VARCHAR"/>
<result property="gnlb" column="GNLB" jdbcType="VARCHAR"/>
<result property="gnlbmc" column="GNLBMC" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "GlFzxzlEntity_Base_Column_List">
gsdm
,kjnd
,lbdm
,fzdm
,fzmc
,zjm
,f1
,f2
,syzt
,bz
,Sjly
,Jlr_ID
,Jl_RQ
,Xgr_ID
,Xg_RQ
,SFMX
,GNLB
,GNLBMC
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-GlFzxzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity">
select
<include refid="GlFzxzlEntity_Base_Column_List" />
from GL_Fzxzl
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="lbdm != null and lbdm != ''"> and lbdm = #{lbdm} </if>
<if test="fzdm != null and fzdm != ''"> and fzdm = #{fzdm} </if>
<if test="fzmc != null and fzmc != ''"> and fzmc = #{fzmc} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="f1 != null and f1 != ''"> and f1 = #{f1} </if>
<if test="f2 != null and f2 != ''"> and f2 = #{f2} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="bz != null and bz != ''"> and bz = #{bz} </if>
<if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="jlrId != null"> and Jlr_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> and Jl_RQ = #{jlRq} </if>
<if test="xgrId != null"> and Xgr_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> and Xg_RQ = #{xgRq} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="gnlb != null and gnlb != ''"> and GNLB = #{gnlb} </if>
<if test="gnlbmc != null and gnlbmc != ''"> and GNLBMC = #{gnlbmc} </if>
</trim>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity">
select count(1) from GL_Fzxzl
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="lbdm != null and lbdm != ''"> and lbdm = #{lbdm} </if>
<if test="fzdm != null and fzdm != ''"> and fzdm = #{fzdm} </if>
<if test="fzmc != null and fzmc != ''"> and fzmc = #{fzmc} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="f1 != null and f1 != ''"> and f1 = #{f1} </if>
<if test="f2 != null and f2 != ''"> and f2 = #{f2} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="bz != null and bz != ''"> and bz = #{bz} </if>
<if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="jlrId != null"> and Jlr_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> and Jl_RQ = #{jlRq} </if>
<if test="xgrId != null"> and Xgr_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> and Xg_RQ = #{xgRq} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="gnlb != null and gnlb != ''"> and GNLB = #{gnlb} </if>
<if test="gnlbmc != null and gnlbmc != ''"> and GNLBMC = #{gnlbmc} </if>
</trim>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-GlFzxzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity">
select
<include refid="GlFzxzlEntity_Base_Column_List" />
from GL_Fzxzl
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and gsdm like concat('%',#{gsdm},'%') </if>
<if test="kjnd != null and kjnd != ''"> and kjnd like concat('%',#{kjnd},'%') </if>
<if test="lbdm != null and lbdm != ''"> and lbdm like concat('%',#{lbdm},'%') </if>
<if test="fzdm != null and fzdm != ''"> and fzdm like concat('%',#{fzdm},'%') </if>
<if test="fzmc != null and fzmc != ''"> and fzmc like concat('%',#{fzmc},'%') </if>
<if test="zjm != null and zjm != ''"> and zjm like concat('%',#{zjm},'%') </if>
<if test="f1 != null and f1 != ''"> and f1 like concat('%',#{f1},'%') </if>
<if test="f2 != null and f2 != ''"> and f2 like concat('%',#{f2},'%') </if>
<if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </if>
<if test="bz != null and bz != ''"> and bz like concat('%',#{bz},'%') </if>
<if test="sjly != null and sjly != ''"> and Sjly like concat('%',#{sjly},'%') </if>
<if test="jlrId != null"> and Jlr_ID like concat('%',#{jlrId},'%') </if>
<if test="jlRq != null and jlRq != ''"> and Jl_RQ like concat('%',#{jlRq},'%') </if>
<if test="xgrId != null"> and Xgr_ID like concat('%',#{xgrId},'%') </if>
<if test="xgRq != null and xgRq != ''"> and Xg_RQ like concat('%',#{xgRq},'%') </if>
<if test="sfmx != null and sfmx != ''"> and SFMX like concat('%',#{sfmx},'%') </if>
<if test="gnlb != null and gnlb != ''"> and GNLB like concat('%',#{gnlb},'%') </if>
<if test="gnlbmc != null and gnlbmc != ''"> and GNLBMC like concat('%',#{gnlbmc},'%') </if>
</trim>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="GlFzxzlentity_list_or" resultMap="get-GlFzxzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity">
select
<include refid="GlFzxzlEntity_Base_Column_List" />
from GL_Fzxzl
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> or kjnd = #{kjnd} </if>
<if test="lbdm != null and lbdm != ''"> or lbdm = #{lbdm} </if>
<if test="fzdm != null and fzdm != ''"> or fzdm = #{fzdm} </if>
<if test="fzmc != null and fzmc != ''"> or fzmc = #{fzmc} </if>
<if test="zjm != null and zjm != ''"> or zjm = #{zjm} </if>
<if test="f1 != null and f1 != ''"> or f1 = #{f1} </if>
<if test="f2 != null and f2 != ''"> or f2 = #{f2} </if>
<if test="syzt != null and syzt != ''"> or syzt = #{syzt} </if>
<if test="bz != null and bz != ''"> or bz = #{bz} </if>
<if test="sjly != null and sjly != ''"> or Sjly = #{sjly} </if>
<if test="jlrId != null"> or Jlr_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> or Jl_RQ = #{jlRq} </if>
<if test="xgrId != null"> or Xgr_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> or Xg_RQ = #{xgRq} </if>
<if test="sfmx != null and sfmx != ''"> or SFMX = #{sfmx} </if>
<if test="gnlb != null and gnlb != ''"> or GNLB = #{gnlb} </if>
<if test="gnlbmc != null and gnlbmc != ''"> or GNLBMC = #{gnlbmc} </if>
</trim>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" keyProperty="gsdm" useGeneratedKeys="true">
insert into GL_Fzxzl(
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
<if test="lbdm != null and lbdm != ''"> lbdm , </if>
<if test="fzdm != null and fzdm != ''"> fzdm , </if>
<if test="fzmc != null and fzmc != ''"> fzmc , </if>
<if test="zjm != null and zjm != ''"> zjm , </if>
<if test="f1 != null and f1 != ''"> f1 , </if>
<if test="f2 != null and f2 != ''"> f2 , </if>
<if test="syzt != null and syzt != ''"> syzt , </if>
<if test="bz != null and bz != ''"> bz , </if>
<if test="sjly != null and sjly != ''"> Sjly , </if>
<if test="jlrId != null"> Jlr_ID , </if>
<if test="jlRq != null and jlRq != ''"> Jl_RQ , </if>
<if test="xgrId != null"> Xgr_ID , </if>
<if test="xgRq != null and xgRq != ''"> Xg_RQ , </if>
<if test="sfmx != null and sfmx != ''"> SFMX , </if>
<if test="gnlb != null and gnlb != ''"> GNLB , </if>
<if test="gnlbmc != null and gnlbmc != ''"> GNLBMC , </if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
<if test="lbdm != null and lbdm != ''"> #{lbdm} ,</if>
<if test="fzdm != null and fzdm != ''"> #{fzdm} ,</if>
<if test="fzmc != null and fzmc != ''"> #{fzmc} ,</if>
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
<if test="f1 != null and f1 != ''"> #{f1} ,</if>
<if test="f2 != null and f2 != ''"> #{f2} ,</if>
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
<if test="bz != null and bz != ''"> #{bz} ,</if>
<if test="sjly != null and sjly != ''"> #{sjly} ,</if>
<if test="jlrId != null"> #{jlrId} ,</if>
<if test="jlRq != null and jlRq != ''"> #{jlRq} ,</if>
<if test="xgrId != null"> #{xgrId} ,</if>
<if test="xgRq != null and xgRq != ''"> #{xgRq} ,</if>
<if test="sfmx != null and sfmx != ''"> #{sfmx} ,</if>
<if test="gnlb != null and gnlb != ''"> #{gnlb} ,</if>
<if test="gnlbmc != null and gnlbmc != ''"> #{gnlbmc} ,</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="gsdm" useGeneratedKeys="true">
insert into GL_Fzxzl(fzmc, zjm, f1, f2, syzt, bz, Sjly, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, SFMX, GNLB, GNLBMC, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.fzmc},#{entity.zjm},#{entity.f1},#{entity.f2},#{entity.syzt},#{entity.bz},#{entity.sjly},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.gnlb},#{entity.gnlbmc}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="gsdm" useGeneratedKeys="true">
insert into GL_Fzxzl(fzmc, zjm, f1, f2, syzt, bz, Sjly, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, SFMX, GNLB, GNLBMC)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.fzmc},#{entity.zjm},#{entity.f1},#{entity.f2},#{entity.syzt},#{entity.bz},#{entity.sjly},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.gnlb},#{entity.gnlbmc})
</foreach>
on duplicate key update
fzmc = values(fzmc),
zjm = values(zjm),
f1 = values(f1),
f2 = values(f2),
syzt = values(syzt),
bz = values(bz),
Sjly = values(Sjly),
Jlr_ID = values(Jlr_ID),
Jl_RQ = values(Jl_RQ),
Xgr_ID = values(Xgr_ID),
Xg_RQ = values(Xg_RQ),
SFMX = values(SFMX),
GNLB = values(GNLB),
GNLBMC = values(GNLBMC)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" >
update GL_Fzxzl set
<trim suffix="" suffixOverrides=",">
<if test="fzmc != null and fzmc != ''"> fzmc = #{fzmc},</if>
<if test="zjm != null and zjm != ''"> zjm = #{zjm},</if>
<if test="f1 != null and f1 != ''"> f1 = #{f1},</if>
<if test="f2 != null and f2 != ''"> f2 = #{f2},</if>
<if test="syzt != null and syzt != ''"> syzt = #{syzt},</if>
<if test="bz != null and bz != ''"> bz = #{bz},</if>
<if test="sjly != null and sjly != ''"> Sjly = #{sjly},</if>
<if test="jlrId != null"> Jlr_ID = #{jlrId},</if>
<if test="jlRq != null and jlRq != ''"> Jl_RQ = #{jlRq},</if>
<if test="xgrId != null"> Xgr_ID = #{xgrId},</if>
<if test="xgRq != null and xgRq != ''"> Xg_RQ = #{xgRq},</if>
<if test="sfmx != null and sfmx != ''"> SFMX = #{sfmx},</if>
<if test="gnlb != null and gnlb != ''"> GNLB = #{gnlb},</if>
<if test="gnlbmc != null and gnlbmc != ''"> GNLBMC = #{gnlbmc},</if>
</trim>
where gsdm = #{gsdm} and kjnd=#{kjnd} and lbdm=#{lbdm} and fzdm=#{fzdm}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" >
update GL_Fzxzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where gsdm = #{gsdm}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" >
update GL_Fzxzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="lbdm != null and lbdm != ''"> and lbdm = #{lbdm} </if>
<if test="fzdm != null and fzdm != ''"> and fzdm = #{fzdm} </if>
<if test="fzmc != null and fzmc != ''"> and fzmc = #{fzmc} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="f1 != null and f1 != ''"> and f1 = #{f1} </if>
<if test="f2 != null and f2 != ''"> and f2 = #{f2} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="bz != null and bz != ''"> and bz = #{bz} </if>
<if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="jlrId != null"> and Jlr_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> and Jl_RQ = #{jlRq} </if>
<if test="xgrId != null"> and Xgr_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> and Xg_RQ = #{xgRq} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="gnlb != null and gnlb != ''"> and GNLB = #{gnlb} </if>
<if test="gnlbmc != null and gnlbmc != ''"> and GNLBMC = #{gnlbmc} </if>
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from GL_Fzxzl where gsdm = #{gsdm}
</delete>
</mapper>

View File

@ -0,0 +1,14 @@
package com.hzya.frame.grpU8.nxproof.glfzxzl.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity;
/**
* (GlFzxzl)表服务接口
*
* @author makejava
* @since 2024-08-06 10:56:29
*/
public interface IGlFzxzlService extends IBaseService<GlFzxzlEntity, String> {
}

View File

@ -0,0 +1,27 @@
package com.hzya.frame.grpU8.nxproof.glfzxzl.service.impl;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.grpU8.nxproof.glfzxzl.dao.IGlFzxzlDao;
import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity;
import com.hzya.frame.grpU8.nxproof.glfzxzl.service.IGlFzxzlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* (GlFzxzl)表服务实现类
*
* @author makejava
* @since 2024-08-06 10:56:29
*/
@Service(value = "glFzxzlService")
public class GlFzxzlServiceImpl extends BaseService<GlFzxzlEntity, String> implements IGlFzxzlService {
private IGlFzxzlDao glFzxzlDao;
@Autowired
public void setGlFzxzlDao(IGlFzxzlDao dao) {
this.glFzxzlDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.grpU8.nxproof.zbwhsz.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity;
/**
* (ZB_WHSZ: table)表数据库访问层
*
* @author makejava
* @since 2024-08-06 10:52:29
*/
public interface IZbWhszDao extends IBaseDao<ZbWhszEntity, String> {
}

View File

@ -0,0 +1,18 @@
package com.hzya.frame.grpU8.nxproof.zbwhsz.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.grpU8.nxproof.zbwhsz.dao.IZbWhszDao;
import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity;
import org.springframework.stereotype.Repository;
/**
* (ZbWhsz)表数据库访问层
*
* @author makejava
* @since 2024-08-06 10:52:29
*/
@Repository(value = "ZbWhszDaoImpl")
public class ZbWhszDaoImpl extends MybatisGenericDao<ZbWhszEntity, String> implements IZbWhszDao {
}

View File

@ -0,0 +1,179 @@
package com.hzya.frame.grpU8.nxproof.zbwhsz.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (ZbWhsz)实体类
*
* @author makejava
* @since 2024-08-06 10:52:29
*/
public class ZbWhszEntity extends BaseEntity {
private String gsdm;
private String kjnd;
private String whdm;
private String whmc;
private String zjm;
private String syzt;
private String wjwz;
private String wjlb;
private String jlrId;
private String jlRq;
private String xgrId;
private String xgRq;
private String bz;
private String sfmx;
private String sjdm;
private Integer jc;
private Integer pxh;
private String sjly;
public String getGsdm() {
return gsdm;
}
public void setGsdm(String gsdm) {
this.gsdm = gsdm;
}
public String getKjnd() {
return kjnd;
}
public void setKjnd(String kjnd) {
this.kjnd = kjnd;
}
public String getWhdm() {
return whdm;
}
public void setWhdm(String whdm) {
this.whdm = whdm;
}
public String getWhmc() {
return whmc;
}
public void setWhmc(String whmc) {
this.whmc = whmc;
}
public String getZjm() {
return zjm;
}
public void setZjm(String zjm) {
this.zjm = zjm;
}
public String getSyzt() {
return syzt;
}
public void setSyzt(String syzt) {
this.syzt = syzt;
}
public String getWjwz() {
return wjwz;
}
public void setWjwz(String wjwz) {
this.wjwz = wjwz;
}
public String getWjlb() {
return wjlb;
}
public void setWjlb(String wjlb) {
this.wjlb = wjlb;
}
public String getJlrId() {
return jlrId;
}
public void setJlrId(String jlrId) {
this.jlrId = jlrId;
}
public String getJlRq() {
return jlRq;
}
public void setJlRq(String jlRq) {
this.jlRq = jlRq;
}
public String getXgrId() {
return xgrId;
}
public void setXgrId(String xgrId) {
this.xgrId = xgrId;
}
public String getXgRq() {
return xgRq;
}
public void setXgRq(String xgRq) {
this.xgRq = xgRq;
}
public String getBz() {
return bz;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getSfmx() {
return sfmx;
}
public void setSfmx(String sfmx) {
this.sfmx = sfmx;
}
public String getSjdm() {
return sjdm;
}
public void setSjdm(String sjdm) {
this.sjdm = sjdm;
}
public Integer getJc() {
return jc;
}
public void setJc(Integer jc) {
this.jc = jc;
}
public Integer getPxh() {
return pxh;
}
public void setPxh(Integer pxh) {
this.pxh = pxh;
}
public String getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
}

View File

@ -0,0 +1,286 @@
<?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.hzya.frame.grpU8.nxproof.zbwhsz.dao.impl.ZbWhszDaoImpl">
<resultMap id="get-ZbWhszEntity-result" type="com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity" >
<result property="gsdm" column="GSDM" jdbcType="VARCHAR"/>
<result property="kjnd" column="KJND" jdbcType="VARCHAR"/>
<result property="whdm" column="WHDM" jdbcType="VARCHAR"/>
<result property="whmc" column="WHMC" jdbcType="VARCHAR"/>
<result property="zjm" column="ZJM" jdbcType="VARCHAR"/>
<result property="syzt" column="SYZT" jdbcType="VARCHAR"/>
<result property="wjwz" column="WJWZ" jdbcType="VARCHAR"/>
<result property="wjlb" column="WJLB" jdbcType="VARCHAR"/>
<result property="jlrId" column="JLR_ID" jdbcType="VARCHAR"/>
<result property="jlRq" column="JL_RQ" jdbcType="VARCHAR"/>
<result property="xgrId" column="XGR_ID" jdbcType="VARCHAR"/>
<result property="xgRq" column="XG_RQ" jdbcType="VARCHAR"/>
<result property="bz" column="BZ" jdbcType="VARCHAR"/>
<result property="sfmx" column="SFMX" jdbcType="VARCHAR"/>
<result property="sjdm" column="SJDM" jdbcType="VARCHAR"/>
<result property="jc" column="JC" jdbcType="INTEGER"/>
<result property="pxh" column="PXH" jdbcType="INTEGER"/>
<result property="sjly" column="SJLY" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "ZbWhszEntity_Base_Column_List">
GSDM
,KJND
,WHDM
,WHMC
,ZJM
,SYZT
,WJWZ
,WJLB
,JLR_ID
,JL_RQ
,XGR_ID
,XG_RQ
,BZ
,SFMX
,SJDM
,JC
,PXH
,SJLY
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-ZbWhszEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity">
select
<include refid="ZbWhszEntity_Base_Column_List" />
from ZB_WHSZ
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
<if test="whdm != null and whdm != ''"> and WHDM = #{whdm} </if>
<if test="whmc != null and whmc != ''"> and WHMC = #{whmc} </if>
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </if>
<if test="wjwz != null and wjwz != ''"> and WJWZ = #{wjwz} </if>
<if test="wjlb != null and wjlb != ''"> and WJLB = #{wjlb} </if>
<if test="jlrId != null and jlrId != ''"> and JLR_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
<if test="xgrId != null and xgrId != ''"> and XGR_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
<if test="bz != null and bz != ''"> and BZ = #{bz} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="sjdm != null and sjdm != ''"> and SJDM = #{sjdm} </if>
<if test="jc != null"> and JC = #{jc} </if>
<if test="pxh != null"> and PXH = #{pxh} </if>
<if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
</trim>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity">
select count(1) from ZB_WHSZ
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
<if test="whdm != null and whdm != ''"> and WHDM = #{whdm} </if>
<if test="whmc != null and whmc != ''"> and WHMC = #{whmc} </if>
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </if>
<if test="wjwz != null and wjwz != ''"> and WJWZ = #{wjwz} </if>
<if test="wjlb != null and wjlb != ''"> and WJLB = #{wjlb} </if>
<if test="jlrId != null and jlrId != ''"> and JLR_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
<if test="xgrId != null and xgrId != ''"> and XGR_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
<if test="bz != null and bz != ''"> and BZ = #{bz} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="sjdm != null and sjdm != ''"> and SJDM = #{sjdm} </if>
<if test="jc != null"> and JC = #{jc} </if>
<if test="pxh != null"> and PXH = #{pxh} </if>
<if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
</trim>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-ZbWhszEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity">
select
<include refid="ZbWhszEntity_Base_Column_List" />
from ZB_WHSZ
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and GSDM like concat('%',#{gsdm},'%') </if>
<if test="kjnd != null and kjnd != ''"> and KJND like concat('%',#{kjnd},'%') </if>
<if test="whdm != null and whdm != ''"> and WHDM like concat('%',#{whdm},'%') </if>
<if test="whmc != null and whmc != ''"> and WHMC like concat('%',#{whmc},'%') </if>
<if test="zjm != null and zjm != ''"> and ZJM like concat('%',#{zjm},'%') </if>
<if test="syzt != null and syzt != ''"> and SYZT like concat('%',#{syzt},'%') </if>
<if test="wjwz != null and wjwz != ''"> and WJWZ like concat('%',#{wjwz},'%') </if>
<if test="wjlb != null and wjlb != ''"> and WJLB like concat('%',#{wjlb},'%') </if>
<if test="jlrId != null and jlrId != ''"> and JLR_ID like concat('%',#{jlrId},'%') </if>
<if test="jlRq != null and jlRq != ''"> and JL_RQ like concat('%',#{jlRq},'%') </if>
<if test="xgrId != null and xgrId != ''"> and XGR_ID like concat('%',#{xgrId},'%') </if>
<if test="xgRq != null and xgRq != ''"> and XG_RQ like concat('%',#{xgRq},'%') </if>
<if test="bz != null and bz != ''"> and BZ like concat('%',#{bz},'%') </if>
<if test="sfmx != null and sfmx != ''"> and SFMX like concat('%',#{sfmx},'%') </if>
<if test="sjdm != null and sjdm != ''"> and SJDM like concat('%',#{sjdm},'%') </if>
<if test="jc != null"> and JC like concat('%',#{jc},'%') </if>
<if test="pxh != null"> and PXH like concat('%',#{pxh},'%') </if>
<if test="sjly != null and sjly != ''"> and SJLY like concat('%',#{sjly},'%') </if>
</trim>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="ZbWhszentity_list_or" resultMap="get-ZbWhszEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity">
select
<include refid="ZbWhszEntity_Base_Column_List" />
from ZB_WHSZ
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> or GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> or KJND = #{kjnd} </if>
<if test="whdm != null and whdm != ''"> or WHDM = #{whdm} </if>
<if test="whmc != null and whmc != ''"> or WHMC = #{whmc} </if>
<if test="zjm != null and zjm != ''"> or ZJM = #{zjm} </if>
<if test="syzt != null and syzt != ''"> or SYZT = #{syzt} </if>
<if test="wjwz != null and wjwz != ''"> or WJWZ = #{wjwz} </if>
<if test="wjlb != null and wjlb != ''"> or WJLB = #{wjlb} </if>
<if test="jlrId != null and jlrId != ''"> or JLR_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> or JL_RQ = #{jlRq} </if>
<if test="xgrId != null and xgrId != ''"> or XGR_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> or XG_RQ = #{xgRq} </if>
<if test="bz != null and bz != ''"> or BZ = #{bz} </if>
<if test="sfmx != null and sfmx != ''"> or SFMX = #{sfmx} </if>
<if test="sjdm != null and sjdm != ''"> or SJDM = #{sjdm} </if>
<if test="jc != null"> or JC = #{jc} </if>
<if test="pxh != null"> or PXH = #{pxh} </if>
<if test="sjly != null and sjly != ''"> or SJLY = #{sjly} </if>
</trim>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity" keyProperty="gsdm" useGeneratedKeys="true">
insert into ZB_WHSZ(
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> GSDM , </if>
<if test="kjnd != null and kjnd != ''"> KJND , </if>
<if test="whdm != null and whdm != ''"> WHDM , </if>
<if test="whmc != null and whmc != ''"> WHMC , </if>
<if test="zjm != null and zjm != ''"> ZJM , </if>
<if test="syzt != null and syzt != ''"> SYZT , </if>
<if test="wjwz != null and wjwz != ''"> WJWZ , </if>
<if test="wjlb != null and wjlb != ''"> WJLB , </if>
<if test="jlrId != null and jlrId != ''"> JLR_ID , </if>
<if test="jlRq != null and jlRq != ''"> JL_RQ , </if>
<if test="xgrId != null and xgrId != ''"> XGR_ID , </if>
<if test="xgRq != null and xgRq != ''"> XG_RQ , </if>
<if test="bz != null and bz != ''"> BZ , </if>
<if test="sfmx != null and sfmx != ''"> SFMX , </if>
<if test="sjdm != null and sjdm != ''"> SJDM , </if>
<if test="jc != null"> JC , </if>
<if test="pxh != null"> PXH , </if>
<if test="sjly != null and sjly != ''"> SJLY , </if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
<if test="whdm != null and whdm != ''"> #{whdm} ,</if>
<if test="whmc != null and whmc != ''"> #{whmc} ,</if>
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
<if test="wjwz != null and wjwz != ''"> #{wjwz} ,</if>
<if test="wjlb != null and wjlb != ''"> #{wjlb} ,</if>
<if test="jlrId != null and jlrId != ''"> #{jlrId} ,</if>
<if test="jlRq != null and jlRq != ''"> #{jlRq} ,</if>
<if test="xgrId != null and xgrId != ''"> #{xgrId} ,</if>
<if test="xgRq != null and xgRq != ''"> #{xgRq} ,</if>
<if test="bz != null and bz != ''"> #{bz} ,</if>
<if test="sfmx != null and sfmx != ''"> #{sfmx} ,</if>
<if test="sjdm != null and sjdm != ''"> #{sjdm} ,</if>
<if test="jc != null"> #{jc} ,</if>
<if test="pxh != null"> #{pxh} ,</if>
<if test="sjly != null and sjly != ''"> #{sjly} ,</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="gsdm" useGeneratedKeys="true">
insert into ZB_WHSZ(WHMC, ZJM, SYZT, WJWZ, WJLB, JLR_ID, JL_RQ, XGR_ID, XG_RQ, BZ, SFMX, SJDM, JC, PXH, SJLY, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.whmc},#{entity.zjm},#{entity.syzt},#{entity.wjwz},#{entity.wjlb},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.bz},#{entity.sfmx},#{entity.sjdm},#{entity.jc},#{entity.pxh},#{entity.sjly}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="gsdm" useGeneratedKeys="true">
insert into ZB_WHSZ(WHMC, ZJM, SYZT, WJWZ, WJLB, JLR_ID, JL_RQ, XGR_ID, XG_RQ, BZ, SFMX, SJDM, JC, PXH, SJLY)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.whmc},#{entity.zjm},#{entity.syzt},#{entity.wjwz},#{entity.wjlb},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.bz},#{entity.sfmx},#{entity.sjdm},#{entity.jc},#{entity.pxh},#{entity.sjly})
</foreach>
on duplicate key update
WHMC = values(WHMC),
ZJM = values(ZJM),
SYZT = values(SYZT),
WJWZ = values(WJWZ),
WJLB = values(WJLB),
JLR_ID = values(JLR_ID),
JL_RQ = values(JL_RQ),
XGR_ID = values(XGR_ID),
XG_RQ = values(XG_RQ),
BZ = values(BZ),
SFMX = values(SFMX),
SJDM = values(SJDM),
JC = values(JC),
PXH = values(PXH),
SJLY = values(SJLY)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity" >
update ZB_WHSZ set
<trim suffix="" suffixOverrides=",">
<if test="whmc != null and whmc != ''"> WHMC = #{whmc},</if>
<if test="zjm != null and zjm != ''"> ZJM = #{zjm},</if>
<if test="syzt != null and syzt != ''"> SYZT = #{syzt},</if>
<if test="wjwz != null and wjwz != ''"> WJWZ = #{wjwz},</if>
<if test="wjlb != null and wjlb != ''"> WJLB = #{wjlb},</if>
<if test="jlrId != null and jlrId != ''"> JLR_ID = #{jlrId},</if>
<if test="jlRq != null and jlRq != ''"> JL_RQ = #{jlRq},</if>
<if test="xgrId != null and xgrId != ''"> XGR_ID = #{xgrId},</if>
<if test="xgRq != null and xgRq != ''"> XG_RQ = #{xgRq},</if>
<if test="bz != null and bz != ''"> BZ = #{bz},</if>
<if test="sfmx != null and sfmx != ''"> SFMX = #{sfmx},</if>
<if test="sjdm != null and sjdm != ''"> SJDM = #{sjdm},</if>
<if test="jc != null"> JC = #{jc},</if>
<if test="pxh != null"> PXH = #{pxh},</if>
<if test="sjly != null and sjly != ''"> SJLY = #{sjly},</if>
</trim>
where gsdm = #{gsdm} and kjnd=#{kjnd} and whdm=#{whdm}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity" >
update ZB_WHSZ set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where GSDM = #{gsdm}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity" >
update ZB_WHSZ set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
<if test="whdm != null and whdm != ''"> and WHDM = #{whdm} </if>
<if test="whmc != null and whmc != ''"> and WHMC = #{whmc} </if>
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </if>
<if test="wjwz != null and wjwz != ''"> and WJWZ = #{wjwz} </if>
<if test="wjlb != null and wjlb != ''"> and WJLB = #{wjlb} </if>
<if test="jlrId != null and jlrId != ''"> and JLR_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
<if test="xgrId != null and xgrId != ''"> and XGR_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
<if test="bz != null and bz != ''"> and BZ = #{bz} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="sjdm != null and sjdm != ''"> and SJDM = #{sjdm} </if>
<if test="jc != null"> and JC = #{jc} </if>
<if test="pxh != null"> and PXH = #{pxh} </if>
<if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from ZB_WHSZ where GSDM = #{gsdm}
</delete>
</mapper>

View File

@ -0,0 +1,14 @@
package com.hzya.frame.grpU8.nxproof.zbwhsz.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity;
/**
* (ZbWhsz)表服务接口
*
* @author makejava
* @since 2024-08-06 10:52:29
*/
public interface IZbWhszService extends IBaseService<ZbWhszEntity, String> {
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.grpU8.nxproof.zbwhsz.service.impl;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.grpU8.nxproof.zbwhsz.dao.IZbWhszDao;
import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity;
import com.hzya.frame.grpU8.nxproof.zbwhsz.service.IZbWhszService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* (ZbWhsz)表服务实现类
*
* @author makejava
* @since 2024-08-06 10:52:29
*/
@Service(value = "zbWhszService")
public class ZbWhszServiceImpl extends BaseService<ZbWhszEntity, String> implements IZbWhszService {
private IZbWhszDao zbWhszDao;
@Autowired
public void setZbWhszDao(IZbWhszDao dao) {
this.zbWhszDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.grpU8.nxproof.zbzbly.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity;
/**
* (ZB_ZBLY: table)表数据库访问层
*
* @author makejava
* @since 2024-08-06 10:54:31
*/
public interface IZbZblyDao extends IBaseDao<ZbZblyEntity, String> {
}

View File

@ -0,0 +1,18 @@
package com.hzya.frame.grpU8.nxproof.zbzbly.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.grpU8.nxproof.zbzbly.dao.IZbZblyDao;
import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity;
import org.springframework.stereotype.Repository;
/**
* (ZbZbly)表数据库访问层
*
* @author makejava
* @since 2024-08-06 10:54:31
*/
@Repository(value = "ZbZblyDaoImpl")
public class ZbZblyDaoImpl extends MybatisGenericDao<ZbZblyEntity, String> implements IZbZblyDao {
}

View File

@ -0,0 +1,170 @@
package com.hzya.frame.grpU8.nxproof.zbzbly.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (ZbZbly)实体类
*
* @author makejava
* @since 2024-08-06 10:54:31
*/
public class ZbZblyEntity extends BaseEntity {
private String gsdm;
private String kjnd;
private String zblydm;
private String zblymc;
private String zjm;
private String kzlkx;
private String kzdzk;
private String syzt;
private String jlrId;
private String jlRq;
private String xgrId;
private String xgRq;
private String sfmx;
private String sjdm;
private Integer jc;
private Integer pxh;
private String sjly;
public String getGsdm() {
return gsdm;
}
public void setGsdm(String gsdm) {
this.gsdm = gsdm;
}
public String getKjnd() {
return kjnd;
}
public void setKjnd(String kjnd) {
this.kjnd = kjnd;
}
public String getZblydm() {
return zblydm;
}
public void setZblydm(String zblydm) {
this.zblydm = zblydm;
}
public String getZblymc() {
return zblymc;
}
public void setZblymc(String zblymc) {
this.zblymc = zblymc;
}
public String getZjm() {
return zjm;
}
public void setZjm(String zjm) {
this.zjm = zjm;
}
public String getKzlkx() {
return kzlkx;
}
public void setKzlkx(String kzlkx) {
this.kzlkx = kzlkx;
}
public String getKzdzk() {
return kzdzk;
}
public void setKzdzk(String kzdzk) {
this.kzdzk = kzdzk;
}
public String getSyzt() {
return syzt;
}
public void setSyzt(String syzt) {
this.syzt = syzt;
}
public String getJlrId() {
return jlrId;
}
public void setJlrId(String jlrId) {
this.jlrId = jlrId;
}
public String getJlRq() {
return jlRq;
}
public void setJlRq(String jlRq) {
this.jlRq = jlRq;
}
public String getXgrId() {
return xgrId;
}
public void setXgrId(String xgrId) {
this.xgrId = xgrId;
}
public String getXgRq() {
return xgRq;
}
public void setXgRq(String xgRq) {
this.xgRq = xgRq;
}
public String getSfmx() {
return sfmx;
}
public void setSfmx(String sfmx) {
this.sfmx = sfmx;
}
public String getSjdm() {
return sjdm;
}
public void setSjdm(String sjdm) {
this.sjdm = sjdm;
}
public Integer getJc() {
return jc;
}
public void setJc(Integer jc) {
this.jc = jc;
}
public Integer getPxh() {
return pxh;
}
public void setPxh(Integer pxh) {
this.pxh = pxh;
}
public String getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
}

View File

@ -0,0 +1,275 @@
<?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.hzya.frame.grpU8.nxproof.zbzbly.dao.impl.ZbZblyDaoImpl">
<resultMap id="get-ZbZblyEntity-result" type="com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity" >
<result property="gsdm" column="GSDM" jdbcType="VARCHAR"/>
<result property="kjnd" column="KJND" jdbcType="VARCHAR"/>
<result property="zblydm" column="ZBLYDM" jdbcType="VARCHAR"/>
<result property="zblymc" column="ZBLYMC" jdbcType="VARCHAR"/>
<result property="zjm" column="ZJM" jdbcType="VARCHAR"/>
<result property="kzlkx" column="KZLKX" jdbcType="VARCHAR"/>
<result property="kzdzk" column="KZDZK" jdbcType="VARCHAR"/>
<result property="syzt" column="SYZT" jdbcType="VARCHAR"/>
<result property="jlrId" column="JLR_ID" jdbcType="VARCHAR"/>
<result property="jlRq" column="JL_RQ" jdbcType="VARCHAR"/>
<result property="xgrId" column="XGR_ID" jdbcType="VARCHAR"/>
<result property="xgRq" column="XG_RQ" jdbcType="VARCHAR"/>
<result property="sfmx" column="SFMX" jdbcType="VARCHAR"/>
<result property="sjdm" column="SJDM" jdbcType="VARCHAR"/>
<result property="jc" column="JC" jdbcType="INTEGER"/>
<result property="pxh" column="PXH" jdbcType="INTEGER"/>
<result property="sjly" column="SJLY" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "ZbZblyEntity_Base_Column_List">
GSDM
,KJND
,ZBLYDM
,ZBLYMC
,ZJM
,KZLKX
,KZDZK
,SYZT
,JLR_ID
,JL_RQ
,XGR_ID
,XG_RQ
,SFMX
,SJDM
,JC
,PXH
,SJLY
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-ZbZblyEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity">
select
<include refid="ZbZblyEntity_Base_Column_List" />
from ZB_ZBLY
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
<if test="zblydm != null and zblydm != ''"> and ZBLYDM = #{zblydm} </if>
<if test="zblymc != null and zblymc != ''"> and ZBLYMC = #{zblymc} </if>
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
<if test="kzlkx != null and kzlkx != ''"> and KZLKX = #{kzlkx} </if>
<if test="kzdzk != null and kzdzk != ''"> and KZDZK = #{kzdzk} </if>
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </if>
<if test="jlrId != null and jlrId != ''"> and JLR_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
<if test="xgrId != null and xgrId != ''"> and XGR_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="sjdm != null and sjdm != ''"> and SJDM = #{sjdm} </if>
<if test="jc != null"> and JC = #{jc} </if>
<if test="pxh != null"> and PXH = #{pxh} </if>
<if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
</trim>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity">
select count(1) from ZB_ZBLY
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
<if test="zblydm != null and zblydm != ''"> and ZBLYDM = #{zblydm} </if>
<if test="zblymc != null and zblymc != ''"> and ZBLYMC = #{zblymc} </if>
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
<if test="kzlkx != null and kzlkx != ''"> and KZLKX = #{kzlkx} </if>
<if test="kzdzk != null and kzdzk != ''"> and KZDZK = #{kzdzk} </if>
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </if>
<if test="jlrId != null and jlrId != ''"> and JLR_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
<if test="xgrId != null and xgrId != ''"> and XGR_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="sjdm != null and sjdm != ''"> and SJDM = #{sjdm} </if>
<if test="jc != null"> and JC = #{jc} </if>
<if test="pxh != null"> and PXH = #{pxh} </if>
<if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
</trim>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-ZbZblyEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity">
select
<include refid="ZbZblyEntity_Base_Column_List" />
from ZB_ZBLY
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and GSDM like concat('%',#{gsdm},'%') </if>
<if test="kjnd != null and kjnd != ''"> and KJND like concat('%',#{kjnd},'%') </if>
<if test="zblydm != null and zblydm != ''"> and ZBLYDM like concat('%',#{zblydm},'%') </if>
<if test="zblymc != null and zblymc != ''"> and ZBLYMC like concat('%',#{zblymc},'%') </if>
<if test="zjm != null and zjm != ''"> and ZJM like concat('%',#{zjm},'%') </if>
<if test="kzlkx != null and kzlkx != ''"> and KZLKX like concat('%',#{kzlkx},'%') </if>
<if test="kzdzk != null and kzdzk != ''"> and KZDZK like concat('%',#{kzdzk},'%') </if>
<if test="syzt != null and syzt != ''"> and SYZT like concat('%',#{syzt},'%') </if>
<if test="jlrId != null and jlrId != ''"> and JLR_ID like concat('%',#{jlrId},'%') </if>
<if test="jlRq != null and jlRq != ''"> and JL_RQ like concat('%',#{jlRq},'%') </if>
<if test="xgrId != null and xgrId != ''"> and XGR_ID like concat('%',#{xgrId},'%') </if>
<if test="xgRq != null and xgRq != ''"> and XG_RQ like concat('%',#{xgRq},'%') </if>
<if test="sfmx != null and sfmx != ''"> and SFMX like concat('%',#{sfmx},'%') </if>
<if test="sjdm != null and sjdm != ''"> and SJDM like concat('%',#{sjdm},'%') </if>
<if test="jc != null"> and JC like concat('%',#{jc},'%') </if>
<if test="pxh != null"> and PXH like concat('%',#{pxh},'%') </if>
<if test="sjly != null and sjly != ''"> and SJLY like concat('%',#{sjly},'%') </if>
</trim>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="ZbZblyentity_list_or" resultMap="get-ZbZblyEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity">
select
<include refid="ZbZblyEntity_Base_Column_List" />
from ZB_ZBLY
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> or GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> or KJND = #{kjnd} </if>
<if test="zblydm != null and zblydm != ''"> or ZBLYDM = #{zblydm} </if>
<if test="zblymc != null and zblymc != ''"> or ZBLYMC = #{zblymc} </if>
<if test="zjm != null and zjm != ''"> or ZJM = #{zjm} </if>
<if test="kzlkx != null and kzlkx != ''"> or KZLKX = #{kzlkx} </if>
<if test="kzdzk != null and kzdzk != ''"> or KZDZK = #{kzdzk} </if>
<if test="syzt != null and syzt != ''"> or SYZT = #{syzt} </if>
<if test="jlrId != null and jlrId != ''"> or JLR_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> or JL_RQ = #{jlRq} </if>
<if test="xgrId != null and xgrId != ''"> or XGR_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> or XG_RQ = #{xgRq} </if>
<if test="sfmx != null and sfmx != ''"> or SFMX = #{sfmx} </if>
<if test="sjdm != null and sjdm != ''"> or SJDM = #{sjdm} </if>
<if test="jc != null"> or JC = #{jc} </if>
<if test="pxh != null"> or PXH = #{pxh} </if>
<if test="sjly != null and sjly != ''"> or SJLY = #{sjly} </if>
</trim>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity" keyProperty="gsdm" useGeneratedKeys="true">
insert into ZB_ZBLY(
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> GSDM , </if>
<if test="kjnd != null and kjnd != ''"> KJND , </if>
<if test="zblydm != null and zblydm != ''"> ZBLYDM , </if>
<if test="zblymc != null and zblymc != ''"> ZBLYMC , </if>
<if test="zjm != null and zjm != ''"> ZJM , </if>
<if test="kzlkx != null and kzlkx != ''"> KZLKX , </if>
<if test="kzdzk != null and kzdzk != ''"> KZDZK , </if>
<if test="syzt != null and syzt != ''"> SYZT , </if>
<if test="jlrId != null and jlrId != ''"> JLR_ID , </if>
<if test="jlRq != null and jlRq != ''"> JL_RQ , </if>
<if test="xgrId != null and xgrId != ''"> XGR_ID , </if>
<if test="xgRq != null and xgRq != ''"> XG_RQ , </if>
<if test="sfmx != null and sfmx != ''"> SFMX , </if>
<if test="sjdm != null and sjdm != ''"> SJDM , </if>
<if test="jc != null"> JC , </if>
<if test="pxh != null"> PXH , </if>
<if test="sjly != null and sjly != ''"> SJLY , </if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
<if test="zblydm != null and zblydm != ''"> #{zblydm} ,</if>
<if test="zblymc != null and zblymc != ''"> #{zblymc} ,</if>
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
<if test="kzlkx != null and kzlkx != ''"> #{kzlkx} ,</if>
<if test="kzdzk != null and kzdzk != ''"> #{kzdzk} ,</if>
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
<if test="jlrId != null and jlrId != ''"> #{jlrId} ,</if>
<if test="jlRq != null and jlRq != ''"> #{jlRq} ,</if>
<if test="xgrId != null and xgrId != ''"> #{xgrId} ,</if>
<if test="xgRq != null and xgRq != ''"> #{xgRq} ,</if>
<if test="sfmx != null and sfmx != ''"> #{sfmx} ,</if>
<if test="sjdm != null and sjdm != ''"> #{sjdm} ,</if>
<if test="jc != null"> #{jc} ,</if>
<if test="pxh != null"> #{pxh} ,</if>
<if test="sjly != null and sjly != ''"> #{sjly} ,</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="gsdm" useGeneratedKeys="true">
insert into ZB_ZBLY(ZBLYMC, ZJM, KZLKX, KZDZK, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SFMX, SJDM, JC, PXH, SJLY, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.zblymc},#{entity.zjm},#{entity.kzlkx},#{entity.kzdzk},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.sjdm},#{entity.jc},#{entity.pxh},#{entity.sjly}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="gsdm" useGeneratedKeys="true">
insert into ZB_ZBLY(ZBLYMC, ZJM, KZLKX, KZDZK, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SFMX, SJDM, JC, PXH, SJLY)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.zblymc},#{entity.zjm},#{entity.kzlkx},#{entity.kzdzk},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.sjdm},#{entity.jc},#{entity.pxh},#{entity.sjly})
</foreach>
on duplicate key update
ZBLYMC = values(ZBLYMC),
ZJM = values(ZJM),
KZLKX = values(KZLKX),
KZDZK = values(KZDZK),
SYZT = values(SYZT),
JLR_ID = values(JLR_ID),
JL_RQ = values(JL_RQ),
XGR_ID = values(XGR_ID),
XG_RQ = values(XG_RQ),
SFMX = values(SFMX),
SJDM = values(SJDM),
JC = values(JC),
PXH = values(PXH),
SJLY = values(SJLY)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity" >
update ZB_ZBLY set
<trim suffix="" suffixOverrides=",">
<if test="zblymc != null and zblymc != ''"> ZBLYMC = #{zblymc},</if>
<if test="zjm != null and zjm != ''"> ZJM = #{zjm},</if>
<if test="kzlkx != null and kzlkx != ''"> KZLKX = #{kzlkx},</if>
<if test="kzdzk != null and kzdzk != ''"> KZDZK = #{kzdzk},</if>
<if test="syzt != null and syzt != ''"> SYZT = #{syzt},</if>
<if test="jlrId != null and jlrId != ''"> JLR_ID = #{jlrId},</if>
<if test="jlRq != null and jlRq != ''"> JL_RQ = #{jlRq},</if>
<if test="xgrId != null and xgrId != ''"> XGR_ID = #{xgrId},</if>
<if test="xgRq != null and xgRq != ''"> XG_RQ = #{xgRq},</if>
<if test="sfmx != null and sfmx != ''"> SFMX = #{sfmx},</if>
<if test="sjdm != null and sjdm != ''"> SJDM = #{sjdm},</if>
<if test="jc != null"> JC = #{jc},</if>
<if test="pxh != null"> PXH = #{pxh},</if>
<if test="sjly != null and sjly != ''"> SJLY = #{sjly},</if>
</trim>
where GSDM = #{gsdm}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity" >
update ZB_ZBLY set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where GSDM = #{gsdm}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity" >
update ZB_ZBLY set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
<if test="zblydm != null and zblydm != ''"> and ZBLYDM = #{zblydm} </if>
<if test="zblymc != null and zblymc != ''"> and ZBLYMC = #{zblymc} </if>
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
<if test="kzlkx != null and kzlkx != ''"> and KZLKX = #{kzlkx} </if>
<if test="kzdzk != null and kzdzk != ''"> and KZDZK = #{kzdzk} </if>
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </if>
<if test="jlrId != null and jlrId != ''"> and JLR_ID = #{jlrId} </if>
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
<if test="xgrId != null and xgrId != ''"> and XGR_ID = #{xgrId} </if>
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="sjdm != null and sjdm != ''"> and SJDM = #{sjdm} </if>
<if test="jc != null"> and JC = #{jc} </if>
<if test="pxh != null"> and PXH = #{pxh} </if>
<if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from ZB_ZBLY where GSDM = #{gsdm}
</delete>
</mapper>

View File

@ -0,0 +1,14 @@
package com.hzya.frame.grpU8.nxproof.zbzbly.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity;
/**
* (ZbZbly)表服务接口
*
* @author makejava
* @since 2024-08-06 10:54:31
*/
public interface IZbZblyService extends IBaseService<ZbZblyEntity, String> {
}

View File

@ -0,0 +1,27 @@
package com.hzya.frame.grpU8.nxproof.zbzbly.service.impl;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.grpU8.nxproof.zbzbly.dao.IZbZblyDao;
import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity;
import com.hzya.frame.grpU8.nxproof.zbzbly.service.IZbZblyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* (ZbZbly)表服务实现类
*
* @author makejava
* @since 2024-08-06 10:54:31
*/
@Service(value = "zbZblyService")
public class ZbZblyServiceImpl extends BaseService<ZbZblyEntity, String> implements IZbZblyService {
private IZbZblyDao zbZblyDao;
@Autowired
public void setZbZblyDao(IZbZblyDao dao) {
this.zbZblyDao = dao;
this.dao = dao;
}
}