南浔部门,科目,项目,凭证等档案插件

This commit is contained in:
hecan 2024-07-02 11:56:05 +08:00
parent bd45444da3
commit abaf11bb39
49 changed files with 7168 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.nxgrp.bmxx.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity;
/**
* (pubbmxx: table)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:33:05
*/
public interface IPubbmxxDao extends IBaseDao<PubbmxxEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.nxgrp.bmxx.dao.impl;
import com.hzya.frame.plugin.nxgrp.bmxx.dao.IPubbmxxDao;
import com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* (Pubbmxx)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:33:05
*/
public class PubbmxxDaoImpl extends MybatisGenericDao<PubbmxxEntity, String> implements IPubbmxxDao {
}

View File

@ -0,0 +1,186 @@
package com.hzya.frame.plugin.nxgrp.bmxx.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (Pubbmxx)实体类
*
* @author makejava
* @since 2024-07-01 15:33:05
*/
public class PubbmxxEntity extends BaseEntity {
private String gsdm;
private String kjnd;
private String bmdm;
private String bmmc;
private String bmlb;
private String fzrdm;
private String tel;
private Integer xjbms;
private Integer zgrs;
private String syzt;
private Integer jlrId;
private String jlRq;
private Integer xgrId;
private String xgRq;
private String sjly;
private String sfmx;
private String zjm;
private String fzrdm2;
private String fzrdm3;
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 getBmdm() {
return bmdm;
}
public void setBmdm(String bmdm) {
this.bmdm = bmdm;
}
public String getBmmc() {
return bmmc;
}
public void setBmmc(String bmmc) {
this.bmmc = bmmc;
}
public String getBmlb() {
return bmlb;
}
public void setBmlb(String bmlb) {
this.bmlb = bmlb;
}
public String getFzrdm() {
return fzrdm;
}
public void setFzrdm(String fzrdm) {
this.fzrdm = fzrdm;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public Integer getXjbms() {
return xjbms;
}
public void setXjbms(Integer xjbms) {
this.xjbms = xjbms;
}
public Integer getZgrs() {
return zgrs;
}
public void setZgrs(Integer zgrs) {
this.zgrs = zgrs;
}
public String getSyzt() {
return syzt;
}
public void setSyzt(String syzt) {
this.syzt = syzt;
}
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 getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
public String getSfmx() {
return sfmx;
}
public void setSfmx(String sfmx) {
this.sfmx = sfmx;
}
public String getZjm() {
return zjm;
}
public void setZjm(String zjm) {
this.zjm = zjm;
}
public String getFzrdm2() {
return fzrdm2;
}
public void setFzrdm2(String fzrdm2) {
this.fzrdm2 = fzrdm2;
}
public String getFzrdm3() {
return fzrdm3;
}
public void setFzrdm3(String fzrdm3) {
this.fzrdm3 = fzrdm3;
}
}

View File

@ -0,0 +1,329 @@
<?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.nxgrp.bmxx.dao.impl.PubbmxxDaoImpl">
<resultMap id="get-PubbmxxEntity-result" type="com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity" >
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
<result property="bmdm" column="bmdm" jdbcType="VARCHAR"/>
<result property="bmmc" column="bmmc" jdbcType="VARCHAR"/>
<result property="bmlb" column="bmlb" jdbcType="VARCHAR"/>
<result property="fzrdm" column="fzrdm" jdbcType="VARCHAR"/>
<result property="tel" column="tel" jdbcType="VARCHAR"/>
<result property="xjbms" column="xjbms" jdbcType="INTEGER"/>
<result property="zgrs" column="zgrs" jdbcType="INTEGER"/>
<result property="syzt" column="syzt" 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="sjly" column="Sjly" jdbcType="VARCHAR"/>
<result property="sfmx" column="SFMX" jdbcType="VARCHAR"/>
<result property="zjm" column="zjm" jdbcType="VARCHAR"/>
<result property="fzrdm2" column="fzrdm2" jdbcType="VARCHAR"/>
<result property="fzrdm3" column="fzrdm3" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "PubbmxxEntity_Base_Column_List">
id
,gsdm
,kjnd
,bmdm
,bmmc
,bmlb
,fzrdm
,tel
,xjbms
,zgrs
,syzt
,Jlr_ID
,Jl_RQ
,Xgr_ID
,Xg_RQ
,Sjly
,SFMX
,zjm
,fzrdm2
,fzrdm3
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-PubbmxxEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity">
select
<include refid="PubbmxxEntity_Base_Column_List" />
from pubbmxx
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
<if test="bmmc != null and bmmc != ''"> and bmmc = #{bmmc} </if>
<if test="bmlb != null and bmlb != ''"> and bmlb = #{bmlb} </if>
<if test="fzrdm != null and fzrdm != ''"> and fzrdm = #{fzrdm} </if>
<if test="tel != null and tel != ''"> and tel = #{tel} </if>
<if test="xjbms != null"> and xjbms = #{xjbms} </if>
<if test="zgrs != null"> and zgrs = #{zgrs} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </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="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="fzrdm2 != null and fzrdm2 != ''"> and fzrdm2 = #{fzrdm2} </if>
<if test="fzrdm3 != null and fzrdm3 != ''"> and fzrdm3 = #{fzrdm3} </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.nxgrp.bmxx.entity.PubbmxxEntity">
select count(1) from pubbmxx
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
<if test="bmmc != null and bmmc != ''"> and bmmc = #{bmmc} </if>
<if test="bmlb != null and bmlb != ''"> and bmlb = #{bmlb} </if>
<if test="fzrdm != null and fzrdm != ''"> and fzrdm = #{fzrdm} </if>
<if test="tel != null and tel != ''"> and tel = #{tel} </if>
<if test="xjbms != null"> and xjbms = #{xjbms} </if>
<if test="zgrs != null"> and zgrs = #{zgrs} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </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="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="fzrdm2 != null and fzrdm2 != ''"> and fzrdm2 = #{fzrdm2} </if>
<if test="fzrdm3 != null and fzrdm3 != ''"> and fzrdm3 = #{fzrdm3} </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-PubbmxxEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity">
select
<include refid="PubbmxxEntity_Base_Column_List" />
from pubbmxx
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
<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="bmdm != null and bmdm != ''"> and bmdm like concat('%',#{bmdm},'%') </if>
<if test="bmmc != null and bmmc != ''"> and bmmc like concat('%',#{bmmc},'%') </if>
<if test="bmlb != null and bmlb != ''"> and bmlb like concat('%',#{bmlb},'%') </if>
<if test="fzrdm != null and fzrdm != ''"> and fzrdm like concat('%',#{fzrdm},'%') </if>
<if test="tel != null and tel != ''"> and tel like concat('%',#{tel},'%') </if>
<if test="xjbms != null"> and xjbms like concat('%',#{xjbms},'%') </if>
<if test="zgrs != null"> and zgrs like concat('%',#{zgrs},'%') </if>
<if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </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="sjly != null and sjly != ''"> and Sjly like concat('%',#{sjly},'%') </if>
<if test="sfmx != null and sfmx != ''"> and SFMX like concat('%',#{sfmx},'%') </if>
<if test="zjm != null and zjm != ''"> and zjm like concat('%',#{zjm},'%') </if>
<if test="fzrdm2 != null and fzrdm2 != ''"> and fzrdm2 like concat('%',#{fzrdm2},'%') </if>
<if test="fzrdm3 != null and fzrdm3 != ''"> and fzrdm3 like concat('%',#{fzrdm3},'%') </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="Pubbmxxentity_list_or" resultMap="get-PubbmxxEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity">
select
<include refid="PubbmxxEntity_Base_Column_List" />
from pubbmxx
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> or id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> or kjnd = #{kjnd} </if>
<if test="bmdm != null and bmdm != ''"> or bmdm = #{bmdm} </if>
<if test="bmmc != null and bmmc != ''"> or bmmc = #{bmmc} </if>
<if test="bmlb != null and bmlb != ''"> or bmlb = #{bmlb} </if>
<if test="fzrdm != null and fzrdm != ''"> or fzrdm = #{fzrdm} </if>
<if test="tel != null and tel != ''"> or tel = #{tel} </if>
<if test="xjbms != null"> or xjbms = #{xjbms} </if>
<if test="zgrs != null"> or zgrs = #{zgrs} </if>
<if test="syzt != null and syzt != ''"> or syzt = #{syzt} </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="sjly != null and sjly != ''"> or Sjly = #{sjly} </if>
<if test="sfmx != null and sfmx != ''"> or SFMX = #{sfmx} </if>
<if test="zjm != null and zjm != ''"> or zjm = #{zjm} </if>
<if test="fzrdm2 != null and fzrdm2 != ''"> or fzrdm2 = #{fzrdm2} </if>
<if test="fzrdm3 != null and fzrdm3 != ''"> or fzrdm3 = #{fzrdm3} </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.nxgrp.bmxx.entity.PubbmxxEntity" keyProperty="id" useGeneratedKeys="true">
insert into pubbmxx(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> id , </if>
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
<if test="bmdm != null and bmdm != ''"> bmdm , </if>
<if test="bmmc != null and bmmc != ''"> bmmc , </if>
<if test="bmlb != null and bmlb != ''"> bmlb , </if>
<if test="fzrdm != null and fzrdm != ''"> fzrdm , </if>
<if test="tel != null and tel != ''"> tel , </if>
<if test="xjbms != null"> xjbms , </if>
<if test="zgrs != null"> zgrs , </if>
<if test="syzt != null and syzt != ''"> syzt , </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="sjly != null and sjly != ''"> Sjly , </if>
<if test="sfmx != null and sfmx != ''"> SFMX , </if>
<if test="zjm != null and zjm != ''"> zjm , </if>
<if test="fzrdm2 != null and fzrdm2 != ''"> fzrdm2 , </if>
<if test="fzrdm3 != null and fzrdm3 != ''"> fzrdm3 , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> #{id} ,</if>
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
<if test="bmdm != null and bmdm != ''"> #{bmdm} ,</if>
<if test="bmmc != null and bmmc != ''"> #{bmmc} ,</if>
<if test="bmlb != null and bmlb != ''"> #{bmlb} ,</if>
<if test="fzrdm != null and fzrdm != ''"> #{fzrdm} ,</if>
<if test="tel != null and tel != ''"> #{tel} ,</if>
<if test="xjbms != null"> #{xjbms} ,</if>
<if test="zgrs != null"> #{zgrs} ,</if>
<if test="syzt != null and syzt != ''"> #{syzt} ,</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="sjly != null and sjly != ''"> #{sjly} ,</if>
<if test="sfmx != null and sfmx != ''"> #{sfmx} ,</if>
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
<if test="fzrdm2 != null and fzrdm2 != ''"> #{fzrdm2} ,</if>
<if test="fzrdm3 != null and fzrdm3 != ''"> #{fzrdm3} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from pubbmxx a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into pubbmxx(gsdm, kjnd, bmdm, bmmc, bmlb, fzrdm, tel, xjbms, zgrs, syzt, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, Sjly, SFMX, zjm, fzrdm2, fzrdm3, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.kjnd},#{entity.bmdm},#{entity.bmmc},#{entity.bmlb},#{entity.fzrdm},#{entity.tel},#{entity.xjbms},#{entity.zgrs},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.zjm},#{entity.fzrdm2},#{entity.fzrdm3}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into pubbmxx(gsdm, kjnd, bmdm, bmmc, bmlb, fzrdm, tel, xjbms, zgrs, syzt, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, Sjly, SFMX, zjm, fzrdm2, fzrdm3)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.kjnd},#{entity.bmdm},#{entity.bmmc},#{entity.bmlb},#{entity.fzrdm},#{entity.tel},#{entity.xjbms},#{entity.zgrs},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.zjm},#{entity.fzrdm2},#{entity.fzrdm3})
</foreach>
on duplicate key update
gsdm = values(gsdm),
kjnd = values(kjnd),
bmdm = values(bmdm),
bmmc = values(bmmc),
bmlb = values(bmlb),
fzrdm = values(fzrdm),
tel = values(tel),
xjbms = values(xjbms),
zgrs = values(zgrs),
syzt = values(syzt),
Jlr_ID = values(Jlr_ID),
Jl_RQ = values(Jl_RQ),
Xgr_ID = values(Xgr_ID),
Xg_RQ = values(Xg_RQ),
Sjly = values(Sjly),
SFMX = values(SFMX),
zjm = values(zjm),
fzrdm2 = values(fzrdm2),
fzrdm3 = values(fzrdm3)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity" >
update pubbmxx set
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
<if test="kjnd != null and kjnd != ''"> kjnd = #{kjnd},</if>
<if test="bmdm != null and bmdm != ''"> bmdm = #{bmdm},</if>
<if test="bmmc != null and bmmc != ''"> bmmc = #{bmmc},</if>
<if test="bmlb != null and bmlb != ''"> bmlb = #{bmlb},</if>
<if test="fzrdm != null and fzrdm != ''"> fzrdm = #{fzrdm},</if>
<if test="tel != null and tel != ''"> tel = #{tel},</if>
<if test="xjbms != null"> xjbms = #{xjbms},</if>
<if test="zgrs != null"> zgrs = #{zgrs},</if>
<if test="syzt != null and syzt != ''"> syzt = #{syzt},</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="sjly != null and sjly != ''"> Sjly = #{sjly},</if>
<if test="sfmx != null and sfmx != ''"> SFMX = #{sfmx},</if>
<if test="zjm != null and zjm != ''"> zjm = #{zjm},</if>
<if test="fzrdm2 != null and fzrdm2 != ''"> fzrdm2 = #{fzrdm2},</if>
<if test="fzrdm3 != null and fzrdm3 != ''"> fzrdm3 = #{fzrdm3},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity" >
update pubbmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity" >
update pubbmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
<if test="bmmc != null and bmmc != ''"> and bmmc = #{bmmc} </if>
<if test="bmlb != null and bmlb != ''"> and bmlb = #{bmlb} </if>
<if test="fzrdm != null and fzrdm != ''"> and fzrdm = #{fzrdm} </if>
<if test="tel != null and tel != ''"> and tel = #{tel} </if>
<if test="xjbms != null"> and xjbms = #{xjbms} </if>
<if test="zgrs != null"> and zgrs = #{zgrs} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </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="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="fzrdm2 != null and fzrdm2 != ''"> and fzrdm2 = #{fzrdm2} </if>
<if test="fzrdm3 != null and fzrdm3 != ''"> and fzrdm3 = #{fzrdm3} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from pubbmxx where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,65 @@
package com.hzya.frame.plugin.nxgrp.bmxx.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.nxgrp.sender.pubbmxx.service.impl.SenderPubbmxxServiceImpl;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* (Pubbmxx)表服务接口
*
* @author makejava
* @since 2024-07-01 15:33:05
*/
public class PubbmxxPluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(PubbmxxPluginInitializer.class);
@Autowired
private SenderPubbmxxServiceImpl senderPubbmxxServiceImpl;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "PubbmxxPlugin";
}
@Override
public String getPluginName() {
return "PubbmxxPlugin插件";
}
@Override
public String getPluginLabel() {
return "PubbmxxPlugin";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("==========开始定时执行GRPU8部门信息同步============");
JsonResultEntity jsonResultEntity = senderPubbmxxServiceImpl.pubbmxxSynchronization(requestJson);
return jsonResultEntity;
}catch (Exception e){
logger.info("==========定时执行GRPU8部门信息同步错误{}============",e.getMessage());
e.printStackTrace();
}
return BaseResult.getSuccessMessageEntity("同步成功");
}
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.nxgrp.bmxx.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity;
/**
* (Pubbmxx)表服务接口
*
* @author makejava
* @since 2024-07-01 15:33:05
*/
public interface IPubbmxxService extends IBaseService<PubbmxxEntity, String>{
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.nxgrp.bmxx.service.impl;
import com.hzya.frame.plugin.nxgrp.bmxx.dao.IPubbmxxDao;
import com.hzya.frame.plugin.nxgrp.bmxx.entity.PubbmxxEntity;
import com.hzya.frame.plugin.nxgrp.bmxx.service.IPubbmxxService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* (Pubbmxx)表服务实现类
*
* @author makejava
* @since 2024-07-01 15:33:05
*/
public class PubbmxxServiceImpl extends BaseService<PubbmxxEntity, String> implements IPubbmxxService {
private IPubbmxxDao pubbmxxDao;
@Autowired
public void setPubbmxxDao(IPubbmxxDao dao) {
this.pubbmxxDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.nxgrp.kjqj.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity;
/**
* (pubkjqj: table)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:37:57
*/
public interface IPubkjqjDao extends IBaseDao<PubkjqjEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.nxgrp.kjqj.dao.impl;
import com.hzya.frame.plugin.nxgrp.kjqj.dao.IPubkjqjDao;
import com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* (Pubkjqj)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:37:57
*/
public class PubkjqjDaoImpl extends MybatisGenericDao<PubkjqjEntity, String> implements IPubkjqjDao {
}

View File

@ -0,0 +1,132 @@
package com.hzya.frame.plugin.nxgrp.kjqj.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (Pubkjqj)实体类
*
* @author makejava
* @since 2024-07-01 15:37:57
*/
public class PubkjqjEntity extends BaseEntity {
private String gsdm;
private String zth;
private String kjnd;
private Integer kjqjxh;
private String qsrq;
private String jsrq;
private String jzbz;
private String zzqmcl;
private Integer qmpzpc;
private String syzt;
private String xgzt;
private String chjzbz;
private String jzzt;
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 getKjnd() {
return kjnd;
}
public void setKjnd(String kjnd) {
this.kjnd = kjnd;
}
public Integer getKjqjxh() {
return kjqjxh;
}
public void setKjqjxh(Integer kjqjxh) {
this.kjqjxh = kjqjxh;
}
public String getQsrq() {
return qsrq;
}
public void setQsrq(String qsrq) {
this.qsrq = qsrq;
}
public String getJsrq() {
return jsrq;
}
public void setJsrq(String jsrq) {
this.jsrq = jsrq;
}
public String getJzbz() {
return jzbz;
}
public void setJzbz(String jzbz) {
this.jzbz = jzbz;
}
public String getZzqmcl() {
return zzqmcl;
}
public void setZzqmcl(String zzqmcl) {
this.zzqmcl = zzqmcl;
}
public Integer getQmpzpc() {
return qmpzpc;
}
public void setQmpzpc(Integer qmpzpc) {
this.qmpzpc = qmpzpc;
}
public String getSyzt() {
return syzt;
}
public void setSyzt(String syzt) {
this.syzt = syzt;
}
public String getXgzt() {
return xgzt;
}
public void setXgzt(String xgzt) {
this.xgzt = xgzt;
}
public String getChjzbz() {
return chjzbz;
}
public void setChjzbz(String chjzbz) {
this.chjzbz = chjzbz;
}
public String getJzzt() {
return jzzt;
}
public void setJzzt(String jzzt) {
this.jzzt = jzzt;
}
}

View File

@ -0,0 +1,263 @@
<?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.nxgrp.kjqj.dao.impl.PubkjqjDaoImpl">
<resultMap id="get-PubkjqjEntity-result" type="com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity" >
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
<result property="zth" column="ZTH" jdbcType="VARCHAR"/>
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
<result property="kjqjxh" column="kjqjxh" jdbcType="INTEGER"/>
<result property="qsrq" column="qsrq" jdbcType="VARCHAR"/>
<result property="jsrq" column="jsrq" jdbcType="VARCHAR"/>
<result property="jzbz" column="jzbz" jdbcType="VARCHAR"/>
<result property="zzqmcl" column="zzqmcl" jdbcType="VARCHAR"/>
<result property="qmpzpc" column="qmpzpc" jdbcType="INTEGER"/>
<result property="syzt" column="syzt" jdbcType="VARCHAR"/>
<result property="xgzt" column="xgzt" jdbcType="VARCHAR"/>
<result property="chjzbz" column="chjzbz" jdbcType="VARCHAR"/>
<result property="jzzt" column="jzzt" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "PubkjqjEntity_Base_Column_List">
id
,gsdm
,ZTH
,kjnd
,kjqjxh
,qsrq
,jsrq
,jzbz
,zzqmcl
,qmpzpc
,syzt
,xgzt
,chjzbz
,jzzt
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-PubkjqjEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity">
select
<include refid="PubkjqjEntity_Base_Column_List" />
from pubkjqj
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="kjqjxh != null"> and kjqjxh = #{kjqjxh} </if>
<if test="qsrq != null and qsrq != ''"> and qsrq = #{qsrq} </if>
<if test="jsrq != null and jsrq != ''"> and jsrq = #{jsrq} </if>
<if test="jzbz != null and jzbz != ''"> and jzbz = #{jzbz} </if>
<if test="zzqmcl != null and zzqmcl != ''"> and zzqmcl = #{zzqmcl} </if>
<if test="qmpzpc != null"> and qmpzpc = #{qmpzpc} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="xgzt != null and xgzt != ''"> and xgzt = #{xgzt} </if>
<if test="chjzbz != null and chjzbz != ''"> and chjzbz = #{chjzbz} </if>
<if test="jzzt != null and jzzt != ''"> and jzzt = #{jzzt} </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.nxgrp.kjqj.entity.PubkjqjEntity">
select count(1) from pubkjqj
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="kjqjxh != null"> and kjqjxh = #{kjqjxh} </if>
<if test="qsrq != null and qsrq != ''"> and qsrq = #{qsrq} </if>
<if test="jsrq != null and jsrq != ''"> and jsrq = #{jsrq} </if>
<if test="jzbz != null and jzbz != ''"> and jzbz = #{jzbz} </if>
<if test="zzqmcl != null and zzqmcl != ''"> and zzqmcl = #{zzqmcl} </if>
<if test="qmpzpc != null"> and qmpzpc = #{qmpzpc} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="xgzt != null and xgzt != ''"> and xgzt = #{xgzt} </if>
<if test="chjzbz != null and chjzbz != ''"> and chjzbz = #{chjzbz} </if>
<if test="jzzt != null and jzzt != ''"> and jzzt = #{jzzt} </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-PubkjqjEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity">
select
<include refid="PubkjqjEntity_Base_Column_List" />
from pubkjqj
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
<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="kjnd != null and kjnd != ''"> and kjnd like concat('%',#{kjnd},'%') </if>
<if test="kjqjxh != null"> and kjqjxh like concat('%',#{kjqjxh},'%') </if>
<if test="qsrq != null and qsrq != ''"> and qsrq like concat('%',#{qsrq},'%') </if>
<if test="jsrq != null and jsrq != ''"> and jsrq like concat('%',#{jsrq},'%') </if>
<if test="jzbz != null and jzbz != ''"> and jzbz like concat('%',#{jzbz},'%') </if>
<if test="zzqmcl != null and zzqmcl != ''"> and zzqmcl like concat('%',#{zzqmcl},'%') </if>
<if test="qmpzpc != null"> and qmpzpc like concat('%',#{qmpzpc},'%') </if>
<if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </if>
<if test="xgzt != null and xgzt != ''"> and xgzt like concat('%',#{xgzt},'%') </if>
<if test="chjzbz != null and chjzbz != ''"> and chjzbz like concat('%',#{chjzbz},'%') </if>
<if test="jzzt != null and jzzt != ''"> and jzzt like concat('%',#{jzzt},'%') </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="Pubkjqjentity_list_or" resultMap="get-PubkjqjEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity">
select
<include refid="PubkjqjEntity_Base_Column_List" />
from pubkjqj
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> or id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> or ZTH = #{zth} </if>
<if test="kjnd != null and kjnd != ''"> or kjnd = #{kjnd} </if>
<if test="kjqjxh != null"> or kjqjxh = #{kjqjxh} </if>
<if test="qsrq != null and qsrq != ''"> or qsrq = #{qsrq} </if>
<if test="jsrq != null and jsrq != ''"> or jsrq = #{jsrq} </if>
<if test="jzbz != null and jzbz != ''"> or jzbz = #{jzbz} </if>
<if test="zzqmcl != null and zzqmcl != ''"> or zzqmcl = #{zzqmcl} </if>
<if test="qmpzpc != null"> or qmpzpc = #{qmpzpc} </if>
<if test="syzt != null and syzt != ''"> or syzt = #{syzt} </if>
<if test="xgzt != null and xgzt != ''"> or xgzt = #{xgzt} </if>
<if test="chjzbz != null and chjzbz != ''"> or chjzbz = #{chjzbz} </if>
<if test="jzzt != null and jzzt != ''"> or jzzt = #{jzzt} </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.nxgrp.kjqj.entity.PubkjqjEntity" keyProperty="id" useGeneratedKeys="true">
insert into pubkjqj(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> id , </if>
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
<if test="zth != null and zth != ''"> ZTH , </if>
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
<if test="kjqjxh != null"> kjqjxh , </if>
<if test="qsrq != null and qsrq != ''"> qsrq , </if>
<if test="jsrq != null and jsrq != ''"> jsrq , </if>
<if test="jzbz != null and jzbz != ''"> jzbz , </if>
<if test="zzqmcl != null and zzqmcl != ''"> zzqmcl , </if>
<if test="qmpzpc != null"> qmpzpc , </if>
<if test="syzt != null and syzt != ''"> syzt , </if>
<if test="xgzt != null and xgzt != ''"> xgzt , </if>
<if test="chjzbz != null and chjzbz != ''"> chjzbz , </if>
<if test="jzzt != null and jzzt != ''"> jzzt , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> #{id} ,</if>
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
<if test="zth != null and zth != ''"> #{zth} ,</if>
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
<if test="kjqjxh != null"> #{kjqjxh} ,</if>
<if test="qsrq != null and qsrq != ''"> #{qsrq} ,</if>
<if test="jsrq != null and jsrq != ''"> #{jsrq} ,</if>
<if test="jzbz != null and jzbz != ''"> #{jzbz} ,</if>
<if test="zzqmcl != null and zzqmcl != ''"> #{zzqmcl} ,</if>
<if test="qmpzpc != null"> #{qmpzpc} ,</if>
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
<if test="xgzt != null and xgzt != ''"> #{xgzt} ,</if>
<if test="chjzbz != null and chjzbz != ''"> #{chjzbz} ,</if>
<if test="jzzt != null and jzzt != ''"> #{jzzt} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from pubkjqj a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into pubkjqj(gsdm, ZTH, kjnd, kjqjxh, qsrq, jsrq, jzbz, zzqmcl, qmpzpc, syzt, xgzt, chjzbz, jzzt, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kjqjxh},#{entity.qsrq},#{entity.jsrq},#{entity.jzbz},#{entity.zzqmcl},#{entity.qmpzpc},#{entity.syzt},#{entity.xgzt},#{entity.chjzbz},#{entity.jzzt}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into pubkjqj(gsdm, ZTH, kjnd, kjqjxh, qsrq, jsrq, jzbz, zzqmcl, qmpzpc, syzt, xgzt, chjzbz, jzzt)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kjqjxh},#{entity.qsrq},#{entity.jsrq},#{entity.jzbz},#{entity.zzqmcl},#{entity.qmpzpc},#{entity.syzt},#{entity.xgzt},#{entity.chjzbz},#{entity.jzzt})
</foreach>
on duplicate key update
gsdm = values(gsdm),
ZTH = values(ZTH),
kjnd = values(kjnd),
kjqjxh = values(kjqjxh),
qsrq = values(qsrq),
jsrq = values(jsrq),
jzbz = values(jzbz),
zzqmcl = values(zzqmcl),
qmpzpc = values(qmpzpc),
syzt = values(syzt),
xgzt = values(xgzt),
chjzbz = values(chjzbz),
jzzt = values(jzzt)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity" >
update pubkjqj set
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
<if test="zth != null and zth != ''"> ZTH = #{zth},</if>
<if test="kjnd != null and kjnd != ''"> kjnd = #{kjnd},</if>
<if test="kjqjxh != null"> kjqjxh = #{kjqjxh},</if>
<if test="qsrq != null and qsrq != ''"> qsrq = #{qsrq},</if>
<if test="jsrq != null and jsrq != ''"> jsrq = #{jsrq},</if>
<if test="jzbz != null and jzbz != ''"> jzbz = #{jzbz},</if>
<if test="zzqmcl != null and zzqmcl != ''"> zzqmcl = #{zzqmcl},</if>
<if test="qmpzpc != null"> qmpzpc = #{qmpzpc},</if>
<if test="syzt != null and syzt != ''"> syzt = #{syzt},</if>
<if test="xgzt != null and xgzt != ''"> xgzt = #{xgzt},</if>
<if test="chjzbz != null and chjzbz != ''"> chjzbz = #{chjzbz},</if>
<if test="jzzt != null and jzzt != ''"> jzzt = #{jzzt},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity" >
update pubkjqj set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity" >
update pubkjqj set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="kjqjxh != null"> and kjqjxh = #{kjqjxh} </if>
<if test="qsrq != null and qsrq != ''"> and qsrq = #{qsrq} </if>
<if test="jsrq != null and jsrq != ''"> and jsrq = #{jsrq} </if>
<if test="jzbz != null and jzbz != ''"> and jzbz = #{jzbz} </if>
<if test="zzqmcl != null and zzqmcl != ''"> and zzqmcl = #{zzqmcl} </if>
<if test="qmpzpc != null"> and qmpzpc = #{qmpzpc} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="xgzt != null and xgzt != ''"> and xgzt = #{xgzt} </if>
<if test="chjzbz != null and chjzbz != ''"> and chjzbz = #{chjzbz} </if>
<if test="jzzt != null and jzzt != ''"> and jzzt = #{jzzt} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from pubkjqj where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,65 @@
package com.hzya.frame.plugin.nxgrp.kjqj.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.nxgrp.sender.pubkjqj.service.impl.SenderPubkjqjServiceImpl;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* (Pubkjqj)表服务接口
*
* @author makejava
* @since 2024-07-01 15:37:57
*/
public class PubkjqjPluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(PubkjqjPluginInitializer.class);
@Autowired
private SenderPubkjqjServiceImpl senderPubkjqjService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "PubkjqjPlugin";
}
@Override
public String getPluginName() {
return "PubkjqjPlugin插件";
}
@Override
public String getPluginLabel() {
return "PubkjqjPlugin";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("==========开始定时执行GRPU8会计期间同步============");
JsonResultEntity jsonResultEntity = senderPubkjqjService.pubkjqjSynchronization(requestJson);
return jsonResultEntity;
}catch (Exception e){
logger.info("==========定时执行GRPU8会计期间同步错误{}============",e.getMessage());
e.printStackTrace();
}
return BaseResult.getSuccessMessageEntity("同步成功");
}
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.nxgrp.kjqj.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity;
/**
* (Pubkjqj)表服务接口
*
* @author makejava
* @since 2024-07-01 15:37:57
*/
public interface IPubkjqjService extends IBaseService<PubkjqjEntity, String>{
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.nxgrp.kjqj.service.impl;
import com.hzya.frame.plugin.nxgrp.kjqj.dao.IPubkjqjDao;
import com.hzya.frame.plugin.nxgrp.kjqj.entity.PubkjqjEntity;
import com.hzya.frame.plugin.nxgrp.kjqj.service.IPubkjqjService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* (Pubkjqj)表服务实现类
*
* @author makejava
* @since 2024-07-01 15:37:57
*/
public class PubkjqjServiceImpl extends BaseService<PubkjqjEntity, String> implements IPubkjqjService {
private IPubkjqjDao pubkjqjDao;
@Autowired
public void setPubkjqjDao(IPubkjqjDao dao) {
this.pubkjqjDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.nxgrp.kmxx.dao;
import com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* (gl_kmxx: table)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:05:33
*/
public interface IGlKmxxDao extends IBaseDao<GlKmxxEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.nxgrp.kmxx.dao.impl;
import com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity;
import com.hzya.frame.plugin.nxgrp.kmxx.dao.IGlKmxxDao;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* (GlKmxx)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:05:33
*/
public class GlKmxxDaoImpl extends MybatisGenericDao<GlKmxxEntity, String> implements IGlKmxxDao{
}

View File

@ -0,0 +1,324 @@
package com.hzya.frame.plugin.nxgrp.kmxx.entity;
import com.hzya.frame.web.entity.BaseEntity;
import java.math.BigDecimal;
/**
* (GlKmxx)实体类
*
* @author makejava
* @since 2024-07-01 15:05:33
*/
public class GlKmxxEntity extends BaseEntity {
private String gsdm;
private String zth;
private String kjnd;
private String kmdm;
private String zjm;
private String kmmc;
private String syzt;
private String kmxz;
private String kmmxlb;
private String kmmx;
private String kmgs;
private String kmbz;
private String kmdw;
private Integer kmslxsws;
private String kmlb;
private String kmhdfx;
private String kmsyfx;
private String syzcfs;
private String kmpz;
private String yefx;
private String fzsm;
private String fzhs;
private BigDecimal jfmax;
private BigDecimal dfmax;
private BigDecimal yemax;
private String accNa;
private String kmjx;
private String kmqx;
private Integer jlrId;
private String jlRq;
private Integer xgrId;
private String xgRq;
private String sjly;
private String zdyfzhs;
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 getKjnd() {
return kjnd;
}
public void setKjnd(String kjnd) {
this.kjnd = kjnd;
}
public String getKmdm() {
return kmdm;
}
public void setKmdm(String kmdm) {
this.kmdm = kmdm;
}
public String getZjm() {
return zjm;
}
public void setZjm(String zjm) {
this.zjm = zjm;
}
public String getKmmc() {
return kmmc;
}
public void setKmmc(String kmmc) {
this.kmmc = kmmc;
}
public String getSyzt() {
return syzt;
}
public void setSyzt(String syzt) {
this.syzt = syzt;
}
public String getKmxz() {
return kmxz;
}
public void setKmxz(String kmxz) {
this.kmxz = kmxz;
}
public String getKmmxlb() {
return kmmxlb;
}
public void setKmmxlb(String kmmxlb) {
this.kmmxlb = kmmxlb;
}
public String getKmmx() {
return kmmx;
}
public void setKmmx(String kmmx) {
this.kmmx = kmmx;
}
public String getKmgs() {
return kmgs;
}
public void setKmgs(String kmgs) {
this.kmgs = kmgs;
}
public String getKmbz() {
return kmbz;
}
public void setKmbz(String kmbz) {
this.kmbz = kmbz;
}
public String getKmdw() {
return kmdw;
}
public void setKmdw(String kmdw) {
this.kmdw = kmdw;
}
public Integer getKmslxsws() {
return kmslxsws;
}
public void setKmslxsws(Integer kmslxsws) {
this.kmslxsws = kmslxsws;
}
public String getKmlb() {
return kmlb;
}
public void setKmlb(String kmlb) {
this.kmlb = kmlb;
}
public String getKmhdfx() {
return kmhdfx;
}
public void setKmhdfx(String kmhdfx) {
this.kmhdfx = kmhdfx;
}
public String getKmsyfx() {
return kmsyfx;
}
public void setKmsyfx(String kmsyfx) {
this.kmsyfx = kmsyfx;
}
public String getSyzcfs() {
return syzcfs;
}
public void setSyzcfs(String syzcfs) {
this.syzcfs = syzcfs;
}
public String getKmpz() {
return kmpz;
}
public void setKmpz(String kmpz) {
this.kmpz = kmpz;
}
public String getYefx() {
return yefx;
}
public void setYefx(String yefx) {
this.yefx = yefx;
}
public String getFzsm() {
return fzsm;
}
public void setFzsm(String fzsm) {
this.fzsm = fzsm;
}
public String getFzhs() {
return fzhs;
}
public void setFzhs(String fzhs) {
this.fzhs = fzhs;
}
public BigDecimal getJfmax() {
return jfmax;
}
public void setJfmax(BigDecimal jfmax) {
this.jfmax = jfmax;
}
public BigDecimal getDfmax() {
return dfmax;
}
public void setDfmax(BigDecimal dfmax) {
this.dfmax = dfmax;
}
public BigDecimal getYemax() {
return yemax;
}
public void setYemax(BigDecimal yemax) {
this.yemax = yemax;
}
public String getAccNa() {
return accNa;
}
public void setAccNa(String accNa) {
this.accNa = accNa;
}
public String getKmjx() {
return kmjx;
}
public void setKmjx(String kmjx) {
this.kmjx = kmjx;
}
public String getKmqx() {
return kmqx;
}
public void setKmqx(String kmqx) {
this.kmqx = kmqx;
}
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 getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
public String getZdyfzhs() {
return zdyfzhs;
}
public void setZdyfzhs(String zdyfzhs) {
this.zdyfzhs = zdyfzhs;
}
}

View File

@ -0,0 +1,494 @@
<?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.nxgrp.kmxx.dao.impl.GlKmxxDaoImpl">
<resultMap id="get-GlKmxxEntity-result" type="com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity" >
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
<result property="zth" column="ZTH" jdbcType="VARCHAR"/>
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
<result property="kmdm" column="kmdm" jdbcType="VARCHAR"/>
<result property="zjm" column="zjm" jdbcType="VARCHAR"/>
<result property="kmmc" column="kmmc" jdbcType="VARCHAR"/>
<result property="syzt" column="syzt" jdbcType="VARCHAR"/>
<result property="kmxz" column="kmxz" jdbcType="VARCHAR"/>
<result property="kmmxlb" column="kmmxlb" jdbcType="VARCHAR"/>
<result property="kmmx" column="kmmx" jdbcType="VARCHAR"/>
<result property="kmgs" column="kmgs" jdbcType="VARCHAR"/>
<result property="kmbz" column="kmbz" jdbcType="VARCHAR"/>
<result property="kmdw" column="kmdw" jdbcType="VARCHAR"/>
<result property="kmslxsws" column="kmslxsws" jdbcType="INTEGER"/>
<result property="kmlb" column="kmlb" jdbcType="VARCHAR"/>
<result property="kmhdfx" column="kmhdfx" jdbcType="VARCHAR"/>
<result property="kmsyfx" column="kmsyfx" jdbcType="VARCHAR"/>
<result property="syzcfs" column="syzcfs" jdbcType="VARCHAR"/>
<result property="kmpz" column="kmpz" jdbcType="VARCHAR"/>
<result property="yefx" column="yefx" jdbcType="VARCHAR"/>
<result property="fzsm" column="fzsm" jdbcType="VARCHAR"/>
<result property="fzhs" column="fzhs" jdbcType="VARCHAR"/>
<result property="jfmax" column="jfmax" jdbcType="VARCHAR"/>
<result property="dfmax" column="dfmax" jdbcType="VARCHAR"/>
<result property="yemax" column="yemax" jdbcType="VARCHAR"/>
<result property="accNa" column="acc_na" jdbcType="VARCHAR"/>
<result property="kmjx" column="kmjx" jdbcType="VARCHAR"/>
<result property="kmqx" column="kmqx" 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="sjly" column="Sjly" jdbcType="VARCHAR"/>
<result property="zdyfzhs" column="zdyfzhs" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "GlKmxxEntity_Base_Column_List">
id
,gsdm
,ZTH
,kjnd
,kmdm
,zjm
,kmmc
,syzt
,kmxz
,kmmxlb
,kmmx
,kmgs
,kmbz
,kmdw
,kmslxsws
,kmlb
,kmhdfx
,kmsyfx
,syzcfs
,kmpz
,yefx
,fzsm
,fzhs
,jfmax
,dfmax
,yemax
,acc_na
,kmjx
,kmqx
,JLR_ID
,JL_RQ
,XGR_ID
,XG_RQ
,Sjly
,zdyfzhs
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-GlKmxxEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity">
select
<include refid="GlKmxxEntity_Base_Column_List" />
from gl_kmxx
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="kmmc != null and kmmc != ''"> and kmmc = #{kmmc} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="kmxz != null and kmxz != ''"> and kmxz = #{kmxz} </if>
<if test="kmmxlb != null and kmmxlb != ''"> and kmmxlb = #{kmmxlb} </if>
<if test="kmmx != null and kmmx != ''"> and kmmx = #{kmmx} </if>
<if test="kmgs != null and kmgs != ''"> and kmgs = #{kmgs} </if>
<if test="kmbz != null and kmbz != ''"> and kmbz = #{kmbz} </if>
<if test="kmdw != null and kmdw != ''"> and kmdw = #{kmdw} </if>
<if test="kmslxsws != null"> and kmslxsws = #{kmslxsws} </if>
<if test="kmlb != null and kmlb != ''"> and kmlb = #{kmlb} </if>
<if test="kmhdfx != null and kmhdfx != ''"> and kmhdfx = #{kmhdfx} </if>
<if test="kmsyfx != null and kmsyfx != ''"> and kmsyfx = #{kmsyfx} </if>
<if test="syzcfs != null and syzcfs != ''"> and syzcfs = #{syzcfs} </if>
<if test="kmpz != null and kmpz != ''"> and kmpz = #{kmpz} </if>
<if test="yefx != null and yefx != ''"> and yefx = #{yefx} </if>
<if test="fzsm != null and fzsm != ''"> and fzsm = #{fzsm} </if>
<if test="fzhs != null and fzhs != ''"> and fzhs = #{fzhs} </if>
<if test="jfmax != null"> and jfmax = #{jfmax} </if>
<if test="dfmax != null"> and dfmax = #{dfmax} </if>
<if test="yemax != null"> and yemax = #{yemax} </if>
<if test="accNa != null and accNa != ''"> and acc_na = #{accNa} </if>
<if test="kmjx != null and kmjx != ''"> and kmjx = #{kmjx} </if>
<if test="kmqx != null and kmqx != ''"> and kmqx = #{kmqx} </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="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="zdyfzhs != null and zdyfzhs != ''"> and zdyfzhs = #{zdyfzhs} </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.nxgrp.kmxx.entity.GlKmxxEntity">
select count(1) from gl_kmxx
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="kmmc != null and kmmc != ''"> and kmmc = #{kmmc} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="kmxz != null and kmxz != ''"> and kmxz = #{kmxz} </if>
<if test="kmmxlb != null and kmmxlb != ''"> and kmmxlb = #{kmmxlb} </if>
<if test="kmmx != null and kmmx != ''"> and kmmx = #{kmmx} </if>
<if test="kmgs != null and kmgs != ''"> and kmgs = #{kmgs} </if>
<if test="kmbz != null and kmbz != ''"> and kmbz = #{kmbz} </if>
<if test="kmdw != null and kmdw != ''"> and kmdw = #{kmdw} </if>
<if test="kmslxsws != null"> and kmslxsws = #{kmslxsws} </if>
<if test="kmlb != null and kmlb != ''"> and kmlb = #{kmlb} </if>
<if test="kmhdfx != null and kmhdfx != ''"> and kmhdfx = #{kmhdfx} </if>
<if test="kmsyfx != null and kmsyfx != ''"> and kmsyfx = #{kmsyfx} </if>
<if test="syzcfs != null and syzcfs != ''"> and syzcfs = #{syzcfs} </if>
<if test="kmpz != null and kmpz != ''"> and kmpz = #{kmpz} </if>
<if test="yefx != null and yefx != ''"> and yefx = #{yefx} </if>
<if test="fzsm != null and fzsm != ''"> and fzsm = #{fzsm} </if>
<if test="fzhs != null and fzhs != ''"> and fzhs = #{fzhs} </if>
<if test="jfmax != null"> and jfmax = #{jfmax} </if>
<if test="dfmax != null"> and dfmax = #{dfmax} </if>
<if test="yemax != null"> and yemax = #{yemax} </if>
<if test="accNa != null and accNa != ''"> and acc_na = #{accNa} </if>
<if test="kmjx != null and kmjx != ''"> and kmjx = #{kmjx} </if>
<if test="kmqx != null and kmqx != ''"> and kmqx = #{kmqx} </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="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="zdyfzhs != null and zdyfzhs != ''"> and zdyfzhs = #{zdyfzhs} </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-GlKmxxEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity">
select
<include refid="GlKmxxEntity_Base_Column_List" />
from gl_kmxx
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
<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="kjnd != null and kjnd != ''"> and kjnd like concat('%',#{kjnd},'%') </if>
<if test="kmdm != null and kmdm != ''"> and kmdm like concat('%',#{kmdm},'%') </if>
<if test="zjm != null and zjm != ''"> and zjm like concat('%',#{zjm},'%') </if>
<if test="kmmc != null and kmmc != ''"> and kmmc like concat('%',#{kmmc},'%') </if>
<if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </if>
<if test="kmxz != null and kmxz != ''"> and kmxz like concat('%',#{kmxz},'%') </if>
<if test="kmmxlb != null and kmmxlb != ''"> and kmmxlb like concat('%',#{kmmxlb},'%') </if>
<if test="kmmx != null and kmmx != ''"> and kmmx like concat('%',#{kmmx},'%') </if>
<if test="kmgs != null and kmgs != ''"> and kmgs like concat('%',#{kmgs},'%') </if>
<if test="kmbz != null and kmbz != ''"> and kmbz like concat('%',#{kmbz},'%') </if>
<if test="kmdw != null and kmdw != ''"> and kmdw like concat('%',#{kmdw},'%') </if>
<if test="kmslxsws != null"> and kmslxsws like concat('%',#{kmslxsws},'%') </if>
<if test="kmlb != null and kmlb != ''"> and kmlb like concat('%',#{kmlb},'%') </if>
<if test="kmhdfx != null and kmhdfx != ''"> and kmhdfx like concat('%',#{kmhdfx},'%') </if>
<if test="kmsyfx != null and kmsyfx != ''"> and kmsyfx like concat('%',#{kmsyfx},'%') </if>
<if test="syzcfs != null and syzcfs != ''"> and syzcfs like concat('%',#{syzcfs},'%') </if>
<if test="kmpz != null and kmpz != ''"> and kmpz like concat('%',#{kmpz},'%') </if>
<if test="yefx != null and yefx != ''"> and yefx like concat('%',#{yefx},'%') </if>
<if test="fzsm != null and fzsm != ''"> and fzsm like concat('%',#{fzsm},'%') </if>
<if test="fzhs != null and fzhs != ''"> and fzhs like concat('%',#{fzhs},'%') </if>
<if test="jfmax != null"> and jfmax like concat('%',#{jfmax},'%') </if>
<if test="dfmax != null"> and dfmax like concat('%',#{dfmax},'%') </if>
<if test="yemax != null"> and yemax like concat('%',#{yemax},'%') </if>
<if test="accNa != null and accNa != ''"> and acc_na like concat('%',#{accNa},'%') </if>
<if test="kmjx != null and kmjx != ''"> and kmjx like concat('%',#{kmjx},'%') </if>
<if test="kmqx != null and kmqx != ''"> and kmqx like concat('%',#{kmqx},'%') </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="sjly != null and sjly != ''"> and Sjly like concat('%',#{sjly},'%') </if>
<if test="zdyfzhs != null and zdyfzhs != ''"> and zdyfzhs like concat('%',#{zdyfzhs},'%') </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="GlKmxxentity_list_or" resultMap="get-GlKmxxEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity">
select
<include refid="GlKmxxEntity_Base_Column_List" />
from gl_kmxx
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> or id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> or ZTH = #{zth} </if>
<if test="kjnd != null and kjnd != ''"> or kjnd = #{kjnd} </if>
<if test="kmdm != null and kmdm != ''"> or kmdm = #{kmdm} </if>
<if test="zjm != null and zjm != ''"> or zjm = #{zjm} </if>
<if test="kmmc != null and kmmc != ''"> or kmmc = #{kmmc} </if>
<if test="syzt != null and syzt != ''"> or syzt = #{syzt} </if>
<if test="kmxz != null and kmxz != ''"> or kmxz = #{kmxz} </if>
<if test="kmmxlb != null and kmmxlb != ''"> or kmmxlb = #{kmmxlb} </if>
<if test="kmmx != null and kmmx != ''"> or kmmx = #{kmmx} </if>
<if test="kmgs != null and kmgs != ''"> or kmgs = #{kmgs} </if>
<if test="kmbz != null and kmbz != ''"> or kmbz = #{kmbz} </if>
<if test="kmdw != null and kmdw != ''"> or kmdw = #{kmdw} </if>
<if test="kmslxsws != null"> or kmslxsws = #{kmslxsws} </if>
<if test="kmlb != null and kmlb != ''"> or kmlb = #{kmlb} </if>
<if test="kmhdfx != null and kmhdfx != ''"> or kmhdfx = #{kmhdfx} </if>
<if test="kmsyfx != null and kmsyfx != ''"> or kmsyfx = #{kmsyfx} </if>
<if test="syzcfs != null and syzcfs != ''"> or syzcfs = #{syzcfs} </if>
<if test="kmpz != null and kmpz != ''"> or kmpz = #{kmpz} </if>
<if test="yefx != null and yefx != ''"> or yefx = #{yefx} </if>
<if test="fzsm != null and fzsm != ''"> or fzsm = #{fzsm} </if>
<if test="fzhs != null and fzhs != ''"> or fzhs = #{fzhs} </if>
<if test="jfmax != null"> or jfmax = #{jfmax} </if>
<if test="dfmax != null"> or dfmax = #{dfmax} </if>
<if test="yemax != null"> or yemax = #{yemax} </if>
<if test="accNa != null and accNa != ''"> or acc_na = #{accNa} </if>
<if test="kmjx != null and kmjx != ''"> or kmjx = #{kmjx} </if>
<if test="kmqx != null and kmqx != ''"> or kmqx = #{kmqx} </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="sjly != null and sjly != ''"> or Sjly = #{sjly} </if>
<if test="zdyfzhs != null and zdyfzhs != ''"> or zdyfzhs = #{zdyfzhs} </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.nxgrp.kmxx.entity.GlKmxxEntity" keyProperty="id" useGeneratedKeys="true">
insert into gl_kmxx(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> id , </if>
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
<if test="zth != null and zth != ''"> ZTH , </if>
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
<if test="kmdm != null and kmdm != ''"> kmdm , </if>
<if test="zjm != null and zjm != ''"> zjm , </if>
<if test="kmmc != null and kmmc != ''"> kmmc , </if>
<if test="syzt != null and syzt != ''"> syzt , </if>
<if test="kmxz != null and kmxz != ''"> kmxz , </if>
<if test="kmmxlb != null and kmmxlb != ''"> kmmxlb , </if>
<if test="kmmx != null and kmmx != ''"> kmmx , </if>
<if test="kmgs != null and kmgs != ''"> kmgs , </if>
<if test="kmbz != null and kmbz != ''"> kmbz , </if>
<if test="kmdw != null and kmdw != ''"> kmdw , </if>
<if test="kmslxsws != null"> kmslxsws , </if>
<if test="kmlb != null and kmlb != ''"> kmlb , </if>
<if test="kmhdfx != null and kmhdfx != ''"> kmhdfx , </if>
<if test="kmsyfx != null and kmsyfx != ''"> kmsyfx , </if>
<if test="syzcfs != null and syzcfs != ''"> syzcfs , </if>
<if test="kmpz != null and kmpz != ''"> kmpz , </if>
<if test="yefx != null and yefx != ''"> yefx , </if>
<if test="fzsm != null and fzsm != ''"> fzsm , </if>
<if test="fzhs != null and fzhs != ''"> fzhs , </if>
<if test="jfmax != null"> jfmax , </if>
<if test="dfmax != null"> dfmax , </if>
<if test="yemax != null"> yemax , </if>
<if test="accNa != null and accNa != ''"> acc_na , </if>
<if test="kmjx != null and kmjx != ''"> kmjx , </if>
<if test="kmqx != null and kmqx != ''"> kmqx , </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="sjly != null and sjly != ''"> Sjly , </if>
<if test="zdyfzhs != null and zdyfzhs != ''"> zdyfzhs , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> #{id} ,</if>
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
<if test="zth != null and zth != ''"> #{zth} ,</if>
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
<if test="kmdm != null and kmdm != ''"> #{kmdm} ,</if>
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
<if test="kmmc != null and kmmc != ''"> #{kmmc} ,</if>
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
<if test="kmxz != null and kmxz != ''"> #{kmxz} ,</if>
<if test="kmmxlb != null and kmmxlb != ''"> #{kmmxlb} ,</if>
<if test="kmmx != null and kmmx != ''"> #{kmmx} ,</if>
<if test="kmgs != null and kmgs != ''"> #{kmgs} ,</if>
<if test="kmbz != null and kmbz != ''"> #{kmbz} ,</if>
<if test="kmdw != null and kmdw != ''"> #{kmdw} ,</if>
<if test="kmslxsws != null"> #{kmslxsws} ,</if>
<if test="kmlb != null and kmlb != ''"> #{kmlb} ,</if>
<if test="kmhdfx != null and kmhdfx != ''"> #{kmhdfx} ,</if>
<if test="kmsyfx != null and kmsyfx != ''"> #{kmsyfx} ,</if>
<if test="syzcfs != null and syzcfs != ''"> #{syzcfs} ,</if>
<if test="kmpz != null and kmpz != ''"> #{kmpz} ,</if>
<if test="yefx != null and yefx != ''"> #{yefx} ,</if>
<if test="fzsm != null and fzsm != ''"> #{fzsm} ,</if>
<if test="fzhs != null and fzhs != ''"> #{fzhs} ,</if>
<if test="jfmax != null"> #{jfmax} ,</if>
<if test="dfmax != null"> #{dfmax} ,</if>
<if test="yemax != null"> #{yemax} ,</if>
<if test="accNa != null and accNa != ''"> #{accNa} ,</if>
<if test="kmjx != null and kmjx != ''"> #{kmjx} ,</if>
<if test="kmqx != null and kmqx != ''"> #{kmqx} ,</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="sjly != null and sjly != ''"> #{sjly} ,</if>
<if test="zdyfzhs != null and zdyfzhs != ''"> #{zdyfzhs} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from gl_kmxx a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into gl_kmxx(gsdm, ZTH, kjnd, kmdm, zjm, kmmc, syzt, kmxz, kmmxlb, kmmx, kmgs, kmbz, kmdw, kmslxsws, kmlb, kmhdfx, kmsyfx, syzcfs, kmpz, yefx, fzsm, fzhs, jfmax, dfmax, yemax, acc_na, kmjx, kmqx, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, zdyfzhs, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kmdm},#{entity.zjm},#{entity.kmmc},#{entity.syzt},#{entity.kmxz},#{entity.kmmxlb},#{entity.kmmx},#{entity.kmgs},#{entity.kmbz},#{entity.kmdw},#{entity.kmslxsws},#{entity.kmlb},#{entity.kmhdfx},#{entity.kmsyfx},#{entity.syzcfs},#{entity.kmpz},#{entity.yefx},#{entity.fzsm},#{entity.fzhs},#{entity.jfmax},#{entity.dfmax},#{entity.yemax},#{entity.accNa},#{entity.kmjx},#{entity.kmqx},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.zdyfzhs}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into gl_kmxx(gsdm, ZTH, kjnd, kmdm, zjm, kmmc, syzt, kmxz, kmmxlb, kmmx, kmgs, kmbz, kmdw, kmslxsws, kmlb, kmhdfx, kmsyfx, syzcfs, kmpz, yefx, fzsm, fzhs, jfmax, dfmax, yemax, acc_na, kmjx, kmqx, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, zdyfzhs)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kmdm},#{entity.zjm},#{entity.kmmc},#{entity.syzt},#{entity.kmxz},#{entity.kmmxlb},#{entity.kmmx},#{entity.kmgs},#{entity.kmbz},#{entity.kmdw},#{entity.kmslxsws},#{entity.kmlb},#{entity.kmhdfx},#{entity.kmsyfx},#{entity.syzcfs},#{entity.kmpz},#{entity.yefx},#{entity.fzsm},#{entity.fzhs},#{entity.jfmax},#{entity.dfmax},#{entity.yemax},#{entity.accNa},#{entity.kmjx},#{entity.kmqx},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.zdyfzhs})
</foreach>
on duplicate key update
gsdm = values(gsdm),
ZTH = values(ZTH),
kjnd = values(kjnd),
kmdm = values(kmdm),
zjm = values(zjm),
kmmc = values(kmmc),
syzt = values(syzt),
kmxz = values(kmxz),
kmmxlb = values(kmmxlb),
kmmx = values(kmmx),
kmgs = values(kmgs),
kmbz = values(kmbz),
kmdw = values(kmdw),
kmslxsws = values(kmslxsws),
kmlb = values(kmlb),
kmhdfx = values(kmhdfx),
kmsyfx = values(kmsyfx),
syzcfs = values(syzcfs),
kmpz = values(kmpz),
yefx = values(yefx),
fzsm = values(fzsm),
fzhs = values(fzhs),
jfmax = values(jfmax),
dfmax = values(dfmax),
yemax = values(yemax),
acc_na = values(acc_na),
kmjx = values(kmjx),
kmqx = values(kmqx),
JLR_ID = values(JLR_ID),
JL_RQ = values(JL_RQ),
XGR_ID = values(XGR_ID),
XG_RQ = values(XG_RQ),
Sjly = values(Sjly),
zdyfzhs = values(zdyfzhs)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity" >
update gl_kmxx set
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
<if test="zth != null and zth != ''"> ZTH = #{zth},</if>
<if test="kjnd != null and kjnd != ''"> kjnd = #{kjnd},</if>
<if test="kmdm != null and kmdm != ''"> kmdm = #{kmdm},</if>
<if test="zjm != null and zjm != ''"> zjm = #{zjm},</if>
<if test="kmmc != null and kmmc != ''"> kmmc = #{kmmc},</if>
<if test="syzt != null and syzt != ''"> syzt = #{syzt},</if>
<if test="kmxz != null and kmxz != ''"> kmxz = #{kmxz},</if>
<if test="kmmxlb != null and kmmxlb != ''"> kmmxlb = #{kmmxlb},</if>
<if test="kmmx != null and kmmx != ''"> kmmx = #{kmmx},</if>
<if test="kmgs != null and kmgs != ''"> kmgs = #{kmgs},</if>
<if test="kmbz != null and kmbz != ''"> kmbz = #{kmbz},</if>
<if test="kmdw != null and kmdw != ''"> kmdw = #{kmdw},</if>
<if test="kmslxsws != null"> kmslxsws = #{kmslxsws},</if>
<if test="kmlb != null and kmlb != ''"> kmlb = #{kmlb},</if>
<if test="kmhdfx != null and kmhdfx != ''"> kmhdfx = #{kmhdfx},</if>
<if test="kmsyfx != null and kmsyfx != ''"> kmsyfx = #{kmsyfx},</if>
<if test="syzcfs != null and syzcfs != ''"> syzcfs = #{syzcfs},</if>
<if test="kmpz != null and kmpz != ''"> kmpz = #{kmpz},</if>
<if test="yefx != null and yefx != ''"> yefx = #{yefx},</if>
<if test="fzsm != null and fzsm != ''"> fzsm = #{fzsm},</if>
<if test="fzhs != null and fzhs != ''"> fzhs = #{fzhs},</if>
<if test="jfmax != null"> jfmax = #{jfmax},</if>
<if test="dfmax != null"> dfmax = #{dfmax},</if>
<if test="yemax != null"> yemax = #{yemax},</if>
<if test="accNa != null and accNa != ''"> acc_na = #{accNa},</if>
<if test="kmjx != null and kmjx != ''"> kmjx = #{kmjx},</if>
<if test="kmqx != null and kmqx != ''"> kmqx = #{kmqx},</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="sjly != null and sjly != ''"> Sjly = #{sjly},</if>
<if test="zdyfzhs != null and zdyfzhs != ''"> zdyfzhs = #{zdyfzhs},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity" >
update gl_kmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity" >
update gl_kmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="kmmc != null and kmmc != ''"> and kmmc = #{kmmc} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="kmxz != null and kmxz != ''"> and kmxz = #{kmxz} </if>
<if test="kmmxlb != null and kmmxlb != ''"> and kmmxlb = #{kmmxlb} </if>
<if test="kmmx != null and kmmx != ''"> and kmmx = #{kmmx} </if>
<if test="kmgs != null and kmgs != ''"> and kmgs = #{kmgs} </if>
<if test="kmbz != null and kmbz != ''"> and kmbz = #{kmbz} </if>
<if test="kmdw != null and kmdw != ''"> and kmdw = #{kmdw} </if>
<if test="kmslxsws != null"> and kmslxsws = #{kmslxsws} </if>
<if test="kmlb != null and kmlb != ''"> and kmlb = #{kmlb} </if>
<if test="kmhdfx != null and kmhdfx != ''"> and kmhdfx = #{kmhdfx} </if>
<if test="kmsyfx != null and kmsyfx != ''"> and kmsyfx = #{kmsyfx} </if>
<if test="syzcfs != null and syzcfs != ''"> and syzcfs = #{syzcfs} </if>
<if test="kmpz != null and kmpz != ''"> and kmpz = #{kmpz} </if>
<if test="yefx != null and yefx != ''"> and yefx = #{yefx} </if>
<if test="fzsm != null and fzsm != ''"> and fzsm = #{fzsm} </if>
<if test="fzhs != null and fzhs != ''"> and fzhs = #{fzhs} </if>
<if test="jfmax != null"> and jfmax = #{jfmax} </if>
<if test="dfmax != null"> and dfmax = #{dfmax} </if>
<if test="yemax != null"> and yemax = #{yemax} </if>
<if test="accNa != null and accNa != ''"> and acc_na = #{accNa} </if>
<if test="kmjx != null and kmjx != ''"> and kmjx = #{kmjx} </if>
<if test="kmqx != null and kmqx != ''"> and kmqx = #{kmqx} </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="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="zdyfzhs != null and zdyfzhs != ''"> and zdyfzhs = #{zdyfzhs} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from gl_kmxx where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,64 @@
package com.hzya.frame.plugin.nxgrp.kmxx.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.nxgrp.sender.glKmxx.service.impl.SenderGlKmxxServiceImpl;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* (GlKmxx)表服务接口
*
* @author makejava
* @since 2024-07-01 15:05:33
*/
public class GlKmxxPluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(GlKmxxPluginInitializer.class);
@Autowired
private SenderGlKmxxServiceImpl senderGlKmxxService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "GlKmxxPlugin";
}
@Override
public String getPluginName() {
return "GlKmxxPlugin插件";
}
@Override
public String getPluginLabel() {
return "GlKmxxPlugin";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("==========开始定时执行GRPU8科目信息同步============");
JsonResultEntity jsonResultEntity = senderGlKmxxService.kmxxSynchronization(requestJson);
return jsonResultEntity;
}catch (Exception e){
logger.info("==========定时执行GRPU8科目信息同步错误{}============",e.getMessage());
e.printStackTrace();
}
return BaseResult.getSuccessMessageEntity("同步成功");
}
}

View File

@ -0,0 +1,12 @@
package com.hzya.frame.plugin.nxgrp.kmxx.service;
import com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* (GlKmxx)表服务接口
*
* @author makejava
* @since 2024-07-01 15:05:33
*/
public interface IGlKmxxService extends IBaseService<GlKmxxEntity, String>{
}

View File

@ -0,0 +1,23 @@
package com.hzya.frame.plugin.nxgrp.kmxx.service.impl;
import com.hzya.frame.plugin.nxgrp.kmxx.entity.GlKmxxEntity;
import com.hzya.frame.plugin.nxgrp.kmxx.dao.IGlKmxxDao;
import com.hzya.frame.plugin.nxgrp.kmxx.service.IGlKmxxService;
import org.springframework.beans.factory.annotation.Autowired;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* (GlKmxx)表服务实现类
*
* @author makejava
* @since 2024-07-01 15:05:33
*/
public class GlKmxxServiceImpl extends BaseService<GlKmxxEntity, String> implements IGlKmxxService {
private IGlKmxxDao glKmxxDao;
@Autowired
public void setGlKmxxDao(IGlKmxxDao dao) {
this.glKmxxDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.nxgrp.pzml.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.nxgrp.pzml.entity.GlPzmlEntity;
/**
* (gl_pzml: table)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:12:35
*/
public interface IGlPzmlDao extends IBaseDao<GlPzmlEntity, String> {
}

View File

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

View File

@ -0,0 +1,324 @@
package com.hzya.frame.plugin.nxgrp.pzml.entity;
import com.hzya.frame.web.entity.BaseEntity;
import java.math.BigDecimal;
/**
* (GlPzml)实体类
*
* @author makejava
* @since 2024-07-01 15:12:35
*/
public class GlPzmlEntity extends BaseEntity {
private String gsdm;
private String zth;
private String kjqj;
private String pzly;
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 BigDecimal 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 Integer yspzzs;
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 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 BigDecimal getPzje() {
return pzje;
}
public void setPzje(BigDecimal 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 Integer getYspzzs() {
return yspzzs;
}
public void setYspzzs(Integer yspzzs) {
this.yspzzs = yspzzs;
}
}

View File

@ -0,0 +1,485 @@
<?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.nxgrp.pzml.dao.impl.GlPzmlDaoImpl">
<resultMap id="get-GlPzmlEntity-result" type="com.hzya.frame.plugin.nxgrp.pzml.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="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="yspzzs" column="yspzzs" jdbcType="INTEGER"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "GlPzmlEntity_Base_Column_List">
gsdm
,ZTH
,kjqj
,pzly
,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
,yspzzs
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-GlPzmlEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.pzml.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="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 = #{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="yspzzs != null"> and yspzzs = #{yspzzs} </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.nxgrp.pzml.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="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 = #{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="yspzzs != null"> and yspzzs = #{yspzzs} </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.nxgrp.pzml.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="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 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="yspzzs != null"> and yspzzs like concat('%',#{yspzzs},'%') </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.nxgrp.pzml.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="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"> 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="yspzzs != null"> or yspzzs = #{yspzzs} </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.nxgrp.pzml.entity.GlPzmlEntity" keyProperty="" 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="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"> 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="yspzzs != null"> yspzzs , </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="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"> #{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="yspzzs != null"> #{yspzzs} ,</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="" useGeneratedKeys="true">
insert into gl_pzml(gsdm, ZTH, kjqj, pzly, 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, yspzzs, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{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.yspzzs}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
insert into gl_pzml(gsdm, ZTH, kjqj, pzly, 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, yspzzs)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{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.yspzzs})
</foreach>
on duplicate key update
gsdm = values(gsdm),
ZTH = values(ZTH),
kjqj = values(kjqj),
pzly = values(pzly),
pzh = values(pzh),
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),
yspzzs = values(yspzzs)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.nxgrp.pzml.entity.GlPzmlEntity" >
update gl_pzml set
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
<if test="zth != null and zth != ''"> ZTH = #{zth},</if>
<if test="kjqj != null and kjqj != ''"> kjqj = #{kjqj},</if>
<if test="pzly != null and pzly != ''"> pzly = #{pzly},</if>
<if test="pzh != null and pzh != ''"> pzh = #{pzh},</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"> 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="yspzzs != null"> yspzzs = #{yspzzs},</if>
</trim>
where idpzh= #{idpzh}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.nxgrp.pzml.entity.GlPzmlEntity" >
update gl_pzml set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where idpzh= #{idpzh}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.nxgrp.pzml.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="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 = #{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="yspzzs != null"> and yspzzs = #{yspzzs} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from gl_pzml where idpzh = #{idpzh}
</delete>
</mapper>

View File

@ -0,0 +1,65 @@
package com.hzya.frame.plugin.nxgrp.pzml.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.nxgrp.sender.glPzml.service.impl.SenderGlPzmlServiceImpl;
import com.hzya.frame.web.entity.BaseResult;
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-07-01 15:12:35
*/
public class GlPzmlPluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(GlPzmlPluginInitializer.class);
@Autowired
private SenderGlPzmlServiceImpl 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 {
logger.info("==========开始定时执行GRPU8凭证信息同步============");
JsonResultEntity jsonResultEntity = senderGlPzmlService.glPzmlSynchronization(requestJson);
return jsonResultEntity;
}catch (Exception e){
logger.info("==========定时执行GRPU8凭证信息同步错误{}============",e.getMessage());
e.printStackTrace();
}
return BaseResult.getSuccessMessageEntity("同步成功");
}
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.nxgrp.pzml.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.nxgrp.pzml.entity.GlPzmlEntity;
/**
* (GlPzml)表服务接口
*
* @author makejava
* @since 2024-07-01 15:12:35
*/
public interface IGlPzmlService extends IBaseService<GlPzmlEntity, String>{
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.plugin.nxgrp.pzml.service.impl;
import com.hzya.frame.plugin.nxgrp.pzml.dao.IGlPzmlDao;
import com.hzya.frame.plugin.nxgrp.pzml.entity.GlPzmlEntity;
import com.hzya.frame.plugin.nxgrp.pzml.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-07-01 15:12:35
*/
public class GlPzmlServiceImpl extends BaseService<GlPzmlEntity, String> implements IGlPzmlService {
private IGlPzmlDao glPzmlDao;
@Autowired
public void setGlPzmlDao(IGlPzmlDao dao) {
this.glPzmlDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.nxgrp.xmzl.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity;
/**
* (gl_xmzl: table)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:22:14
*/
public interface IGlXmzlDao extends IBaseDao<GlXmzlEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.nxgrp.xmzl.dao.impl;
import com.hzya.frame.plugin.nxgrp.xmzl.dao.IGlXmzlDao;
import com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* (GlXmzl)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:22:14
*/
public class GlXmzlDaoImpl extends MybatisGenericDao<GlXmzlEntity, String> implements IGlXmzlDao {
}

View File

@ -0,0 +1,285 @@
package com.hzya.frame.plugin.nxgrp.xmzl.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (GlXmzl)实体类
*
* @author makejava
* @since 2024-07-01 15:22:14
*/
public class GlXmzlEntity extends BaseEntity {
private String gsdm;
private String kjnd;
private String xmdm;
private String xmmc;
private String zjm;
private String ksrq;
private String jsrq;
private String bmdm;
private String bm;
private String ren;
private String zy;
private String syzt;
private Long jlrId;
private String jlRq;
private Integer xgrId;
private String xgRq;
private String sjly;
private String sfmx;
private String projobjid;
private String zdxmbz;
private String kzfs;
private String isjbzc;
private String lxnd;
private String zjly;
private String xmfl;
private String sfjt;
private String ren2;
private String ren3;
private Double ysje;
private String glh;
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 getXmdm() {
return xmdm;
}
public void setXmdm(String xmdm) {
this.xmdm = xmdm;
}
public String getXmmc() {
return xmmc;
}
public void setXmmc(String xmmc) {
this.xmmc = xmmc;
}
public String getZjm() {
return zjm;
}
public void setZjm(String zjm) {
this.zjm = zjm;
}
public String getKsrq() {
return ksrq;
}
public void setKsrq(String ksrq) {
this.ksrq = ksrq;
}
public String getJsrq() {
return jsrq;
}
public void setJsrq(String jsrq) {
this.jsrq = jsrq;
}
public String getBmdm() {
return bmdm;
}
public void setBmdm(String bmdm) {
this.bmdm = bmdm;
}
public String getBm() {
return bm;
}
public void setBm(String bm) {
this.bm = bm;
}
public String getRen() {
return ren;
}
public void setRen(String ren) {
this.ren = ren;
}
public String getZy() {
return zy;
}
public void setZy(String zy) {
this.zy = zy;
}
public String getSyzt() {
return syzt;
}
public void setSyzt(String syzt) {
this.syzt = syzt;
}
public Long getJlrId() {
return jlrId;
}
public void setJlrId(Long 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 getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
public String getSfmx() {
return sfmx;
}
public void setSfmx(String sfmx) {
this.sfmx = sfmx;
}
public String getProjobjid() {
return projobjid;
}
public void setProjobjid(String projobjid) {
this.projobjid = projobjid;
}
public String getZdxmbz() {
return zdxmbz;
}
public void setZdxmbz(String zdxmbz) {
this.zdxmbz = zdxmbz;
}
public String getKzfs() {
return kzfs;
}
public void setKzfs(String kzfs) {
this.kzfs = kzfs;
}
public String getIsjbzc() {
return isjbzc;
}
public void setIsjbzc(String isjbzc) {
this.isjbzc = isjbzc;
}
public String getLxnd() {
return lxnd;
}
public void setLxnd(String lxnd) {
this.lxnd = lxnd;
}
public String getZjly() {
return zjly;
}
public void setZjly(String zjly) {
this.zjly = zjly;
}
public String getXmfl() {
return xmfl;
}
public void setXmfl(String xmfl) {
this.xmfl = xmfl;
}
public String getSfjt() {
return sfjt;
}
public void setSfjt(String sfjt) {
this.sfjt = sfjt;
}
public String getRen2() {
return ren2;
}
public void setRen2(String ren2) {
this.ren2 = ren2;
}
public String getRen3() {
return ren3;
}
public void setRen3(String ren3) {
this.ren3 = ren3;
}
public Double getYsje() {
return ysje;
}
public void setYsje(Double ysje) {
this.ysje = ysje;
}
public String getGlh() {
return glh;
}
public void setGlh(String glh) {
this.glh = glh;
}
}

View File

@ -0,0 +1,450 @@
<?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.nxgrp.xmzl.dao.impl.GlXmzlDaoImpl">
<resultMap id="get-GlXmzlEntity-result" type="com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity" >
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="gsdm" column="GSDM" jdbcType="VARCHAR"/>
<result property="kjnd" column="KJND" jdbcType="VARCHAR"/>
<result property="xmdm" column="XMDM" jdbcType="VARCHAR"/>
<result property="xmmc" column="XMMC" jdbcType="VARCHAR"/>
<result property="zjm" column="ZJM" jdbcType="VARCHAR"/>
<result property="ksrq" column="KSRQ" jdbcType="VARCHAR"/>
<result property="jsrq" column="JSRQ" jdbcType="VARCHAR"/>
<result property="bmdm" column="BMDM" jdbcType="VARCHAR"/>
<result property="bm" column="BM" jdbcType="VARCHAR"/>
<result property="ren" column="REN" jdbcType="VARCHAR"/>
<result property="zy" column="ZY" jdbcType="VARCHAR"/>
<result property="syzt" column="SYZT" 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="sjly" column="SJLY" jdbcType="VARCHAR"/>
<result property="sfmx" column="SFMX" jdbcType="VARCHAR"/>
<result property="projobjid" column="PROJOBJID" jdbcType="VARCHAR"/>
<result property="zdxmbz" column="ZDXMBZ" jdbcType="VARCHAR"/>
<result property="kzfs" column="KZFS" jdbcType="VARCHAR"/>
<result property="isjbzc" column="ISJBZC" jdbcType="VARCHAR"/>
<result property="lxnd" column="LXND" jdbcType="VARCHAR"/>
<result property="zjly" column="ZJLY" jdbcType="VARCHAR"/>
<result property="xmfl" column="XMFL" jdbcType="VARCHAR"/>
<result property="sfjt" column="SFJT" jdbcType="VARCHAR"/>
<result property="ren2" column="REN2" jdbcType="VARCHAR"/>
<result property="ren3" column="REN3" jdbcType="VARCHAR"/>
<result property="ysje" column="YSJE" jdbcType="NUMERIC"/>
<result property="glh" column="GLH" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "GlXmzlEntity_Base_Column_List">
id
,GSDM
,KJND
,XMDM
,XMMC
,ZJM
,KSRQ
,JSRQ
,BMDM
,BM
,REN
,ZY
,SYZT
,JLR_ID
,JL_RQ
,XGR_ID
,XG_RQ
,SJLY
,SFMX
,PROJOBJID
,ZDXMBZ
,KZFS
,ISJBZC
,LXND
,ZJLY
,XMFL
,SFJT
,REN2
,REN3
,YSJE
,GLH
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-GlXmzlEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity">
select
<include refid="GlXmzlEntity_Base_Column_List" />
from gl_xmzl
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
<if test="xmdm != null and xmdm != ''"> and XMDM = #{xmdm} </if>
<if test="xmmc != null and xmmc != ''"> and XMMC = #{xmmc} </if>
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
<if test="ksrq != null and ksrq != ''"> and KSRQ = #{ksrq} </if>
<if test="jsrq != null and jsrq != ''"> and JSRQ = #{jsrq} </if>
<if test="bmdm != null and bmdm != ''"> and BMDM = #{bmdm} </if>
<if test="bm != null and bm != ''"> and BM = #{bm} </if>
<if test="ren != null and ren != ''"> and REN = #{ren} </if>
<if test="zy != null and zy != ''"> and ZY = #{zy} </if>
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </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="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="projobjid != null and projobjid != ''"> and PROJOBJID = #{projobjid} </if>
<if test="zdxmbz != null and zdxmbz != ''"> and ZDXMBZ = #{zdxmbz} </if>
<if test="kzfs != null and kzfs != ''"> and KZFS = #{kzfs} </if>
<if test="isjbzc != null and isjbzc != ''"> and ISJBZC = #{isjbzc} </if>
<if test="lxnd != null and lxnd != ''"> and LXND = #{lxnd} </if>
<if test="zjly != null and zjly != ''"> and ZJLY = #{zjly} </if>
<if test="xmfl != null and xmfl != ''"> and XMFL = #{xmfl} </if>
<if test="sfjt != null and sfjt != ''"> and SFJT = #{sfjt} </if>
<if test="ren2 != null and ren2 != ''"> and REN2 = #{ren2} </if>
<if test="ren3 != null and ren3 != ''"> and REN3 = #{ren3} </if>
<if test="ysje != null"> and YSJE = #{ysje} </if>
<if test="glh != null and glh != ''"> and GLH = #{glh} </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.nxgrp.xmzl.entity.GlXmzlEntity">
select count(1) from gl_xmzl
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
<if test="xmdm != null and xmdm != ''"> and XMDM = #{xmdm} </if>
<if test="xmmc != null and xmmc != ''"> and XMMC = #{xmmc} </if>
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
<if test="ksrq != null and ksrq != ''"> and KSRQ = #{ksrq} </if>
<if test="jsrq != null and jsrq != ''"> and JSRQ = #{jsrq} </if>
<if test="bmdm != null and bmdm != ''"> and BMDM = #{bmdm} </if>
<if test="bm != null and bm != ''"> and BM = #{bm} </if>
<if test="ren != null and ren != ''"> and REN = #{ren} </if>
<if test="zy != null and zy != ''"> and ZY = #{zy} </if>
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </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="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="projobjid != null and projobjid != ''"> and PROJOBJID = #{projobjid} </if>
<if test="zdxmbz != null and zdxmbz != ''"> and ZDXMBZ = #{zdxmbz} </if>
<if test="kzfs != null and kzfs != ''"> and KZFS = #{kzfs} </if>
<if test="isjbzc != null and isjbzc != ''"> and ISJBZC = #{isjbzc} </if>
<if test="lxnd != null and lxnd != ''"> and LXND = #{lxnd} </if>
<if test="zjly != null and zjly != ''"> and ZJLY = #{zjly} </if>
<if test="xmfl != null and xmfl != ''"> and XMFL = #{xmfl} </if>
<if test="sfjt != null and sfjt != ''"> and SFJT = #{sfjt} </if>
<if test="ren2 != null and ren2 != ''"> and REN2 = #{ren2} </if>
<if test="ren3 != null and ren3 != ''"> and REN3 = #{ren3} </if>
<if test="ysje != null"> and YSJE = #{ysje} </if>
<if test="glh != null and glh != ''"> and GLH = #{glh} </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-GlXmzlEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity">
select
<include refid="GlXmzlEntity_Base_Column_List" />
from gl_xmzl
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
<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="xmdm != null and xmdm != ''"> and XMDM like concat('%',#{xmdm},'%') </if>
<if test="xmmc != null and xmmc != ''"> and XMMC like concat('%',#{xmmc},'%') </if>
<if test="zjm != null and zjm != ''"> and ZJM like concat('%',#{zjm},'%') </if>
<if test="ksrq != null and ksrq != ''"> and KSRQ like concat('%',#{ksrq},'%') </if>
<if test="jsrq != null and jsrq != ''"> and JSRQ like concat('%',#{jsrq},'%') </if>
<if test="bmdm != null and bmdm != ''"> and BMDM like concat('%',#{bmdm},'%') </if>
<if test="bm != null and bm != ''"> and BM like concat('%',#{bm},'%') </if>
<if test="ren != null and ren != ''"> and REN like concat('%',#{ren},'%') </if>
<if test="zy != null and zy != ''"> and ZY like concat('%',#{zy},'%') </if>
<if test="syzt != null and syzt != ''"> and SYZT like concat('%',#{syzt},'%') </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="sjly != null and sjly != ''"> and SJLY like concat('%',#{sjly},'%') </if>
<if test="sfmx != null and sfmx != ''"> and SFMX like concat('%',#{sfmx},'%') </if>
<if test="projobjid != null and projobjid != ''"> and PROJOBJID like concat('%',#{projobjid},'%') </if>
<if test="zdxmbz != null and zdxmbz != ''"> and ZDXMBZ like concat('%',#{zdxmbz},'%') </if>
<if test="kzfs != null and kzfs != ''"> and KZFS like concat('%',#{kzfs},'%') </if>
<if test="isjbzc != null and isjbzc != ''"> and ISJBZC like concat('%',#{isjbzc},'%') </if>
<if test="lxnd != null and lxnd != ''"> and LXND like concat('%',#{lxnd},'%') </if>
<if test="zjly != null and zjly != ''"> and ZJLY like concat('%',#{zjly},'%') </if>
<if test="xmfl != null and xmfl != ''"> and XMFL like concat('%',#{xmfl},'%') </if>
<if test="sfjt != null and sfjt != ''"> and SFJT like concat('%',#{sfjt},'%') </if>
<if test="ren2 != null and ren2 != ''"> and REN2 like concat('%',#{ren2},'%') </if>
<if test="ren3 != null and ren3 != ''"> and REN3 like concat('%',#{ren3},'%') </if>
<if test="ysje != null"> and YSJE like concat('%',#{ysje},'%') </if>
<if test="glh != null and glh != ''"> and GLH like concat('%',#{glh},'%') </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="GlXmzlentity_list_or" resultMap="get-GlXmzlEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity">
select
<include refid="GlXmzlEntity_Base_Column_List" />
from gl_xmzl
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> or id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> or GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> or KJND = #{kjnd} </if>
<if test="xmdm != null and xmdm != ''"> or XMDM = #{xmdm} </if>
<if test="xmmc != null and xmmc != ''"> or XMMC = #{xmmc} </if>
<if test="zjm != null and zjm != ''"> or ZJM = #{zjm} </if>
<if test="ksrq != null and ksrq != ''"> or KSRQ = #{ksrq} </if>
<if test="jsrq != null and jsrq != ''"> or JSRQ = #{jsrq} </if>
<if test="bmdm != null and bmdm != ''"> or BMDM = #{bmdm} </if>
<if test="bm != null and bm != ''"> or BM = #{bm} </if>
<if test="ren != null and ren != ''"> or REN = #{ren} </if>
<if test="zy != null and zy != ''"> or ZY = #{zy} </if>
<if test="syzt != null and syzt != ''"> or SYZT = #{syzt} </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="sjly != null and sjly != ''"> or SJLY = #{sjly} </if>
<if test="sfmx != null and sfmx != ''"> or SFMX = #{sfmx} </if>
<if test="projobjid != null and projobjid != ''"> or PROJOBJID = #{projobjid} </if>
<if test="zdxmbz != null and zdxmbz != ''"> or ZDXMBZ = #{zdxmbz} </if>
<if test="kzfs != null and kzfs != ''"> or KZFS = #{kzfs} </if>
<if test="isjbzc != null and isjbzc != ''"> or ISJBZC = #{isjbzc} </if>
<if test="lxnd != null and lxnd != ''"> or LXND = #{lxnd} </if>
<if test="zjly != null and zjly != ''"> or ZJLY = #{zjly} </if>
<if test="xmfl != null and xmfl != ''"> or XMFL = #{xmfl} </if>
<if test="sfjt != null and sfjt != ''"> or SFJT = #{sfjt} </if>
<if test="ren2 != null and ren2 != ''"> or REN2 = #{ren2} </if>
<if test="ren3 != null and ren3 != ''"> or REN3 = #{ren3} </if>
<if test="ysje != null"> or YSJE = #{ysje} </if>
<if test="glh != null and glh != ''"> or GLH = #{glh} </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.nxgrp.xmzl.entity.GlXmzlEntity" keyProperty="id" useGeneratedKeys="true">
insert into gl_xmzl(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> id , </if>
<if test="gsdm != null and gsdm != ''"> GSDM , </if>
<if test="kjnd != null and kjnd != ''"> KJND , </if>
<if test="xmdm != null and xmdm != ''"> XMDM , </if>
<if test="xmmc != null and xmmc != ''"> XMMC , </if>
<if test="zjm != null and zjm != ''"> ZJM , </if>
<if test="ksrq != null and ksrq != ''"> KSRQ , </if>
<if test="jsrq != null and jsrq != ''"> JSRQ , </if>
<if test="bmdm != null and bmdm != ''"> BMDM , </if>
<if test="bm != null and bm != ''"> BM , </if>
<if test="ren != null and ren != ''"> REN , </if>
<if test="zy != null and zy != ''"> ZY , </if>
<if test="syzt != null and syzt != ''"> SYZT , </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="sjly != null and sjly != ''"> SJLY , </if>
<if test="sfmx != null and sfmx != ''"> SFMX , </if>
<if test="projobjid != null and projobjid != ''"> PROJOBJID , </if>
<if test="zdxmbz != null and zdxmbz != ''"> ZDXMBZ , </if>
<if test="kzfs != null and kzfs != ''"> KZFS , </if>
<if test="isjbzc != null and isjbzc != ''"> ISJBZC , </if>
<if test="lxnd != null and lxnd != ''"> LXND , </if>
<if test="zjly != null and zjly != ''"> ZJLY , </if>
<if test="xmfl != null and xmfl != ''"> XMFL , </if>
<if test="sfjt != null and sfjt != ''"> SFJT , </if>
<if test="ren2 != null and ren2 != ''"> REN2 , </if>
<if test="ren3 != null and ren3 != ''"> REN3 , </if>
<if test="ysje != null"> YSJE , </if>
<if test="glh != null and glh != ''"> GLH , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> #{id} ,</if>
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
<if test="xmdm != null and xmdm != ''"> #{xmdm} ,</if>
<if test="xmmc != null and xmmc != ''"> #{xmmc} ,</if>
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
<if test="ksrq != null and ksrq != ''"> #{ksrq} ,</if>
<if test="jsrq != null and jsrq != ''"> #{jsrq} ,</if>
<if test="bmdm != null and bmdm != ''"> #{bmdm} ,</if>
<if test="bm != null and bm != ''"> #{bm} ,</if>
<if test="ren != null and ren != ''"> #{ren} ,</if>
<if test="zy != null and zy != ''"> #{zy} ,</if>
<if test="syzt != null and syzt != ''"> #{syzt} ,</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="sjly != null and sjly != ''"> #{sjly} ,</if>
<if test="sfmx != null and sfmx != ''"> #{sfmx} ,</if>
<if test="projobjid != null and projobjid != ''"> #{projobjid} ,</if>
<if test="zdxmbz != null and zdxmbz != ''"> #{zdxmbz} ,</if>
<if test="kzfs != null and kzfs != ''"> #{kzfs} ,</if>
<if test="isjbzc != null and isjbzc != ''"> #{isjbzc} ,</if>
<if test="lxnd != null and lxnd != ''"> #{lxnd} ,</if>
<if test="zjly != null and zjly != ''"> #{zjly} ,</if>
<if test="xmfl != null and xmfl != ''"> #{xmfl} ,</if>
<if test="sfjt != null and sfjt != ''"> #{sfjt} ,</if>
<if test="ren2 != null and ren2 != ''"> #{ren2} ,</if>
<if test="ren3 != null and ren3 != ''"> #{ren3} ,</if>
<if test="ysje != null"> #{ysje} ,</if>
<if test="glh != null and glh != ''"> #{glh} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from gl_xmzl a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into gl_xmzl(GSDM, KJND, XMDM, XMMC, ZJM, KSRQ, JSRQ, BMDM, BM, REN, ZY, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SJLY, SFMX, PROJOBJID, ZDXMBZ, KZFS, ISJBZC, LXND, ZJLY, XMFL, SFJT, REN2, REN3, YSJE, GLH, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.kjnd},#{entity.xmdm},#{entity.xmmc},#{entity.zjm},#{entity.ksrq},#{entity.jsrq},#{entity.bmdm},#{entity.bm},#{entity.ren},#{entity.zy},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.projobjid},#{entity.zdxmbz},#{entity.kzfs},#{entity.isjbzc},#{entity.lxnd},#{entity.zjly},#{entity.xmfl},#{entity.sfjt},#{entity.ren2},#{entity.ren3},#{entity.ysje},#{entity.glh}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into gl_xmzl(GSDM, KJND, XMDM, XMMC, ZJM, KSRQ, JSRQ, BMDM, BM, REN, ZY, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SJLY, SFMX, PROJOBJID, ZDXMBZ, KZFS, ISJBZC, LXND, ZJLY, XMFL, SFJT, REN2, REN3, YSJE, GLH)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.kjnd},#{entity.xmdm},#{entity.xmmc},#{entity.zjm},#{entity.ksrq},#{entity.jsrq},#{entity.bmdm},#{entity.bm},#{entity.ren},#{entity.zy},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.projobjid},#{entity.zdxmbz},#{entity.kzfs},#{entity.isjbzc},#{entity.lxnd},#{entity.zjly},#{entity.xmfl},#{entity.sfjt},#{entity.ren2},#{entity.ren3},#{entity.ysje},#{entity.glh})
</foreach>
on duplicate key update
GSDM = values(GSDM),
KJND = values(KJND),
XMDM = values(XMDM),
XMMC = values(XMMC),
ZJM = values(ZJM),
KSRQ = values(KSRQ),
JSRQ = values(JSRQ),
BMDM = values(BMDM),
BM = values(BM),
REN = values(REN),
ZY = values(ZY),
SYZT = values(SYZT),
JLR_ID = values(JLR_ID),
JL_RQ = values(JL_RQ),
XGR_ID = values(XGR_ID),
XG_RQ = values(XG_RQ),
SJLY = values(SJLY),
SFMX = values(SFMX),
PROJOBJID = values(PROJOBJID),
ZDXMBZ = values(ZDXMBZ),
KZFS = values(KZFS),
ISJBZC = values(ISJBZC),
LXND = values(LXND),
ZJLY = values(ZJLY),
XMFL = values(XMFL),
SFJT = values(SFJT),
REN2 = values(REN2),
REN3 = values(REN3),
YSJE = values(YSJE),
GLH = values(GLH)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity" >
update gl_xmzl set
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> GSDM = #{gsdm},</if>
<if test="kjnd != null and kjnd != ''"> KJND = #{kjnd},</if>
<if test="xmdm != null and xmdm != ''"> XMDM = #{xmdm},</if>
<if test="xmmc != null and xmmc != ''"> XMMC = #{xmmc},</if>
<if test="zjm != null and zjm != ''"> ZJM = #{zjm},</if>
<if test="ksrq != null and ksrq != ''"> KSRQ = #{ksrq},</if>
<if test="jsrq != null and jsrq != ''"> JSRQ = #{jsrq},</if>
<if test="bmdm != null and bmdm != ''"> BMDM = #{bmdm},</if>
<if test="bm != null and bm != ''"> BM = #{bm},</if>
<if test="ren != null and ren != ''"> REN = #{ren},</if>
<if test="zy != null and zy != ''"> ZY = #{zy},</if>
<if test="syzt != null and syzt != ''"> SYZT = #{syzt},</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="sjly != null and sjly != ''"> SJLY = #{sjly},</if>
<if test="sfmx != null and sfmx != ''"> SFMX = #{sfmx},</if>
<if test="projobjid != null and projobjid != ''"> PROJOBJID = #{projobjid},</if>
<if test="zdxmbz != null and zdxmbz != ''"> ZDXMBZ = #{zdxmbz},</if>
<if test="kzfs != null and kzfs != ''"> KZFS = #{kzfs},</if>
<if test="isjbzc != null and isjbzc != ''"> ISJBZC = #{isjbzc},</if>
<if test="lxnd != null and lxnd != ''"> LXND = #{lxnd},</if>
<if test="zjly != null and zjly != ''"> ZJLY = #{zjly},</if>
<if test="xmfl != null and xmfl != ''"> XMFL = #{xmfl},</if>
<if test="sfjt != null and sfjt != ''"> SFJT = #{sfjt},</if>
<if test="ren2 != null and ren2 != ''"> REN2 = #{ren2},</if>
<if test="ren3 != null and ren3 != ''"> REN3 = #{ren3},</if>
<if test="ysje != null"> YSJE = #{ysje},</if>
<if test="glh != null and glh != ''"> GLH = #{glh},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity" >
update gl_xmzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity" >
update gl_xmzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
<if test="xmdm != null and xmdm != ''"> and XMDM = #{xmdm} </if>
<if test="xmmc != null and xmmc != ''"> and XMMC = #{xmmc} </if>
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
<if test="ksrq != null and ksrq != ''"> and KSRQ = #{ksrq} </if>
<if test="jsrq != null and jsrq != ''"> and JSRQ = #{jsrq} </if>
<if test="bmdm != null and bmdm != ''"> and BMDM = #{bmdm} </if>
<if test="bm != null and bm != ''"> and BM = #{bm} </if>
<if test="ren != null and ren != ''"> and REN = #{ren} </if>
<if test="zy != null and zy != ''"> and ZY = #{zy} </if>
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </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="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
<if test="projobjid != null and projobjid != ''"> and PROJOBJID = #{projobjid} </if>
<if test="zdxmbz != null and zdxmbz != ''"> and ZDXMBZ = #{zdxmbz} </if>
<if test="kzfs != null and kzfs != ''"> and KZFS = #{kzfs} </if>
<if test="isjbzc != null and isjbzc != ''"> and ISJBZC = #{isjbzc} </if>
<if test="lxnd != null and lxnd != ''"> and LXND = #{lxnd} </if>
<if test="zjly != null and zjly != ''"> and ZJLY = #{zjly} </if>
<if test="xmfl != null and xmfl != ''"> and XMFL = #{xmfl} </if>
<if test="sfjt != null and sfjt != ''"> and SFJT = #{sfjt} </if>
<if test="ren2 != null and ren2 != ''"> and REN2 = #{ren2} </if>
<if test="ren3 != null and ren3 != ''"> and REN3 = #{ren3} </if>
<if test="ysje != null"> and YSJE = #{ysje} </if>
<if test="glh != null and glh != ''"> and GLH = #{glh} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from gl_xmzl where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,66 @@
package com.hzya.frame.plugin.nxgrp.xmzl.plugin;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.nxgrp.sender.glXmzl.service.impl.SenderGlXmzlServiceImpl;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* (GlXmzl)表服务接口
*
* @author makejava
* @since 2024-07-01 15:22:14
*/
public class GlXmzlPluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(GlXmzlPluginInitializer.class);
@Autowired
private SenderGlXmzlServiceImpl senderGlXmzlService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "GlXmzlPlugin";
}
@Override
public String getPluginName() {
return "GlXmzlPlugin插件";
}
@Override
public String getPluginLabel() {
return "GlXmzlPlugin";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("==========开始定时执行GRPU8项目资料同步============");
JsonResultEntity jsonResultEntity = senderGlXmzlService.glXmzlSynchronization(requestJson);
return jsonResultEntity;
}catch (Exception e){
logger.info("==========定时执行GRPU8项目资料同步错误{}============",e.getMessage());
e.printStackTrace();
}
return BaseResult.getSuccessMessageEntity("同步成功");
}
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.nxgrp.xmzl.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity;
/**
* (GlXmzl)表服务接口
*
* @author makejava
* @since 2024-07-01 15:22:14
*/
public interface IGlXmzlService extends IBaseService<GlXmzlEntity, String>{
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.nxgrp.xmzl.service.impl;
import com.hzya.frame.plugin.nxgrp.xmzl.dao.IGlXmzlDao;
import com.hzya.frame.plugin.nxgrp.xmzl.entity.GlXmzlEntity;
import com.hzya.frame.plugin.nxgrp.xmzl.service.IGlXmzlService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* (GlXmzl)表服务实现类
*
* @author makejava
* @since 2024-07-01 15:22:14
*/
public class GlXmzlServiceImpl extends BaseService<GlXmzlEntity, String> implements IGlXmzlService {
private IGlXmzlDao glXmzlDao;
@Autowired
public void setGlXmzlDao(IGlXmzlDao dao) {
this.glXmzlDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.nxgrp.ztcs.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.nxgrp.ztcs.entity.GlZtcsEntity;
/**
* (gl_ztcs: table)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:27:11
*/
public interface IGlZtcsDao extends IBaseDao<GlZtcsEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.nxgrp.ztcs.dao.impl;
import com.hzya.frame.plugin.nxgrp.ztcs.dao.IGlZtcsDao;
import com.hzya.frame.plugin.nxgrp.ztcs.entity.GlZtcsEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* (GlZtcs)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:27:11
*/
public class GlZtcsDaoImpl extends MybatisGenericDao<GlZtcsEntity, String> implements IGlZtcsDao {
}

View File

@ -0,0 +1,879 @@
package com.hzya.frame.plugin.nxgrp.ztcs.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (GlZtcs)实体类
*
* @author makejava
* @since 2024-07-01 15:27:11
*/
public class GlZtcsEntity extends BaseEntity {
private String kjnd;
private String ztbh;
private String ztmc;
private String ztmce;
private String ztlb;
private String hsdwdm;
private String hsdwmc;
private String bwbdm;
private String bwbmc;
private String yzkm;
private Integer sjsj;
private String bwbbf;
private String bwbdw;
private Integer bwbjd;
private String cwzg;
private Integer kjqjs;
private String qykjqj;
private String wbhs;
private String hllx;
private String sfyjz;
private String ztkz;
private String yskz;
private String pzygkz;
private String yspzkz;
private Integer slxsws;
private Integer djxsws;
private String anyibz;
private String kmbmfa;
private String kmzbmfa;
private String bmbmfa;
private String xmbmfa;
private String dqbmfa;
private String dwbmfa;
private String xjbmfa;
private String gsbmfa;
private String bbpath;
private String bkdtd;
private String bzdw;
private String zbqyrq;
private String gkjzzf;
private String zbkzmb;
private String kzfs;
private String kzqj;
private String kzyj;
private String ybksy;
private String ybjsy;
private String zfpzbh;
private String bkdbh;
private String bkpzlx;
private String bkhskm;
private String bkyhkmyz;
private String zfscbkd;
private String bkdscpz;
private String szqxkz;
private String djxg;
private String djsh;
private String dybz;
private String jhsh;
private String zpscbk;
private String zphs;
private String dzkdm;
private String headbkdh;
private String bkdfs;
private String lrzy;
private Integer mjxsxsws;
private String wjsjlj;
private String sjkzbz;
private String needjfzb;
private String zdyfzyslbdm;
private String zdyfzyskzcs;
private String needyskm;
private String gkksbmfa;
private String pzbtdf;
private String ykjhyskm;
private String bkdxssjkm;
private String pzfjpath;
private String bkdxyfscz;
private String delmaxdh;
private String bkddataqxqy;
private String ykjhcs;
private String ykjhfs;
private String cnqzkm;
private String ztsx;
private String tsxkz;
private String zbkz;
private String wjz;
private String bkdxszhmc;
private Integer maxzdycount;
private String sjly;
private String flowcontrol;
private String cs1;
private String cs2;
private String cs3;
private String cs4;
private String cs5;
private String czyjkm;
public String getKjnd() {
return kjnd;
}
public void setKjnd(String kjnd) {
this.kjnd = kjnd;
}
public String getZtbh() {
return ztbh;
}
public void setZtbh(String ztbh) {
this.ztbh = ztbh;
}
public String getZtmc() {
return ztmc;
}
public void setZtmc(String ztmc) {
this.ztmc = ztmc;
}
public String getZtmce() {
return ztmce;
}
public void setZtmce(String ztmce) {
this.ztmce = ztmce;
}
public String getZtlb() {
return ztlb;
}
public void setZtlb(String ztlb) {
this.ztlb = ztlb;
}
public String getHsdwdm() {
return hsdwdm;
}
public void setHsdwdm(String hsdwdm) {
this.hsdwdm = hsdwdm;
}
public String getHsdwmc() {
return hsdwmc;
}
public void setHsdwmc(String hsdwmc) {
this.hsdwmc = hsdwmc;
}
public String getBwbdm() {
return bwbdm;
}
public void setBwbdm(String bwbdm) {
this.bwbdm = bwbdm;
}
public String getBwbmc() {
return bwbmc;
}
public void setBwbmc(String bwbmc) {
this.bwbmc = bwbmc;
}
public String getYzkm() {
return yzkm;
}
public void setYzkm(String yzkm) {
this.yzkm = yzkm;
}
public Integer getSjsj() {
return sjsj;
}
public void setSjsj(Integer sjsj) {
this.sjsj = sjsj;
}
public String getBwbbf() {
return bwbbf;
}
public void setBwbbf(String bwbbf) {
this.bwbbf = bwbbf;
}
public String getBwbdw() {
return bwbdw;
}
public void setBwbdw(String bwbdw) {
this.bwbdw = bwbdw;
}
public Integer getBwbjd() {
return bwbjd;
}
public void setBwbjd(Integer bwbjd) {
this.bwbjd = bwbjd;
}
public String getCwzg() {
return cwzg;
}
public void setCwzg(String cwzg) {
this.cwzg = cwzg;
}
public Integer getKjqjs() {
return kjqjs;
}
public void setKjqjs(Integer kjqjs) {
this.kjqjs = kjqjs;
}
public String getQykjqj() {
return qykjqj;
}
public void setQykjqj(String qykjqj) {
this.qykjqj = qykjqj;
}
public String getWbhs() {
return wbhs;
}
public void setWbhs(String wbhs) {
this.wbhs = wbhs;
}
public String getHllx() {
return hllx;
}
public void setHllx(String hllx) {
this.hllx = hllx;
}
public String getSfyjz() {
return sfyjz;
}
public void setSfyjz(String sfyjz) {
this.sfyjz = sfyjz;
}
public String getZtkz() {
return ztkz;
}
public void setZtkz(String ztkz) {
this.ztkz = ztkz;
}
public String getYskz() {
return yskz;
}
public void setYskz(String yskz) {
this.yskz = yskz;
}
public String getPzygkz() {
return pzygkz;
}
public void setPzygkz(String pzygkz) {
this.pzygkz = pzygkz;
}
public String getYspzkz() {
return yspzkz;
}
public void setYspzkz(String yspzkz) {
this.yspzkz = yspzkz;
}
public Integer getSlxsws() {
return slxsws;
}
public void setSlxsws(Integer slxsws) {
this.slxsws = slxsws;
}
public Integer getDjxsws() {
return djxsws;
}
public void setDjxsws(Integer djxsws) {
this.djxsws = djxsws;
}
public String getAnyibz() {
return anyibz;
}
public void setAnyibz(String anyibz) {
this.anyibz = anyibz;
}
public String getKmbmfa() {
return kmbmfa;
}
public void setKmbmfa(String kmbmfa) {
this.kmbmfa = kmbmfa;
}
public String getKmzbmfa() {
return kmzbmfa;
}
public void setKmzbmfa(String kmzbmfa) {
this.kmzbmfa = kmzbmfa;
}
public String getBmbmfa() {
return bmbmfa;
}
public void setBmbmfa(String bmbmfa) {
this.bmbmfa = bmbmfa;
}
public String getXmbmfa() {
return xmbmfa;
}
public void setXmbmfa(String xmbmfa) {
this.xmbmfa = xmbmfa;
}
public String getDqbmfa() {
return dqbmfa;
}
public void setDqbmfa(String dqbmfa) {
this.dqbmfa = dqbmfa;
}
public String getDwbmfa() {
return dwbmfa;
}
public void setDwbmfa(String dwbmfa) {
this.dwbmfa = dwbmfa;
}
public String getXjbmfa() {
return xjbmfa;
}
public void setXjbmfa(String xjbmfa) {
this.xjbmfa = xjbmfa;
}
public String getGsbmfa() {
return gsbmfa;
}
public void setGsbmfa(String gsbmfa) {
this.gsbmfa = gsbmfa;
}
public String getBbpath() {
return bbpath;
}
public void setBbpath(String bbpath) {
this.bbpath = bbpath;
}
public String getBkdtd() {
return bkdtd;
}
public void setBkdtd(String bkdtd) {
this.bkdtd = bkdtd;
}
public String getBzdw() {
return bzdw;
}
public void setBzdw(String bzdw) {
this.bzdw = bzdw;
}
public String getZbqyrq() {
return zbqyrq;
}
public void setZbqyrq(String zbqyrq) {
this.zbqyrq = zbqyrq;
}
public String getGkjzzf() {
return gkjzzf;
}
public void setGkjzzf(String gkjzzf) {
this.gkjzzf = gkjzzf;
}
public String getZbkzmb() {
return zbkzmb;
}
public void setZbkzmb(String zbkzmb) {
this.zbkzmb = zbkzmb;
}
public String getKzfs() {
return kzfs;
}
public void setKzfs(String kzfs) {
this.kzfs = kzfs;
}
public String getKzqj() {
return kzqj;
}
public void setKzqj(String kzqj) {
this.kzqj = kzqj;
}
public String getKzyj() {
return kzyj;
}
public void setKzyj(String kzyj) {
this.kzyj = kzyj;
}
public String getYbksy() {
return ybksy;
}
public void setYbksy(String ybksy) {
this.ybksy = ybksy;
}
public String getYbjsy() {
return ybjsy;
}
public void setYbjsy(String ybjsy) {
this.ybjsy = ybjsy;
}
public String getZfpzbh() {
return zfpzbh;
}
public void setZfpzbh(String zfpzbh) {
this.zfpzbh = zfpzbh;
}
public String getBkdbh() {
return bkdbh;
}
public void setBkdbh(String bkdbh) {
this.bkdbh = bkdbh;
}
public String getBkpzlx() {
return bkpzlx;
}
public void setBkpzlx(String bkpzlx) {
this.bkpzlx = bkpzlx;
}
public String getBkhskm() {
return bkhskm;
}
public void setBkhskm(String bkhskm) {
this.bkhskm = bkhskm;
}
public String getBkyhkmyz() {
return bkyhkmyz;
}
public void setBkyhkmyz(String bkyhkmyz) {
this.bkyhkmyz = bkyhkmyz;
}
public String getZfscbkd() {
return zfscbkd;
}
public void setZfscbkd(String zfscbkd) {
this.zfscbkd = zfscbkd;
}
public String getBkdscpz() {
return bkdscpz;
}
public void setBkdscpz(String bkdscpz) {
this.bkdscpz = bkdscpz;
}
public String getSzqxkz() {
return szqxkz;
}
public void setSzqxkz(String szqxkz) {
this.szqxkz = szqxkz;
}
public String getDjxg() {
return djxg;
}
public void setDjxg(String djxg) {
this.djxg = djxg;
}
public String getDjsh() {
return djsh;
}
public void setDjsh(String djsh) {
this.djsh = djsh;
}
public String getDybz() {
return dybz;
}
public void setDybz(String dybz) {
this.dybz = dybz;
}
public String getJhsh() {
return jhsh;
}
public void setJhsh(String jhsh) {
this.jhsh = jhsh;
}
public String getZpscbk() {
return zpscbk;
}
public void setZpscbk(String zpscbk) {
this.zpscbk = zpscbk;
}
public String getZphs() {
return zphs;
}
public void setZphs(String zphs) {
this.zphs = zphs;
}
public String getDzkdm() {
return dzkdm;
}
public void setDzkdm(String dzkdm) {
this.dzkdm = dzkdm;
}
public String getHeadbkdh() {
return headbkdh;
}
public void setHeadbkdh(String headbkdh) {
this.headbkdh = headbkdh;
}
public String getBkdfs() {
return bkdfs;
}
public void setBkdfs(String bkdfs) {
this.bkdfs = bkdfs;
}
public String getLrzy() {
return lrzy;
}
public void setLrzy(String lrzy) {
this.lrzy = lrzy;
}
public Integer getMjxsxsws() {
return mjxsxsws;
}
public void setMjxsxsws(Integer mjxsxsws) {
this.mjxsxsws = mjxsxsws;
}
public String getWjsjlj() {
return wjsjlj;
}
public void setWjsjlj(String wjsjlj) {
this.wjsjlj = wjsjlj;
}
public String getSjkzbz() {
return sjkzbz;
}
public void setSjkzbz(String sjkzbz) {
this.sjkzbz = sjkzbz;
}
public String getNeedjfzb() {
return needjfzb;
}
public void setNeedjfzb(String needjfzb) {
this.needjfzb = needjfzb;
}
public String getZdyfzyslbdm() {
return zdyfzyslbdm;
}
public void setZdyfzyslbdm(String zdyfzyslbdm) {
this.zdyfzyslbdm = zdyfzyslbdm;
}
public String getZdyfzyskzcs() {
return zdyfzyskzcs;
}
public void setZdyfzyskzcs(String zdyfzyskzcs) {
this.zdyfzyskzcs = zdyfzyskzcs;
}
public String getNeedyskm() {
return needyskm;
}
public void setNeedyskm(String needyskm) {
this.needyskm = needyskm;
}
public String getGkksbmfa() {
return gkksbmfa;
}
public void setGkksbmfa(String gkksbmfa) {
this.gkksbmfa = gkksbmfa;
}
public String getPzbtdf() {
return pzbtdf;
}
public void setPzbtdf(String pzbtdf) {
this.pzbtdf = pzbtdf;
}
public String getYkjhyskm() {
return ykjhyskm;
}
public void setYkjhyskm(String ykjhyskm) {
this.ykjhyskm = ykjhyskm;
}
public String getBkdxssjkm() {
return bkdxssjkm;
}
public void setBkdxssjkm(String bkdxssjkm) {
this.bkdxssjkm = bkdxssjkm;
}
public String getPzfjpath() {
return pzfjpath;
}
public void setPzfjpath(String pzfjpath) {
this.pzfjpath = pzfjpath;
}
public String getBkdxyfscz() {
return bkdxyfscz;
}
public void setBkdxyfscz(String bkdxyfscz) {
this.bkdxyfscz = bkdxyfscz;
}
public String getDelmaxdh() {
return delmaxdh;
}
public void setDelmaxdh(String delmaxdh) {
this.delmaxdh = delmaxdh;
}
public String getBkddataqxqy() {
return bkddataqxqy;
}
public void setBkddataqxqy(String bkddataqxqy) {
this.bkddataqxqy = bkddataqxqy;
}
public String getYkjhcs() {
return ykjhcs;
}
public void setYkjhcs(String ykjhcs) {
this.ykjhcs = ykjhcs;
}
public String getYkjhfs() {
return ykjhfs;
}
public void setYkjhfs(String ykjhfs) {
this.ykjhfs = ykjhfs;
}
public String getCnqzkm() {
return cnqzkm;
}
public void setCnqzkm(String cnqzkm) {
this.cnqzkm = cnqzkm;
}
public String getZtsx() {
return ztsx;
}
public void setZtsx(String ztsx) {
this.ztsx = ztsx;
}
public String getTsxkz() {
return tsxkz;
}
public void setTsxkz(String tsxkz) {
this.tsxkz = tsxkz;
}
public String getZbkz() {
return zbkz;
}
public void setZbkz(String zbkz) {
this.zbkz = zbkz;
}
public String getWjz() {
return wjz;
}
public void setWjz(String wjz) {
this.wjz = wjz;
}
public String getBkdxszhmc() {
return bkdxszhmc;
}
public void setBkdxszhmc(String bkdxszhmc) {
this.bkdxszhmc = bkdxszhmc;
}
public Integer getMaxzdycount() {
return maxzdycount;
}
public void setMaxzdycount(Integer maxzdycount) {
this.maxzdycount = maxzdycount;
}
public String getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
public String getFlowcontrol() {
return flowcontrol;
}
public void setFlowcontrol(String flowcontrol) {
this.flowcontrol = flowcontrol;
}
public String getCs1() {
return cs1;
}
public void setCs1(String cs1) {
this.cs1 = cs1;
}
public String getCs2() {
return cs2;
}
public void setCs2(String cs2) {
this.cs2 = cs2;
}
public String getCs3() {
return cs3;
}
public void setCs3(String cs3) {
this.cs3 = cs3;
}
public String getCs4() {
return cs4;
}
public void setCs4(String cs4) {
this.cs4 = cs4;
}
public String getCs5() {
return cs5;
}
public void setCs5(String cs5) {
this.cs5 = cs5;
}
public String getCzyjkm() {
return czyjkm;
}
public void setCzyjkm(String czyjkm) {
this.czyjkm = czyjkm;
}
}

View File

@ -0,0 +1,65 @@
package com.hzya.frame.plugin.nxgrp.ztcs.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.nxgrp.sender.glZtcs.service.impl.SenderGlZtcsServiceImpl;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* (GlZtcs)表服务接口
*
* @author makejava
* @since 2024-07-01 15:27:12
*/
public class GlZtcsPluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(GlZtcsPluginInitializer.class);
@Autowired
private SenderGlZtcsServiceImpl senderGlZtcsService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "GlZtcsPlugin";
}
@Override
public String getPluginName() {
return "GlZtcsPlugin插件";
}
@Override
public String getPluginLabel() {
return "GlZtcsPlugin";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("==========开始定时执行GRPU8账套信息同步============");
JsonResultEntity jsonResultEntity = senderGlZtcsService.glZtcsSynchronization(requestJson);
return jsonResultEntity;
}catch (Exception e){
logger.info("==========定时执行GRPU8账套信息同步错误{}============",e.getMessage());
e.printStackTrace();
}
return BaseResult.getSuccessMessageEntity("同步成功");
}
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.nxgrp.ztcs.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.nxgrp.ztcs.entity.GlZtcsEntity;
/**
* (GlZtcs)表服务接口
*
* @author makejava
* @since 2024-07-01 15:27:11
*/
public interface IGlZtcsService extends IBaseService<GlZtcsEntity, String>{
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.nxgrp.ztcs.service.impl;
import com.hzya.frame.plugin.nxgrp.ztcs.dao.IGlZtcsDao;
import com.hzya.frame.plugin.nxgrp.ztcs.entity.GlZtcsEntity;
import com.hzya.frame.plugin.nxgrp.ztcs.service.IGlZtcsService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* (GlZtcs)表服务实现类
*
* @author makejava
* @since 2024-07-01 15:27:12
*/
public class GlZtcsServiceImpl extends BaseService<GlZtcsEntity, String> implements IGlZtcsService {
private IGlZtcsDao glZtcsDao;
@Autowired
public void setGlZtcsDao(IGlZtcsDao dao) {
this.glZtcsDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.nxgrp.zyxx.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity;
/**
* (pubzyxx: table)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:42:54
*/
public interface IPubzyxxDao extends IBaseDao<PubzyxxEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.nxgrp.zyxx.dao.impl;
import com.hzya.frame.plugin.nxgrp.zyxx.dao.IPubzyxxDao;
import com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* (Pubzyxx)表数据库访问层
*
* @author makejava
* @since 2024-07-01 15:42:54
*/
public class PubzyxxDaoImpl extends MybatisGenericDao<PubzyxxEntity, String> implements IPubzyxxDao {
}

View File

@ -0,0 +1,366 @@
package com.hzya.frame.plugin.nxgrp.zyxx.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (Pubzyxx)实体类
*
* @author makejava
* @since 2024-07-01 15:42:54
*/
public class PubzyxxEntity extends BaseEntity {
private String gsdm;
private String kjnd;
private String zydm;
private String zyxm;
private String zjm;
private String xb;
private String bmdm;
private String zylb;
private String sfzh;
private String zw;
private String tel;
private String email;
private String jtzz;
private String csny;
private String whcd;
private String dzrq;
private String lzrq;
private String syzt;
private String glzt;
private String zyzp;
private Long scgzzn;
private Long jlrId;
private String jlRq;
private Long xgrId;
private String xgRq;
private String sjly;
private String bz;
private String password;
private String dfyh;
private String grzh;
private String gwkyh;
private String gwkzh;
private String wbdm;
private String zyzp1;
private String appsw;
private String imei;
private String bdmm;
private String isfirstlogin;
private String zj;
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 getZydm() {
return zydm;
}
public void setZydm(String zydm) {
this.zydm = zydm;
}
public String getZyxm() {
return zyxm;
}
public void setZyxm(String zyxm) {
this.zyxm = zyxm;
}
public String getZjm() {
return zjm;
}
public void setZjm(String zjm) {
this.zjm = zjm;
}
public String getXb() {
return xb;
}
public void setXb(String xb) {
this.xb = xb;
}
public String getBmdm() {
return bmdm;
}
public void setBmdm(String bmdm) {
this.bmdm = bmdm;
}
public String getZylb() {
return zylb;
}
public void setZylb(String zylb) {
this.zylb = zylb;
}
public String getSfzh() {
return sfzh;
}
public void setSfzh(String sfzh) {
this.sfzh = sfzh;
}
public String getZw() {
return zw;
}
public void setZw(String zw) {
this.zw = zw;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getJtzz() {
return jtzz;
}
public void setJtzz(String jtzz) {
this.jtzz = jtzz;
}
public String getCsny() {
return csny;
}
public void setCsny(String csny) {
this.csny = csny;
}
public String getWhcd() {
return whcd;
}
public void setWhcd(String whcd) {
this.whcd = whcd;
}
public String getDzrq() {
return dzrq;
}
public void setDzrq(String dzrq) {
this.dzrq = dzrq;
}
public String getLzrq() {
return lzrq;
}
public void setLzrq(String lzrq) {
this.lzrq = lzrq;
}
public String getSyzt() {
return syzt;
}
public void setSyzt(String syzt) {
this.syzt = syzt;
}
public String getGlzt() {
return glzt;
}
public void setGlzt(String glzt) {
this.glzt = glzt;
}
public String getZyzp() {
return zyzp;
}
public void setZyzp(String zyzp) {
this.zyzp = zyzp;
}
public Long getScgzzn() {
return scgzzn;
}
public void setScgzzn(Long scgzzn) {
this.scgzzn = scgzzn;
}
public Long getJlrId() {
return jlrId;
}
public void setJlrId(Long jlrId) {
this.jlrId = jlrId;
}
public String getJlRq() {
return jlRq;
}
public void setJlRq(String jlRq) {
this.jlRq = jlRq;
}
public Long getXgrId() {
return xgrId;
}
public void setXgrId(Long xgrId) {
this.xgrId = xgrId;
}
public String getXgRq() {
return xgRq;
}
public void setXgRq(String xgRq) {
this.xgRq = xgRq;
}
public String getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
public String getBz() {
return bz;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getDfyh() {
return dfyh;
}
public void setDfyh(String dfyh) {
this.dfyh = dfyh;
}
public String getGrzh() {
return grzh;
}
public void setGrzh(String grzh) {
this.grzh = grzh;
}
public String getGwkyh() {
return gwkyh;
}
public void setGwkyh(String gwkyh) {
this.gwkyh = gwkyh;
}
public String getGwkzh() {
return gwkzh;
}
public void setGwkzh(String gwkzh) {
this.gwkzh = gwkzh;
}
public String getWbdm() {
return wbdm;
}
public void setWbdm(String wbdm) {
this.wbdm = wbdm;
}
public String getZyzp1() {
return zyzp1;
}
public void setZyzp1(String zyzp1) {
this.zyzp1 = zyzp1;
}
public String getAppsw() {
return appsw;
}
public void setAppsw(String appsw) {
this.appsw = appsw;
}
public String getImei() {
return imei;
}
public void setImei(String imei) {
this.imei = imei;
}
public String getBdmm() {
return bdmm;
}
public void setBdmm(String bdmm) {
this.bdmm = bdmm;
}
public String getIsfirstlogin() {
return isfirstlogin;
}
public void setIsfirstlogin(String isfirstlogin) {
this.isfirstlogin = isfirstlogin;
}
public String getZj() {
return zj;
}
public void setZj(String zj) {
this.zj = zj;
}
}

View File

@ -0,0 +1,540 @@
<?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.nxgrp.zyxx.dao.impl.PubzyxxDaoImpl">
<resultMap id="get-PubzyxxEntity-result" type="com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity" >
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
<result property="zydm" column="zydm" jdbcType="VARCHAR"/>
<result property="zyxm" column="zyxm" jdbcType="VARCHAR"/>
<result property="zjm" column="zjm" jdbcType="VARCHAR"/>
<result property="xb" column="xb" jdbcType="VARCHAR"/>
<result property="bmdm" column="bmdm" jdbcType="VARCHAR"/>
<result property="zylb" column="zylb" jdbcType="VARCHAR"/>
<result property="sfzh" column="sfzh" jdbcType="VARCHAR"/>
<result property="zw" column="zw" jdbcType="VARCHAR"/>
<result property="tel" column="tel" jdbcType="VARCHAR"/>
<result property="email" column="email" jdbcType="VARCHAR"/>
<result property="jtzz" column="jtzz" jdbcType="VARCHAR"/>
<result property="csny" column="csny" jdbcType="VARCHAR"/>
<result property="whcd" column="whcd" jdbcType="VARCHAR"/>
<result property="dzrq" column="dzrq" jdbcType="VARCHAR"/>
<result property="lzrq" column="lzrq" jdbcType="VARCHAR"/>
<result property="syzt" column="syzt" jdbcType="VARCHAR"/>
<result property="glzt" column="GLzt" jdbcType="VARCHAR"/>
<result property="zyzp" column="zyzp" jdbcType="VARCHAR"/>
<result property="scgzzn" column="scgzzn" jdbcType="INTEGER"/>
<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="sjly" column="Sjly" jdbcType="VARCHAR"/>
<result property="bz" column="bz" jdbcType="VARCHAR"/>
<result property="password" column="password" jdbcType="VARCHAR"/>
<result property="dfyh" column="DFYH" jdbcType="VARCHAR"/>
<result property="grzh" column="GRZH" jdbcType="VARCHAR"/>
<result property="gwkyh" column="GWKYH" jdbcType="VARCHAR"/>
<result property="gwkzh" column="GWKZH" jdbcType="VARCHAR"/>
<result property="wbdm" column="WBDM" jdbcType="VARCHAR"/>
<result property="zyzp1" column="zyzp1" jdbcType="VARCHAR"/>
<result property="appsw" column="appsw" jdbcType="VARCHAR"/>
<result property="imei" column="imei" jdbcType="VARCHAR"/>
<result property="bdmm" column="bdmm" jdbcType="VARCHAR"/>
<result property="isfirstlogin" column="isFirstLogin" jdbcType="VARCHAR"/>
<result property="zj" column="ZJ" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "PubzyxxEntity_Base_Column_List">
gsdm
,kjnd
,zydm
,zyxm
,zjm
,xb
,bmdm
,zylb
,sfzh
,zw
,tel
,email
,jtzz
,csny
,whcd
,dzrq
,lzrq
,syzt
,GLzt
,zyzp
,scgzzn
,JLR_ID
,JL_RQ
,XGR_ID
,XG_RQ
,Sjly
,bz
,password
,DFYH
,GRZH
,GWKYH
,GWKZH
,WBDM
,zyzp1
,appsw
,imei
,bdmm
,isFirstLogin
,ZJ
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-PubzyxxEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity">
select
<include refid="PubzyxxEntity_Base_Column_List" />
from pubzyxx
<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="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
<if test="zyxm != null and zyxm != ''"> and zyxm = #{zyxm} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="xb != null and xb != ''"> and xb = #{xb} </if>
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
<if test="zylb != null and zylb != ''"> and zylb = #{zylb} </if>
<if test="sfzh != null and sfzh != ''"> and sfzh = #{sfzh} </if>
<if test="zw != null and zw != ''"> and zw = #{zw} </if>
<if test="tel != null and tel != ''"> and tel = #{tel} </if>
<if test="email != null and email != ''"> and email = #{email} </if>
<if test="jtzz != null and jtzz != ''"> and jtzz = #{jtzz} </if>
<if test="csny != null and csny != ''"> and csny = #{csny} </if>
<if test="whcd != null and whcd != ''"> and whcd = #{whcd} </if>
<if test="dzrq != null and dzrq != ''"> and dzrq = #{dzrq} </if>
<if test="lzrq != null and lzrq != ''"> and lzrq = #{lzrq} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="glzt != null and glzt != ''"> and GLzt = #{glzt} </if>
<if test="zyzp != null and zyzp != ''"> and zyzp = #{zyzp} </if>
<if test="scgzzn != null"> and scgzzn = #{scgzzn} </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="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="bz != null and bz != ''"> and bz = #{bz} </if>
<if test="password != null and password != ''"> and password = #{password} </if>
<if test="dfyh != null and dfyh != ''"> and DFYH = #{dfyh} </if>
<if test="grzh != null and grzh != ''"> and GRZH = #{grzh} </if>
<if test="gwkyh != null and gwkyh != ''"> and GWKYH = #{gwkyh} </if>
<if test="gwkzh != null and gwkzh != ''"> and GWKZH = #{gwkzh} </if>
<if test="wbdm != null and wbdm != ''"> and WBDM = #{wbdm} </if>
<if test="zyzp1 != null and zyzp1 != ''"> and zyzp1 = #{zyzp1} </if>
<if test="appsw != null and appsw != ''"> and appsw = #{appsw} </if>
<if test="imei != null and imei != ''"> and imei = #{imei} </if>
<if test="bdmm != null and bdmm != ''"> and bdmm = #{bdmm} </if>
<if test="isfirstlogin != null and isfirstlogin != ''"> and isFirstLogin = #{isfirstlogin} </if>
<if test="zj != null and zj != ''"> and ZJ = #{zj} </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.nxgrp.zyxx.entity.PubzyxxEntity">
select count(1) from pubzyxx
<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="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
<if test="zyxm != null and zyxm != ''"> and zyxm = #{zyxm} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="xb != null and xb != ''"> and xb = #{xb} </if>
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
<if test="zylb != null and zylb != ''"> and zylb = #{zylb} </if>
<if test="sfzh != null and sfzh != ''"> and sfzh = #{sfzh} </if>
<if test="zw != null and zw != ''"> and zw = #{zw} </if>
<if test="tel != null and tel != ''"> and tel = #{tel} </if>
<if test="email != null and email != ''"> and email = #{email} </if>
<if test="jtzz != null and jtzz != ''"> and jtzz = #{jtzz} </if>
<if test="csny != null and csny != ''"> and csny = #{csny} </if>
<if test="whcd != null and whcd != ''"> and whcd = #{whcd} </if>
<if test="dzrq != null and dzrq != ''"> and dzrq = #{dzrq} </if>
<if test="lzrq != null and lzrq != ''"> and lzrq = #{lzrq} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="glzt != null and glzt != ''"> and GLzt = #{glzt} </if>
<if test="zyzp != null and zyzp != ''"> and zyzp = #{zyzp} </if>
<if test="scgzzn != null"> and scgzzn = #{scgzzn} </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="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="bz != null and bz != ''"> and bz = #{bz} </if>
<if test="password != null and password != ''"> and password = #{password} </if>
<if test="dfyh != null and dfyh != ''"> and DFYH = #{dfyh} </if>
<if test="grzh != null and grzh != ''"> and GRZH = #{grzh} </if>
<if test="gwkyh != null and gwkyh != ''"> and GWKYH = #{gwkyh} </if>
<if test="gwkzh != null and gwkzh != ''"> and GWKZH = #{gwkzh} </if>
<if test="wbdm != null and wbdm != ''"> and WBDM = #{wbdm} </if>
<if test="zyzp1 != null and zyzp1 != ''"> and zyzp1 = #{zyzp1} </if>
<if test="appsw != null and appsw != ''"> and appsw = #{appsw} </if>
<if test="imei != null and imei != ''"> and imei = #{imei} </if>
<if test="bdmm != null and bdmm != ''"> and bdmm = #{bdmm} </if>
<if test="isfirstlogin != null and isfirstlogin != ''"> and isFirstLogin = #{isfirstlogin} </if>
<if test="zj != null and zj != ''"> and ZJ = #{zj} </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-PubzyxxEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity">
select
<include refid="PubzyxxEntity_Base_Column_List" />
from pubzyxx
<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="zydm != null and zydm != ''"> and zydm like concat('%',#{zydm},'%') </if>
<if test="zyxm != null and zyxm != ''"> and zyxm like concat('%',#{zyxm},'%') </if>
<if test="zjm != null and zjm != ''"> and zjm like concat('%',#{zjm},'%') </if>
<if test="xb != null and xb != ''"> and xb like concat('%',#{xb},'%') </if>
<if test="bmdm != null and bmdm != ''"> and bmdm like concat('%',#{bmdm},'%') </if>
<if test="zylb != null and zylb != ''"> and zylb like concat('%',#{zylb},'%') </if>
<if test="sfzh != null and sfzh != ''"> and sfzh like concat('%',#{sfzh},'%') </if>
<if test="zw != null and zw != ''"> and zw like concat('%',#{zw},'%') </if>
<if test="tel != null and tel != ''"> and tel like concat('%',#{tel},'%') </if>
<if test="email != null and email != ''"> and email like concat('%',#{email},'%') </if>
<if test="jtzz != null and jtzz != ''"> and jtzz like concat('%',#{jtzz},'%') </if>
<if test="csny != null and csny != ''"> and csny like concat('%',#{csny},'%') </if>
<if test="whcd != null and whcd != ''"> and whcd like concat('%',#{whcd},'%') </if>
<if test="dzrq != null and dzrq != ''"> and dzrq like concat('%',#{dzrq},'%') </if>
<if test="lzrq != null and lzrq != ''"> and lzrq like concat('%',#{lzrq},'%') </if>
<if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </if>
<if test="glzt != null and glzt != ''"> and GLzt like concat('%',#{glzt},'%') </if>
<if test="zyzp != null and zyzp != ''"> and zyzp like concat('%',#{zyzp},'%') </if>
<if test="scgzzn != null"> and scgzzn like concat('%',#{scgzzn},'%') </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="sjly != null and sjly != ''"> and Sjly like concat('%',#{sjly},'%') </if>
<if test="bz != null and bz != ''"> and bz like concat('%',#{bz},'%') </if>
<if test="password != null and password != ''"> and password like concat('%',#{password},'%') </if>
<if test="dfyh != null and dfyh != ''"> and DFYH like concat('%',#{dfyh},'%') </if>
<if test="grzh != null and grzh != ''"> and GRZH like concat('%',#{grzh},'%') </if>
<if test="gwkyh != null and gwkyh != ''"> and GWKYH like concat('%',#{gwkyh},'%') </if>
<if test="gwkzh != null and gwkzh != ''"> and GWKZH like concat('%',#{gwkzh},'%') </if>
<if test="wbdm != null and wbdm != ''"> and WBDM like concat('%',#{wbdm},'%') </if>
<if test="zyzp1 != null and zyzp1 != ''"> and zyzp1 like concat('%',#{zyzp1},'%') </if>
<if test="appsw != null and appsw != ''"> and appsw like concat('%',#{appsw},'%') </if>
<if test="imei != null and imei != ''"> and imei like concat('%',#{imei},'%') </if>
<if test="bdmm != null and bdmm != ''"> and bdmm like concat('%',#{bdmm},'%') </if>
<if test="isfirstlogin != null and isfirstlogin != ''"> and isFirstLogin like concat('%',#{isfirstlogin},'%') </if>
<if test="zj != null and zj != ''"> and ZJ like concat('%',#{zj},'%') </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="Pubzyxxentity_list_or" resultMap="get-PubzyxxEntity-result" parameterType = "com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity">
select
<include refid="PubzyxxEntity_Base_Column_List" />
from pubzyxx
<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="zydm != null and zydm != ''"> or zydm = #{zydm} </if>
<if test="zyxm != null and zyxm != ''"> or zyxm = #{zyxm} </if>
<if test="zjm != null and zjm != ''"> or zjm = #{zjm} </if>
<if test="xb != null and xb != ''"> or xb = #{xb} </if>
<if test="bmdm != null and bmdm != ''"> or bmdm = #{bmdm} </if>
<if test="zylb != null and zylb != ''"> or zylb = #{zylb} </if>
<if test="sfzh != null and sfzh != ''"> or sfzh = #{sfzh} </if>
<if test="zw != null and zw != ''"> or zw = #{zw} </if>
<if test="tel != null and tel != ''"> or tel = #{tel} </if>
<if test="email != null and email != ''"> or email = #{email} </if>
<if test="jtzz != null and jtzz != ''"> or jtzz = #{jtzz} </if>
<if test="csny != null and csny != ''"> or csny = #{csny} </if>
<if test="whcd != null and whcd != ''"> or whcd = #{whcd} </if>
<if test="dzrq != null and dzrq != ''"> or dzrq = #{dzrq} </if>
<if test="lzrq != null and lzrq != ''"> or lzrq = #{lzrq} </if>
<if test="syzt != null and syzt != ''"> or syzt = #{syzt} </if>
<if test="glzt != null and glzt != ''"> or GLzt = #{glzt} </if>
<if test="zyzp != null and zyzp != ''"> or zyzp = #{zyzp} </if>
<if test="scgzzn != null"> or scgzzn = #{scgzzn} </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="sjly != null and sjly != ''"> or Sjly = #{sjly} </if>
<if test="bz != null and bz != ''"> or bz = #{bz} </if>
<if test="password != null and password != ''"> or password = #{password} </if>
<if test="dfyh != null and dfyh != ''"> or DFYH = #{dfyh} </if>
<if test="grzh != null and grzh != ''"> or GRZH = #{grzh} </if>
<if test="gwkyh != null and gwkyh != ''"> or GWKYH = #{gwkyh} </if>
<if test="gwkzh != null and gwkzh != ''"> or GWKZH = #{gwkzh} </if>
<if test="wbdm != null and wbdm != ''"> or WBDM = #{wbdm} </if>
<if test="zyzp1 != null and zyzp1 != ''"> or zyzp1 = #{zyzp1} </if>
<if test="appsw != null and appsw != ''"> or appsw = #{appsw} </if>
<if test="imei != null and imei != ''"> or imei = #{imei} </if>
<if test="bdmm != null and bdmm != ''"> or bdmm = #{bdmm} </if>
<if test="isfirstlogin != null and isfirstlogin != ''"> or isFirstLogin = #{isfirstlogin} </if>
<if test="zj != null and zj != ''"> or ZJ = #{zj} </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.nxgrp.zyxx.entity.PubzyxxEntity" keyProperty="" useGeneratedKeys="true">
insert into pubzyxx(
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
<if test="zydm != null and zydm != ''"> zydm , </if>
<if test="zyxm != null and zyxm != ''"> zyxm , </if>
<if test="zjm != null and zjm != ''"> zjm , </if>
<if test="xb != null and xb != ''"> xb , </if>
<if test="bmdm != null and bmdm != ''"> bmdm , </if>
<if test="zylb != null and zylb != ''"> zylb , </if>
<if test="sfzh != null and sfzh != ''"> sfzh , </if>
<if test="zw != null and zw != ''"> zw , </if>
<if test="tel != null and tel != ''"> tel , </if>
<if test="email != null and email != ''"> email , </if>
<if test="jtzz != null and jtzz != ''"> jtzz , </if>
<if test="csny != null and csny != ''"> csny , </if>
<if test="whcd != null and whcd != ''"> whcd , </if>
<if test="dzrq != null and dzrq != ''"> dzrq , </if>
<if test="lzrq != null and lzrq != ''"> lzrq , </if>
<if test="syzt != null and syzt != ''"> syzt , </if>
<if test="glzt != null and glzt != ''"> GLzt , </if>
<if test="zyzp != null and zyzp != ''"> zyzp , </if>
<if test="scgzzn != null"> scgzzn , </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="sjly != null and sjly != ''"> Sjly , </if>
<if test="bz != null and bz != ''"> bz , </if>
<if test="password != null and password != ''"> password , </if>
<if test="dfyh != null and dfyh != ''"> DFYH , </if>
<if test="grzh != null and grzh != ''"> GRZH , </if>
<if test="gwkyh != null and gwkyh != ''"> GWKYH , </if>
<if test="gwkzh != null and gwkzh != ''"> GWKZH , </if>
<if test="wbdm != null and wbdm != ''"> WBDM , </if>
<if test="zyzp1 != null and zyzp1 != ''"> zyzp1 , </if>
<if test="appsw != null and appsw != ''"> appsw , </if>
<if test="imei != null and imei != ''"> imei , </if>
<if test="bdmm != null and bdmm != ''"> bdmm , </if>
<if test="isfirstlogin != null and isfirstlogin != ''"> isFirstLogin , </if>
<if test="zj != null and zj != ''"> ZJ , </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="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
<if test="zydm != null and zydm != ''"> #{zydm} ,</if>
<if test="zyxm != null and zyxm != ''"> #{zyxm} ,</if>
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
<if test="xb != null and xb != ''"> #{xb} ,</if>
<if test="bmdm != null and bmdm != ''"> #{bmdm} ,</if>
<if test="zylb != null and zylb != ''"> #{zylb} ,</if>
<if test="sfzh != null and sfzh != ''"> #{sfzh} ,</if>
<if test="zw != null and zw != ''"> #{zw} ,</if>
<if test="tel != null and tel != ''"> #{tel} ,</if>
<if test="email != null and email != ''"> #{email} ,</if>
<if test="jtzz != null and jtzz != ''"> #{jtzz} ,</if>
<if test="csny != null and csny != ''"> #{csny} ,</if>
<if test="whcd != null and whcd != ''"> #{whcd} ,</if>
<if test="dzrq != null and dzrq != ''"> #{dzrq} ,</if>
<if test="lzrq != null and lzrq != ''"> #{lzrq} ,</if>
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
<if test="glzt != null and glzt != ''"> #{glzt} ,</if>
<if test="zyzp != null and zyzp != ''"> #{zyzp} ,</if>
<if test="scgzzn != null"> #{scgzzn} ,</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="sjly != null and sjly != ''"> #{sjly} ,</if>
<if test="bz != null and bz != ''"> #{bz} ,</if>
<if test="password != null and password != ''"> #{password} ,</if>
<if test="dfyh != null and dfyh != ''"> #{dfyh} ,</if>
<if test="grzh != null and grzh != ''"> #{grzh} ,</if>
<if test="gwkyh != null and gwkyh != ''"> #{gwkyh} ,</if>
<if test="gwkzh != null and gwkzh != ''"> #{gwkzh} ,</if>
<if test="wbdm != null and wbdm != ''"> #{wbdm} ,</if>
<if test="zyzp1 != null and zyzp1 != ''"> #{zyzp1} ,</if>
<if test="appsw != null and appsw != ''"> #{appsw} ,</if>
<if test="imei != null and imei != ''"> #{imei} ,</if>
<if test="bdmm != null and bdmm != ''"> #{bdmm} ,</if>
<if test="isfirstlogin != null and isfirstlogin != ''"> #{isfirstlogin} ,</if>
<if test="zj != null and zj != ''"> #{zj} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from pubzyxx a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
insert into pubzyxx(gsdm, kjnd, zydm, zyxm, zjm, xb, bmdm, zylb, sfzh, zw, tel, email, jtzz, csny, whcd, dzrq, lzrq, syzt, GLzt, zyzp, scgzzn, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, bz, password, DFYH, GRZH, GWKYH, GWKZH, WBDM, zyzp1, appsw, imei, bdmm, isFirstLogin, ZJ, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.kjnd},#{entity.zydm},#{entity.zyxm},#{entity.zjm},#{entity.xb},#{entity.bmdm},#{entity.zylb},#{entity.sfzh},#{entity.zw},#{entity.tel},#{entity.email},#{entity.jtzz},#{entity.csny},#{entity.whcd},#{entity.dzrq},#{entity.lzrq},#{entity.syzt},#{entity.glzt},#{entity.zyzp},#{entity.scgzzn},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.bz},#{entity.password},#{entity.dfyh},#{entity.grzh},#{entity.gwkyh},#{entity.gwkzh},#{entity.wbdm},#{entity.zyzp1},#{entity.appsw},#{entity.imei},#{entity.bdmm},#{entity.isfirstlogin},#{entity.zj}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
insert into pubzyxx(gsdm, kjnd, zydm, zyxm, zjm, xb, bmdm, zylb, sfzh, zw, tel, email, jtzz, csny, whcd, dzrq, lzrq, syzt, GLzt, zyzp, scgzzn, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, bz, password, DFYH, GRZH, GWKYH, GWKZH, WBDM, zyzp1, appsw, imei, bdmm, isFirstLogin, ZJ)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.gsdm},#{entity.kjnd},#{entity.zydm},#{entity.zyxm},#{entity.zjm},#{entity.xb},#{entity.bmdm},#{entity.zylb},#{entity.sfzh},#{entity.zw},#{entity.tel},#{entity.email},#{entity.jtzz},#{entity.csny},#{entity.whcd},#{entity.dzrq},#{entity.lzrq},#{entity.syzt},#{entity.glzt},#{entity.zyzp},#{entity.scgzzn},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.bz},#{entity.password},#{entity.dfyh},#{entity.grzh},#{entity.gwkyh},#{entity.gwkzh},#{entity.wbdm},#{entity.zyzp1},#{entity.appsw},#{entity.imei},#{entity.bdmm},#{entity.isfirstlogin},#{entity.zj})
</foreach>
on duplicate key update
gsdm = values(gsdm),
kjnd = values(kjnd),
zydm = values(zydm),
zyxm = values(zyxm),
zjm = values(zjm),
xb = values(xb),
bmdm = values(bmdm),
zylb = values(zylb),
sfzh = values(sfzh),
zw = values(zw),
tel = values(tel),
email = values(email),
jtzz = values(jtzz),
csny = values(csny),
whcd = values(whcd),
dzrq = values(dzrq),
lzrq = values(lzrq),
syzt = values(syzt),
GLzt = values(GLzt),
zyzp = values(zyzp),
scgzzn = values(scgzzn),
JLR_ID = values(JLR_ID),
JL_RQ = values(JL_RQ),
XGR_ID = values(XGR_ID),
XG_RQ = values(XG_RQ),
Sjly = values(Sjly),
bz = values(bz),
password = values(password),
DFYH = values(DFYH),
GRZH = values(GRZH),
GWKYH = values(GWKYH),
GWKZH = values(GWKZH),
WBDM = values(WBDM),
zyzp1 = values(zyzp1),
appsw = values(appsw),
imei = values(imei),
bdmm = values(bdmm),
isFirstLogin = values(isFirstLogin),
ZJ = values(ZJ)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity" >
update pubzyxx set
<trim suffix="" suffixOverrides=",">
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
<if test="kjnd != null and kjnd != ''"> kjnd = #{kjnd},</if>
<if test="zydm != null and zydm != ''"> zydm = #{zydm},</if>
<if test="zyxm != null and zyxm != ''"> zyxm = #{zyxm},</if>
<if test="zjm != null and zjm != ''"> zjm = #{zjm},</if>
<if test="xb != null and xb != ''"> xb = #{xb},</if>
<if test="bmdm != null and bmdm != ''"> bmdm = #{bmdm},</if>
<if test="zylb != null and zylb != ''"> zylb = #{zylb},</if>
<if test="sfzh != null and sfzh != ''"> sfzh = #{sfzh},</if>
<if test="zw != null and zw != ''"> zw = #{zw},</if>
<if test="tel != null and tel != ''"> tel = #{tel},</if>
<if test="email != null and email != ''"> email = #{email},</if>
<if test="jtzz != null and jtzz != ''"> jtzz = #{jtzz},</if>
<if test="csny != null and csny != ''"> csny = #{csny},</if>
<if test="whcd != null and whcd != ''"> whcd = #{whcd},</if>
<if test="dzrq != null and dzrq != ''"> dzrq = #{dzrq},</if>
<if test="lzrq != null and lzrq != ''"> lzrq = #{lzrq},</if>
<if test="syzt != null and syzt != ''"> syzt = #{syzt},</if>
<if test="glzt != null and glzt != ''"> GLzt = #{glzt},</if>
<if test="zyzp != null and zyzp != ''"> zyzp = #{zyzp},</if>
<if test="scgzzn != null"> scgzzn = #{scgzzn},</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="sjly != null and sjly != ''"> Sjly = #{sjly},</if>
<if test="bz != null and bz != ''"> bz = #{bz},</if>
<if test="password != null and password != ''"> password = #{password},</if>
<if test="dfyh != null and dfyh != ''"> DFYH = #{dfyh},</if>
<if test="grzh != null and grzh != ''"> GRZH = #{grzh},</if>
<if test="gwkyh != null and gwkyh != ''"> GWKYH = #{gwkyh},</if>
<if test="gwkzh != null and gwkzh != ''"> GWKZH = #{gwkzh},</if>
<if test="wbdm != null and wbdm != ''"> WBDM = #{wbdm},</if>
<if test="zyzp1 != null and zyzp1 != ''"> zyzp1 = #{zyzp1},</if>
<if test="appsw != null and appsw != ''"> appsw = #{appsw},</if>
<if test="imei != null and imei != ''"> imei = #{imei},</if>
<if test="bdmm != null and bdmm != ''"> bdmm = #{bdmm},</if>
<if test="isfirstlogin != null and isfirstlogin != ''"> isFirstLogin = #{isfirstlogin},</if>
<if test="zj != null and zj != ''"> ZJ = #{zj},</if>
</trim>
where id= #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity" >
update pubzyxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where id= #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity" >
update pubzyxx 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="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
<if test="zyxm != null and zyxm != ''"> and zyxm = #{zyxm} </if>
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
<if test="xb != null and xb != ''"> and xb = #{xb} </if>
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
<if test="zylb != null and zylb != ''"> and zylb = #{zylb} </if>
<if test="sfzh != null and sfzh != ''"> and sfzh = #{sfzh} </if>
<if test="zw != null and zw != ''"> and zw = #{zw} </if>
<if test="tel != null and tel != ''"> and tel = #{tel} </if>
<if test="email != null and email != ''"> and email = #{email} </if>
<if test="jtzz != null and jtzz != ''"> and jtzz = #{jtzz} </if>
<if test="csny != null and csny != ''"> and csny = #{csny} </if>
<if test="whcd != null and whcd != ''"> and whcd = #{whcd} </if>
<if test="dzrq != null and dzrq != ''"> and dzrq = #{dzrq} </if>
<if test="lzrq != null and lzrq != ''"> and lzrq = #{lzrq} </if>
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
<if test="glzt != null and glzt != ''"> and GLzt = #{glzt} </if>
<if test="zyzp != null and zyzp != ''"> and zyzp = #{zyzp} </if>
<if test="scgzzn != null"> and scgzzn = #{scgzzn} </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="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
<if test="bz != null and bz != ''"> and bz = #{bz} </if>
<if test="password != null and password != ''"> and password = #{password} </if>
<if test="dfyh != null and dfyh != ''"> and DFYH = #{dfyh} </if>
<if test="grzh != null and grzh != ''"> and GRZH = #{grzh} </if>
<if test="gwkyh != null and gwkyh != ''"> and GWKYH = #{gwkyh} </if>
<if test="gwkzh != null and gwkzh != ''"> and GWKZH = #{gwkzh} </if>
<if test="wbdm != null and wbdm != ''"> and WBDM = #{wbdm} </if>
<if test="zyzp1 != null and zyzp1 != ''"> and zyzp1 = #{zyzp1} </if>
<if test="appsw != null and appsw != ''"> and appsw = #{appsw} </if>
<if test="imei != null and imei != ''"> and imei = #{imei} </if>
<if test="bdmm != null and bdmm != ''"> and bdmm = #{bdmm} </if>
<if test="isfirstlogin != null and isfirstlogin != ''"> and isFirstLogin = #{isfirstlogin} </if>
<if test="zj != null and zj != ''"> and ZJ = #{zj} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from pubzyxx where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,65 @@
package com.hzya.frame.plugin.nxgrp.zyxx.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.nxgrp.sender.pubzyxx.service.impl.SenderPubzyxxServiceImpl;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* (Pubzyxx)表服务接口
*
* @author makejava
* @since 2024-07-01 15:42:54
*/
public class PubzyxxPluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(PubzyxxPluginInitializer.class);
@Autowired
private SenderPubzyxxServiceImpl senderPubzyxxService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "PubzyxxPlugin";
}
@Override
public String getPluginName() {
return "PubzyxxPlugin插件";
}
@Override
public String getPluginLabel() {
return "PubzyxxPlugin";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("==========开始定时执行GRPU8人员信息同步============");
JsonResultEntity jsonResultEntity = senderPubzyxxService.pubzyxxSynchronization(requestJson);
return jsonResultEntity;
}catch (Exception e){
logger.info("==========定时执行GRPU8人员信息同步错误{}============",e.getMessage());
e.printStackTrace();
}
return BaseResult.getSuccessMessageEntity("同步成功");
}
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.nxgrp.zyxx.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity;
/**
* (Pubzyxx)表服务接口
*
* @author makejava
* @since 2024-07-01 15:42:54
*/
public interface IPubzyxxService extends IBaseService<PubzyxxEntity, String>{
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.nxgrp.zyxx.service.impl;
import com.hzya.frame.plugin.nxgrp.zyxx.dao.IPubzyxxDao;
import com.hzya.frame.plugin.nxgrp.zyxx.entity.PubzyxxEntity;
import com.hzya.frame.plugin.nxgrp.zyxx.service.IPubzyxxService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* (Pubzyxx)表服务实现类
*
* @author makejava
* @since 2024-07-01 15:42:54
*/
public class PubzyxxServiceImpl extends BaseService<PubzyxxEntity, String> implements IPubzyxxService {
private IPubzyxxDao pubzyxxDao;
@Autowired
public void setPubzyxxDao(IPubzyxxDao dao) {
this.pubzyxxDao = dao;
this.dao = dao;
}
}