定时查询凭证与指标

This commit is contained in:
hecan 2024-09-14 15:56:49 +08:00
parent 540cde8ca1
commit f586f089bf
7 changed files with 1031 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.grpU8.glpzml.dao;
import com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* (GL_Pzml: table)表数据库访问层
*
* @author makejava
* @since 2024-08-29 15:31:28
*/
public interface IGlPzmlDao extends IBaseDao<GlPzmlEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.grpU8.glpzml.dao.impl;
import com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity;
import com.hzya.frame.plugin.grpU8.glpzml.dao.IGlPzmlDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* (GlPzml)表数据库访问层
*
* @author makejava
* @since 2024-08-29 15:31:28
*/
public class GlPzmlDaoImpl extends MybatisGenericDao<GlPzmlEntity, String> implements IGlPzmlDao{
}

View File

@ -0,0 +1,366 @@
package com.hzya.frame.plugin.grpU8.glpzml.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (GlPzml)实体类
*
* @author makejava
* @since 2024-08-29 15:31:28
*/
public class GlPzmlEntity extends BaseEntity {
private String gsdm;
private String zth;
private String kjqj;
private String pzly;
private String kjtxdm;
private String pzlxdm;
private String pzh;
private String pzrq;
private Integer fjzs;
private Integer srid;
private String sr;
private Integer shid;
private String sh;
private String jsr;
private Integer jzrid;
private String jzr;
private String srrq;
private String shrq;
private String jzrq;
private String pzhzkmdy;
private String pzhzbz;
private Integer zt;
private String pzzy;
private String pzje;
private String cn;
private String bz;
private String kjzg;
private String idpzh;
private String dyzt;
private String qzrq;
private Integer gdid;
private String gdname;
private String gdrqsj;
private Integer gdcs;
private String gdbz;
private String pzsbm;
private String stamp;
private Integer yspzzs;
private String yspzje;
public String getGsdm() {
return gsdm;
}
public void setGsdm(String gsdm) {
this.gsdm = gsdm;
}
public String getZth() {
return zth;
}
public void setZth(String zth) {
this.zth = zth;
}
public String getKjqj() {
return kjqj;
}
public void setKjqj(String kjqj) {
this.kjqj = kjqj;
}
public String getPzly() {
return pzly;
}
public void setPzly(String pzly) {
this.pzly = pzly;
}
public String getKjtxdm() {
return kjtxdm;
}
public void setKjtxdm(String kjtxdm) {
this.kjtxdm = kjtxdm;
}
public String getPzlxdm() {
return pzlxdm;
}
public void setPzlxdm(String pzlxdm) {
this.pzlxdm = pzlxdm;
}
public String getPzh() {
return pzh;
}
public void setPzh(String pzh) {
this.pzh = pzh;
}
public String getPzrq() {
return pzrq;
}
public void setPzrq(String pzrq) {
this.pzrq = pzrq;
}
public Integer getFjzs() {
return fjzs;
}
public void setFjzs(Integer fjzs) {
this.fjzs = fjzs;
}
public Integer getSrid() {
return srid;
}
public void setSrid(Integer srid) {
this.srid = srid;
}
public String getSr() {
return sr;
}
public void setSr(String sr) {
this.sr = sr;
}
public Integer getShid() {
return shid;
}
public void setShid(Integer shid) {
this.shid = shid;
}
public String getSh() {
return sh;
}
public void setSh(String sh) {
this.sh = sh;
}
public String getJsr() {
return jsr;
}
public void setJsr(String jsr) {
this.jsr = jsr;
}
public Integer getJzrid() {
return jzrid;
}
public void setJzrid(Integer jzrid) {
this.jzrid = jzrid;
}
public String getJzr() {
return jzr;
}
public void setJzr(String jzr) {
this.jzr = jzr;
}
public String getSrrq() {
return srrq;
}
public void setSrrq(String srrq) {
this.srrq = srrq;
}
public String getShrq() {
return shrq;
}
public void setShrq(String shrq) {
this.shrq = shrq;
}
public String getJzrq() {
return jzrq;
}
public void setJzrq(String jzrq) {
this.jzrq = jzrq;
}
public String getPzhzkmdy() {
return pzhzkmdy;
}
public void setPzhzkmdy(String pzhzkmdy) {
this.pzhzkmdy = pzhzkmdy;
}
public String getPzhzbz() {
return pzhzbz;
}
public void setPzhzbz(String pzhzbz) {
this.pzhzbz = pzhzbz;
}
public Integer getZt() {
return zt;
}
public void setZt(Integer zt) {
this.zt = zt;
}
public String getPzzy() {
return pzzy;
}
public void setPzzy(String pzzy) {
this.pzzy = pzzy;
}
public String getPzje() {
return pzje;
}
public void setPzje(String pzje) {
this.pzje = pzje;
}
public String getCn() {
return cn;
}
public void setCn(String cn) {
this.cn = cn;
}
public String getBz() {
return bz;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getKjzg() {
return kjzg;
}
public void setKjzg(String kjzg) {
this.kjzg = kjzg;
}
public String getIdpzh() {
return idpzh;
}
public void setIdpzh(String idpzh) {
this.idpzh = idpzh;
}
public String getDyzt() {
return dyzt;
}
public void setDyzt(String dyzt) {
this.dyzt = dyzt;
}
public String getQzrq() {
return qzrq;
}
public void setQzrq(String qzrq) {
this.qzrq = qzrq;
}
public Integer getGdid() {
return gdid;
}
public void setGdid(Integer gdid) {
this.gdid = gdid;
}
public String getGdname() {
return gdname;
}
public void setGdname(String gdname) {
this.gdname = gdname;
}
public String getGdrqsj() {
return gdrqsj;
}
public void setGdrqsj(String gdrqsj) {
this.gdrqsj = gdrqsj;
}
public Integer getGdcs() {
return gdcs;
}
public void setGdcs(Integer gdcs) {
this.gdcs = gdcs;
}
public String getGdbz() {
return gdbz;
}
public void setGdbz(String gdbz) {
this.gdbz = gdbz;
}
public String getPzsbm() {
return pzsbm;
}
public void setPzsbm(String pzsbm) {
this.pzsbm = pzsbm;
}
public String getStamp() {
return stamp;
}
public void setStamp(String stamp) {
this.stamp = stamp;
}
public Integer getYspzzs() {
return yspzzs;
}
public void setYspzzs(Integer yspzzs) {
this.yspzzs = yspzzs;
}
public String getYspzje() {
return yspzje;
}
public void setYspzje(String yspzje) {
this.yspzje = yspzje;
}
}

View File

@ -0,0 +1,528 @@
<?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.plugin.grpU8.glpzml.dao.impl.GlPzmlDaoImpl">
<resultMap id="get-GlPzmlEntity-result" type="com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity" >
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
<result property="zth" column="ZTH" jdbcType="VARCHAR"/>
<result property="kjqj" column="kjqj" jdbcType="VARCHAR"/>
<result property="pzly" column="pzly" jdbcType="VARCHAR"/>
<result property="kjtxdm" column="KJTXDM" jdbcType="VARCHAR"/>
<result property="pzlxdm" column="PZLXDM" jdbcType="VARCHAR"/>
<result property="pzh" column="pzh" jdbcType="VARCHAR"/>
<result property="pzrq" column="pzrq" jdbcType="VARCHAR"/>
<result property="fjzs" column="fjzs" jdbcType="INTEGER"/>
<result property="srid" column="srID" jdbcType="INTEGER"/>
<result property="sr" column="sr" jdbcType="VARCHAR"/>
<result property="shid" column="shID" jdbcType="INTEGER"/>
<result property="sh" column="sh" jdbcType="VARCHAR"/>
<result property="jsr" column="jsr" jdbcType="VARCHAR"/>
<result property="jzrid" column="jzrID" jdbcType="INTEGER"/>
<result property="jzr" column="jzr" jdbcType="VARCHAR"/>
<result property="srrq" column="srrq" jdbcType="VARCHAR"/>
<result property="shrq" column="shrq" jdbcType="VARCHAR"/>
<result property="jzrq" column="jzrq" jdbcType="VARCHAR"/>
<result property="pzhzkmdy" column="pzhzkmdy" jdbcType="VARCHAR"/>
<result property="pzhzbz" column="pzhzbz" jdbcType="VARCHAR"/>
<result property="zt" column="zt" jdbcType="INTEGER"/>
<result property="pzzy" column="pzzy" jdbcType="VARCHAR"/>
<result property="pzje" column="pzje" jdbcType="VARCHAR"/>
<result property="cn" column="CN" jdbcType="VARCHAR"/>
<result property="bz" column="BZ" jdbcType="VARCHAR"/>
<result property="kjzg" column="kjzg" jdbcType="VARCHAR"/>
<result property="idpzh" column="idpzh" jdbcType="VARCHAR"/>
<result property="dyzt" column="dyzt" jdbcType="VARCHAR"/>
<result property="qzrq" column="QZRQ" jdbcType="VARCHAR"/>
<result property="gdid" column="GDID" jdbcType="INTEGER"/>
<result property="gdname" column="GDName" jdbcType="VARCHAR"/>
<result property="gdrqsj" column="GDRQSJ" jdbcType="VARCHAR"/>
<result property="gdcs" column="GDCS" jdbcType="INTEGER"/>
<result property="gdbz" column="GDBZ" jdbcType="VARCHAR"/>
<result property="pzsbm" column="PZSBM" jdbcType="VARCHAR"/>
<result property="stamp" column="STAMP" jdbcType="VARCHAR"/>
<result property="yspzzs" column="yspzzs" jdbcType="INTEGER"/>
<result property="yspzje" column="YSPZJE" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "GlPzmlEntity_Base_Column_List">
gsdm
,ZTH
,kjqj
,pzly
,KJTXDM
,PZLXDM
,pzh
,pzrq
,fjzs
,srID
,sr
,shID
,sh
,jsr
,jzrID
,jzr
,srrq
,shrq
,jzrq
,pzhzkmdy
,pzhzbz
,zt
,pzzy
,pzje
,CN
,BZ
,kjzg
,idpzh
,dyzt
,QZRQ
,GDID
,GDName
,GDRQSJ
,GDCS
,GDBZ
,PZSBM
,STAMP
,yspzzs
,YSPZJE
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-GlPzmlEntity-result" parameterType = "com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity">
select
<include refid="GlPzmlEntity_Base_Column_List" />
from GL_Pzml
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
<if test="kjtxdm != null and kjtxdm != ''"> and KJTXDM = #{kjtxdm} </if>
<if test="pzlxdm != null and pzlxdm != ''"> and PZLXDM = #{pzlxdm} </if>
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
<if test="pzrq != null and pzrq != ''"> and pzrq = #{pzrq} </if>
<if test="fjzs != null"> and fjzs = #{fjzs} </if>
<if test="srid != null"> and srID = #{srid} </if>
<if test="sr != null and sr != ''"> and sr = #{sr} </if>
<if test="shid != null"> and shID = #{shid} </if>
<if test="sh != null and sh != ''"> and sh = #{sh} </if>
<if test="jsr != null and jsr != ''"> and jsr = #{jsr} </if>
<if test="jzrid != null"> and jzrID = #{jzrid} </if>
<if test="jzr != null and jzr != ''"> and jzr = #{jzr} </if>
<if test="srrq != null and srrq != ''"> and srrq = #{srrq} </if>
<if test="shrq != null and shrq != ''"> and shrq = #{shrq} </if>
<if test="jzrq != null and jzrq != ''"> and jzrq = #{jzrq} </if>
<if test="pzhzkmdy != null and pzhzkmdy != ''"> and pzhzkmdy = #{pzhzkmdy} </if>
<if test="pzhzbz != null and pzhzbz != ''"> and pzhzbz = #{pzhzbz} </if>
<if test="zt != null"> and zt = #{zt} </if>
<if test="pzzy != null and pzzy != ''"> and pzzy = #{pzzy} </if>
<if test="pzje != null and pzje != ''"> and pzje = #{pzje} </if>
<if test="cn != null and cn != ''"> and CN = #{cn} </if>
<if test="bz != null and bz != ''"> and BZ = #{bz} </if>
<if test="kjzg != null and kjzg != ''"> and kjzg = #{kjzg} </if>
<if test="idpzh != null and idpzh != ''"> and idpzh = #{idpzh} </if>
<if test="dyzt != null and dyzt != ''"> and dyzt = #{dyzt} </if>
<if test="qzrq != null and qzrq != ''"> and QZRQ = #{qzrq} </if>
<if test="gdid != null"> and GDID = #{gdid} </if>
<if test="gdname != null and gdname != ''"> and GDName = #{gdname} </if>
<if test="gdrqsj != null and gdrqsj != ''"> and GDRQSJ = #{gdrqsj} </if>
<if test="gdcs != null"> and GDCS = #{gdcs} </if>
<if test="gdbz != null and gdbz != ''"> and GDBZ = #{gdbz} </if>
<if test="pzsbm != null and pzsbm != ''"> and PZSBM = #{pzsbm} </if>
<if test="stamp != null and stamp != ''"> and STAMP = #{stamp} </if>
<if test="yspzzs != null"> and yspzzs = #{yspzzs} </if>
<if test="yspzje != null and yspzje != ''"> and YSPZJE = #{yspzje} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity">
select count(1) from GL_Pzml
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
<if test="kjtxdm != null and kjtxdm != ''"> and KJTXDM = #{kjtxdm} </if>
<if test="pzlxdm != null and pzlxdm != ''"> and PZLXDM = #{pzlxdm} </if>
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
<if test="pzrq != null and pzrq != ''"> and pzrq = #{pzrq} </if>
<if test="fjzs != null"> and fjzs = #{fjzs} </if>
<if test="srid != null"> and srID = #{srid} </if>
<if test="sr != null and sr != ''"> and sr = #{sr} </if>
<if test="shid != null"> and shID = #{shid} </if>
<if test="sh != null and sh != ''"> and sh = #{sh} </if>
<if test="jsr != null and jsr != ''"> and jsr = #{jsr} </if>
<if test="jzrid != null"> and jzrID = #{jzrid} </if>
<if test="jzr != null and jzr != ''"> and jzr = #{jzr} </if>
<if test="srrq != null and srrq != ''"> and srrq = #{srrq} </if>
<if test="shrq != null and shrq != ''"> and shrq = #{shrq} </if>
<if test="jzrq != null and jzrq != ''"> and jzrq = #{jzrq} </if>
<if test="pzhzkmdy != null and pzhzkmdy != ''"> and pzhzkmdy = #{pzhzkmdy} </if>
<if test="pzhzbz != null and pzhzbz != ''"> and pzhzbz = #{pzhzbz} </if>
<if test="zt != null"> and zt = #{zt} </if>
<if test="pzzy != null and pzzy != ''"> and pzzy = #{pzzy} </if>
<if test="pzje != null and pzje != ''"> and pzje = #{pzje} </if>
<if test="cn != null and cn != ''"> and CN = #{cn} </if>
<if test="bz != null and bz != ''"> and BZ = #{bz} </if>
<if test="kjzg != null and kjzg != ''"> and kjzg = #{kjzg} </if>
<if test="idpzh != null and idpzh != ''"> and idpzh = #{idpzh} </if>
<if test="dyzt != null and dyzt != ''"> and dyzt = #{dyzt} </if>
<if test="qzrq != null and qzrq != ''"> and QZRQ = #{qzrq} </if>
<if test="gdid != null"> and GDID = #{gdid} </if>
<if test="gdname != null and gdname != ''"> and GDName = #{gdname} </if>
<if test="gdrqsj != null and gdrqsj != ''"> and GDRQSJ = #{gdrqsj} </if>
<if test="gdcs != null"> and GDCS = #{gdcs} </if>
<if test="gdbz != null and gdbz != ''"> and GDBZ = #{gdbz} </if>
<if test="pzsbm != null and pzsbm != ''"> and PZSBM = #{pzsbm} </if>
<if test="stamp != null and stamp != ''"> and STAMP = #{stamp} </if>
<if test="yspzzs != null"> and yspzzs = #{yspzzs} </if>
<if test="yspzje != null and yspzje != ''"> and YSPZJE = #{yspzje} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-GlPzmlEntity-result" parameterType = "com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity">
select
<include refid="GlPzmlEntity_Base_Column_List" />
from GL_Pzml
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and gsdm like concat('%',#{gsdm},'%') </if>
<if test="zth != null and zth != ''"> and ZTH like concat('%',#{zth},'%') </if>
<if test="kjqj != null and kjqj != ''"> and kjqj like concat('%',#{kjqj},'%') </if>
<if test="pzly != null and pzly != ''"> and pzly like concat('%',#{pzly},'%') </if>
<if test="kjtxdm != null and kjtxdm != ''"> and KJTXDM like concat('%',#{kjtxdm},'%') </if>
<if test="pzlxdm != null and pzlxdm != ''"> and PZLXDM like concat('%',#{pzlxdm},'%') </if>
<if test="pzh != null and pzh != ''"> and pzh like concat('%',#{pzh},'%') </if>
<if test="pzrq != null and pzrq != ''"> and pzrq like concat('%',#{pzrq},'%') </if>
<if test="fjzs != null"> and fjzs like concat('%',#{fjzs},'%') </if>
<if test="srid != null"> and srID like concat('%',#{srid},'%') </if>
<if test="sr != null and sr != ''"> and sr like concat('%',#{sr},'%') </if>
<if test="shid != null"> and shID like concat('%',#{shid},'%') </if>
<if test="sh != null and sh != ''"> and sh like concat('%',#{sh},'%') </if>
<if test="jsr != null and jsr != ''"> and jsr like concat('%',#{jsr},'%') </if>
<if test="jzrid != null"> and jzrID like concat('%',#{jzrid},'%') </if>
<if test="jzr != null and jzr != ''"> and jzr like concat('%',#{jzr},'%') </if>
<if test="srrq != null and srrq != ''"> and srrq like concat('%',#{srrq},'%') </if>
<if test="shrq != null and shrq != ''"> and shrq like concat('%',#{shrq},'%') </if>
<if test="jzrq != null and jzrq != ''"> and jzrq like concat('%',#{jzrq},'%') </if>
<if test="pzhzkmdy != null and pzhzkmdy != ''"> and pzhzkmdy like concat('%',#{pzhzkmdy},'%') </if>
<if test="pzhzbz != null and pzhzbz != ''"> and pzhzbz like concat('%',#{pzhzbz},'%') </if>
<if test="zt != null"> and zt like concat('%',#{zt},'%') </if>
<if test="pzzy != null and pzzy != ''"> and pzzy like concat('%',#{pzzy},'%') </if>
<if test="pzje != null and pzje != ''"> and pzje like concat('%',#{pzje},'%') </if>
<if test="cn != null and cn != ''"> and CN like concat('%',#{cn},'%') </if>
<if test="bz != null and bz != ''"> and BZ like concat('%',#{bz},'%') </if>
<if test="kjzg != null and kjzg != ''"> and kjzg like concat('%',#{kjzg},'%') </if>
<if test="idpzh != null and idpzh != ''"> and idpzh like concat('%',#{idpzh},'%') </if>
<if test="dyzt != null and dyzt != ''"> and dyzt like concat('%',#{dyzt},'%') </if>
<if test="qzrq != null and qzrq != ''"> and QZRQ like concat('%',#{qzrq},'%') </if>
<if test="gdid != null"> and GDID like concat('%',#{gdid},'%') </if>
<if test="gdname != null and gdname != ''"> and GDName like concat('%',#{gdname},'%') </if>
<if test="gdrqsj != null and gdrqsj != ''"> and GDRQSJ like concat('%',#{gdrqsj},'%') </if>
<if test="gdcs != null"> and GDCS like concat('%',#{gdcs},'%') </if>
<if test="gdbz != null and gdbz != ''"> and GDBZ like concat('%',#{gdbz},'%') </if>
<if test="pzsbm != null and pzsbm != ''"> and PZSBM like concat('%',#{pzsbm},'%') </if>
<if test="stamp != null and stamp != ''"> and STAMP like concat('%',#{stamp},'%') </if>
<if test="yspzzs != null"> and yspzzs like concat('%',#{yspzzs},'%') </if>
<if test="yspzje != null and yspzje != ''"> and YSPZJE like concat('%',#{yspzje},'%') </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="GlPzmlentity_list_or" resultMap="get-GlPzmlEntity-result" parameterType = "com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity">
select
<include refid="GlPzmlEntity_Base_Column_List" />
from GL_Pzml
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> or ZTH = #{zth} </if>
<if test="kjqj != null and kjqj != ''"> or kjqj = #{kjqj} </if>
<if test="pzly != null and pzly != ''"> or pzly = #{pzly} </if>
<if test="kjtxdm != null and kjtxdm != ''"> or KJTXDM = #{kjtxdm} </if>
<if test="pzlxdm != null and pzlxdm != ''"> or PZLXDM = #{pzlxdm} </if>
<if test="pzh != null and pzh != ''"> or pzh = #{pzh} </if>
<if test="pzrq != null and pzrq != ''"> or pzrq = #{pzrq} </if>
<if test="fjzs != null"> or fjzs = #{fjzs} </if>
<if test="srid != null"> or srID = #{srid} </if>
<if test="sr != null and sr != ''"> or sr = #{sr} </if>
<if test="shid != null"> or shID = #{shid} </if>
<if test="sh != null and sh != ''"> or sh = #{sh} </if>
<if test="jsr != null and jsr != ''"> or jsr = #{jsr} </if>
<if test="jzrid != null"> or jzrID = #{jzrid} </if>
<if test="jzr != null and jzr != ''"> or jzr = #{jzr} </if>
<if test="srrq != null and srrq != ''"> or srrq = #{srrq} </if>
<if test="shrq != null and shrq != ''"> or shrq = #{shrq} </if>
<if test="jzrq != null and jzrq != ''"> or jzrq = #{jzrq} </if>
<if test="pzhzkmdy != null and pzhzkmdy != ''"> or pzhzkmdy = #{pzhzkmdy} </if>
<if test="pzhzbz != null and pzhzbz != ''"> or pzhzbz = #{pzhzbz} </if>
<if test="zt != null"> or zt = #{zt} </if>
<if test="pzzy != null and pzzy != ''"> or pzzy = #{pzzy} </if>
<if test="pzje != null and pzje != ''"> or pzje = #{pzje} </if>
<if test="cn != null and cn != ''"> or CN = #{cn} </if>
<if test="bz != null and bz != ''"> or BZ = #{bz} </if>
<if test="kjzg != null and kjzg != ''"> or kjzg = #{kjzg} </if>
<if test="idpzh != null and idpzh != ''"> or idpzh = #{idpzh} </if>
<if test="dyzt != null and dyzt != ''"> or dyzt = #{dyzt} </if>
<if test="qzrq != null and qzrq != ''"> or QZRQ = #{qzrq} </if>
<if test="gdid != null"> or GDID = #{gdid} </if>
<if test="gdname != null and gdname != ''"> or GDName = #{gdname} </if>
<if test="gdrqsj != null and gdrqsj != ''"> or GDRQSJ = #{gdrqsj} </if>
<if test="gdcs != null"> or GDCS = #{gdcs} </if>
<if test="gdbz != null and gdbz != ''"> or GDBZ = #{gdbz} </if>
<if test="pzsbm != null and pzsbm != ''"> or PZSBM = #{pzsbm} </if>
<if test="stamp != null and stamp != ''"> or STAMP = #{stamp} </if>
<if test="yspzzs != null"> or yspzzs = #{yspzzs} </if>
<if test="yspzje != null and yspzje != ''"> or YSPZJE = #{yspzje} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity" keyProperty="gsdm" useGeneratedKeys="true">
insert into GL_Pzml(
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
<if test="zth != null and zth != ''"> ZTH , </if>
<if test="kjqj != null and kjqj != ''"> kjqj , </if>
<if test="pzly != null and pzly != ''"> pzly , </if>
<if test="kjtxdm != null and kjtxdm != ''"> KJTXDM , </if>
<if test="pzlxdm != null and pzlxdm != ''"> PZLXDM , </if>
<if test="pzh != null and pzh != ''"> pzh , </if>
<if test="pzrq != null and pzrq != ''"> pzrq , </if>
<if test="fjzs != null"> fjzs , </if>
<if test="srid != null"> srID , </if>
<if test="sr != null and sr != ''"> sr , </if>
<if test="shid != null"> shID , </if>
<if test="sh != null and sh != ''"> sh , </if>
<if test="jsr != null and jsr != ''"> jsr , </if>
<if test="jzrid != null"> jzrID , </if>
<if test="jzr != null and jzr != ''"> jzr , </if>
<if test="srrq != null and srrq != ''"> srrq , </if>
<if test="shrq != null and shrq != ''"> shrq , </if>
<if test="jzrq != null and jzrq != ''"> jzrq , </if>
<if test="pzhzkmdy != null and pzhzkmdy != ''"> pzhzkmdy , </if>
<if test="pzhzbz != null and pzhzbz != ''"> pzhzbz , </if>
<if test="zt != null"> zt , </if>
<if test="pzzy != null and pzzy != ''"> pzzy , </if>
<if test="pzje != null and pzje != ''"> pzje , </if>
<if test="cn != null and cn != ''"> CN , </if>
<if test="bz != null and bz != ''"> BZ , </if>
<if test="kjzg != null and kjzg != ''"> kjzg , </if>
<if test="idpzh != null and idpzh != ''"> idpzh , </if>
<if test="dyzt != null and dyzt != ''"> dyzt , </if>
<if test="qzrq != null and qzrq != ''"> QZRQ , </if>
<if test="gdid != null"> GDID , </if>
<if test="gdname != null and gdname != ''"> GDName , </if>
<if test="gdrqsj != null and gdrqsj != ''"> GDRQSJ , </if>
<if test="gdcs != null"> GDCS , </if>
<if test="gdbz != null and gdbz != ''"> GDBZ , </if>
<if test="pzsbm != null and pzsbm != ''"> PZSBM , </if>
<if test="stamp != null and stamp != ''"> STAMP , </if>
<if test="yspzzs != null"> yspzzs , </if>
<if test="yspzje != null and yspzje != ''"> YSPZJE , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
<if test="zth != null and zth != ''"> #{zth} ,</if>
<if test="kjqj != null and kjqj != ''"> #{kjqj} ,</if>
<if test="pzly != null and pzly != ''"> #{pzly} ,</if>
<if test="kjtxdm != null and kjtxdm != ''"> #{kjtxdm} ,</if>
<if test="pzlxdm != null and pzlxdm != ''"> #{pzlxdm} ,</if>
<if test="pzh != null and pzh != ''"> #{pzh} ,</if>
<if test="pzrq != null and pzrq != ''"> #{pzrq} ,</if>
<if test="fjzs != null"> #{fjzs} ,</if>
<if test="srid != null"> #{srid} ,</if>
<if test="sr != null and sr != ''"> #{sr} ,</if>
<if test="shid != null"> #{shid} ,</if>
<if test="sh != null and sh != ''"> #{sh} ,</if>
<if test="jsr != null and jsr != ''"> #{jsr} ,</if>
<if test="jzrid != null"> #{jzrid} ,</if>
<if test="jzr != null and jzr != ''"> #{jzr} ,</if>
<if test="srrq != null and srrq != ''"> #{srrq} ,</if>
<if test="shrq != null and shrq != ''"> #{shrq} ,</if>
<if test="jzrq != null and jzrq != ''"> #{jzrq} ,</if>
<if test="pzhzkmdy != null and pzhzkmdy != ''"> #{pzhzkmdy} ,</if>
<if test="pzhzbz != null and pzhzbz != ''"> #{pzhzbz} ,</if>
<if test="zt != null"> #{zt} ,</if>
<if test="pzzy != null and pzzy != ''"> #{pzzy} ,</if>
<if test="pzje != null and pzje != ''"> #{pzje} ,</if>
<if test="cn != null and cn != ''"> #{cn} ,</if>
<if test="bz != null and bz != ''"> #{bz} ,</if>
<if test="kjzg != null and kjzg != ''"> #{kjzg} ,</if>
<if test="idpzh != null and idpzh != ''"> #{idpzh} ,</if>
<if test="dyzt != null and dyzt != ''"> #{dyzt} ,</if>
<if test="qzrq != null and qzrq != ''"> #{qzrq} ,</if>
<if test="gdid != null"> #{gdid} ,</if>
<if test="gdname != null and gdname != ''"> #{gdname} ,</if>
<if test="gdrqsj != null and gdrqsj != ''"> #{gdrqsj} ,</if>
<if test="gdcs != null"> #{gdcs} ,</if>
<if test="gdbz != null and gdbz != ''"> #{gdbz} ,</if>
<if test="pzsbm != null and pzsbm != ''"> #{pzsbm} ,</if>
<if test="stamp != null and stamp != ''"> #{stamp} ,</if>
<if test="yspzzs != null"> #{yspzzs} ,</if>
<if test="yspzje != null and yspzje != ''"> #{yspzje} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from GL_Pzml a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="gsdm" useGeneratedKeys="true">
insert into GL_Pzml(KJTXDM, pzrq, fjzs, srID, sr, shID, sh, jsr, jzrID, jzr, srrq, shrq, jzrq, pzhzkmdy, pzhzbz, zt, pzzy, pzje, CN, BZ, kjzg, idpzh, dyzt, QZRQ, GDID, GDName, GDRQSJ, GDCS, GDBZ, PZSBM, STAMP, yspzzs, YSPZJE, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.kjtxdm},#{entity.pzrq},#{entity.fjzs},#{entity.srid},#{entity.sr},#{entity.shid},#{entity.sh},#{entity.jsr},#{entity.jzrid},#{entity.jzr},#{entity.srrq},#{entity.shrq},#{entity.jzrq},#{entity.pzhzkmdy},#{entity.pzhzbz},#{entity.zt},#{entity.pzzy},#{entity.pzje},#{entity.cn},#{entity.bz},#{entity.kjzg},#{entity.idpzh},#{entity.dyzt},#{entity.qzrq},#{entity.gdid},#{entity.gdname},#{entity.gdrqsj},#{entity.gdcs},#{entity.gdbz},#{entity.pzsbm},#{entity.stamp},#{entity.yspzzs},#{entity.yspzje}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="gsdm" useGeneratedKeys="true">
insert into GL_Pzml(KJTXDM, pzrq, fjzs, srID, sr, shID, sh, jsr, jzrID, jzr, srrq, shrq, jzrq, pzhzkmdy, pzhzbz, zt, pzzy, pzje, CN, BZ, kjzg, idpzh, dyzt, QZRQ, GDID, GDName, GDRQSJ, GDCS, GDBZ, PZSBM, STAMP, yspzzs, YSPZJE)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.kjtxdm},#{entity.pzrq},#{entity.fjzs},#{entity.srid},#{entity.sr},#{entity.shid},#{entity.sh},#{entity.jsr},#{entity.jzrid},#{entity.jzr},#{entity.srrq},#{entity.shrq},#{entity.jzrq},#{entity.pzhzkmdy},#{entity.pzhzbz},#{entity.zt},#{entity.pzzy},#{entity.pzje},#{entity.cn},#{entity.bz},#{entity.kjzg},#{entity.idpzh},#{entity.dyzt},#{entity.qzrq},#{entity.gdid},#{entity.gdname},#{entity.gdrqsj},#{entity.gdcs},#{entity.gdbz},#{entity.pzsbm},#{entity.stamp},#{entity.yspzzs},#{entity.yspzje})
</foreach>
on duplicate key update
KJTXDM = values(KJTXDM),
pzrq = values(pzrq),
fjzs = values(fjzs),
srID = values(srID),
sr = values(sr),
shID = values(shID),
sh = values(sh),
jsr = values(jsr),
jzrID = values(jzrID),
jzr = values(jzr),
srrq = values(srrq),
shrq = values(shrq),
jzrq = values(jzrq),
pzhzkmdy = values(pzhzkmdy),
pzhzbz = values(pzhzbz),
zt = values(zt),
pzzy = values(pzzy),
pzje = values(pzje),
CN = values(CN),
BZ = values(BZ),
kjzg = values(kjzg),
idpzh = values(idpzh),
dyzt = values(dyzt),
QZRQ = values(QZRQ),
GDID = values(GDID),
GDName = values(GDName),
GDRQSJ = values(GDRQSJ),
GDCS = values(GDCS),
GDBZ = values(GDBZ),
PZSBM = values(PZSBM),
STAMP = values(STAMP),
yspzzs = values(yspzzs),
YSPZJE = values(YSPZJE)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity" >
update GL_Pzml set
<trim suffix="" suffixOverrides=",">
<if test="kjtxdm != null and kjtxdm != ''"> KJTXDM = #{kjtxdm},</if>
<if test="pzrq != null and pzrq != ''"> pzrq = #{pzrq},</if>
<if test="fjzs != null"> fjzs = #{fjzs},</if>
<if test="srid != null"> srID = #{srid},</if>
<if test="sr != null and sr != ''"> sr = #{sr},</if>
<if test="shid != null"> shID = #{shid},</if>
<if test="sh != null and sh != ''"> sh = #{sh},</if>
<if test="jsr != null and jsr != ''"> jsr = #{jsr},</if>
<if test="jzrid != null"> jzrID = #{jzrid},</if>
<if test="jzr != null and jzr != ''"> jzr = #{jzr},</if>
<if test="srrq != null and srrq != ''"> srrq = #{srrq},</if>
<if test="shrq != null and shrq != ''"> shrq = #{shrq},</if>
<if test="jzrq != null and jzrq != ''"> jzrq = #{jzrq},</if>
<if test="pzhzkmdy != null and pzhzkmdy != ''"> pzhzkmdy = #{pzhzkmdy},</if>
<if test="pzhzbz != null and pzhzbz != ''"> pzhzbz = #{pzhzbz},</if>
<if test="zt != null"> zt = #{zt},</if>
<if test="pzzy != null and pzzy != ''"> pzzy = #{pzzy},</if>
<if test="pzje != null and pzje != ''"> pzje = #{pzje},</if>
<if test="cn != null and cn != ''"> CN = #{cn},</if>
<if test="bz != null and bz != ''"> BZ = #{bz},</if>
<if test="kjzg != null and kjzg != ''"> kjzg = #{kjzg},</if>
<if test="idpzh != null and idpzh != ''"> idpzh = #{idpzh},</if>
<if test="dyzt != null and dyzt != ''"> dyzt = #{dyzt},</if>
<if test="qzrq != null and qzrq != ''"> QZRQ = #{qzrq},</if>
<if test="gdid != null"> GDID = #{gdid},</if>
<if test="gdname != null and gdname != ''"> GDName = #{gdname},</if>
<if test="gdrqsj != null and gdrqsj != ''"> GDRQSJ = #{gdrqsj},</if>
<if test="gdcs != null"> GDCS = #{gdcs},</if>
<if test="gdbz != null and gdbz != ''"> GDBZ = #{gdbz},</if>
<if test="pzsbm != null and pzsbm != ''"> PZSBM = #{pzsbm},</if>
<if test="stamp != null and stamp != ''"> STAMP = #{stamp},</if>
<if test="yspzzs != null"> yspzzs = #{yspzzs},</if>
<if test="yspzje != null and yspzje != ''"> YSPZJE = #{yspzje},</if>
</trim>
where gsdm = #{gsdm}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity" >
update GL_Pzml 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.plugin.grpU8.glpzml.entity.GlPzmlEntity" >
update GL_Pzml 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="zth != null and zth != ''"> and ZTH = #{zth} </if>
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
<if test="kjtxdm != null and kjtxdm != ''"> and KJTXDM = #{kjtxdm} </if>
<if test="pzlxdm != null and pzlxdm != ''"> and PZLXDM = #{pzlxdm} </if>
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
<if test="pzrq != null and pzrq != ''"> and pzrq = #{pzrq} </if>
<if test="fjzs != null"> and fjzs = #{fjzs} </if>
<if test="srid != null"> and srID = #{srid} </if>
<if test="sr != null and sr != ''"> and sr = #{sr} </if>
<if test="shid != null"> and shID = #{shid} </if>
<if test="sh != null and sh != ''"> and sh = #{sh} </if>
<if test="jsr != null and jsr != ''"> and jsr = #{jsr} </if>
<if test="jzrid != null"> and jzrID = #{jzrid} </if>
<if test="jzr != null and jzr != ''"> and jzr = #{jzr} </if>
<if test="srrq != null and srrq != ''"> and srrq = #{srrq} </if>
<if test="shrq != null and shrq != ''"> and shrq = #{shrq} </if>
<if test="jzrq != null and jzrq != ''"> and jzrq = #{jzrq} </if>
<if test="pzhzkmdy != null and pzhzkmdy != ''"> and pzhzkmdy = #{pzhzkmdy} </if>
<if test="pzhzbz != null and pzhzbz != ''"> and pzhzbz = #{pzhzbz} </if>
<if test="zt != null"> and zt = #{zt} </if>
<if test="pzzy != null and pzzy != ''"> and pzzy = #{pzzy} </if>
<if test="pzje != null and pzje != ''"> and pzje = #{pzje} </if>
<if test="cn != null and cn != ''"> and CN = #{cn} </if>
<if test="bz != null and bz != ''"> and BZ = #{bz} </if>
<if test="kjzg != null and kjzg != ''"> and kjzg = #{kjzg} </if>
<if test="idpzh != null and idpzh != ''"> and idpzh = #{idpzh} </if>
<if test="dyzt != null and dyzt != ''"> and dyzt = #{dyzt} </if>
<if test="qzrq != null and qzrq != ''"> and QZRQ = #{qzrq} </if>
<if test="gdid != null"> and GDID = #{gdid} </if>
<if test="gdname != null and gdname != ''"> and GDName = #{gdname} </if>
<if test="gdrqsj != null and gdrqsj != ''"> and GDRQSJ = #{gdrqsj} </if>
<if test="gdcs != null"> and GDCS = #{gdcs} </if>
<if test="gdbz != null and gdbz != ''"> and GDBZ = #{gdbz} </if>
<if test="pzsbm != null and pzsbm != ''"> and PZSBM = #{pzsbm} </if>
<if test="stamp != null and stamp != ''"> and STAMP = #{stamp} </if>
<if test="yspzzs != null"> and yspzzs = #{yspzzs} </if>
<if test="yspzje != null and yspzje != ''"> and YSPZJE = #{yspzje} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from GL_Pzml where gsdm = #{gsdm}
</delete>
</mapper>

View File

@ -0,0 +1,69 @@
package com.hzya.frame.plugin.grpU8.glpzml.plugin;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.grpU8.nxproof.glPzml.service.ISenderGlPzmlService;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* (GlPzml)表服务接口
*
* @author makejava
* @since 2024-08-29 15:31:28
*/
public class GlPzmlPluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(GlPzmlPluginInitializer.class);
@Autowired
private ISenderGlPzmlService senderGlPzmlService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "GlPzmlPlugin";
}
@Override
public String getPluginName() {
return "GlPzmlPlugin插件";
}
@Override
public String getPluginLabel() {
return "GlPzmlPlugin";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
JSONObject jsonObject=new JSONObject();
jsonObject.put("dataSourceCode",requestJson.getString("sourceCode"));
JSONObject jsonStr=new JSONObject();
jsonStr.put("jsonStr",jsonObject);
logger.info("=======开始执行查询商学院凭证以及指标数据=========");
Object o = senderGlPzmlService.queryGlPzmlSxy(jsonStr);
String jsonString = JSON.toJSONString(o);
logger.info("=======执行查询商学院凭证以及指标数据完毕,结果为:{}=========",jsonString);
}catch (Exception e){
logger.info("===查询商学院凭证以及指标失败:{}===",e.getMessage());
e.printStackTrace();
}
return null;
}
}

View File

@ -0,0 +1,12 @@
package com.hzya.frame.plugin.grpU8.glpzml.service;
import com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* (GlPzml)表服务接口
*
* @author makejava
* @since 2024-08-29 15:31:28
*/
public interface IGlPzmlService extends IBaseService<GlPzmlEntity, String>{
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.grpU8.glpzml.service.impl;
import com.hzya.frame.plugin.grpU8.glpzml.entity.GlPzmlEntity;
import com.hzya.frame.plugin.grpU8.glpzml.dao.IGlPzmlDao;
import com.hzya.frame.plugin.grpU8.glpzml.service.IGlPzmlService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* (GlPzml)表服务实现类
*
* @author makejava
* @since 2024-08-29 15:31:28
*/
public class GlPzmlServiceImpl extends BaseService<GlPzmlEntity, String> implements IGlPzmlService {
private IGlPzmlDao glPzmlDao;
@Autowired
public void setGlPzmlDao(IGlPzmlDao dao) {
this.glPzmlDao = dao;
this.dao = dao;
}
}