GRPU8
This commit is contained in:
parent
d5e4699ea4
commit
a92d144e45
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:47
|
||||
*/
|
||||
public interface IGbiZbsyrecDao extends IBaseDao<GbiZbsyrecEntity,String> {
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.impl;
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.IGbiZbsyrecDao;
|
||||
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:48
|
||||
*/
|
||||
@Repository(value = "gbiZbsyrecDao")
|
||||
public class GbiZbsyrecDaoImpl extends MybatisGenericDao<GbiZbsyrecEntity,String> implements IGbiZbsyrecDao {
|
||||
}
|
|
@ -0,0 +1,186 @@
|
|||
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:指标使用记录表
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/16 22:04
|
||||
*/
|
||||
|
||||
public class GbiZbsyrecEntity extends BaseEntity {
|
||||
private String gsdm;//公司代码
|
||||
private String kjnd;//会计年度
|
||||
private String module;
|
||||
private String djlx;
|
||||
private String djId;
|
||||
private String djflh;
|
||||
private String djflmx;
|
||||
private String djywrq;//单据日期
|
||||
private String djzt;
|
||||
private String jhId;//计划id
|
||||
private String djje;//金额
|
||||
private String sl;
|
||||
private String djzy;//摘要
|
||||
private String szfx;
|
||||
private String zblb;
|
||||
private String jdzb;
|
||||
private String czlx;
|
||||
private String zzbz;
|
||||
private String ywdjId;
|
||||
|
||||
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 getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(String module) {
|
||||
this.module = module;
|
||||
}
|
||||
|
||||
public String getDjlx() {
|
||||
return djlx;
|
||||
}
|
||||
|
||||
public void setDjlx(String djlx) {
|
||||
this.djlx = djlx;
|
||||
}
|
||||
|
||||
public String getDjId() {
|
||||
return djId;
|
||||
}
|
||||
|
||||
public void setDjId(String djId) {
|
||||
this.djId = djId;
|
||||
}
|
||||
|
||||
public String getDjflh() {
|
||||
return djflh;
|
||||
}
|
||||
|
||||
public void setDjflh(String djflh) {
|
||||
this.djflh = djflh;
|
||||
}
|
||||
|
||||
public String getDjflmx() {
|
||||
return djflmx;
|
||||
}
|
||||
|
||||
public void setDjflmx(String djflmx) {
|
||||
this.djflmx = djflmx;
|
||||
}
|
||||
|
||||
public String getDjywrq() {
|
||||
return djywrq;
|
||||
}
|
||||
|
||||
public void setDjywrq(String djywrq) {
|
||||
this.djywrq = djywrq;
|
||||
}
|
||||
|
||||
public String getDjzt() {
|
||||
return djzt;
|
||||
}
|
||||
|
||||
public void setDjzt(String djzt) {
|
||||
this.djzt = djzt;
|
||||
}
|
||||
|
||||
public String getJhId() {
|
||||
return jhId;
|
||||
}
|
||||
|
||||
public void setJhId(String jhId) {
|
||||
this.jhId = jhId;
|
||||
}
|
||||
|
||||
public String getDjje() {
|
||||
return djje;
|
||||
}
|
||||
|
||||
public void setDjje(String djje) {
|
||||
this.djje = djje;
|
||||
}
|
||||
|
||||
public String getSl() {
|
||||
return sl;
|
||||
}
|
||||
|
||||
public void setSl(String sl) {
|
||||
this.sl = sl;
|
||||
}
|
||||
|
||||
public String getDjzy() {
|
||||
return djzy;
|
||||
}
|
||||
|
||||
public void setDjzy(String djzy) {
|
||||
this.djzy = djzy;
|
||||
}
|
||||
|
||||
public String getSzfx() {
|
||||
return szfx;
|
||||
}
|
||||
|
||||
public void setSzfx(String szfx) {
|
||||
this.szfx = szfx;
|
||||
}
|
||||
|
||||
public String getZblb() {
|
||||
return zblb;
|
||||
}
|
||||
|
||||
public void setZblb(String zblb) {
|
||||
this.zblb = zblb;
|
||||
}
|
||||
|
||||
public String getJdzb() {
|
||||
return jdzb;
|
||||
}
|
||||
|
||||
public void setJdzb(String jdzb) {
|
||||
this.jdzb = jdzb;
|
||||
}
|
||||
|
||||
public String getCzlx() {
|
||||
return czlx;
|
||||
}
|
||||
|
||||
public void setCzlx(String czlx) {
|
||||
this.czlx = czlx;
|
||||
}
|
||||
|
||||
public String getZzbz() {
|
||||
return zzbz;
|
||||
}
|
||||
|
||||
public void setZzbz(String zzbz) {
|
||||
this.zzbz = zzbz;
|
||||
}
|
||||
|
||||
public String getYwdjId() {
|
||||
return ywdjId;
|
||||
}
|
||||
|
||||
public void setYwdjId(String ywdjId) {
|
||||
this.ywdjId = ywdjId;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,170 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.impl.GbiZbsyrecDaoImpl">
|
||||
<resultMap id="get-GbiZbsyrecEntity-result" type="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
<result property="module" column="module" jdbcType="VARCHAR"/>
|
||||
<result property="djlx" column="djlx" />
|
||||
<result property="gsdm" column="gsdm" />
|
||||
<result property="kjnd" column="kjnd" />
|
||||
<result property="djId" column="djId" />
|
||||
<result property="djflh" column="djflh"/>
|
||||
<result property="djflmx" column="djflmx" />
|
||||
<result property="djywrq" column="djywrq" />
|
||||
<result property="djzt" column="djzt" />
|
||||
<result property="jhId" column="jhId" />
|
||||
<result property="djje" column="djje" />
|
||||
<result property="sl" column="sl" />
|
||||
<result property="djzy" column="djzy" />
|
||||
<result property="szfx" column="szfx" />
|
||||
<result property="zblb" column="zblb" />
|
||||
<result property="jdzb" column="jdzb" />
|
||||
<result property="czlx" column="czlx" />
|
||||
<result property="zzbz" column="zzbz" />
|
||||
<result property="ywdjId" column="ywdjId" />
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="gbiZbsyrecEntity_Base_Column_List">
|
||||
GSDM,KJND
|
||||
</sql>
|
||||
|
||||
<select id="GbiZbsyrecEntity_list_base" resultMap="get-GbiZbsyrecEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
select
|
||||
*
|
||||
from
|
||||
GBI_ZBSYREC
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="gsdm != null and gsdm !='' "> GSDM = #{gsdm} </if>
|
||||
<if test="kjnd != null and kjnd !='' "> and KJND = #{kjnd} </if>
|
||||
<if test="module != null and module !='' "> and MODULE = #{module} </if>
|
||||
<if test="djlx != null and djlx !='' "> and DJLX = #{djlx} </if>
|
||||
<if test="djId != null and djId !='' ">and DJID =#{djId} </if>
|
||||
<if test="djflh != null and djflh !=''"> and DJFLH =#{djflh} </if>
|
||||
<if test="djflmx != null and djflmx !='' ">and DJFLMX =#{djflmx}</if>
|
||||
<if test="djywrq != null and djywrq !='' ">and DJYWRQ =#{djywrq} </if>
|
||||
<if test="djzt != null and djzt !='' ">and DJZT =#{djzt}</if>
|
||||
<if test="jhId != null and jhId !='' ">and JHID =#{jhId} </if>
|
||||
<if test="djje != null and djje !='' ">and DJJE =#{djje}</if>
|
||||
<if test="sl != null and sl !=''">and SL =#{sl} </if>
|
||||
<if test="djzy != null and djzy !='' ">and DJZY =#{djzy} </if>
|
||||
<if test="szfx != null and szfx !='' ">and SZFX =#{szfx} </if>
|
||||
<if test="zblb != null and zblb !='' ">and ZBLB =#{zblb} </if>
|
||||
<if test="jdzb != null and jdzb !='' ">and JDBZ =#{jdzb} </if>
|
||||
<if test="czlx != null and czlx !='' ">and CZLX =#{czlx} </if>
|
||||
<if test="zzbz != null and zzbz !='' ">and ZZBZ =#{zzbz}</if>
|
||||
<if test="ywdjId != null and ywdjId !='' ">and YWDJID =#{ywdjId} </if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--根据业务参考号查询单个数据-->
|
||||
<select id="GbiZbsyrecEntity_list_base_one" resultMap="get-GbiZbsyrecEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
select
|
||||
*
|
||||
from
|
||||
GBI_ZBSYREC
|
||||
where DJID= #{djId}
|
||||
</select>
|
||||
|
||||
<insert id="GbiZbsyrecEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
insert into GBI_ZBSYREC(
|
||||
<if test="ywdjId != null and ywdjId !='' "> YWDJID,</if>
|
||||
<if test="kjnd != null and kjnd !='' "> KJND, </if>
|
||||
<if test="module != null and module !='' "> MODULE, </if>
|
||||
<if test="djlx != null and djlx !='' "> DJLX, </if>
|
||||
<if test="djId != null and djId !='' "> DJID, </if>
|
||||
<if test="djflh != null and djflh !=''"> DJFLH, </if>
|
||||
<if test="djflmx != null and djflmx !='' "> DJFLMX, </if>
|
||||
<if test="djywrq != null and djywrq !='' "> DJYWRQ, </if>
|
||||
<if test="djzt != null and djzt !='' "> DJZT,</if>
|
||||
<if test="jhId != null and jhId !='' "> JHID, </if>
|
||||
<if test="djje != null and djje !='' "> DJJE ,</if>
|
||||
<if test="sl != null and sl !=''"> SL, </if>
|
||||
<if test="djzy != null and djzy !='' "> DJZY, </if>
|
||||
<if test="szfx != null and szfx !='' "> SZFX, </if>
|
||||
<if test="zblb != null and zblb !='' "> ZBLB, </if>
|
||||
<if test="jdzb != null and jdzb !='' "> JDBZ, </if>
|
||||
<if test="czlx != null and czlx !='' "> CZLX, </if>
|
||||
<if test="zzbz != null and zzbz !='' "> ZZBZ,</if>
|
||||
<if test="gsdm != null and gsdm !='' "> GSDM</if>
|
||||
)
|
||||
values (
|
||||
<if test="ywdjId != null and ywdjId !='' "> #{ywdjId},</if>
|
||||
<if test="kjnd != null and kjnd !='' "> #{kjnd}, </if>
|
||||
<if test="module != null and module !='' "> #{module}, </if>
|
||||
<if test="djlx != null and djlx !='' "> #{djlx}, </if>
|
||||
<if test="djId != null and djId !='' "> #{djId}, </if>
|
||||
<if test="djflh != null and djflh !=''"> #{djflh}, </if>
|
||||
<if test="djflmx != null and djflmx !='' "> #{djflmx}, </if>
|
||||
<if test="djywrq != null and djywrq !='' "> #{djywrq}, </if>
|
||||
<if test="djzt != null and djzt !='' "> #{djzt},</if>
|
||||
<if test="jhId != null and jhId !='' "> #{jhId}, </if>
|
||||
<if test="djje != null and djje !='' "> #{djje},</if>
|
||||
<if test="sl != null and sl !=''"> #{sl}, </if>
|
||||
<if test="djzy != null and djzy !='' "> #{djzy}, </if>
|
||||
<if test="szfx != null and szfx !='' "> #{szfx}, </if>
|
||||
<if test="zblb != null and zblb !='' "> #{zblb}, </if>
|
||||
<if test="jdzb != null and jdzb !='' "> #{jdzb}, </if>
|
||||
<if test="czlx != null and czlx !='' "> #{czlx}, </if>
|
||||
<if test="zzbz != null and zzbz !='' "> #{zzbz},</if>
|
||||
<if test="gsdm != null and gsdm !='' "> #{gsdm}</if>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<delete id="GbiZbsyrecEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
delete from GBI_ZBSYREC where KJND=#{kjnd} and DJID= #{djId}
|
||||
</delete>
|
||||
|
||||
<delete id="GbiZbsyrecEntity_delete_gsp" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
delete FROM gbi_zbsyrec where GSDM =#{gsdm} and KJND=#{kjnd} and MODULE='GSP' and abs(DJFLMX)=${djflmx} AND DJJE > 0
|
||||
</delete>
|
||||
|
||||
<delete id="GbiZbsyrecEntity_delete_oer" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
delete FROM gbi_zbsyrec where GSDM =#{gsdm} and KJND=#{kjnd} and MODULE='OER' and djlx=#{djlx} and djid=#{djId} AND DJFLMX=#{djflmx}
|
||||
</delete>
|
||||
|
||||
<!--删除 单据删除时使用-->
|
||||
<delete id="GbiZbsyrecEntity_delete_del" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
DELETE
|
||||
FROM
|
||||
gbi_zbsyrec
|
||||
WHERE
|
||||
GSDM = #{gsdm}
|
||||
AND KJND = #{kjnd}
|
||||
AND (
|
||||
(
|
||||
MODULE = #{module}
|
||||
AND DJFLMX = #{djflmx}
|
||||
)
|
||||
OR (
|
||||
MODULE = #{module}
|
||||
AND DJFLMX =#{djflmx}
|
||||
)
|
||||
);
|
||||
</delete>
|
||||
<!--删除 单据删除时使用-->
|
||||
<delete id="GbiZbsyrecEntity_delete_dels" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
DELETE
|
||||
FROM
|
||||
gbi_zbsyrec
|
||||
WHERE
|
||||
GSDM = #{gsdm}
|
||||
AND KJND = #{kjnd}
|
||||
AND (MODULE = #{module} OR MODULE = #{module})
|
||||
AND abs(DJFLMX) = #{djflmx}
|
||||
</delete>
|
||||
|
||||
<!-- 修改 单据送审时使用 -->
|
||||
<update id="GbiZbsyrecEntity_update" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||
UPDATE GBI_ZBSYREC
|
||||
SET DJZT = '1'
|
||||
WHERE
|
||||
GSDM = #{gsdm}
|
||||
AND KJND = #{kjnd}
|
||||
AND MODULE = #{module}
|
||||
AND DJLX = #{djlx}
|
||||
AND DJID = #{djId}
|
||||
AND (DJFLMX = #{djflmx})
|
||||
</update>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,11 @@
|
|||
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:指标使用记录
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:27
|
||||
*/
|
||||
public interface IGbiZbsyrecService {
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.service.impl;
|
||||
|
||||
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.service.IGbiZbsyrecService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:指标使用记录
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:30
|
||||
*/
|
||||
@Service(value = "gbiZbsyrecService")
|
||||
public class GbiZbsyrecServiceImpl implements IGbiZbsyrecService {
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPzml.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (gl_pzml: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:06
|
||||
*/
|
||||
public interface ISenderGlPzmlDao extends IBaseDao<SenderGlPzmlEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询凭证目录 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlPzmlEntity> querySenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存凭证目录到凭证目录日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 16:29
|
||||
* **/
|
||||
SenderGlPzmlEntity saveSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新凭证目录到凭证目录日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 16:30
|
||||
* **/
|
||||
SenderGlPzmlEntity updateSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询凭证目录 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlPzmlEntity> queryGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存凭证目录 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 16:29
|
||||
* **/
|
||||
SenderGlPzmlEntity saveGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新凭证目录 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 16:30
|
||||
* **/
|
||||
SenderGlPzmlEntity updateGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除凭证目录 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:44
|
||||
* **/
|
||||
Integer deleteGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPzml.dao.impl;
|
||||
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glPzml.dao.ISenderGlPzmlDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlPzml)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:06
|
||||
*/
|
||||
@Repository(value = "SenderGlPzmlDaoImpl")
|
||||
public class SenderGlPzmlDaoImpl extends MybatisGenericDao<SenderGlPzmlEntity, String> implements ISenderGlPzmlDao {
|
||||
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||
public List<SenderGlPzmlEntity> querySenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||
return super.queryByLike(senderGlPzmlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||
public SenderGlPzmlEntity saveSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||
return super.save(senderGlPzmlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||
public SenderGlPzmlEntity updateSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||
return super.update(senderGlPzmlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||
public List<SenderGlPzmlEntity> queryGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||
return super.query(senderGlPzmlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||
public SenderGlPzmlEntity saveGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||
return super.save(senderGlPzmlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||
public SenderGlPzmlEntity updateGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||
return super.update(senderGlPzmlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||
public Integer deleteGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||
return super.delete("SenderGlPzmlEntity_delete_pzml",senderGlPzmlEntity);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,371 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPzml.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* (GlPzml)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:06
|
||||
*/
|
||||
public class SenderGlPzmlEntity 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 String pzje;
|
||||
private String cn;
|
||||
private String bz;
|
||||
private String kjzg;
|
||||
private String idpzh;
|
||||
private String dyzt;
|
||||
private String qzrq;
|
||||
private Integer gdid;
|
||||
private String gdname;
|
||||
private String gdrqsj;
|
||||
private Integer gdcs;
|
||||
private String gdbz;
|
||||
private Integer yspzzs;
|
||||
|
||||
private String kjtxdm;
|
||||
|
||||
private String pzlxdm;
|
||||
|
||||
private String pzsbm;
|
||||
private String stamp;
|
||||
private String yspzje;
|
||||
|
||||
public String getPzsbm() {
|
||||
return pzsbm;
|
||||
}
|
||||
|
||||
public void setPzsbm(String pzsbm) {
|
||||
this.pzsbm = pzsbm;
|
||||
}
|
||||
|
||||
public String getStamp() {
|
||||
return stamp;
|
||||
}
|
||||
|
||||
public void setStamp(String stamp) {
|
||||
this.stamp = stamp;
|
||||
}
|
||||
|
||||
public String getYspzje() {
|
||||
return yspzje;
|
||||
}
|
||||
|
||||
public void setYspzje(String yspzje) {
|
||||
this.yspzje = yspzje;
|
||||
}
|
||||
|
||||
public String getKjtxdm() {
|
||||
return kjtxdm;
|
||||
}
|
||||
|
||||
public void setKjtxdm(String kjtxdm) {
|
||||
this.kjtxdm = kjtxdm;
|
||||
}
|
||||
|
||||
public String getPzlxdm() {
|
||||
return pzlxdm;
|
||||
}
|
||||
|
||||
public void setPzlxdm(String pzlxdm) {
|
||||
this.pzlxdm = pzlxdm;
|
||||
}
|
||||
|
||||
public String 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 String getPzje() {
|
||||
return pzje;
|
||||
}
|
||||
|
||||
public void setPzje(String pzje) {
|
||||
this.pzje = pzje;
|
||||
}
|
||||
|
||||
public String getCn() {
|
||||
return cn;
|
||||
}
|
||||
|
||||
public void setCn(String cn) {
|
||||
this.cn = cn;
|
||||
}
|
||||
|
||||
public String getBz() {
|
||||
return bz;
|
||||
}
|
||||
|
||||
public void setBz(String bz) {
|
||||
this.bz = bz;
|
||||
}
|
||||
|
||||
public String getKjzg() {
|
||||
return kjzg;
|
||||
}
|
||||
|
||||
public void setKjzg(String kjzg) {
|
||||
this.kjzg = kjzg;
|
||||
}
|
||||
|
||||
public String getIdpzh() {
|
||||
return idpzh;
|
||||
}
|
||||
|
||||
public void setIdpzh(String idpzh) {
|
||||
this.idpzh = idpzh;
|
||||
}
|
||||
|
||||
public String getDyzt() {
|
||||
return dyzt;
|
||||
}
|
||||
|
||||
public void setDyzt(String dyzt) {
|
||||
this.dyzt = dyzt;
|
||||
}
|
||||
|
||||
public String getQzrq() {
|
||||
return qzrq;
|
||||
}
|
||||
|
||||
public void setQzrq(String qzrq) {
|
||||
this.qzrq = qzrq;
|
||||
}
|
||||
|
||||
public Integer getGdid() {
|
||||
return gdid;
|
||||
}
|
||||
|
||||
public void setGdid(Integer gdid) {
|
||||
this.gdid = gdid;
|
||||
}
|
||||
|
||||
public String getGdname() {
|
||||
return gdname;
|
||||
}
|
||||
|
||||
public void setGdname(String gdname) {
|
||||
this.gdname = gdname;
|
||||
}
|
||||
|
||||
public String getGdrqsj() {
|
||||
return gdrqsj;
|
||||
}
|
||||
|
||||
public void setGdrqsj(String gdrqsj) {
|
||||
this.gdrqsj = gdrqsj;
|
||||
}
|
||||
|
||||
public Integer getGdcs() {
|
||||
return gdcs;
|
||||
}
|
||||
|
||||
public void setGdcs(Integer gdcs) {
|
||||
this.gdcs = gdcs;
|
||||
}
|
||||
|
||||
public String getGdbz() {
|
||||
return gdbz;
|
||||
}
|
||||
|
||||
public void setGdbz(String gdbz) {
|
||||
this.gdbz = gdbz;
|
||||
}
|
||||
|
||||
public Integer getYspzzs() {
|
||||
return yspzzs;
|
||||
}
|
||||
|
||||
public void setYspzzs(Integer yspzzs) {
|
||||
this.yspzzs = yspzzs;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,511 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.glPzml.dao.impl.SenderGlPzmlDaoImpl">
|
||||
|
||||
<resultMap id="get-SenderGlPzmlEntity-result" type="com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" >
|
||||
<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"/>
|
||||
<result property="kjtxdm" column="kjtxdm" jdbcType="VARCHAR"/>
|
||||
<result property="pzlxdm" column="pzlxdm" jdbcType="VARCHAR"/>
|
||||
<result property="pzsbm" column="pzsbm" jdbcType="VARCHAR"/>
|
||||
<result property="stamp" column="stamp" jdbcType="VARCHAR"/>
|
||||
<result property="yspzje" column="yspzje" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "SenderGlPzmlEntity_Base_Column_List">
|
||||
gsdm
|
||||
, ZTH
|
||||
, kjqj
|
||||
, pzly
|
||||
,pzlxdm
|
||||
,kjtxdm
|
||||
, 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
|
||||
, pzsbm
|
||||
, stamp
|
||||
, yspzje
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-SenderGlPzmlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity">
|
||||
select
|
||||
<include refid="SenderGlPzmlEntity_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>
|
||||
<if test="pzsbm != null and pzsbm!=''"> and pzsbm = #{pzsbm} </if>
|
||||
<if test="stamp != null and stamp!=''"> and stamp = #{stamp} </if>
|
||||
<if test="yspzje != null and yspzje!=''"> and yspzje = #{yspzje} </if>
|
||||
-- and zth in('004','005','009','010','011','012','014')
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity">
|
||||
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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-SenderGlPzmlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity">
|
||||
select
|
||||
<include refid="SenderGlPzmlEntity_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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SenderGlPzmlEntity_list_or" resultMap="get-SenderGlPzmlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity">
|
||||
select
|
||||
<include refid="SenderGlPzmlEntity_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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_pzml(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="gsdm != null and gsdm != ''"> gsdm , </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="kjtxdm != null "> kjtxdm , </if>
|
||||
<if test="pzlxdm != null and pzlxdm != ''"> pzlxdm , </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 "> shrq , </if>
|
||||
<if test="jzrq != null "> 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="pzsbm != null and pzsbm != ''"> pzsbm, </if>
|
||||
<if test="stamp != null and stamp != ''"> stamp, </if>
|
||||
<if test="yspzje != null and yspzje != ''"> yspzje, </if>
|
||||
<if test="zth != null and zth != ''"> ZTH </if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</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="kjtxdm != null "> #{kjtxdm} , </if>
|
||||
<if test="pzlxdm != null and pzlxdm != ''"> #{pzlxdm} , </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 "> #{shrq} ,</if>
|
||||
<if test="jzrq != null "> #{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="pzsbm != null and pzsbm != ''"> #{pzsbm}, </if>
|
||||
<if test="stamp != null and stamp != ''"> #{stamp}, </if>
|
||||
<if test="yspzje != null and yspzje != ''"> #{yspzje}, </if>
|
||||
<if test="zth != null and zth != ''"> #{zth} </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)
|
||||
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>
|
||||
</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.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" >
|
||||
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="kjtxdm != null "> kjtxdm = #{kjtxdm},</if>
|
||||
<if test="pzlxdm != null and pzlxdm != ''"> pzlxdm = #{pzlxdm},</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="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>
|
||||
<if test="pzsbm != null and pzsbm!=''"> pzsbm = #{pzsbm},</if>
|
||||
<if test="stamp != null and stamp!=''"> stamp = #{stamp},</if>
|
||||
<if test="yspzje != null and yspzje !='' "> yspzje = #{yspzje}</if>
|
||||
</trim>
|
||||
where idpzh= #{idpzh}
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="SenderGlPzmlEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" >
|
||||
update gl_pzml set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where idpzh= #{idpzh}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="SenderGlPzmlEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" >
|
||||
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="kjtxdm != null and kjtxdm != ''"> and kjtxdm = #{kjtxdm}</if>
|
||||
<if test="pzlxdm != null and pzlxdm != ''"> and pzh = #{pzlxdm}</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="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>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="SenderGlPzmlEntity_delete_pzml">
|
||||
delete from gl_pzml where gsdm= #{gsdm} and zth=#{zth}
|
||||
<if test="kjqj != null and kjqj!=''"> and kjqj=#{kjqj}</if>
|
||||
<if test="pzh != null and pzh!=''"> and pzh = #{pzh} </if>
|
||||
<if test="idpzh != null and idpzh!=''"> and idpzh = #{idpzh} </if>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPzml.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
/**
|
||||
* (GlPzml)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:06
|
||||
*/
|
||||
public interface ISenderGlPzmlService extends IBaseService<SenderGlPzmlEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 同步凭证 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 14:36
|
||||
* **/
|
||||
void glPzmlSynchronization(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询凭证 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:38
|
||||
* **/
|
||||
JsonResultEntity queryEntityPage(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存凭证到凭证日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:33
|
||||
* **/
|
||||
JsonResultEntity saveEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新凭证到凭证日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:34
|
||||
* **/
|
||||
JsonResultEntity updateEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询凭证 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:38
|
||||
* **/
|
||||
JsonResultEntity queryEntityPageHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存凭证 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:33
|
||||
* **/
|
||||
JsonResultEntity saveEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新凭证 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:34
|
||||
* **/
|
||||
JsonResultEntity updateEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除凭证 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:46
|
||||
* **/
|
||||
JsonResultEntity deleteEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
}
|
|
@ -0,0 +1,668 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPzml.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glPzml.dao.ISenderGlPzmlDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.glPzml.service.ISenderGlPzmlService;
|
||||
import com.hzya.frame.grpU8.nxproof.glPznr.dao.ISenderGlPznrDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* (GlPzml)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:06
|
||||
*/
|
||||
@Service(value = "SenderGlPzmlServiceImpl")
|
||||
public class SenderGlPzmlServiceImpl extends BaseService<SenderGlPzmlEntity, String> implements ISenderGlPzmlService {
|
||||
|
||||
|
||||
|
||||
private ISenderGlPzmlDao senderGlPzmlDao;
|
||||
|
||||
@Autowired
|
||||
public void setSenderGlPzmlDao(ISenderGlPzmlDao dao) {
|
||||
this.senderGlPzmlDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private ISenderGlPznrDao senderGlPznrDao;
|
||||
|
||||
|
||||
//凭证同步
|
||||
@Override
|
||||
public void glPzmlSynchronization(JSONObject json) {
|
||||
SenderGlPzmlEntity senderGlPzmlEntity = json.toJavaObject(SenderGlPzmlEntity.class);
|
||||
String result=null;
|
||||
try {
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if (senderGlPzmlEntity.getKjqj() == null) {
|
||||
senderGlPzmlEntity.setKjqj(DateUtil.format(new Date(),"yyyy"));
|
||||
//senderGlPzmlEntity.setKjqj("202105");
|
||||
}
|
||||
JSONObject jsonObjectStr=new JSONObject();
|
||||
/*try {
|
||||
//同步南浔区人民医院001凭证信息
|
||||
senderGlPzmlEntity.setZth("001");
|
||||
senderGlPzmlEntity.setGsdm("0101010101");
|
||||
logger.info("===========开始查询南浔区人民医院凭证目录信息=============");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("南浔区人民医院GRPU8凭证同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区人民医院GRPU8凭证同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
try {
|
||||
//同步南浔区练市人民医院003凭证信息
|
||||
senderGlPzmlEntity.setZth("003");
|
||||
senderGlPzmlEntity.setGsdm("0101010103");
|
||||
logger.info("===========开始查询南浔区练市人民医院凭证目录信息=============");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("南浔区练市人民医院GRPU8凭证同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市人民医院GRPU8凭证同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
/*try {
|
||||
//同步练市镇中心卫生院005凭证信息
|
||||
senderGlPzmlEntity.setZth("005");
|
||||
senderGlPzmlEntity.setGsdm("0101010202");
|
||||
logger.info("===========开始查询南浔区练市镇中心卫生院凭证目录信息=============");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8凭证同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8凭证同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步善琏镇卫生院007凭证信息
|
||||
senderGlPzmlEntity.setZth("007");
|
||||
senderGlPzmlEntity.setGsdm("0101010204");
|
||||
logger.info("===========开始查询南浔区善琏镇卫生院凭证目录信息=============");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("南浔区善琏镇卫生院GRPU8凭证同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区善琏镇卫生院GRPU8凭证同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*//同步双林镇中心卫生院004凭证信息
|
||||
senderGlPzmlEntity.setZth("004");
|
||||
senderGlPzmlEntity.setGsdm("0101010201");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("双林镇中心卫生院GRPU8凭证同步结果为:{}",result);
|
||||
//同步菱湖镇中心卫生院009凭证信息
|
||||
senderGlPzmlEntity.setZth("009");
|
||||
senderGlPzmlEntity.setGsdm("0101020201");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("菱湖镇中心卫生院GRPU8凭证同步结果为:{}",result);
|
||||
//同步和孚镇卫生院010凭证信息
|
||||
senderGlPzmlEntity.setZth("010");
|
||||
senderGlPzmlEntity.setGsdm("0101020202");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("和孚镇卫生院GRPU8凭证同步结果为:{}",result);
|
||||
//同步千金镇卫生院011凭证信息
|
||||
senderGlPzmlEntity.setZth("011");
|
||||
senderGlPzmlEntity.setGsdm("0101020203");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("千金镇卫生院GRPU8凭证同步结果为:{}",result);
|
||||
//同步石崇镇卫生院012凭证信息
|
||||
senderGlPzmlEntity.setZth("012");
|
||||
senderGlPzmlEntity.setGsdm("0101020204");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("石崇镇卫生院GRPU8凭证同步结果为:{}");
|
||||
//同步南浔镇中心卫生院014凭证信息
|
||||
senderGlPzmlEntity.setZth("014");
|
||||
senderGlPzmlEntity.setGsdm("010202");
|
||||
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||
logger.info("南浔镇中心卫生院GRPU8凭证同步结果为:{}",result);*/
|
||||
} catch (Exception e) {
|
||||
logger.info("GRPU8凭证同步失败:{}", e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private String sendPzmlToHealthBureau(JSONObject jsonObjectStr){
|
||||
JsonResultEntity jsonResultEntity = queryEntityPage(jsonObjectStr);
|
||||
if (jsonResultEntity.getAttribute() == null) {
|
||||
logger.info("GRPU8没有需要同步得凭证目录信息信息");
|
||||
return "GRPU8没有需要同步的凭证目录信息";
|
||||
}
|
||||
JSONArray jsonArray = (JSONArray) JSON.toJSON(jsonResultEntity.getAttribute());
|
||||
if (CollectionUtils.isEmpty(jsonArray)) {
|
||||
logger.info("GRPU8没有需要同步得凭证目录信息信息");
|
||||
return "GRPU8没有需要同步的凭证目录信息";
|
||||
} else {
|
||||
for (Object o : jsonArray) {
|
||||
JSONObject jsonObjectPz = (JSONObject) JSON.toJSON(o);
|
||||
//获取凭证目录信息
|
||||
JSONObject jsonObjectPzml = jsonObjectPz.getJSONObject("gl_pzml");
|
||||
JSONArray jsonArrayPznr = jsonObjectPz.getJSONArray("gl_pznr");
|
||||
SenderGlPzmlEntity receiverGlPzmlEntity = new SenderGlPzmlEntity();
|
||||
receiverGlPzmlEntity.setIdpzh(jsonObjectPzml.getString("idpzh"));
|
||||
receiverGlPzmlEntity.setZth(jsonObjectPzml.getString("zth"));
|
||||
JSONObject jsonObjectReceiver = new JSONObject();
|
||||
jsonObjectReceiver.put("jsonStr", receiverGlPzmlEntity);
|
||||
//根据发送方的idpzh查询接收方中是否存在数据
|
||||
JsonResultEntity jsonResultEntityReceiver = queryEntityPageHealthBureau(jsonObjectReceiver);
|
||||
JsonResultEntity jsonResultEntityRec=null;
|
||||
//如果从接收方查询出的凭证没有,则新增,如果有,则更新凭证目录,之后再比较明细,如果接收方明细不存在,则新增明细,否则更新明细
|
||||
if (jsonResultEntityReceiver.getAttribute() == null && jsonResultEntityReceiver.isFlag()) {
|
||||
JSONObject jsonReceiverSave = new JSONObject();
|
||||
jsonReceiverSave.put("main", jsonObjectPzml);
|
||||
jsonReceiverSave.put("details", jsonArrayPznr);
|
||||
jsonReceiverSave.put("kjqj", jsonObjectPzml.getString("kjqj"));
|
||||
jsonReceiverSave.put("gsdm", jsonObjectPzml.getString("gsdm"));
|
||||
jsonReceiverSave.put("zth", jsonObjectPzml.getString("zth"));
|
||||
jsonReceiverSave.put("pzh", jsonObjectPzml.getString("pzh"));
|
||||
JSONObject jsonObjectPznrStr = new JSONObject();
|
||||
jsonObjectPznrStr.put("jsonStr", jsonReceiverSave);
|
||||
jsonResultEntityRec= saveEntityHealthBureau(jsonObjectPznrStr);
|
||||
if(jsonResultEntityRec.isFlag()){
|
||||
JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntityRec.getAttribute());
|
||||
logger.info("账套号:{}的GROU8得凭证同步保存卫生局的返回结果为:{}", jsonObjectPzml.getString("zth"),json.toJSONString());
|
||||
}
|
||||
/* if(jsonResultEntityReceiverSave.getStatus().equals("200")&&jsonResultEntityReceiverSave.getAttribute()!=null){
|
||||
//保存日志
|
||||
saveEntity(jsonObjectPznrStr);
|
||||
}*/
|
||||
} else {
|
||||
JSONArray jsonArrayResult = (JSONArray) JSON.toJSON(jsonResultEntityReceiver.getAttribute());
|
||||
//有值 将发送方的数据更新到接收方 更新凭证目录,更新凭证内容
|
||||
for (Object object : jsonArrayResult) {
|
||||
JSONObject jsonObjectReceiverPz = (JSONObject) JSON.toJSON(object);
|
||||
//获取凭证目录信息
|
||||
JSONObject jsonObjectReceiverPzml = jsonObjectReceiverPz.getJSONObject("main");
|
||||
//JSONArray jsonArrayReceiverPznr = jsonObjectReceiverPz.getJSONArray("details");
|
||||
if (jsonObjectPzml.getString("idpzh").equals(jsonObjectReceiverPzml.getString("idpzh"))) {
|
||||
JSONObject jsonReceiverUpdate = new JSONObject();
|
||||
jsonReceiverUpdate.put("main", jsonObjectPzml);
|
||||
jsonReceiverUpdate.put("details", jsonArrayPznr);
|
||||
jsonReceiverUpdate.put("kjqj", jsonObjectPzml.getString("kjqj"));
|
||||
jsonReceiverUpdate.put("gsdm", jsonObjectPzml.getString("gsdm"));
|
||||
jsonReceiverUpdate.put("zth", jsonObjectPzml.getString("zth"));
|
||||
jsonReceiverUpdate.put("pzh", jsonObjectPzml.getString("pzh"));
|
||||
JSONObject jsonObjectPznrStr = new JSONObject();
|
||||
jsonObjectPznrStr.put("jsonStr", jsonReceiverUpdate);
|
||||
jsonResultEntityRec=updateEntityHealthBureau(jsonObjectPznrStr);
|
||||
if (jsonResultEntityRec.isFlag()){
|
||||
JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntityRec.getAttribute());
|
||||
logger.info("账套号:{}的GROU8得凭证同步更新卫生局的返回结果为:{}", jsonObjectPzml.getString("zth"),json.toJSONString());
|
||||
}
|
||||
/* if(jsonResultEntityReceiverUpdate.getStatus().equals("200")&&jsonResultEntityReceiverUpdate.getAttribute()!=null){
|
||||
//更新日志
|
||||
updateEntity(jsonObjectPznrStr);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return "同步GROU8凭证成功";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//查询凭证
|
||||
@Override
|
||||
public JsonResultEntity queryEntityPage(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlPzmlEntity senderGlPzmlEntity = jsonObject.toJavaObject(SenderGlPzmlEntity.class);
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if (senderGlPzmlEntity.getKjqj() == null) {
|
||||
senderGlPzmlEntity.setKjqj(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
if(StrUtil.isEmpty(senderGlPzmlEntity.getZth())){
|
||||
logger.info("======传递的账套号为:{}=========",senderGlPzmlEntity.getZth());
|
||||
return BaseResult.getFailureMessageEntity("请传递账套号");
|
||||
}
|
||||
List<JSONObject> list=new ArrayList<>();
|
||||
List<SenderGlPzmlEntity> senderGlPzmlEntities=new ArrayList<>();
|
||||
try {
|
||||
/*switch (senderGlPzmlEntity.getZth()){
|
||||
case "003"://练市人民医院
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
break;
|
||||
case "004"://双林镇中心卫生院
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
break;
|
||||
case "005"://练市镇中心卫生院
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
break;
|
||||
case "007"://善琏镇卫生院
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
break;
|
||||
case "009":
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
break;
|
||||
case "010":
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
break;
|
||||
case "011":
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
break;
|
||||
case "012":
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
break;
|
||||
case "001"://南浔区人民医院
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}*/
|
||||
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
if (CollectionUtils.isEmpty(senderGlPzmlEntities)) {
|
||||
logger.info("{}账套GRPU8没有凭证目录信息",senderGlPzmlEntity.getZth());
|
||||
return BaseResult.getSuccessMessageEntity("GRPU8没有凭证目录信息",null);
|
||||
} else {
|
||||
for (SenderGlPzmlEntity pzmlEntity : senderGlPzmlEntities) {
|
||||
JSONObject jsonObjectPz=new JSONObject();
|
||||
jsonObjectPz.put("gl_pzml",pzmlEntity);
|
||||
//根据凭证号,会计期间,账套号查询凭证内容信息
|
||||
SenderGlPznrEntity senderGlPznrEntity = new SenderGlPznrEntity();
|
||||
senderGlPznrEntity.setKjqj(pzmlEntity.getKjqj());
|
||||
senderGlPznrEntity.setZth(pzmlEntity.getZth());
|
||||
senderGlPznrEntity.setPzh(pzmlEntity.getPzh());
|
||||
senderGlPznrEntity.setGsdm(pzmlEntity.getGsdm());
|
||||
senderGlPznrEntity.setIdpzh(pzmlEntity.getIdpzh());
|
||||
senderGlPznrEntity.setDataSourceCode(senderGlPzmlEntity.getDataSourceCode());
|
||||
List<SenderGlPznrEntity> senderGlPznrEntities=new ArrayList<>();
|
||||
/*switch (senderGlPzmlEntity.getZth()){
|
||||
case "003"://练市人民医院
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
break;
|
||||
case "004"://双林镇中心卫生院
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
break;
|
||||
case "005"://练市镇中心卫生院
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
break;
|
||||
case "007"://善琏镇卫生院
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
break;
|
||||
case "009":
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
break;
|
||||
case "010":
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
break;
|
||||
case "011":
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
break;
|
||||
case "012":
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
break;
|
||||
case "001"://南浔区人民医院
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}*/
|
||||
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||
jsonObjectPz.put("gl_pznr",senderGlPznrEntities);
|
||||
list.add(jsonObjectPz);
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("查询凭证成功",list);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("{}账套查询GROU8凭证信息失败:{}", senderGlPzmlEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询GROU8凭证信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
//保存凭证到凭证日志表中 发送方
|
||||
@Override
|
||||
public JsonResultEntity saveEntity(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录
|
||||
JSONArray jsonArray = jsonObject.getJSONArray("details");
|
||||
if (StrUtil.isEmpty(jsonObject.getString("kjqj"))) {
|
||||
throw new RuntimeException("会计期间为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||
throw new RuntimeException("公司代码为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("zth"))) {
|
||||
throw new RuntimeException("账套编号为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("pzh"))) {
|
||||
throw new RuntimeException("凭证号为空");
|
||||
}
|
||||
//生成idpzh
|
||||
String idpzh = jsonObjectMain.getString("idpzh")==null?String.valueOf(UUID.randomUUID()):jsonObjectMain.getString("idpzh");
|
||||
jsonObjectMain.put("kjqj",jsonObject.getString("kjqj"));
|
||||
jsonObjectMain.put("idpzh",idpzh);
|
||||
jsonObjectMain.put("gsdm",jsonObject.getString("gsdm"));
|
||||
jsonObjectMain.put("zth",jsonObject.getString("zth"));
|
||||
jsonObjectMain.put("pzh",jsonObject.getString("pzh"));
|
||||
SenderGlPzmlEntity senderGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||
try {
|
||||
logger.info("===========开始保存凭证日志,idpzh:{},pzh:{}=========",senderGlPzmlEntity.getIdpzh(),senderGlPzmlEntity.getPzh());
|
||||
SenderGlPzmlEntity glPzmlEntity = senderGlPzmlDao.saveSenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
List<JSONObject> list=new ArrayList<JSONObject>();
|
||||
JSONObject jsonObjectSend=new JSONObject();
|
||||
jsonObjectSend.put("pzml",glPzmlEntity);
|
||||
List<SenderGlPznrEntity> listPznr=new ArrayList<>();
|
||||
//遍历数组,得到凭证内容
|
||||
if(jsonArray.size()>0&&jsonArray!=null){
|
||||
for (Object o : jsonArray) {
|
||||
SenderGlPznrEntity glPznrEntity=(SenderGlPznrEntity)o;
|
||||
glPznrEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||
glPznrEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||
glPznrEntity.setZth(jsonObject.getString("zth"));
|
||||
glPznrEntity.setPzh(jsonObject.getString("pzh"));
|
||||
glPznrEntity.setIdpznr(glPznrEntity.getIdpznr() == null ? String.valueOf(UUID.randomUUID()) : glPznrEntity.getIdpznr() );
|
||||
SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.saveSenderGlPznrEntity(glPznrEntity);
|
||||
listPznr.add(senderGlPznrEntity);
|
||||
}
|
||||
}
|
||||
jsonObjectSend.put("pznr",listPznr);
|
||||
list.add(jsonObjectSend);
|
||||
return BaseResult.getSuccessMessageEntity("保存凭证日志成功",list);
|
||||
}catch (Exception e){
|
||||
logger.info("保存GRPU8凭证日志失败:{}", e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("凭证日志保存失败");
|
||||
}
|
||||
}
|
||||
|
||||
//更新凭证到凭证日志表中 发送方
|
||||
@Override
|
||||
public JsonResultEntity updateEntity(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录
|
||||
JSONArray jsonArray = jsonObject.getJSONArray("details");
|
||||
if (StrUtil.isEmpty(jsonObject.getString("kjqj"))) {
|
||||
throw new RuntimeException("会计期间为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||
throw new RuntimeException("公司代码为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("zth"))) {
|
||||
throw new RuntimeException("账套编号为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("pzh"))) {
|
||||
throw new RuntimeException("凭证号为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObjectMain.getString("idpzh"))) {
|
||||
throw new RuntimeException("idpzh为空");
|
||||
}
|
||||
SenderGlPzmlEntity senderGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||
senderGlPzmlEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||
senderGlPzmlEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||
senderGlPzmlEntity.setZth(jsonObject.getString("zth"));
|
||||
senderGlPzmlEntity.setPzh(jsonObject.getString("pzh"));
|
||||
try {
|
||||
logger.info("==========开始更新凭证日志,idpzh:{},pzh:{}",senderGlPzmlEntity.getIdpzh(),senderGlPzmlEntity.getPzh());
|
||||
SenderGlPzmlEntity senderGlPzmlEntitySend = senderGlPzmlDao.updateSenderGlPzmlEntity(senderGlPzmlEntity);
|
||||
List<JSONObject> list=new ArrayList<>();
|
||||
JSONObject jsonObjectPz=new JSONObject();
|
||||
jsonObjectPz.put("pzml",senderGlPzmlEntitySend);
|
||||
List<SenderGlPznrEntity> listPznr=new ArrayList<>();
|
||||
//遍历数组,得到凭证内容
|
||||
if(jsonArray.size()>0&&jsonArray!=null){
|
||||
for (Object o : jsonArray) {
|
||||
SenderGlPznrEntity glPznrEntity=(SenderGlPznrEntity)o;
|
||||
SenderGlPznrEntity senderGlPznr=new SenderGlPznrEntity();
|
||||
senderGlPznr.setKjqj(jsonObject.getString("kjqj"));
|
||||
senderGlPznr.setGsdm(jsonObject.getString("gsdm"));
|
||||
senderGlPznr.setZth(jsonObject.getString("zth"));
|
||||
senderGlPznr.setPzh(jsonObject.getString("pzh"));
|
||||
senderGlPznr.setIdpznr(glPznrEntity.getIdpznr());
|
||||
//根据凭证内容id等条件查询在凭证内容日志中是否存在,如果存在,则更新,如果不存在则新增
|
||||
//比如 凭证内容8条,日志中只有7条,则多余的一条新增,剩下7条更新
|
||||
SenderGlPznrEntity pznrEntity = senderGlPznrDao.querySenderGlPznrEntityOne(senderGlPznr);
|
||||
if(pznrEntity==null){
|
||||
SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.saveSenderGlPznrEntity(glPznrEntity);
|
||||
listPznr.add(senderGlPznrEntity);
|
||||
}else{
|
||||
SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.updateSenderGlPznrEntity(glPznrEntity);
|
||||
listPznr.add(senderGlPznrEntity);
|
||||
}
|
||||
}
|
||||
}
|
||||
jsonObjectPz.put("pznr",listPznr);
|
||||
list.add(jsonObjectPz);
|
||||
return BaseResult.getSuccessMessageEntity("凭证日志更新成功",list);
|
||||
}catch (Exception e){
|
||||
logger.info("更新GRPU8凭证日志失败:{}", e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("凭证日志更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
//查询凭证
|
||||
@Override
|
||||
public JsonResultEntity queryEntityPageHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlPzmlEntity receiverGlPzmlEntity = jsonObject.toJavaObject(SenderGlPzmlEntity.class);
|
||||
if(receiverGlPzmlEntity.getIdpzh()!=null) {
|
||||
try {
|
||||
List<JSONObject> list=new ArrayList<>();
|
||||
logger.info("====开始根据账套号:{}和凭证号:{}查询卫生局里面得凭证数据",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh());
|
||||
List<SenderGlPzmlEntity> receiverGlPzmlEntities = senderGlPzmlDao.queryGlPzmlHealthBureau(receiverGlPzmlEntity);
|
||||
if(CollectionUtils.isNotEmpty(receiverGlPzmlEntities)){
|
||||
for (SenderGlPzmlEntity glPzmlEntity : receiverGlPzmlEntities) {
|
||||
JSONObject jsonObjectStr=new JSONObject();
|
||||
jsonObjectStr.put("main",glPzmlEntity);
|
||||
//根据凭证号,会计期间,账套号查询凭证内容信息
|
||||
SenderGlPznrEntity receiverGlPznrEntity = new SenderGlPznrEntity();
|
||||
receiverGlPznrEntity.setKjqj(glPzmlEntity.getKjqj());
|
||||
receiverGlPznrEntity.setZth(glPzmlEntity.getZth());
|
||||
receiverGlPznrEntity.setPzh(glPzmlEntity.getPzh());
|
||||
receiverGlPznrEntity.setGsdm(glPzmlEntity.getGsdm());
|
||||
List<SenderGlPznrEntity> receiverGlPznrEntities = senderGlPznrDao.queryGlPznrHealthBureau(receiverGlPznrEntity);
|
||||
jsonObjectStr.put("details",receiverGlPznrEntities);
|
||||
list.add(jsonObjectStr);
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("查询凭证成功",list);
|
||||
}else{
|
||||
logger.info("根据idpzh:{}和账套号:{}查询接收方的凭证为空",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh());
|
||||
return BaseResult.getSuccessMessageEntity("查询接收方的凭证为空");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("根据账套号:{}查询卫生局得GROU8凭证信息失败:{}", receiverGlPzmlEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询接收方得GROU8凭证信息失败");
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//保存凭证
|
||||
@Override
|
||||
public JsonResultEntity saveEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//获取凭证目录
|
||||
JSONArray jsonArray = jsonObject.getJSONArray("details");//获取凭证内容
|
||||
if (!checkStr(jsonObject.getString("kjqj"))) {
|
||||
return BaseResult.getFailureMessageEntity("会计期间为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("pzh"))) {
|
||||
return BaseResult.getFailureMessageEntity("凭证号为空");
|
||||
}
|
||||
//生成idpzh
|
||||
String idpzh = jsonObjectMain.getString("idpzh")==null?String.valueOf(UUID.randomUUID()):jsonObjectMain.getString("idpzh");
|
||||
jsonObjectMain.put("kjqj",jsonObject.getString("kjqj"));
|
||||
jsonObjectMain.put("idpzh",idpzh);
|
||||
jsonObjectMain.put("gsdm",jsonObject.getString("gsdm"));
|
||||
jsonObjectMain.put("zth",jsonObject.getString("zth"));
|
||||
jsonObjectMain.put("pzh",jsonObject.getString("pzh"));
|
||||
SenderGlPzmlEntity glPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||
try {
|
||||
logger.info("===========根据账套号:{}开始保存凭证,idpzh:{},pzh:{}=========",glPzmlEntity.getZth(),glPzmlEntity.getIdpzh(),glPzmlEntity.getPzh());
|
||||
SenderGlPzmlEntity receiverGlPzmlEntity = senderGlPzmlDao.saveGlPzmlHealthBureau(glPzmlEntity);
|
||||
List<JSONObject> list=new ArrayList<>();
|
||||
JSONObject jsonObjectReceiver =new JSONObject();
|
||||
jsonObjectReceiver.put("gl_pzml",receiverGlPzmlEntity);
|
||||
List<SenderGlPznrEntity> listGlPznr=new ArrayList<>();
|
||||
//遍历数组,得到凭证内容
|
||||
if(jsonArray.size()>0&&jsonArray!=null) {
|
||||
for (Object o : jsonArray) {
|
||||
SenderGlPznrEntity receiverGlPznrEntity=(SenderGlPznrEntity)o;
|
||||
receiverGlPznrEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||
receiverGlPznrEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||
receiverGlPznrEntity.setZth(jsonObject.getString("zth"));
|
||||
receiverGlPznrEntity.setPzh(jsonObject.getString("pzh"));
|
||||
receiverGlPznrEntity.setDataSourceCode(glPzmlEntity.getDataSourceCode());
|
||||
receiverGlPznrEntity.setIdpznr(receiverGlPznrEntity.getIdpznr()== null ? String.valueOf(UUID.randomUUID()) : receiverGlPznrEntity.getIdpznr());
|
||||
SenderGlPznrEntity glPznrEntity = senderGlPznrDao.saveGlPznrHealthBureau(receiverGlPznrEntity);
|
||||
listGlPznr.add(glPznrEntity);
|
||||
}
|
||||
}
|
||||
jsonObjectReceiver.put("gl_pznr",listGlPznr);
|
||||
list.add(jsonObjectReceiver);
|
||||
return BaseResult.getSuccessMessageEntity("保存凭证成功",jsonObjectReceiver);
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套号:{}保存GRPU8凭证失败:{}",jsonObjectMain.getString("zth"),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("凭证保存失败");
|
||||
}
|
||||
}
|
||||
|
||||
//更新凭证
|
||||
@Override
|
||||
public JsonResultEntity updateEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录
|
||||
JSONArray jsonArray = jsonObject.getJSONArray("details");
|
||||
if (!checkStr(jsonObject.getString("kjqj"))) {
|
||||
return BaseResult.getFailureMessageEntity("会计期间为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("pzh"))) {
|
||||
return BaseResult.getFailureMessageEntity("凭证号为空");
|
||||
}
|
||||
if (!checkStr(jsonObjectMain.getString("idpzh"))) {
|
||||
return BaseResult.getFailureMessageEntity("idpzh为空");
|
||||
}
|
||||
if(jsonArray.size()>0&&jsonArray!=null){
|
||||
for (Object o : jsonArray) {
|
||||
SenderGlPznrEntity senderGlPznrEntity = (SenderGlPznrEntity)o;
|
||||
if (StrUtil.isEmpty(senderGlPznrEntity.getIdpznr())) {
|
||||
return BaseResult.getFailureMessageEntity("凭证内容得id为空");
|
||||
}
|
||||
}
|
||||
}
|
||||
SenderGlPzmlEntity receiverGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||
receiverGlPzmlEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||
receiverGlPzmlEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||
receiverGlPzmlEntity.setZth(jsonObject.getString("zth"));
|
||||
receiverGlPzmlEntity.setPzh(jsonObject.getString("pzh"));
|
||||
try {
|
||||
logger.info("==========开始根据账套号:{}更新凭证,idpzh:{},pzh:{}",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh(),receiverGlPzmlEntity.getPzh());
|
||||
SenderGlPzmlEntity glPzmlEntity = senderGlPzmlDao.updateGlPzmlHealthBureau(receiverGlPzmlEntity);
|
||||
List<JSONObject> list=new ArrayList<>();
|
||||
JSONObject jsonObjectPz=new JSONObject();
|
||||
jsonObjectPz.put("gl_pzml",glPzmlEntity);
|
||||
List<SenderGlPznrEntity> listPznr=new ArrayList<>();
|
||||
//遍历数组,得到凭证内容
|
||||
if(jsonArray.size()>0 && jsonArray!=null){
|
||||
for (Object o : jsonArray) {
|
||||
SenderGlPznrEntity receiverGlPznr=(SenderGlPznrEntity)o;
|
||||
receiverGlPznr.setKjqj(jsonObject.getString("kjqj"));
|
||||
receiverGlPznr.setGsdm(jsonObject.getString("gsdm"));
|
||||
receiverGlPznr.setZth(jsonObject.getString("zth"));
|
||||
receiverGlPznr.setPzh(jsonObject.getString("pzh"));
|
||||
receiverGlPznr.setDataSourceCode(receiverGlPzmlEntity.getDataSourceCode());
|
||||
//根据凭证内容id等条件查询在接收方凭证内容中是否存在,如果存在,则更新,如果不存在则新增
|
||||
//比如 发送方的凭证内容8条,接收方只有7条,则多余的一条新增,剩下7条更新
|
||||
SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.querySenderGlPznrEntityOne(receiverGlPznr);
|
||||
if(senderGlPznrEntity==null){
|
||||
SenderGlPznrEntity glPznrEntity = senderGlPznrDao.saveGlPznrHealthBureau(receiverGlPznr);
|
||||
listPznr.add(glPznrEntity);
|
||||
}else {
|
||||
SenderGlPznrEntity glPznrEntity = senderGlPznrDao.updateGlPznrHealthBureau(receiverGlPznr);
|
||||
listPznr.add(glPznrEntity);
|
||||
}
|
||||
}
|
||||
}
|
||||
jsonObjectPz.put("gl_pznr",listPznr);
|
||||
list.add(jsonObjectPz);
|
||||
return BaseResult.getSuccessMessageEntity("凭证更新成功",list);
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套号:{}更新GRPU8凭证失败:{}", receiverGlPzmlEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("凭证更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
//删除凭证
|
||||
@Override
|
||||
public JsonResultEntity deleteEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录
|
||||
JSONArray jsonArray = jsonObject.getJSONArray("details");
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("kjqj"))) {
|
||||
jsonObject.put("kjqj",DateUtil.format(new Date(),"yyyyMM"));
|
||||
}
|
||||
SenderGlPzmlEntity receiverGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||
receiverGlPzmlEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||
receiverGlPzmlEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||
receiverGlPzmlEntity.setZth(jsonObject.getString("zth"));
|
||||
receiverGlPzmlEntity.setPzh(jsonObject.getString("pzh"));
|
||||
try {
|
||||
logger.info("==========开始根据账套号:{}删除凭证,idpzh:{},pzh:{}",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh(),receiverGlPzmlEntity.getPzh());
|
||||
Integer integer = senderGlPzmlDao.deleteGlPzmlHealthBureau(receiverGlPzmlEntity);
|
||||
//遍历数组,得到凭证内容
|
||||
if(jsonArray.size()>0 && jsonArray!=null){
|
||||
for (Object o : jsonArray) {
|
||||
SenderGlPznrEntity receiverGlPznr=(SenderGlPznrEntity)o;
|
||||
receiverGlPznr.setKjqj(jsonObject.getString("kjqj"));
|
||||
receiverGlPznr.setGsdm(jsonObject.getString("gsdm"));
|
||||
receiverGlPznr.setZth(jsonObject.getString("zth"));
|
||||
receiverGlPznr.setPzh(jsonObject.getString("pzh"));
|
||||
receiverGlPznr.setDataSourceCode(receiverGlPzmlEntity.getDataSourceCode());
|
||||
Integer i = senderGlPznrDao.deleteGlPznrHealthBureau(receiverGlPznr);
|
||||
}
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("凭证删除成功",integer);
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套号:{}删除GRPU8凭证失败:{}", receiverGlPzmlEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("凭证删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPznr.dao;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (gl_pznr: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 14:14:30
|
||||
*/
|
||||
public interface ISenderGlPznrDao extends IBaseDao<SenderGlPznrEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询凭证内容 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlPznrEntity> querySenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存凭证内容到凭证内容日志中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/29 15:08
|
||||
* **/
|
||||
SenderGlPznrEntity saveSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新凭证内容到凭证内容表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/29 15:09
|
||||
* **/
|
||||
SenderGlPznrEntity updateSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 根据凭证内容id等条件,查询在凭证日志中是否存在,如果不存在,则新增
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/1 9:20
|
||||
* **/
|
||||
SenderGlPznrEntity querySenderGlPznrEntityOne(SenderGlPznrEntity senderGlPznrEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询凭证内容 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlPznrEntity> queryGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存凭证内容 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/29 14:05
|
||||
* **/
|
||||
SenderGlPznrEntity saveGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新凭证内容 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/29 14:06
|
||||
* **/
|
||||
SenderGlPznrEntity updateGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除凭证内容 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:57
|
||||
* **/
|
||||
Integer deleteGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPznr.dao.impl;
|
||||
|
||||
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glPznr.dao.ISenderGlPznrDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlPznr)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 14:14:30
|
||||
*/
|
||||
@Repository(value = "SenderGlPznrDaoImpl")
|
||||
public class SenderGlPznrDaoImpl extends MybatisGenericDao<SenderGlPznrEntity, String> implements ISenderGlPznrDao {
|
||||
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||
public List<SenderGlPznrEntity> querySenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity) {
|
||||
return super.queryByLike(senderGlPznrEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||
public SenderGlPznrEntity saveSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity) {
|
||||
return super.save(senderGlPznrEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||
public SenderGlPznrEntity updateSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity) {
|
||||
return super.update(senderGlPznrEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||
public SenderGlPznrEntity querySenderGlPznrEntityOne(SenderGlPznrEntity senderGlPznrEntity) {
|
||||
SenderGlPznrEntity glPznrEntity = (SenderGlPznrEntity)super.selectOne( "querySenderGlPznrEntityOne", senderGlPznrEntity);
|
||||
return glPznrEntity;
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||
public List<SenderGlPznrEntity> queryGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) {
|
||||
return super.query(senderGlPznrEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||
public SenderGlPznrEntity saveGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) {
|
||||
return super.save(senderGlPznrEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||
public SenderGlPznrEntity updateGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) {
|
||||
return super.update(senderGlPznrEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||
public Integer deleteGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) {
|
||||
return super.delete("SenderGlPznrEntity_delete_pznr",senderGlPznrEntity);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,818 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPznr.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* (GlPznr)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 14:14:30
|
||||
*/
|
||||
public class SenderGlPznrEntity extends BaseEntity {
|
||||
|
||||
private String gsdm;
|
||||
private String zth;
|
||||
private String kjqj;
|
||||
private String pzly;
|
||||
private String pzh;
|
||||
private Integer flh;
|
||||
private String zy;
|
||||
private String kmdm;
|
||||
private String wbdm;
|
||||
private String hl;
|
||||
private String jdbz;
|
||||
private String wbje;
|
||||
private String je;
|
||||
private String spz;
|
||||
private String wldrq;
|
||||
private String sl;
|
||||
private String dj;
|
||||
private String bmdm;
|
||||
|
||||
private String wldm;
|
||||
private String xmdm;
|
||||
private String fzsm1;
|
||||
private String fzsm2;
|
||||
private String fzsm3;
|
||||
private String fzsm4;
|
||||
private String fzsm5;
|
||||
private String fzsm6;
|
||||
private String fzsm7;
|
||||
private String fzsm8;
|
||||
private String fzsm9;
|
||||
private String cess;
|
||||
private String fplx;
|
||||
private String fprq;
|
||||
private Integer fphfw1;
|
||||
private Integer fphfw2;
|
||||
private String jsfs;
|
||||
private String zydm;
|
||||
private String fzdm4;
|
||||
private String fzdm5;
|
||||
private String fzdm6;
|
||||
private String fzdm7;
|
||||
private String fzdm8;
|
||||
private String fzdm9;
|
||||
private String fzdm10;
|
||||
private String fzdm11;
|
||||
private String fzdm12;
|
||||
private String fzdm13;
|
||||
private String fzdm14;
|
||||
private String fzdm15;
|
||||
private String fzdm16;
|
||||
private String fzdm17;
|
||||
private String fzdm18;
|
||||
private String fzdm19;
|
||||
private String fzdm20;
|
||||
private String fzdm21;
|
||||
private String fzdm22;
|
||||
private String fzdm23;
|
||||
private String fzdm24;
|
||||
private String fzdm25;
|
||||
private String fzdm26;
|
||||
private String fzdm27;
|
||||
private String fzdm28;
|
||||
private String fzdm29;
|
||||
private String fzdm30;
|
||||
private String idpznr;
|
||||
private String wlh;
|
||||
private Integer zbid;
|
||||
private Integer edid;
|
||||
private Integer jfsqid;
|
||||
|
||||
private String kjtxdm;
|
||||
|
||||
private String pzlxdm;
|
||||
|
||||
private String idpzh;
|
||||
|
||||
private String skrlx;
|
||||
|
||||
private String skrmc;
|
||||
private String skrzh;
|
||||
|
||||
private String skryhdm;
|
||||
private String skryhhh;
|
||||
|
||||
private String skryhmc;
|
||||
private String yszccy;
|
||||
|
||||
private String xsflh;
|
||||
|
||||
private String bxdid;
|
||||
private String htid;
|
||||
private String zckpbh;
|
||||
private String sflx;
|
||||
private String djbh;
|
||||
private String hzflh;
|
||||
private String cyxfx;
|
||||
private String dqrq;
|
||||
private String glidpznr;
|
||||
|
||||
public String getBxdid() {
|
||||
return bxdid;
|
||||
}
|
||||
|
||||
public void setBxdid(String bxdid) {
|
||||
this.bxdid = bxdid;
|
||||
}
|
||||
|
||||
public String getHtid() {
|
||||
return htid;
|
||||
}
|
||||
|
||||
public void setHtid(String htid) {
|
||||
this.htid = htid;
|
||||
}
|
||||
|
||||
public String getZckpbh() {
|
||||
return zckpbh;
|
||||
}
|
||||
|
||||
public void setZckpbh(String zckpbh) {
|
||||
this.zckpbh = zckpbh;
|
||||
}
|
||||
|
||||
public String getSflx() {
|
||||
return sflx;
|
||||
}
|
||||
|
||||
public void setSflx(String sflx) {
|
||||
this.sflx = sflx;
|
||||
}
|
||||
|
||||
public String getDjbh() {
|
||||
return djbh;
|
||||
}
|
||||
|
||||
public void setDjbh(String djbh) {
|
||||
this.djbh = djbh;
|
||||
}
|
||||
|
||||
public String getHzflh() {
|
||||
return hzflh;
|
||||
}
|
||||
|
||||
public void setHzflh(String hzflh) {
|
||||
this.hzflh = hzflh;
|
||||
}
|
||||
|
||||
public String getCyxfx() {
|
||||
return cyxfx;
|
||||
}
|
||||
|
||||
public void setCyxfx(String cyxfx) {
|
||||
this.cyxfx = cyxfx;
|
||||
}
|
||||
|
||||
public String getDqrq() {
|
||||
return dqrq;
|
||||
}
|
||||
|
||||
public void setDqrq(String dqrq) {
|
||||
this.dqrq = dqrq;
|
||||
}
|
||||
|
||||
public String getGlidpznr() {
|
||||
return glidpznr;
|
||||
}
|
||||
|
||||
public void setGlidpznr(String glidpznr) {
|
||||
this.glidpznr = glidpznr;
|
||||
}
|
||||
|
||||
public String getFzdm11() {
|
||||
return fzdm11;
|
||||
}
|
||||
|
||||
public void setFzdm11(String fzdm11) {
|
||||
this.fzdm11 = fzdm11;
|
||||
}
|
||||
|
||||
public String getFzdm12() {
|
||||
return fzdm12;
|
||||
}
|
||||
|
||||
public void setFzdm12(String fzdm12) {
|
||||
this.fzdm12 = fzdm12;
|
||||
}
|
||||
|
||||
public String getFzdm13() {
|
||||
return fzdm13;
|
||||
}
|
||||
|
||||
public void setFzdm13(String fzdm13) {
|
||||
this.fzdm13 = fzdm13;
|
||||
}
|
||||
|
||||
public String getFzdm14() {
|
||||
return fzdm14;
|
||||
}
|
||||
|
||||
public void setFzdm14(String fzdm14) {
|
||||
this.fzdm14 = fzdm14;
|
||||
}
|
||||
|
||||
public String getFzdm15() {
|
||||
return fzdm15;
|
||||
}
|
||||
|
||||
public void setFzdm15(String fzdm15) {
|
||||
this.fzdm15 = fzdm15;
|
||||
}
|
||||
|
||||
public String getFzdm16() {
|
||||
return fzdm16;
|
||||
}
|
||||
|
||||
public void setFzdm16(String fzdm16) {
|
||||
this.fzdm16 = fzdm16;
|
||||
}
|
||||
|
||||
public String getFzdm17() {
|
||||
return fzdm17;
|
||||
}
|
||||
|
||||
public void setFzdm17(String fzdm17) {
|
||||
this.fzdm17 = fzdm17;
|
||||
}
|
||||
|
||||
public String getFzdm18() {
|
||||
return fzdm18;
|
||||
}
|
||||
|
||||
public void setFzdm18(String fzdm18) {
|
||||
this.fzdm18 = fzdm18;
|
||||
}
|
||||
|
||||
public String getFzdm19() {
|
||||
return fzdm19;
|
||||
}
|
||||
|
||||
public void setFzdm19(String fzdm19) {
|
||||
this.fzdm19 = fzdm19;
|
||||
}
|
||||
|
||||
public String getFzdm20() {
|
||||
return fzdm20;
|
||||
}
|
||||
|
||||
public void setFzdm20(String fzdm20) {
|
||||
this.fzdm20 = fzdm20;
|
||||
}
|
||||
|
||||
public String getFzdm21() {
|
||||
return fzdm21;
|
||||
}
|
||||
|
||||
public void setFzdm21(String fzdm21) {
|
||||
this.fzdm21 = fzdm21;
|
||||
}
|
||||
|
||||
public String getFzdm22() {
|
||||
return fzdm22;
|
||||
}
|
||||
|
||||
public void setFzdm22(String fzdm22) {
|
||||
this.fzdm22 = fzdm22;
|
||||
}
|
||||
|
||||
public String getFzdm23() {
|
||||
return fzdm23;
|
||||
}
|
||||
|
||||
public void setFzdm23(String fzdm23) {
|
||||
this.fzdm23 = fzdm23;
|
||||
}
|
||||
|
||||
public String getFzdm24() {
|
||||
return fzdm24;
|
||||
}
|
||||
|
||||
public void setFzdm24(String fzdm24) {
|
||||
this.fzdm24 = fzdm24;
|
||||
}
|
||||
|
||||
public String getFzdm25() {
|
||||
return fzdm25;
|
||||
}
|
||||
|
||||
public void setFzdm25(String fzdm25) {
|
||||
this.fzdm25 = fzdm25;
|
||||
}
|
||||
|
||||
public String getFzdm26() {
|
||||
return fzdm26;
|
||||
}
|
||||
|
||||
public void setFzdm26(String fzdm26) {
|
||||
this.fzdm26 = fzdm26;
|
||||
}
|
||||
|
||||
public String getFzdm27() {
|
||||
return fzdm27;
|
||||
}
|
||||
|
||||
public void setFzdm27(String fzdm27) {
|
||||
this.fzdm27 = fzdm27;
|
||||
}
|
||||
|
||||
public String getFzdm28() {
|
||||
return fzdm28;
|
||||
}
|
||||
|
||||
public void setFzdm28(String fzdm28) {
|
||||
this.fzdm28 = fzdm28;
|
||||
}
|
||||
|
||||
public String getFzdm29() {
|
||||
return fzdm29;
|
||||
}
|
||||
|
||||
public void setFzdm29(String fzdm29) {
|
||||
this.fzdm29 = fzdm29;
|
||||
}
|
||||
|
||||
public String getFzdm30() {
|
||||
return fzdm30;
|
||||
}
|
||||
|
||||
public void setFzdm30(String fzdm30) {
|
||||
this.fzdm30 = fzdm30;
|
||||
}
|
||||
|
||||
public String getKjtxdm() {
|
||||
return kjtxdm;
|
||||
}
|
||||
|
||||
public void setKjtxdm(String kjtxdm) {
|
||||
this.kjtxdm = kjtxdm;
|
||||
}
|
||||
|
||||
public String getPzlxdm() {
|
||||
return pzlxdm;
|
||||
}
|
||||
|
||||
public void setPzlxdm(String pzlxdm) {
|
||||
this.pzlxdm = pzlxdm;
|
||||
}
|
||||
|
||||
public String getIdpzh() {
|
||||
return idpzh;
|
||||
}
|
||||
|
||||
public void setIdpzh(String idpzh) {
|
||||
this.idpzh = idpzh;
|
||||
}
|
||||
|
||||
public String getSkrlx() {
|
||||
return skrlx;
|
||||
}
|
||||
|
||||
public void setSkrlx(String skrlx) {
|
||||
this.skrlx = skrlx;
|
||||
}
|
||||
|
||||
public String getSkrmc() {
|
||||
return skrmc;
|
||||
}
|
||||
|
||||
public void setSkrmc(String skrmc) {
|
||||
this.skrmc = skrmc;
|
||||
}
|
||||
|
||||
public String getSkrzh() {
|
||||
return skrzh;
|
||||
}
|
||||
|
||||
public void setSkrzh(String skrzh) {
|
||||
this.skrzh = skrzh;
|
||||
}
|
||||
|
||||
public String getSkryhdm() {
|
||||
return skryhdm;
|
||||
}
|
||||
|
||||
public void setSkryhdm(String skryhdm) {
|
||||
this.skryhdm = skryhdm;
|
||||
}
|
||||
|
||||
public String getSkryhhh() {
|
||||
return skryhhh;
|
||||
}
|
||||
|
||||
public void setSkryhhh(String skryhhh) {
|
||||
this.skryhhh = skryhhh;
|
||||
}
|
||||
|
||||
public String getSkryhmc() {
|
||||
return skryhmc;
|
||||
}
|
||||
|
||||
public void setSkryhmc(String skryhmc) {
|
||||
this.skryhmc = skryhmc;
|
||||
}
|
||||
|
||||
public String getYszccy() {
|
||||
return yszccy;
|
||||
}
|
||||
|
||||
public void setYszccy(String yszccy) {
|
||||
this.yszccy = yszccy;
|
||||
}
|
||||
|
||||
public String getXsflh() {
|
||||
return xsflh;
|
||||
}
|
||||
|
||||
public void setXsflh(String xsflh) {
|
||||
this.xsflh = xsflh;
|
||||
}
|
||||
|
||||
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 Integer getFlh() {
|
||||
return flh;
|
||||
}
|
||||
|
||||
public void setFlh(Integer flh) {
|
||||
this.flh = flh;
|
||||
}
|
||||
|
||||
public String getZy() {
|
||||
return zy;
|
||||
}
|
||||
|
||||
public void setZy(String zy) {
|
||||
this.zy = zy;
|
||||
}
|
||||
|
||||
public String getKmdm() {
|
||||
return kmdm;
|
||||
}
|
||||
|
||||
public void setKmdm(String kmdm) {
|
||||
this.kmdm = kmdm;
|
||||
}
|
||||
|
||||
public String getWbdm() {
|
||||
return wbdm;
|
||||
}
|
||||
|
||||
public void setWbdm(String wbdm) {
|
||||
this.wbdm = wbdm;
|
||||
}
|
||||
|
||||
public String getHl() {
|
||||
return hl;
|
||||
}
|
||||
|
||||
public void setHl(String hl) {
|
||||
this.hl = hl;
|
||||
}
|
||||
|
||||
public String getJdbz() {
|
||||
return jdbz;
|
||||
}
|
||||
|
||||
public void setJdbz(String jdbz) {
|
||||
this.jdbz = jdbz;
|
||||
}
|
||||
|
||||
public String getWbje() {
|
||||
return wbje;
|
||||
}
|
||||
|
||||
public void setWbje(String wbje) {
|
||||
this.wbje = wbje;
|
||||
}
|
||||
|
||||
public String getJe() {
|
||||
return je;
|
||||
}
|
||||
|
||||
public void setJe(String je) {
|
||||
this.je = je;
|
||||
}
|
||||
|
||||
public String getSpz() {
|
||||
return spz;
|
||||
}
|
||||
|
||||
public void setSpz(String spz) {
|
||||
this.spz = spz;
|
||||
}
|
||||
|
||||
public String getWldrq() {
|
||||
return wldrq;
|
||||
}
|
||||
|
||||
public void setWldrq(String wldrq) {
|
||||
this.wldrq = wldrq;
|
||||
}
|
||||
|
||||
public String getSl() {
|
||||
return sl;
|
||||
}
|
||||
|
||||
public void setSl(String sl) {
|
||||
this.sl = sl;
|
||||
}
|
||||
|
||||
public String getDj() {
|
||||
return dj;
|
||||
}
|
||||
|
||||
public void setDj(String dj) {
|
||||
this.dj = dj;
|
||||
}
|
||||
|
||||
public String getBmdm() {
|
||||
return bmdm;
|
||||
}
|
||||
|
||||
public void setBmdm(String bmdm) {
|
||||
this.bmdm = bmdm;
|
||||
}
|
||||
|
||||
public String getWldm() {
|
||||
return wldm;
|
||||
}
|
||||
|
||||
public void setWldm(String wldm) {
|
||||
this.wldm = wldm;
|
||||
}
|
||||
|
||||
public String getXmdm() {
|
||||
return xmdm;
|
||||
}
|
||||
|
||||
public void setXmdm(String xmdm) {
|
||||
this.xmdm = xmdm;
|
||||
}
|
||||
|
||||
public String getFzsm1() {
|
||||
return fzsm1;
|
||||
}
|
||||
|
||||
public void setFzsm1(String fzsm1) {
|
||||
this.fzsm1 = fzsm1;
|
||||
}
|
||||
|
||||
public String getFzsm2() {
|
||||
return fzsm2;
|
||||
}
|
||||
|
||||
public void setFzsm2(String fzsm2) {
|
||||
this.fzsm2 = fzsm2;
|
||||
}
|
||||
|
||||
public String getFzsm3() {
|
||||
return fzsm3;
|
||||
}
|
||||
|
||||
public void setFzsm3(String fzsm3) {
|
||||
this.fzsm3 = fzsm3;
|
||||
}
|
||||
|
||||
public String getFzsm4() {
|
||||
return fzsm4;
|
||||
}
|
||||
|
||||
public void setFzsm4(String fzsm4) {
|
||||
this.fzsm4 = fzsm4;
|
||||
}
|
||||
|
||||
public String getFzsm5() {
|
||||
return fzsm5;
|
||||
}
|
||||
|
||||
public void setFzsm5(String fzsm5) {
|
||||
this.fzsm5 = fzsm5;
|
||||
}
|
||||
|
||||
public String getFzsm6() {
|
||||
return fzsm6;
|
||||
}
|
||||
|
||||
public void setFzsm6(String fzsm6) {
|
||||
this.fzsm6 = fzsm6;
|
||||
}
|
||||
|
||||
public String getFzsm7() {
|
||||
return fzsm7;
|
||||
}
|
||||
|
||||
public void setFzsm7(String fzsm7) {
|
||||
this.fzsm7 = fzsm7;
|
||||
}
|
||||
|
||||
public String getFzsm8() {
|
||||
return fzsm8;
|
||||
}
|
||||
|
||||
public void setFzsm8(String fzsm8) {
|
||||
this.fzsm8 = fzsm8;
|
||||
}
|
||||
|
||||
public String getFzsm9() {
|
||||
return fzsm9;
|
||||
}
|
||||
|
||||
public void setFzsm9(String fzsm9) {
|
||||
this.fzsm9 = fzsm9;
|
||||
}
|
||||
|
||||
public String getCess() {
|
||||
return cess;
|
||||
}
|
||||
|
||||
public void setCess(String cess) {
|
||||
this.cess = cess;
|
||||
}
|
||||
|
||||
public String getFplx() {
|
||||
return fplx;
|
||||
}
|
||||
|
||||
public void setFplx(String fplx) {
|
||||
this.fplx = fplx;
|
||||
}
|
||||
|
||||
public String getFprq() {
|
||||
return fprq;
|
||||
}
|
||||
|
||||
public void setFprq(String fprq) {
|
||||
this.fprq = fprq;
|
||||
}
|
||||
|
||||
public Integer getFphfw1() {
|
||||
return fphfw1;
|
||||
}
|
||||
|
||||
public void setFphfw1(Integer fphfw1) {
|
||||
this.fphfw1 = fphfw1;
|
||||
}
|
||||
|
||||
public Integer getFphfw2() {
|
||||
return fphfw2;
|
||||
}
|
||||
|
||||
public void setFphfw2(Integer fphfw2) {
|
||||
this.fphfw2 = fphfw2;
|
||||
}
|
||||
|
||||
public String getJsfs() {
|
||||
return jsfs;
|
||||
}
|
||||
|
||||
public void setJsfs(String jsfs) {
|
||||
this.jsfs = jsfs;
|
||||
}
|
||||
|
||||
public String getZydm() {
|
||||
return zydm;
|
||||
}
|
||||
|
||||
public void setZydm(String zydm) {
|
||||
this.zydm = zydm;
|
||||
}
|
||||
|
||||
public String getFzdm4() {
|
||||
return fzdm4;
|
||||
}
|
||||
|
||||
public void setFzdm4(String fzdm4) {
|
||||
this.fzdm4 = fzdm4;
|
||||
}
|
||||
|
||||
public String getFzdm5() {
|
||||
return fzdm5;
|
||||
}
|
||||
|
||||
public void setFzdm5(String fzdm5) {
|
||||
this.fzdm5 = fzdm5;
|
||||
}
|
||||
|
||||
public String getFzdm6() {
|
||||
return fzdm6;
|
||||
}
|
||||
|
||||
public void setFzdm6(String fzdm6) {
|
||||
this.fzdm6 = fzdm6;
|
||||
}
|
||||
|
||||
public String getFzdm7() {
|
||||
return fzdm7;
|
||||
}
|
||||
|
||||
public void setFzdm7(String fzdm7) {
|
||||
this.fzdm7 = fzdm7;
|
||||
}
|
||||
|
||||
public String getFzdm8() {
|
||||
return fzdm8;
|
||||
}
|
||||
|
||||
public void setFzdm8(String fzdm8) {
|
||||
this.fzdm8 = fzdm8;
|
||||
}
|
||||
|
||||
public String getFzdm9() {
|
||||
return fzdm9;
|
||||
}
|
||||
|
||||
public void setFzdm9(String fzdm9) {
|
||||
this.fzdm9 = fzdm9;
|
||||
}
|
||||
|
||||
public String getFzdm10() {
|
||||
return fzdm10;
|
||||
}
|
||||
|
||||
public void setFzdm10(String fzdm10) {
|
||||
this.fzdm10 = fzdm10;
|
||||
}
|
||||
|
||||
public String getIdpznr() {
|
||||
return idpznr;
|
||||
}
|
||||
|
||||
public void setIdpznr(String idpznr) {
|
||||
this.idpznr = idpznr;
|
||||
}
|
||||
|
||||
public String getWlh() {
|
||||
return wlh;
|
||||
}
|
||||
|
||||
public void setWlh(String wlh) {
|
||||
this.wlh = wlh;
|
||||
}
|
||||
|
||||
public Integer getZbid() {
|
||||
return zbid;
|
||||
}
|
||||
|
||||
public void setZbid(Integer zbid) {
|
||||
this.zbid = zbid;
|
||||
}
|
||||
|
||||
public Integer getEdid() {
|
||||
return edid;
|
||||
}
|
||||
|
||||
public void setEdid(Integer edid) {
|
||||
this.edid = edid;
|
||||
}
|
||||
|
||||
public Integer getJfsqid() {
|
||||
return jfsqid;
|
||||
}
|
||||
|
||||
public void setJfsqid(Integer jfsqid) {
|
||||
this.jfsqid = jfsqid;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,896 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.glPznr.dao.impl.SenderGlPznrDaoImpl">
|
||||
|
||||
<resultMap id="get-SenderGlPznrEntity-result" type="com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" >
|
||||
<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="flh" column="flh" jdbcType="INTEGER"/>
|
||||
<result property="zy" column="zy" jdbcType="VARCHAR"/>
|
||||
<result property="kmdm" column="kmdm" jdbcType="VARCHAR"/>
|
||||
<result property="wbdm" column="wbdm" jdbcType="VARCHAR"/>
|
||||
<result property="hl" column="hl" jdbcType="VARCHAR"/>
|
||||
<result property="jdbz" column="jdbz" jdbcType="VARCHAR"/>
|
||||
<result property="wbje" column="wbje" jdbcType="VARCHAR"/>
|
||||
<result property="je" column="je" jdbcType="VARCHAR"/>
|
||||
<result property="spz" column="spz" jdbcType="VARCHAR"/>
|
||||
<result property="wldrq" column="wldrq" jdbcType="VARCHAR"/>
|
||||
<result property="sl" column="sl" jdbcType="VARCHAR"/>
|
||||
<result property="dj" column="dj" jdbcType="VARCHAR"/>
|
||||
<result property="bmdm" column="bmdm" jdbcType="VARCHAR"/>
|
||||
<result property="wldm" column="wldm" jdbcType="VARCHAR"/>
|
||||
<result property="xmdm" column="xmdm" jdbcType="VARCHAR"/>
|
||||
<result property="fzsm1" column="fzsm1" jdbcType="VARCHAR"/>
|
||||
<result property="fzsm2" column="fzsm2" jdbcType="VARCHAR"/>
|
||||
<result property="fzsm3" column="fzsm3" jdbcType="VARCHAR"/>
|
||||
<result property="fzsm4" column="fzsm4" jdbcType="VARCHAR"/>
|
||||
<result property="fzsm5" column="fzsm5" jdbcType="VARCHAR"/>
|
||||
<result property="fzsm6" column="fzsm6" jdbcType="VARCHAR"/>
|
||||
<result property="fzsm7" column="fzsm7" jdbcType="VARCHAR"/>
|
||||
<result property="fzsm8" column="fzsm8" jdbcType="VARCHAR"/>
|
||||
<result property="fzsm9" column="fzsm9" jdbcType="VARCHAR"/>
|
||||
<result property="cess" column="cess" jdbcType="VARCHAR"/>
|
||||
<result property="fplx" column="fplx" jdbcType="VARCHAR"/>
|
||||
<result property="fprq" column="fprq" jdbcType="VARCHAR"/>
|
||||
<result property="fphfw1" column="fphfw1" jdbcType="INTEGER"/>
|
||||
<result property="fphfw2" column="fphfw2" jdbcType="INTEGER"/>
|
||||
<result property="jsfs" column="jsfs" jdbcType="VARCHAR"/>
|
||||
<result property="zydm" column="zydm" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm4" column="fzdm4" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm5" column="fzdm5" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm6" column="fzdm6" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm7" column="fzdm7" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm8" column="fzdm8" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm9" column="fzdm9" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm10" column="fzdm10" jdbcType="VARCHAR"/>
|
||||
<result property="idpznr" column="IDPZNR" jdbcType="VARCHAR"/>
|
||||
<result property="wlh" column="wlh" jdbcType="VARCHAR"/>
|
||||
<result property="zbid" column="ZBID" jdbcType="INTEGER"/>
|
||||
<result property="edid" column="EDID" jdbcType="INTEGER"/>
|
||||
<result property="jfsqid" column="JFSQID" jdbcType="INTEGER"/>
|
||||
<result property="kjtxdm" column="kjtxdm" jdbcType="VARCHAR"/>
|
||||
<result property="pzlxdm" column="pzlxdm" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm11" column="fzdm11" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm12" column="fzdm12" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm13" column="fzdm13" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm14" column="fzdm14" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm15" column="fzdm15" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm16" column="fzdm16" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm17" column="fzdm17" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm18" column="fzdm18" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm19" column="fzdm19" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm20" column="fzdm20" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm21" column="fzdm21" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm22" column="fzdm22" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm23" column="fzdm23" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm24" column="fzdm24" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm25" column="fzdm25" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm26" column="fzdm26" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm27" column="fzdm27" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm28" column="fzdm28" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm29" column="fzdm29" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm30" column="fzdm30" jdbcType="VARCHAR"/>
|
||||
<result property="idpzh" column="idpzh" jdbcType="VARCHAR"/>
|
||||
<result property="skrlx" column="skrlx" jdbcType="VARCHAR"/>
|
||||
<result property="skrmc" column="skrmc" jdbcType="VARCHAR"/>
|
||||
<result property="skrzh" column="skrzh" jdbcType="VARCHAR"/>
|
||||
<result property="skryhdm" column="skryhdm" jdbcType="VARCHAR"/>
|
||||
<result property="skryhhh" column="skryhhh" jdbcType="VARCHAR"/>
|
||||
<result property="skryhmc" column="skryhmc" jdbcType="VARCHAR"/>
|
||||
<result property="yszccy" column="yszccy" jdbcType="VARCHAR"/>
|
||||
<result property="xsflh" column="xsflh" jdbcType="VARCHAR"/>
|
||||
<result property="bxdid" column="bxdid" jdbcType="VARCHAR"/>
|
||||
<result property="htid" column="htid" jdbcType="VARCHAR"/>
|
||||
<result property="zckpbh" column="zckpbh" jdbcType="VARCHAR"/>
|
||||
<result property="sflx" column="sflx" jdbcType="VARCHAR"/>
|
||||
<result property="djbh" column="djbh" jdbcType="VARCHAR"/>
|
||||
<result property="hzflh" column="hzflh" jdbcType="VARCHAR"/>
|
||||
<result property="cyxfx" column="cyxfx" jdbcType="VARCHAR"/>
|
||||
<result property="dqrq" column="dqrq" jdbcType="VARCHAR"/>
|
||||
<result property="glidpznr" column="glidpznr" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "SenderGlPznrEntity_Base_Column_List">
|
||||
gsdm
|
||||
, ZTH
|
||||
, kjqj
|
||||
, pzly
|
||||
, pzh
|
||||
,pzlxdm
|
||||
,kjtxdm
|
||||
, flh
|
||||
, zy
|
||||
, kmdm
|
||||
, wbdm
|
||||
, hl
|
||||
, jdbz
|
||||
, wbje
|
||||
, je
|
||||
, spz
|
||||
, wldrq
|
||||
, sl
|
||||
, dj
|
||||
, bmdm
|
||||
, wldm
|
||||
, xmdm
|
||||
, fzsm1
|
||||
, fzsm2
|
||||
, fzsm3
|
||||
, fzsm4
|
||||
, fzsm5
|
||||
, fzsm6
|
||||
, fzsm7
|
||||
, fzsm8
|
||||
, fzsm9
|
||||
, cess
|
||||
, fplx
|
||||
, fprq
|
||||
, fphfw1
|
||||
, fphfw2
|
||||
, jsfs
|
||||
, zydm
|
||||
, fzdm4
|
||||
, fzdm5
|
||||
, fzdm6
|
||||
, fzdm7
|
||||
, fzdm8
|
||||
, fzdm9
|
||||
, fzdm10
|
||||
, IDPZNR
|
||||
, wlh
|
||||
, ZBID
|
||||
, EDID
|
||||
, JFSQID
|
||||
, fzdm10
|
||||
, fzdm11
|
||||
, fzdm12
|
||||
, fzdm13
|
||||
, fzdm14
|
||||
, fzdm15
|
||||
, fzdm16
|
||||
, fzdm17
|
||||
, fzdm18
|
||||
, fzdm19
|
||||
, fzdm20
|
||||
, fzdm21
|
||||
, fzdm22
|
||||
, fzdm23
|
||||
, fzdm24
|
||||
, fzdm25
|
||||
, fzdm26
|
||||
, fzdm27
|
||||
, fzdm28
|
||||
, fzdm29
|
||||
, fzdm30
|
||||
, idpzh
|
||||
, skrlx
|
||||
, skrmc
|
||||
, skrzh
|
||||
, skryhdm
|
||||
, skryhhh
|
||||
, skryhmc
|
||||
, yszccy
|
||||
, xsflh
|
||||
, bxdid
|
||||
, htid
|
||||
, zckpbh
|
||||
, sflx
|
||||
, djbh
|
||||
, hzflh
|
||||
, cyxfx
|
||||
, dqrq
|
||||
, glidpznr
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-SenderGlPznrEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||
select
|
||||
<include refid="SenderGlPznrEntity_Base_Column_List" />
|
||||
from gl_pznr
|
||||
<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="flh != null"> and flh = #{flh} </if>
|
||||
<if test="zy != null and zy != ''"> and zy = #{zy} </if>
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||
<if test="hl != null"> and hl = #{hl} </if>
|
||||
<if test="jdbz != null and jdbz != ''"> and jdbz = #{jdbz} </if>
|
||||
<if test="wbje != null"> and wbje = #{wbje} </if>
|
||||
<if test="je != null"> and je = #{je} </if>
|
||||
<if test="spz != null and spz != ''"> and spz = #{spz} </if>
|
||||
<if test="wldrq != null and wldrq != ''"> and wldrq = #{wldrq} </if>
|
||||
<if test="sl != null"> and sl = #{sl} </if>
|
||||
<if test="dj != null"> and dj = #{dj} </if>
|
||||
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
|
||||
<if test="wldm != null and wldm != ''"> and wldm = #{wldm} </if>
|
||||
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 = #{fzsm1} </if>
|
||||
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 = #{fzsm2} </if>
|
||||
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 = #{fzsm3} </if>
|
||||
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 = #{fzsm4} </if>
|
||||
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 = #{fzsm5} </if>
|
||||
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 = #{fzsm6} </if>
|
||||
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 = #{fzsm7} </if>
|
||||
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 = #{fzsm8} </if>
|
||||
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 = #{fzsm9} </if>
|
||||
<if test="cess != null"> and cess = #{cess} </if>
|
||||
<if test="fplx != null and fplx != ''"> and fplx = #{fplx} </if>
|
||||
<if test="fprq != null and fprq != ''"> and fprq = #{fprq} </if>
|
||||
<if test="fphfw1 != null"> and fphfw1 = #{fphfw1} </if>
|
||||
<if test="fphfw2 != null"> and fphfw2 = #{fphfw2} </if>
|
||||
<if test="jsfs != null and jsfs != ''"> and jsfs = #{jsfs} </if>
|
||||
<if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||
<if test="idpznr != null and idpznr != ''"> and IDPZNR = #{idpznr} </if>
|
||||
<if test="idpzh != null and idpzh != ''"> and idpzh = #{idpzh} </if>
|
||||
<if test="wlh != null and wlh != ''"> and wlh = #{wlh} </if>
|
||||
<if test="zbid != null"> and ZBID = #{zbid} </if>
|
||||
<if test="edid != null"> and EDID = #{edid} </if>
|
||||
<if test="jfsqid != null"> and JFSQID = #{jfsqid} </if>
|
||||
<if test="idpzh != null"> and idpzh = #{idpzh} </if>
|
||||
-- and zth in('004','005','009','010','011','012','014')
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询凭证内容日志 采用==查询 -->
|
||||
<select id="querySenderGlPznrEntityOne" resultMap="get-SenderGlPznrEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||
select
|
||||
<include refid="SenderGlPznrEntity_Base_Column_List" />
|
||||
from gl_pznr
|
||||
<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="flh != null"> and flh = #{flh} </if>
|
||||
<if test="zy != null and zy != ''"> and zy = #{zy} </if>
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||
<if test="hl != null"> and hl = #{hl} </if>
|
||||
<if test="jdbz != null and jdbz != ''"> and jdbz = #{jdbz} </if>
|
||||
<if test="wbje != null"> and wbje = #{wbje} </if>
|
||||
<if test="je != null"> and je = #{je} </if>
|
||||
<if test="spz != null and spz != ''"> and spz = #{spz} </if>
|
||||
<if test="wldrq != null and wldrq != ''"> and wldrq = #{wldrq} </if>
|
||||
<if test="sl != null"> and sl = #{sl} </if>
|
||||
<if test="dj != null"> and dj = #{dj} </if>
|
||||
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
|
||||
<if test="wldm != null and wldm != ''"> and wldm = #{wldm} </if>
|
||||
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 = #{fzsm1} </if>
|
||||
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 = #{fzsm2} </if>
|
||||
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 = #{fzsm3} </if>
|
||||
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 = #{fzsm4} </if>
|
||||
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 = #{fzsm5} </if>
|
||||
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 = #{fzsm6} </if>
|
||||
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 = #{fzsm7} </if>
|
||||
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 = #{fzsm8} </if>
|
||||
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 = #{fzsm9} </if>
|
||||
<if test="cess != null"> and cess = #{cess} </if>
|
||||
<if test="fplx != null and fplx != ''"> and fplx = #{fplx} </if>
|
||||
<if test="fprq != null and fprq != ''"> and fprq = #{fprq} </if>
|
||||
<if test="fphfw1 != null"> and fphfw1 = #{fphfw1} </if>
|
||||
<if test="fphfw2 != null"> and fphfw2 = #{fphfw2} </if>
|
||||
<if test="jsfs != null and jsfs != ''"> and jsfs = #{jsfs} </if>
|
||||
<if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||
<if test="idpznr != null and idpznr != ''"> and IDPZNR = #{idpznr} </if>
|
||||
<if test="wlh != null and wlh != ''"> and wlh = #{wlh} </if>
|
||||
<if test="zbid != null"> and ZBID = #{zbid} </if>
|
||||
<if test="edid != null"> and EDID = #{edid} </if>
|
||||
<if test="jfsqid != null"> and JFSQID = #{jfsqid} </if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||
select count(1) from gl_pznr
|
||||
<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="flh != null"> and flh = #{flh} </if>
|
||||
<if test="zy != null and zy != ''"> and zy = #{zy} </if>
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||
<if test="hl != null"> and hl = #{hl} </if>
|
||||
<if test="jdbz != null and jdbz != ''"> and jdbz = #{jdbz} </if>
|
||||
<if test="wbje != null"> and wbje = #{wbje} </if>
|
||||
<if test="je != null"> and je = #{je} </if>
|
||||
<if test="spz != null and spz != ''"> and spz = #{spz} </if>
|
||||
<if test="wldrq != null and wldrq != ''"> and wldrq = #{wldrq} </if>
|
||||
<if test="sl != null"> and sl = #{sl} </if>
|
||||
<if test="dj != null"> and dj = #{dj} </if>
|
||||
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
|
||||
<if test="wldm != null and wldm != ''"> and wldm = #{wldm} </if>
|
||||
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 = #{fzsm1} </if>
|
||||
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 = #{fzsm2} </if>
|
||||
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 = #{fzsm3} </if>
|
||||
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 = #{fzsm4} </if>
|
||||
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 = #{fzsm5} </if>
|
||||
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 = #{fzsm6} </if>
|
||||
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 = #{fzsm7} </if>
|
||||
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 = #{fzsm8} </if>
|
||||
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 = #{fzsm9} </if>
|
||||
<if test="cess != null"> and cess = #{cess} </if>
|
||||
<if test="fplx != null and fplx != ''"> and fplx = #{fplx} </if>
|
||||
<if test="fprq != null and fprq != ''"> and fprq = #{fprq} </if>
|
||||
<if test="fphfw1 != null"> and fphfw1 = #{fphfw1} </if>
|
||||
<if test="fphfw2 != null"> and fphfw2 = #{fphfw2} </if>
|
||||
<if test="jsfs != null and jsfs != ''"> and jsfs = #{jsfs} </if>
|
||||
<if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||
<if test="idpznr != null and idpznr != ''"> and IDPZNR = #{idpznr} </if>
|
||||
<if test="wlh != null and wlh != ''"> and wlh = #{wlh} </if>
|
||||
<if test="zbid != null"> and ZBID = #{zbid} </if>
|
||||
<if test="edid != null"> and EDID = #{edid} </if>
|
||||
<if test="jfsqid != null"> and JFSQID = #{jfsqid} </if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-SenderGlPznrEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||
select
|
||||
<include refid="SenderGlPznrEntity_Base_Column_List" />
|
||||
from gl_pznr
|
||||
<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="flh != null"> and flh like concat('%',#{flh},'%') </if>
|
||||
<if test="zy != null and zy != ''"> and zy like concat('%',#{zy},'%') </if>
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm like concat('%',#{kmdm},'%') </if>
|
||||
<if test="wbdm != null and wbdm != ''"> and wbdm like concat('%',#{wbdm},'%') </if>
|
||||
<if test="hl != null"> and hl like concat('%',#{hl},'%') </if>
|
||||
<if test="jdbz != null and jdbz != ''"> and jdbz like concat('%',#{jdbz},'%') </if>
|
||||
<if test="wbje != null"> and wbje like concat('%',#{wbje},'%') </if>
|
||||
<if test="je != null"> and je like concat('%',#{je},'%') </if>
|
||||
<if test="spz != null and spz != ''"> and spz like concat('%',#{spz},'%') </if>
|
||||
<if test="wldrq != null and wldrq != ''"> and wldrq like concat('%',#{wldrq},'%') </if>
|
||||
<if test="sl != null"> and sl like concat('%',#{sl},'%') </if>
|
||||
<if test="dj != null"> and dj like concat('%',#{dj},'%') </if>
|
||||
<if test="bmdm != null and bmdm != ''"> and bmdm like concat('%',#{bmdm},'%') </if>
|
||||
<if test="wldm != null and wldm != ''"> and wldm like concat('%',#{wldm},'%') </if>
|
||||
<if test="xmdm != null and xmdm != ''"> and xmdm like concat('%',#{xmdm},'%') </if>
|
||||
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 like concat('%',#{fzsm1},'%') </if>
|
||||
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 like concat('%',#{fzsm2},'%') </if>
|
||||
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 like concat('%',#{fzsm3},'%') </if>
|
||||
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 like concat('%',#{fzsm4},'%') </if>
|
||||
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 like concat('%',#{fzsm5},'%') </if>
|
||||
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 like concat('%',#{fzsm6},'%') </if>
|
||||
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 like concat('%',#{fzsm7},'%') </if>
|
||||
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 like concat('%',#{fzsm8},'%') </if>
|
||||
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 like concat('%',#{fzsm9},'%') </if>
|
||||
<if test="cess != null"> and cess like concat('%',#{cess},'%') </if>
|
||||
<if test="fplx != null and fplx != ''"> and fplx like concat('%',#{fplx},'%') </if>
|
||||
<if test="fprq != null and fprq != ''"> and fprq like concat('%',#{fprq},'%') </if>
|
||||
<if test="fphfw1 != null"> and fphfw1 like concat('%',#{fphfw1},'%') </if>
|
||||
<if test="fphfw2 != null"> and fphfw2 like concat('%',#{fphfw2},'%') </if>
|
||||
<if test="jsfs != null and jsfs != ''"> and jsfs like concat('%',#{jsfs},'%') </if>
|
||||
<if test="zydm != null and zydm != ''"> and zydm like concat('%',#{zydm},'%') </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 like concat('%',#{fzdm4},'%') </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 like concat('%',#{fzdm5},'%') </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 like concat('%',#{fzdm6},'%') </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 like concat('%',#{fzdm7},'%') </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 like concat('%',#{fzdm8},'%') </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 like concat('%',#{fzdm9},'%') </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 like concat('%',#{fzdm10},'%') </if>
|
||||
<if test="idpznr != null and idpznr != ''"> and IDPZNR like concat('%',#{idpznr},'%') </if>
|
||||
<if test="idpzh != null and idpzh != ''"> and idpzh like concat('%',#{idpzh},'%') </if>
|
||||
<if test="wlh != null and wlh != ''"> and wlh like concat('%',#{wlh},'%') </if>
|
||||
<if test="zbid != null"> and ZBID like concat('%',#{zbid},'%') </if>
|
||||
<if test="edid != null"> and EDID like concat('%',#{edid},'%') </if>
|
||||
<if test="jfsqid != null"> and JFSQID like concat('%',#{jfsqid},'%') </if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SenderGlPznrEntity_list_or" resultMap="get-SenderGlPznrEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||
select
|
||||
<include refid="SenderGlPznrEntity_Base_Column_List" />
|
||||
from gl_pznr
|
||||
<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="flh != null"> or flh = #{flh} </if>
|
||||
<if test="zy != null and zy != ''"> or zy = #{zy} </if>
|
||||
<if test="kmdm != null and kmdm != ''"> or kmdm = #{kmdm} </if>
|
||||
<if test="wbdm != null and wbdm != ''"> or wbdm = #{wbdm} </if>
|
||||
<if test="hl != null"> or hl = #{hl} </if>
|
||||
<if test="jdbz != null and jdbz != ''"> or jdbz = #{jdbz} </if>
|
||||
<if test="wbje != null"> or wbje = #{wbje} </if>
|
||||
<if test="je != null"> or je = #{je} </if>
|
||||
<if test="spz != null and spz != ''"> or spz = #{spz} </if>
|
||||
<if test="wldrq != null and wldrq != ''"> or wldrq = #{wldrq} </if>
|
||||
<if test="sl != null"> or sl = #{sl} </if>
|
||||
<if test="dj != null"> or dj = #{dj} </if>
|
||||
<if test="bmdm != null and bmdm != ''"> or bmdm = #{bmdm} </if>
|
||||
<if test="wldm != null and wldm != ''"> or wldm = #{wldm} </if>
|
||||
<if test="xmdm != null and xmdm != ''"> or xmdm = #{xmdm} </if>
|
||||
<if test="fzsm1 != null and fzsm1 != ''"> or fzsm1 = #{fzsm1} </if>
|
||||
<if test="fzsm2 != null and fzsm2 != ''"> or fzsm2 = #{fzsm2} </if>
|
||||
<if test="fzsm3 != null and fzsm3 != ''"> or fzsm3 = #{fzsm3} </if>
|
||||
<if test="fzsm4 != null and fzsm4 != ''"> or fzsm4 = #{fzsm4} </if>
|
||||
<if test="fzsm5 != null and fzsm5 != ''"> or fzsm5 = #{fzsm5} </if>
|
||||
<if test="fzsm6 != null and fzsm6 != ''"> or fzsm6 = #{fzsm6} </if>
|
||||
<if test="fzsm7 != null and fzsm7 != ''"> or fzsm7 = #{fzsm7} </if>
|
||||
<if test="fzsm8 != null and fzsm8 != ''"> or fzsm8 = #{fzsm8} </if>
|
||||
<if test="fzsm9 != null and fzsm9 != ''"> or fzsm9 = #{fzsm9} </if>
|
||||
<if test="cess != null"> or cess = #{cess} </if>
|
||||
<if test="fplx != null and fplx != ''"> or fplx = #{fplx} </if>
|
||||
<if test="fprq != null and fprq != ''"> or fprq = #{fprq} </if>
|
||||
<if test="fphfw1 != null"> or fphfw1 = #{fphfw1} </if>
|
||||
<if test="fphfw2 != null"> or fphfw2 = #{fphfw2} </if>
|
||||
<if test="jsfs != null and jsfs != ''"> or jsfs = #{jsfs} </if>
|
||||
<if test="zydm != null and zydm != ''"> or zydm = #{zydm} </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> or fzdm4 = #{fzdm4} </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> or fzdm5 = #{fzdm5} </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> or fzdm6 = #{fzdm6} </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> or fzdm7 = #{fzdm7} </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> or fzdm8 = #{fzdm8} </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> or fzdm9 = #{fzdm9} </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> or fzdm10 = #{fzdm10} </if>
|
||||
<if test="idpznr != null and idpznr != ''"> or IDPZNR = #{idpznr} </if>
|
||||
<if test="wlh != null and wlh != ''"> or wlh = #{wlh} </if>
|
||||
<if test="zbid != null"> or ZBID = #{zbid} </if>
|
||||
<if test="edid != null"> or EDID = #{edid} </if>
|
||||
<if test="jfsqid != null"> or JFSQID = #{jfsqid} </if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_pznr(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
|
||||
<if test="kjqj != null and kjqj != ''"> kjqj , </if>
|
||||
<if test="pzly != null "> pzly , </if>
|
||||
<if test="pzh != null and pzh != ''"> pzh , </if>
|
||||
<if test="kjtxdm != null and kjtxdm != ''"> kjtxdm , </if>
|
||||
<if test="pzlxdm != null and pzlxdm != ''"> pzlxdm , </if>
|
||||
<if test="flh != null"> flh , </if>
|
||||
<if test="zy != null and zy != ''"> zy , </if>
|
||||
<if test="kmdm != null and kmdm != ''"> kmdm , </if>
|
||||
<if test="wbdm != null "> wbdm , </if>
|
||||
<if test="hl != null"> hl , </if>
|
||||
<if test="jdbz != null and jdbz != ''"> jdbz , </if>
|
||||
<if test="wbje != null"> wbje , </if>
|
||||
<if test="je != null"> je , </if>
|
||||
<if test="spz != null and spz != ''"> spz , </if>
|
||||
<if test="wldrq != null and wldrq != ''"> wldrq , </if>
|
||||
<if test="sl != null"> sl , </if>
|
||||
<if test="dj != null"> dj , </if>
|
||||
<if test="bmdm != null and bmdm != ''"> bmdm , </if>
|
||||
<if test="wldm != null and wldm != ''"> wldm , </if>
|
||||
<if test="xmdm != null and xmdm != ''"> xmdm , </if>
|
||||
<if test="fzsm1 != null and fzsm1 != ''"> fzsm1 , </if>
|
||||
<if test="fzsm2 != null and fzsm2 != ''"> fzsm2 , </if>
|
||||
<if test="fzsm3 != null and fzsm3 != ''"> fzsm3 , </if>
|
||||
<if test="fzsm4 != null and fzsm4 != ''"> fzsm4 , </if>
|
||||
<if test="fzsm5 != null and fzsm5 != ''"> fzsm5 , </if>
|
||||
<if test="fzsm6 != null and fzsm6 != ''"> fzsm6 , </if>
|
||||
<if test="fzsm7 != null and fzsm7 != ''"> fzsm7 , </if>
|
||||
<if test="fzsm8 != null and fzsm8 != ''"> fzsm8 , </if>
|
||||
<if test="fzsm9 != null and fzsm9 != ''"> fzsm9 , </if>
|
||||
<if test="cess != null"> cess , </if>
|
||||
<if test="fplx != null and fplx != ''"> fplx , </if>
|
||||
<if test="fprq != null and fprq != ''"> fprq , </if>
|
||||
<if test="fphfw1 != null"> fphfw1 , </if>
|
||||
<if test="fphfw2 != null"> fphfw2 , </if>
|
||||
<if test="jsfs != null and jsfs != ''"> jsfs , </if>
|
||||
<if test="zydm != null and zydm != ''"> zydm , </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> fzdm4 , </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> fzdm5 , </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> fzdm6 , </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> fzdm7 , </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> fzdm8 , </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> fzdm9 , </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> fzdm10 , </if>
|
||||
<if test="idpznr != null and idpznr != ''"> IDPZNR , </if>
|
||||
<if test="wlh != null and wlh != ''"> wlh , </if>
|
||||
<if test="zbid != null"> ZBID , </if>
|
||||
<if test="edid != null"> EDID , </if>
|
||||
<if test="jfsqid != null"> JFSQID , </if>
|
||||
<if test="fzdm11 != null and fzdm11 != ''"> fzdm11 , </if>
|
||||
<if test="fzdm12 != null and fzdm12 != ''"> fzdm12 , </if>
|
||||
<if test="fzdm13 != null and fzdm13 != ''"> fzdm13 , </if>
|
||||
<if test="fzdm14 != null and fzdm14 != ''"> fzdm14 , </if>
|
||||
<if test="fzdm15 != null and fzdm15 != ''"> fzdm15 , </if>
|
||||
<if test="fzdm16 != null and fzdm16 != ''"> fzdm16 , </if>
|
||||
<if test="fzdm17 != null and fzdm17 != ''"> fzdm17 , </if>
|
||||
<if test="fzdm18 != null and fzdm18 != ''"> fzdm18 , </if>
|
||||
<if test="fzdm19 != null and fzdm19 != ''"> fzdm19 , </if>
|
||||
<if test="fzdm20 != null and fzdm20 != ''"> fzdm20 , </if>
|
||||
<if test="fzdm21 != null and fzdm21 != ''"> fzdm21 , </if>
|
||||
<if test="fzdm22 != null and fzdm22 != ''"> fzdm22 , </if>
|
||||
<if test="fzdm23 != null and fzdm23 != ''"> fzdm23 , </if>
|
||||
<if test="fzdm24 != null and fzdm24 != ''"> fzdm24 , </if>
|
||||
<if test="fzdm25 != null and fzdm25 != ''"> fzdm25 , </if>
|
||||
<if test="fzdm26 != null and fzdm26 != ''"> fzdm26 , </if>
|
||||
<if test="fzdm27 != null and fzdm27 != ''"> fzdm27 , </if>
|
||||
<if test="fzdm28 != null and fzdm28 != ''"> fzdm28 , </if>
|
||||
<if test="fzdm29 != null and fzdm29 != ''"> fzdm29 , </if>
|
||||
<if test="fzdm30 != null and fzdm30 != ''"> fzdm30 , </if>
|
||||
<if test="idpzh != null and idpzh != ''"> idpzh , </if>
|
||||
<if test="skrlx != null and skrlx != ''"> skrlx , </if>
|
||||
<if test="skrmc != null and skrmc != ''"> skrmc , </if>
|
||||
<if test="skrzh != null and skrzh != ''"> skrzh , </if>
|
||||
<if test="skryhdm != null and skryhdm != ''"> skryhdm , </if>
|
||||
<if test="skryhhh != null and skryhhh != ''"> skryhhh , </if>
|
||||
<if test="skryhmc != null and skryhmc != ''"> skryhmc , </if>
|
||||
<if test="yszccy != null and yszccy != ''"> yszccy , </if>
|
||||
<if test="xsflh != null and xsflh != ''"> xsflh , </if>
|
||||
<if test="bxdid != null and bxdid != ''"> bxdid , </if>
|
||||
<if test="htid != null and htid != ''"> htid , </if>
|
||||
<if test="zckpbh != null and zckpbh != ''"> zckpbh , </if>
|
||||
<if test="sflx != null and sflx != ''"> sflx , </if>
|
||||
<if test="djbh != null and djbh != ''"> djbh , </if>
|
||||
<if test="hzflh != null and hzflh != ''"> hzflh , </if>
|
||||
<if test="cyxfx != null and cyxfx != ''"> cyxfx , </if>
|
||||
<if test="dqrq != null and dqrq != ''"> dqrq , </if>
|
||||
<if test="glidpznr != null and glidpznr != ''"> glidpznr , </if>
|
||||
<if test="zth != null and zth != ''"> ZTH </if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
|
||||
<if test="kjqj != null and kjqj != ''"> #{kjqj} ,</if>
|
||||
<if test="pzly != null "> #{pzly} ,</if>
|
||||
<if test="pzh != null and pzh != ''"> #{pzh} ,</if>
|
||||
<if test="kjtxdm != null and kjtxdm != ''"> #{kjtxdm} , </if>
|
||||
<if test="pzlxdm != null and pzlxdm != ''"> #{pzlxdm} , </if>
|
||||
<if test="flh != null"> #{flh} ,</if>
|
||||
<if test="zy != null and zy != ''"> #{zy} ,</if>
|
||||
<if test="kmdm != null and kmdm != ''"> #{kmdm} ,</if>
|
||||
<if test="wbdm != null "> #{wbdm} ,</if>
|
||||
<if test="hl != null"> #{hl} ,</if>
|
||||
<if test="jdbz != null and jdbz != ''"> #{jdbz} ,</if>
|
||||
<if test="wbje != null"> #{wbje} ,</if>
|
||||
<if test="je != null"> #{je} ,</if>
|
||||
<if test="spz != null and spz != ''"> #{spz} ,</if>
|
||||
<if test="wldrq != null and wldrq != ''"> #{wldrq} ,</if>
|
||||
<if test="sl != null"> #{sl} ,</if>
|
||||
<if test="dj != null"> #{dj} ,</if>
|
||||
<if test="bmdm != null and bmdm != ''"> #{bmdm} ,</if>
|
||||
<if test="wldm != null and wldm != ''"> #{wldm} ,</if>
|
||||
<if test="xmdm != null and xmdm != ''"> #{xmdm} ,</if>
|
||||
<if test="fzsm1 != null and fzsm1 != ''"> #{fzsm1} ,</if>
|
||||
<if test="fzsm2 != null and fzsm2 != ''"> #{fzsm2} ,</if>
|
||||
<if test="fzsm3 != null and fzsm3 != ''"> #{fzsm3} ,</if>
|
||||
<if test="fzsm4 != null and fzsm4 != ''"> #{fzsm4} ,</if>
|
||||
<if test="fzsm5 != null and fzsm5 != ''"> #{fzsm5} ,</if>
|
||||
<if test="fzsm6 != null and fzsm6 != ''"> #{fzsm6} ,</if>
|
||||
<if test="fzsm7 != null and fzsm7 != ''"> #{fzsm7} ,</if>
|
||||
<if test="fzsm8 != null and fzsm8 != ''"> #{fzsm8} ,</if>
|
||||
<if test="fzsm9 != null and fzsm9 != ''"> #{fzsm9} ,</if>
|
||||
<if test="cess != null"> #{cess} ,</if>
|
||||
<if test="fplx != null and fplx != ''"> #{fplx} ,</if>
|
||||
<if test="fprq != null and fprq != ''"> #{fprq} ,</if>
|
||||
<if test="fphfw1 != null"> #{fphfw1} ,</if>
|
||||
<if test="fphfw2 != null"> #{fphfw2} ,</if>
|
||||
<if test="jsfs != null and jsfs != ''"> #{jsfs} ,</if>
|
||||
<if test="zydm != null and zydm != ''"> #{zydm} ,</if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> #{fzdm4} ,</if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> #{fzdm5} ,</if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> #{fzdm6} ,</if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> #{fzdm7} ,</if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> #{fzdm8} ,</if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> #{fzdm9} ,</if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> #{fzdm10} ,</if>
|
||||
<if test="idpznr != null and idpznr != ''"> #{idpznr} ,</if>
|
||||
<if test="wlh != null and wlh != ''"> #{wlh} ,</if>
|
||||
<if test="zbid != null"> #{zbid} ,</if>
|
||||
<if test="edid != null"> #{edid} ,</if>
|
||||
<if test="jfsqid != null"> #{jfsqid} ,</if>
|
||||
<if test="fzdm11 != null and fzdm11 != ''"> #{fzdm11} , </if>
|
||||
<if test="fzdm12 != null and fzdm12 != ''"> #{fzdm12} , </if>
|
||||
<if test="fzdm13 != null and fzdm13 != ''"> #{fzdm13} , </if>
|
||||
<if test="fzdm14 != null and fzdm14 != ''"> #{fzdm14} , </if>
|
||||
<if test="fzdm15 != null and fzdm15 != ''"> #{fzdm15} , </if>
|
||||
<if test="fzdm16 != null and fzdm16 != ''"> #{fzdm16} , </if>
|
||||
<if test="fzdm17 != null and fzdm17 != ''"> #{fzdm17} , </if>
|
||||
<if test="fzdm18 != null and fzdm18 != ''"> #{fzdm18} , </if>
|
||||
<if test="fzdm19 != null and fzdm19 != ''"> #{fzdm19} , </if>
|
||||
<if test="fzdm20 != null and fzdm20 != ''"> #{fzdm20} , </if>
|
||||
<if test="fzdm21 != null and fzdm21 != ''"> #{fzdm21} , </if>
|
||||
<if test="fzdm22 != null and fzdm22 != ''"> #{fzdm22} , </if>
|
||||
<if test="fzdm23 != null and fzdm23 != ''"> #{fzdm23} , </if>
|
||||
<if test="fzdm24 != null and fzdm24 != ''"> #{fzdm24} , </if>
|
||||
<if test="fzdm25 != null and fzdm25 != ''"> #{fzdm25} , </if>
|
||||
<if test="fzdm26 != null and fzdm26 != ''"> #{fzdm26} , </if>
|
||||
<if test="fzdm27 != null and fzdm27 != ''"> #{fzdm27} , </if>
|
||||
<if test="fzdm28 != null and fzdm28 != ''"> #{fzdm28} , </if>
|
||||
<if test="fzdm29 != null and fzdm29 != ''"> #{fzdm29} , </if>
|
||||
<if test="fzdm30 != null and fzdm30 != ''"> #{fzdm30} , </if>
|
||||
<if test="idpzh != null and idpzh != ''"> #{idpzh} , </if>
|
||||
<if test="skrlx != null and skrlx != ''"> #{skrlx} , </if>
|
||||
<if test="skrmc != null and skrmc != ''"> #{skrmc} , </if>
|
||||
<if test="skrzh != null and skrzh != ''"> #{skrzh} , </if>
|
||||
<if test="skryhdm != null and skryhdm != ''"> #{skryhdm} , </if>
|
||||
<if test="skryhhh != null and skryhhh != ''"> #{skryhhh} , </if>
|
||||
<if test="skryhmc != null and skryhmc != ''"> #{skryhmc} , </if>
|
||||
<if test="yszccy != null and yszccy != ''"> #{yszccy} , </if>
|
||||
<if test="xsflh != null and xsflh != ''"> #{xsflh} , </if>
|
||||
<if test="bxdid != null and bxdid != ''"> #{bxdid}, </if>
|
||||
<if test="htid != null and htid != ''"> #{htid} , </if>
|
||||
<if test="zckpbh != null and zckpbh != ''"> #{zckpbh} , </if>
|
||||
<if test="sflx != null and sflx != ''"> #{sflx} , </if>
|
||||
<if test="djbh != null and djbh != ''"> #{djbh} , </if>
|
||||
<if test="hzflh != null and hzflh != ''"> #{hzflh} , </if>
|
||||
<if test="cyxfx != null and cyxfx != ''"> #{cyxfx} , </if>
|
||||
<if test="dqrq != null and dqrq != ''"> #{dqrq} , </if>
|
||||
<if test="glidpznr != null and glidpznr != ''"> #{glidpznr} , </if>
|
||||
<if test="zth != null and zth != ''"> #{zth} </if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_pznr(gsdm, ZTH, kjqj, pzly, pzh, flh, zy, kmdm, wbdm, hl, jdbz, wbje, je, spz, wldrq, sl, dj, bmdm, wldm, xmdm, fzsm1, fzsm2, fzsm3, fzsm4, fzsm5, fzsm6, fzsm7, fzsm8, fzsm9, cess, fplx, fprq, fphfw1, fphfw2, jsfs, zydm, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, IDPZNR, wlh, ZBID, EDID, JFSQID)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.flh},#{entity.zy},#{entity.kmdm},#{entity.wbdm},#{entity.hl},#{entity.jdbz},#{entity.wbje},#{entity.je},#{entity.spz},#{entity.wldrq},#{entity.sl},#{entity.dj},#{entity.bmdm},#{entity.wldm},#{entity.xmdm},#{entity.fzsm1},#{entity.fzsm2},#{entity.fzsm3},#{entity.fzsm4},#{entity.fzsm5},#{entity.fzsm6},#{entity.fzsm7},#{entity.fzsm8},#{entity.fzsm9},#{entity.cess},#{entity.fplx},#{entity.fprq},#{entity.fphfw1},#{entity.fphfw2},#{entity.jsfs},#{entity.zydm},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.idpznr},#{entity.wlh},#{entity.zbid},#{entity.edid},#{entity.jfsqid})
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_pznr(gsdm, ZTH, kjqj, pzly, pzh, flh, zy, kmdm, wbdm, hl, jdbz, wbje, je, spz, wldrq, sl, dj, bmdm, wldm, xmdm, fzsm1, fzsm2, fzsm3, fzsm4, fzsm5, fzsm6, fzsm7, fzsm8, fzsm9, cess, fplx, fprq, fphfw1, fphfw2, jsfs, zydm, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, IDPZNR, wlh, ZBID, EDID, JFSQID)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.flh},#{entity.zy},#{entity.kmdm},#{entity.wbdm},#{entity.hl},#{entity.jdbz},#{entity.wbje},#{entity.je},#{entity.spz},#{entity.wldrq},#{entity.sl},#{entity.dj},#{entity.bmdm},#{entity.wldm},#{entity.xmdm},#{entity.fzsm1},#{entity.fzsm2},#{entity.fzsm3},#{entity.fzsm4},#{entity.fzsm5},#{entity.fzsm6},#{entity.fzsm7},#{entity.fzsm8},#{entity.fzsm9},#{entity.cess},#{entity.fplx},#{entity.fprq},#{entity.fphfw1},#{entity.fphfw2},#{entity.jsfs},#{entity.zydm},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.idpznr},#{entity.wlh},#{entity.zbid},#{entity.edid},#{entity.jfsqid})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
gsdm = values(gsdm),
|
||||
ZTH = values(ZTH),
|
||||
kjqj = values(kjqj),
|
||||
pzly = values(pzly),
|
||||
pzh = values(pzh),
|
||||
flh = values(flh),
|
||||
zy = values(zy),
|
||||
kmdm = values(kmdm),
|
||||
wbdm = values(wbdm),
|
||||
hl = values(hl),
|
||||
jdbz = values(jdbz),
|
||||
wbje = values(wbje),
|
||||
je = values(je),
|
||||
spz = values(spz),
|
||||
wldrq = values(wldrq),
|
||||
sl = values(sl),
|
||||
dj = values(dj),
|
||||
bmdm = values(bmdm),
|
||||
wldm = values(wldm),
|
||||
xmdm = values(xmdm),
|
||||
fzsm1 = values(fzsm1),
|
||||
fzsm2 = values(fzsm2),
|
||||
fzsm3 = values(fzsm3),
|
||||
fzsm4 = values(fzsm4),
|
||||
fzsm5 = values(fzsm5),
|
||||
fzsm6 = values(fzsm6),
|
||||
fzsm7 = values(fzsm7),
|
||||
fzsm8 = values(fzsm8),
|
||||
fzsm9 = values(fzsm9),
|
||||
cess = values(cess),
|
||||
fplx = values(fplx),
|
||||
fprq = values(fprq),
|
||||
fphfw1 = values(fphfw1),
|
||||
fphfw2 = values(fphfw2),
|
||||
jsfs = values(jsfs),
|
||||
zydm = values(zydm),
|
||||
fzdm4 = values(fzdm4),
|
||||
fzdm5 = values(fzdm5),
|
||||
fzdm6 = values(fzdm6),
|
||||
fzdm7 = values(fzdm7),
|
||||
fzdm8 = values(fzdm8),
|
||||
fzdm9 = values(fzdm9),
|
||||
fzdm10 = values(fzdm10),
|
||||
IDPZNR = values(IDPZNR),
|
||||
wlh = values(wlh),
|
||||
ZBID = values(ZBID),
|
||||
EDID = values(EDID),
|
||||
JFSQID = values(JFSQID)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" >
|
||||
update gl_pznr 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="kjtxdm != null and kjtxdm != ''"> kjtxdm = #{kjtxdm},</if>
|
||||
<if test="pzlxdm != null and pzlxdm != ''"> pzlxdm = #{pzlxdm},</if>
|
||||
<if test="flh != null"> flh = #{flh},</if>
|
||||
<if test="zy != null and zy != ''"> zy = #{zy},</if>
|
||||
<if test="kmdm != null and kmdm != ''"> kmdm = #{kmdm},</if>
|
||||
<if test="wbdm != null and wbdm != ''"> wbdm = #{wbdm},</if>
|
||||
<if test="hl != null"> hl = #{hl},</if>
|
||||
<if test="jdbz != null and jdbz != ''"> jdbz = #{jdbz},</if>
|
||||
<if test="wbje != null"> wbje = #{wbje},</if>
|
||||
<if test="je != null"> je = #{je},</if>
|
||||
<if test="spz != null and spz != ''"> spz = #{spz},</if>
|
||||
<if test="wldrq != null and wldrq != ''"> wldrq = #{wldrq},</if>
|
||||
<if test="sl != null"> sl = #{sl},</if>
|
||||
<if test="dj != null"> dj = #{dj},</if>
|
||||
<if test="bmdm != null and bmdm != ''"> bmdm = #{bmdm},</if>
|
||||
<if test="wldm != null and wldm != ''"> wldm = #{wldm},</if>
|
||||
<if test="xmdm != null and xmdm != ''"> xmdm = #{xmdm},</if>
|
||||
<if test="fzsm1 != null and fzsm1 != ''"> fzsm1 = #{fzsm1},</if>
|
||||
<if test="fzsm2 != null and fzsm2 != ''"> fzsm2 = #{fzsm2},</if>
|
||||
<if test="fzsm3 != null and fzsm3 != ''"> fzsm3 = #{fzsm3},</if>
|
||||
<if test="fzsm4 != null and fzsm4 != ''"> fzsm4 = #{fzsm4},</if>
|
||||
<if test="fzsm5 != null and fzsm5 != ''"> fzsm5 = #{fzsm5},</if>
|
||||
<if test="fzsm6 != null and fzsm6 != ''"> fzsm6 = #{fzsm6},</if>
|
||||
<if test="fzsm7 != null and fzsm7 != ''"> fzsm7 = #{fzsm7},</if>
|
||||
<if test="fzsm8 != null and fzsm8 != ''"> fzsm8 = #{fzsm8},</if>
|
||||
<if test="fzsm9 != null and fzsm9 != ''"> fzsm9 = #{fzsm9},</if>
|
||||
<if test="cess != null"> cess = #{cess},</if>
|
||||
<if test="fplx != null and fplx != ''"> fplx = #{fplx},</if>
|
||||
<if test="fprq != null and fprq != ''"> fprq = #{fprq},</if>
|
||||
<if test="fphfw1 != null"> fphfw1 = #{fphfw1},</if>
|
||||
<if test="fphfw2 != null"> fphfw2 = #{fphfw2},</if>
|
||||
<if test="jsfs != null and jsfs != ''"> jsfs = #{jsfs},</if>
|
||||
<if test="zydm != null and zydm != ''"> zydm = #{zydm},</if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> fzdm4 = #{fzdm4},</if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> fzdm5 = #{fzdm5},</if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> fzdm6 = #{fzdm6},</if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> fzdm7 = #{fzdm7},</if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> fzdm8 = #{fzdm8},</if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> fzdm9 = #{fzdm9},</if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> fzdm10 = #{fzdm10},</if>
|
||||
<if test="wlh != null and wlh != ''"> wlh = #{wlh},</if>
|
||||
<if test="zbid != null"> ZBID = #{zbid},</if>
|
||||
<if test="edid != null"> EDID = #{edid},</if>
|
||||
<if test="jfsqid != null"> JFSQID = #{jfsqid},</if>
|
||||
<if test="fzdm11 != null and fzdm11 != ''"> fzdm11 = #{fzdm11} , </if>
|
||||
<if test="fzdm12 != null and fzdm12 != ''"> fzdm12 = #{fzdm12} , </if>
|
||||
<if test="fzdm13 != null and fzdm13 != ''"> fzdm13 = #{fzdm13} , </if>
|
||||
<if test="fzdm14 != null and fzdm14 != ''">fzdm14 = #{fzdm14} , </if>
|
||||
<if test="fzdm15 != null and fzdm15 != ''"> fzdm15 = #{fzdm15} , </if>
|
||||
<if test="fzdm16 != null and fzdm16 != ''"> fzdm16 = #{fzdm16} , </if>
|
||||
<if test="fzdm17 != null and fzdm17 != ''">fzdm17 = #{fzdm17} , </if>
|
||||
<if test="fzdm18 != null and fzdm18 != ''"> fzdm18 = #{fzdm18} , </if>
|
||||
<if test="fzdm19 != null and fzdm19 != ''"> fzdm19 = #{fzdm19} , </if>
|
||||
<if test="fzdm20 != null and fzdm20 != ''"> fzdm20 = #{fzdm20} , </if>
|
||||
<if test="fzdm21 != null and fzdm21 != ''"> fzdm21 = #{fzdm21} , </if>
|
||||
<if test="fzdm22 != null and fzdm22 != ''"> fzdm22 = #{fzdm22} , </if>
|
||||
<if test="fzdm23 != null and fzdm23 != ''"> fzdm23 = #{fzdm23} , </if>
|
||||
<if test="fzdm24 != null and fzdm24 != ''"> fzdm24 = #{fzdm24} , </if>
|
||||
<if test="fzdm25 != null and fzdm25 != ''"> fzdm25 = #{fzdm25} , </if>
|
||||
<if test="fzdm26 != null and fzdm26 != ''"> fzdm26 = #{fzdm26} , </if>
|
||||
<if test="fzdm27 != null and fzdm27 != ''"> fzdm27 = #{fzdm27} , </if>
|
||||
<if test="fzdm28 != null and fzdm28 != ''"> fzdm28 = #{fzdm28} , </if>
|
||||
<if test="fzdm29 != null and fzdm29 != ''"> fzdm29 = #{fzdm29} , </if>
|
||||
<if test="fzdm30 != null and fzdm30 != ''"> fzdm30 = #{fzdm30} , </if>
|
||||
<if test="idpzh != null and idpzh != ''"> idpzh = #{idpzh} , </if>
|
||||
<if test="skrlx != null and skrlx != ''"> skrlx = #{skrlx} , </if>
|
||||
<if test="skrmc != null and skrmc != ''"> skrmc = #{skrmc} , </if>
|
||||
<if test="skrzh != null and skrzh != ''"> skrzh = #{skrzh} , </if>
|
||||
<if test="skryhdm != null and skryhdm != ''">skryhdm = #{skryhdm} , </if>
|
||||
<if test="skryhhh != null and skryhhh != ''"> skryhhh = #{skryhhh} , </if>
|
||||
<if test="skryhmc != null and skryhmc != ''"> skryhmc = #{skryhmc} , </if>
|
||||
<if test="yszccy != null and yszccy != ''"> yszccy = #{yszccy} , </if>
|
||||
<if test="xsflh != null and xsflh != ''"> xsflh = #{xsflh} , </if>
|
||||
<if test="bxdid != null and bxdid != ''"> bxdid = #{bxdid}, </if>
|
||||
<if test="htid != null and htid != ''"> htid = #{htid} , </if>
|
||||
<if test="zckpbh != null and zckpbh != ''"> zckpbh = #{zckpbh} , </if>
|
||||
<if test="sflx != null and sflx != ''"> sflx = #{sflx} , </if>
|
||||
<if test="djbh != null and djbh != ''"> djbh = #{djbh} , </if>
|
||||
<if test="hzflh != null and hzflh != ''">hzflh = #{hzflh} , </if>
|
||||
<if test="cyxfx != null and cyxfx != ''"> cyxfx =#{cyxfx} , </if>
|
||||
<if test="dqrq != null and dqrq != ''"> dqrq = #{dqrq} , </if>
|
||||
<if test="glidpznr != null and glidpznr != ''"> glidpznr =#{glidpznr} </if>
|
||||
</trim>
|
||||
where idpznr= #{idpznr}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="SenderGlPznrEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" >
|
||||
update gl_pznr set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where idpznr= #{idpznr}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="SenderGlPznrEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" >
|
||||
update gl_pznr 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="kjtxdm != null and kjtxdm != ''"> and kjtxdm = #{kjtxdm}</if>
|
||||
<if test="pzlxdm != null and pzlxdm != ''"> and pzh = #{pzlxdm}</if>
|
||||
<if test="flh != null"> and flh = #{flh} </if>
|
||||
<if test="zy != null and zy != ''"> and zy = #{zy} </if>
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||
<if test="hl != null"> and hl = #{hl} </if>
|
||||
<if test="jdbz != null and jdbz != ''"> and jdbz = #{jdbz} </if>
|
||||
<if test="wbje != null"> and wbje = #{wbje} </if>
|
||||
<if test="je != null"> and je = #{je} </if>
|
||||
<if test="spz != null and spz != ''"> and spz = #{spz} </if>
|
||||
<if test="wldrq != null and wldrq != ''"> and wldrq = #{wldrq} </if>
|
||||
<if test="sl != null"> and sl = #{sl} </if>
|
||||
<if test="dj != null"> and dj = #{dj} </if>
|
||||
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
|
||||
<if test="wldm != null and wldm != ''"> and wldm = #{wldm} </if>
|
||||
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 = #{fzsm1} </if>
|
||||
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 = #{fzsm2} </if>
|
||||
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 = #{fzsm3} </if>
|
||||
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 = #{fzsm4} </if>
|
||||
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 = #{fzsm5} </if>
|
||||
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 = #{fzsm6} </if>
|
||||
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 = #{fzsm7} </if>
|
||||
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 = #{fzsm8} </if>
|
||||
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 = #{fzsm9} </if>
|
||||
<if test="cess != null"> and cess = #{cess} </if>
|
||||
<if test="fplx != null and fplx != ''"> and fplx = #{fplx} </if>
|
||||
<if test="fprq != null and fprq != ''"> and fprq = #{fprq} </if>
|
||||
<if test="fphfw1 != null"> and fphfw1 = #{fphfw1} </if>
|
||||
<if test="fphfw2 != null"> and fphfw2 = #{fphfw2} </if>
|
||||
<if test="jsfs != null and jsfs != ''"> and jsfs = #{jsfs} </if>
|
||||
<if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||
<if test="idpznr != null and idpznr != ''"> and IDPZNR = #{idpznr} </if>
|
||||
<if test="wlh != null and wlh != ''"> and wlh = #{wlh} </if>
|
||||
<if test="zbid != null"> and ZBID = #{zbid} </if>
|
||||
<if test="edid != null"> and EDID = #{edid} </if>
|
||||
<if test="jfsqid != null"> and JFSQID = #{jfsqid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from gl_pznr where idpznr = #{idpznr}
|
||||
</delete>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="SenderGlPznrEntity_delete_pznr">
|
||||
delete from gl_pznr where gsdm= #{gsdm} and zth=#{zth}
|
||||
<if test="kjqj != null and kjqj!=''"> and kjqj=#{kjqj}</if>
|
||||
<if test="pzh != null and pzh!=''"> and pzh = #{pzh} </if>
|
||||
<if test="idpzh != null and idpzh!=''"> and idpzh = #{idpzh} </if>
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPznr.service;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||
|
||||
/**
|
||||
* (GlPznr)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 14:14:30
|
||||
*/
|
||||
public interface ISenderGlPznrService extends IBaseService<SenderGlPznrEntity, String> {
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glPznr.service.impl;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glPznr.dao.ISenderGlPznrDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.glPznr.service.ISenderGlPznrService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
/**
|
||||
* (GlPznr)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 14:14:30
|
||||
*/
|
||||
@Service(value = "SenderGlPznrServiceImpl")
|
||||
public class SenderGlPznrServiceImpl extends BaseService<SenderGlPznrEntity, String> implements ISenderGlPznrService {
|
||||
|
||||
private ISenderGlPznrDao senderGlPznrDao;
|
||||
|
||||
@Autowired
|
||||
public void setSenderGlPznrDao(ISenderGlPznrDao dao) {
|
||||
this.senderGlPznrDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glYeb.dao;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (gl_yeb: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-07-08 11:12:24
|
||||
*/
|
||||
public interface ISenderGlYebDao extends IBaseDao<SenderGlYebEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询余额数据 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/8 13:44
|
||||
* **/
|
||||
List<SenderGlYebEntity> querySenderGlYebEntity(SenderGlYebEntity senderGlYebEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存余额数据到余额日志中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/8 13:45
|
||||
* **/
|
||||
SenderGlYebEntity saveSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新余额数据到余额日志中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/8 13:46
|
||||
* **/
|
||||
SenderGlYebEntity updateSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询余额数据 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/8 13:55
|
||||
* **/
|
||||
List<SenderGlYebEntity> queryGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存余额数据 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/8 13:55
|
||||
* **/
|
||||
SenderGlYebEntity saveGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除余额数据 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/16 13:51
|
||||
* **/
|
||||
Integer deleteGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glYeb.dao.impl;
|
||||
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glYeb.dao.ISenderGlYebDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlYeb)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-07-08 11:12:24
|
||||
*/
|
||||
@Repository(value = "SenderGlYebDaoImpl")
|
||||
public class SenderGlYebDaoImpl extends MybatisGenericDao<SenderGlYebEntity, String> implements ISenderGlYebDao {
|
||||
|
||||
@Override
|
||||
@DS("#senderGlYebEntity.dataSourceCode")
|
||||
public List<SenderGlYebEntity> querySenderGlYebEntity(SenderGlYebEntity senderGlYebEntity) {
|
||||
return super.queryByLike(senderGlYebEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlYebEntity.dataSourceCode")
|
||||
public SenderGlYebEntity saveSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity) {
|
||||
return super.save(senderGlYebEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlYebEntity.dataSourceCode")
|
||||
public SenderGlYebEntity updateSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity) {
|
||||
return super.update(senderGlYebEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlYebEntity.dataSourceCode")
|
||||
public List<SenderGlYebEntity> queryGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity) {
|
||||
return super.query(senderGlYebEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlYebEntity.dataSourceCode")
|
||||
public SenderGlYebEntity saveGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity) {
|
||||
return super.save(senderGlYebEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlYebEntity.dataSourceCode")
|
||||
public Integer deleteGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity) {
|
||||
return super.delete(getSqlIdPrifx()+"SenderGlYebEntity_delete_yeb",senderGlYebEntity);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,630 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glYeb.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* (GlYeb)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-07-08 11:12:24
|
||||
*/
|
||||
public class SenderGlYebEntity extends BaseEntity {
|
||||
|
||||
private String kjnd;
|
||||
private String kmdm;
|
||||
private String yeblx;
|
||||
private String wbdm;
|
||||
private String gsdm;
|
||||
private String zth;
|
||||
private String fzdm0;
|
||||
private String fzdm1;
|
||||
private String fzdm2;
|
||||
private String fzdm3;
|
||||
private String fzdm4;
|
||||
private String fzdm5;
|
||||
private String fzdm6;
|
||||
private String fzdm7;
|
||||
private String fzdm8;
|
||||
private String fzdm9;
|
||||
private String fzdm10;
|
||||
private String fzdm11;
|
||||
private String fzdm12;
|
||||
private String fzdm13;
|
||||
private String fzdm14;
|
||||
private String fzdm15;
|
||||
private String fzdm16;
|
||||
private String fzdm17;
|
||||
private String fzdm18;
|
||||
private String fzdm19;
|
||||
private String fzdm20;
|
||||
private String fzdm21;
|
||||
private String fzdm22;
|
||||
private String fzdm23;
|
||||
private String fzdm24;
|
||||
private String fzdm25;
|
||||
private String fzdm26;
|
||||
private String fzdm27;
|
||||
private String fzdm28;
|
||||
private String fzdm29;
|
||||
private String fzdm30;
|
||||
private String zdylb;
|
||||
private String zdydm;
|
||||
private String ncj;
|
||||
private String ncd;
|
||||
private String yj1;
|
||||
private String yd1;
|
||||
private String yj2;
|
||||
private String yd2;
|
||||
private String yj3;
|
||||
private String yd3;
|
||||
private String yj4;
|
||||
private String yd4;
|
||||
private String yj5;
|
||||
private String yd5;
|
||||
private String yj6;
|
||||
private String yd6;
|
||||
private String yj7;
|
||||
private String yd7;
|
||||
private String yj8;
|
||||
private String yd8;
|
||||
private String yj9;
|
||||
private String yd9;
|
||||
private String yj10;
|
||||
private String yd10;
|
||||
private String yj11;
|
||||
private String yd11;
|
||||
private String yj12;
|
||||
private String yd12;
|
||||
private String yj13;
|
||||
private String yd13;
|
||||
|
||||
private String kjtxdm;
|
||||
|
||||
public String getFzdm11() {
|
||||
return fzdm11;
|
||||
}
|
||||
|
||||
public void setFzdm11(String fzdm11) {
|
||||
this.fzdm11 = fzdm11;
|
||||
}
|
||||
|
||||
public String getFzdm12() {
|
||||
return fzdm12;
|
||||
}
|
||||
|
||||
public void setFzdm12(String fzdm12) {
|
||||
this.fzdm12 = fzdm12;
|
||||
}
|
||||
|
||||
public String getFzdm13() {
|
||||
return fzdm13;
|
||||
}
|
||||
|
||||
public void setFzdm13(String fzdm13) {
|
||||
this.fzdm13 = fzdm13;
|
||||
}
|
||||
|
||||
public String getFzdm14() {
|
||||
return fzdm14;
|
||||
}
|
||||
|
||||
public void setFzdm14(String fzdm14) {
|
||||
this.fzdm14 = fzdm14;
|
||||
}
|
||||
|
||||
public String getFzdm15() {
|
||||
return fzdm15;
|
||||
}
|
||||
|
||||
public void setFzdm15(String fzdm15) {
|
||||
this.fzdm15 = fzdm15;
|
||||
}
|
||||
|
||||
public String getFzdm16() {
|
||||
return fzdm16;
|
||||
}
|
||||
|
||||
public void setFzdm16(String fzdm16) {
|
||||
this.fzdm16 = fzdm16;
|
||||
}
|
||||
|
||||
public String getFzdm17() {
|
||||
return fzdm17;
|
||||
}
|
||||
|
||||
public void setFzdm17(String fzdm17) {
|
||||
this.fzdm17 = fzdm17;
|
||||
}
|
||||
|
||||
public String getFzdm18() {
|
||||
return fzdm18;
|
||||
}
|
||||
|
||||
public void setFzdm18(String fzdm18) {
|
||||
this.fzdm18 = fzdm18;
|
||||
}
|
||||
|
||||
public String getFzdm19() {
|
||||
return fzdm19;
|
||||
}
|
||||
|
||||
public void setFzdm19(String fzdm19) {
|
||||
this.fzdm19 = fzdm19;
|
||||
}
|
||||
|
||||
public String getFzdm20() {
|
||||
return fzdm20;
|
||||
}
|
||||
|
||||
public void setFzdm20(String fzdm20) {
|
||||
this.fzdm20 = fzdm20;
|
||||
}
|
||||
|
||||
public String getFzdm21() {
|
||||
return fzdm21;
|
||||
}
|
||||
|
||||
public void setFzdm21(String fzdm21) {
|
||||
this.fzdm21 = fzdm21;
|
||||
}
|
||||
|
||||
public String getFzdm22() {
|
||||
return fzdm22;
|
||||
}
|
||||
|
||||
public void setFzdm22(String fzdm22) {
|
||||
this.fzdm22 = fzdm22;
|
||||
}
|
||||
|
||||
public String getFzdm23() {
|
||||
return fzdm23;
|
||||
}
|
||||
|
||||
public void setFzdm23(String fzdm23) {
|
||||
this.fzdm23 = fzdm23;
|
||||
}
|
||||
|
||||
public String getFzdm24() {
|
||||
return fzdm24;
|
||||
}
|
||||
|
||||
public void setFzdm24(String fzdm24) {
|
||||
this.fzdm24 = fzdm24;
|
||||
}
|
||||
|
||||
public String getFzdm25() {
|
||||
return fzdm25;
|
||||
}
|
||||
|
||||
public void setFzdm25(String fzdm25) {
|
||||
this.fzdm25 = fzdm25;
|
||||
}
|
||||
|
||||
public String getFzdm26() {
|
||||
return fzdm26;
|
||||
}
|
||||
|
||||
public void setFzdm26(String fzdm26) {
|
||||
this.fzdm26 = fzdm26;
|
||||
}
|
||||
|
||||
public String getFzdm27() {
|
||||
return fzdm27;
|
||||
}
|
||||
|
||||
public void setFzdm27(String fzdm27) {
|
||||
this.fzdm27 = fzdm27;
|
||||
}
|
||||
|
||||
public String getFzdm28() {
|
||||
return fzdm28;
|
||||
}
|
||||
|
||||
public void setFzdm28(String fzdm28) {
|
||||
this.fzdm28 = fzdm28;
|
||||
}
|
||||
|
||||
public String getFzdm29() {
|
||||
return fzdm29;
|
||||
}
|
||||
|
||||
public void setFzdm29(String fzdm29) {
|
||||
this.fzdm29 = fzdm29;
|
||||
}
|
||||
|
||||
public String getFzdm30() {
|
||||
return fzdm30;
|
||||
}
|
||||
|
||||
public void setFzdm30(String fzdm30) {
|
||||
this.fzdm30 = fzdm30;
|
||||
}
|
||||
|
||||
public String getKjtxdm() {
|
||||
return kjtxdm;
|
||||
}
|
||||
|
||||
public void setKjtxdm(String kjtxdm) {
|
||||
this.kjtxdm = kjtxdm;
|
||||
}
|
||||
|
||||
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 getYeblx() {
|
||||
return yeblx;
|
||||
}
|
||||
|
||||
public void setYeblx(String yeblx) {
|
||||
this.yeblx = yeblx;
|
||||
}
|
||||
|
||||
public String getWbdm() {
|
||||
return wbdm;
|
||||
}
|
||||
|
||||
public void setWbdm(String wbdm) {
|
||||
this.wbdm = wbdm;
|
||||
}
|
||||
|
||||
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 getFzdm0() {
|
||||
return fzdm0;
|
||||
}
|
||||
|
||||
public void setFzdm0(String fzdm0) {
|
||||
this.fzdm0 = fzdm0;
|
||||
}
|
||||
|
||||
public String getFzdm1() {
|
||||
return fzdm1;
|
||||
}
|
||||
|
||||
public void setFzdm1(String fzdm1) {
|
||||
this.fzdm1 = fzdm1;
|
||||
}
|
||||
|
||||
public String getFzdm2() {
|
||||
return fzdm2;
|
||||
}
|
||||
|
||||
public void setFzdm2(String fzdm2) {
|
||||
this.fzdm2 = fzdm2;
|
||||
}
|
||||
|
||||
public String getFzdm3() {
|
||||
return fzdm3;
|
||||
}
|
||||
|
||||
public void setFzdm3(String fzdm3) {
|
||||
this.fzdm3 = fzdm3;
|
||||
}
|
||||
|
||||
public String getFzdm4() {
|
||||
return fzdm4;
|
||||
}
|
||||
|
||||
public void setFzdm4(String fzdm4) {
|
||||
this.fzdm4 = fzdm4;
|
||||
}
|
||||
|
||||
public String getFzdm5() {
|
||||
return fzdm5;
|
||||
}
|
||||
|
||||
public void setFzdm5(String fzdm5) {
|
||||
this.fzdm5 = fzdm5;
|
||||
}
|
||||
|
||||
public String getFzdm6() {
|
||||
return fzdm6;
|
||||
}
|
||||
|
||||
public void setFzdm6(String fzdm6) {
|
||||
this.fzdm6 = fzdm6;
|
||||
}
|
||||
|
||||
public String getFzdm7() {
|
||||
return fzdm7;
|
||||
}
|
||||
|
||||
public void setFzdm7(String fzdm7) {
|
||||
this.fzdm7 = fzdm7;
|
||||
}
|
||||
|
||||
public String getFzdm8() {
|
||||
return fzdm8;
|
||||
}
|
||||
|
||||
public void setFzdm8(String fzdm8) {
|
||||
this.fzdm8 = fzdm8;
|
||||
}
|
||||
|
||||
public String getFzdm9() {
|
||||
return fzdm9;
|
||||
}
|
||||
|
||||
public void setFzdm9(String fzdm9) {
|
||||
this.fzdm9 = fzdm9;
|
||||
}
|
||||
|
||||
public String getFzdm10() {
|
||||
return fzdm10;
|
||||
}
|
||||
|
||||
public void setFzdm10(String fzdm10) {
|
||||
this.fzdm10 = fzdm10;
|
||||
}
|
||||
|
||||
public String getZdylb() {
|
||||
return zdylb;
|
||||
}
|
||||
|
||||
public void setZdylb(String zdylb) {
|
||||
this.zdylb = zdylb;
|
||||
}
|
||||
|
||||
public String getZdydm() {
|
||||
return zdydm;
|
||||
}
|
||||
|
||||
public void setZdydm(String zdydm) {
|
||||
this.zdydm = zdydm;
|
||||
}
|
||||
|
||||
public String getNcj() {
|
||||
return ncj;
|
||||
}
|
||||
|
||||
public void setNcj(String ncj) {
|
||||
this.ncj = ncj;
|
||||
}
|
||||
|
||||
public String getNcd() {
|
||||
return ncd;
|
||||
}
|
||||
|
||||
public void setNcd(String ncd) {
|
||||
this.ncd = ncd;
|
||||
}
|
||||
|
||||
public String getYj1() {
|
||||
return yj1;
|
||||
}
|
||||
|
||||
public void setYj1(String yj1) {
|
||||
this.yj1 = yj1;
|
||||
}
|
||||
|
||||
public String getYd1() {
|
||||
return yd1;
|
||||
}
|
||||
|
||||
public void setYd1(String yd1) {
|
||||
this.yd1 = yd1;
|
||||
}
|
||||
|
||||
public String getYj2() {
|
||||
return yj2;
|
||||
}
|
||||
|
||||
public void setYj2(String yj2) {
|
||||
this.yj2 = yj2;
|
||||
}
|
||||
|
||||
public String getYd2() {
|
||||
return yd2;
|
||||
}
|
||||
|
||||
public void setYd2(String yd2) {
|
||||
this.yd2 = yd2;
|
||||
}
|
||||
|
||||
public String getYj3() {
|
||||
return yj3;
|
||||
}
|
||||
|
||||
public void setYj3(String yj3) {
|
||||
this.yj3 = yj3;
|
||||
}
|
||||
|
||||
public String getYd3() {
|
||||
return yd3;
|
||||
}
|
||||
|
||||
public void setYd3(String yd3) {
|
||||
this.yd3 = yd3;
|
||||
}
|
||||
|
||||
public String getYj4() {
|
||||
return yj4;
|
||||
}
|
||||
|
||||
public void setYj4(String yj4) {
|
||||
this.yj4 = yj4;
|
||||
}
|
||||
|
||||
public String getYd4() {
|
||||
return yd4;
|
||||
}
|
||||
|
||||
public void setYd4(String yd4) {
|
||||
this.yd4 = yd4;
|
||||
}
|
||||
|
||||
public String getYj5() {
|
||||
return yj5;
|
||||
}
|
||||
|
||||
public void setYj5(String yj5) {
|
||||
this.yj5 = yj5;
|
||||
}
|
||||
|
||||
public String getYd5() {
|
||||
return yd5;
|
||||
}
|
||||
|
||||
public void setYd5(String yd5) {
|
||||
this.yd5 = yd5;
|
||||
}
|
||||
|
||||
public String getYj6() {
|
||||
return yj6;
|
||||
}
|
||||
|
||||
public void setYj6(String yj6) {
|
||||
this.yj6 = yj6;
|
||||
}
|
||||
|
||||
public String getYd6() {
|
||||
return yd6;
|
||||
}
|
||||
|
||||
public void setYd6(String yd6) {
|
||||
this.yd6 = yd6;
|
||||
}
|
||||
|
||||
public String getYj7() {
|
||||
return yj7;
|
||||
}
|
||||
|
||||
public void setYj7(String yj7) {
|
||||
this.yj7 = yj7;
|
||||
}
|
||||
|
||||
public String getYd7() {
|
||||
return yd7;
|
||||
}
|
||||
|
||||
public void setYd7(String yd7) {
|
||||
this.yd7 = yd7;
|
||||
}
|
||||
|
||||
public String getYj8() {
|
||||
return yj8;
|
||||
}
|
||||
|
||||
public void setYj8(String yj8) {
|
||||
this.yj8 = yj8;
|
||||
}
|
||||
|
||||
public String getYd8() {
|
||||
return yd8;
|
||||
}
|
||||
|
||||
public void setYd8(String yd8) {
|
||||
this.yd8 = yd8;
|
||||
}
|
||||
|
||||
public String getYj9() {
|
||||
return yj9;
|
||||
}
|
||||
|
||||
public void setYj9(String yj9) {
|
||||
this.yj9 = yj9;
|
||||
}
|
||||
|
||||
public String getYd9() {
|
||||
return yd9;
|
||||
}
|
||||
|
||||
public void setYd9(String yd9) {
|
||||
this.yd9 = yd9;
|
||||
}
|
||||
|
||||
public String getYj10() {
|
||||
return yj10;
|
||||
}
|
||||
|
||||
public void setYj10(String yj10) {
|
||||
this.yj10 = yj10;
|
||||
}
|
||||
|
||||
public String getYd10() {
|
||||
return yd10;
|
||||
}
|
||||
|
||||
public void setYd10(String yd10) {
|
||||
this.yd10 = yd10;
|
||||
}
|
||||
|
||||
public String getYj11() {
|
||||
return yj11;
|
||||
}
|
||||
|
||||
public void setYj11(String yj11) {
|
||||
this.yj11 = yj11;
|
||||
}
|
||||
|
||||
public String getYd11() {
|
||||
return yd11;
|
||||
}
|
||||
|
||||
public void setYd11(String yd11) {
|
||||
this.yd11 = yd11;
|
||||
}
|
||||
|
||||
public String getYj12() {
|
||||
return yj12;
|
||||
}
|
||||
|
||||
public void setYj12(String yj12) {
|
||||
this.yj12 = yj12;
|
||||
}
|
||||
|
||||
public String getYd12() {
|
||||
return yd12;
|
||||
}
|
||||
|
||||
public void setYd12(String yd12) {
|
||||
this.yd12 = yd12;
|
||||
}
|
||||
|
||||
public String getYj13() {
|
||||
return yj13;
|
||||
}
|
||||
|
||||
public void setYj13(String yj13) {
|
||||
this.yj13 = yj13;
|
||||
}
|
||||
|
||||
public String getYd13() {
|
||||
return yd13;
|
||||
}
|
||||
|
||||
public void setYd13(String yd13) {
|
||||
this.yd13 = yd13;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,732 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.glYeb.dao.impl.SenderGlYebDaoImpl">
|
||||
|
||||
<resultMap id="get-SenderGlYebEntity-result" type="com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" >
|
||||
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
|
||||
<result property="kmdm" column="kmdm" jdbcType="VARCHAR"/>
|
||||
<result property="yeblx" column="yeblx" jdbcType="VARCHAR"/>
|
||||
<result property="wbdm" column="wbdm" jdbcType="VARCHAR"/>
|
||||
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
|
||||
<result property="zth" column="ZTH" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm0" column="fzdm0" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm1" column="fzdm1" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm2" column="fzdm2" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm3" column="fzdm3" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm4" column="fzdm4" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm5" column="fzdm5" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm6" column="fzdm6" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm7" column="fzdm7" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm8" column="fzdm8" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm9" column="fzdm9" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm10" column="fzdm10" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm11" column="fzdm11" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm12" column="fzdm12" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm13" column="fzdm13" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm14" column="fzdm14" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm15" column="fzdm15" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm16" column="fzdm16" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm17" column="fzdm17" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm18" column="fzdm18" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm19" column="fzdm19" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm20" column="fzdm20" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm21" column="fzdm21" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm22" column="fzdm22" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm23" column="fzdm23" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm24" column="fzdm24" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm25" column="fzdm25" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm26" column="fzdm26" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm27" column="fzdm27" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm28" column="fzdm28" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm29" column="fzdm29" jdbcType="VARCHAR"/>
|
||||
<result property="fzdm30" column="fzdm30" jdbcType="VARCHAR"/>
|
||||
<result property="zdylb" column="zdylb" jdbcType="VARCHAR"/>
|
||||
<result property="zdydm" column="zdydm" jdbcType="VARCHAR"/>
|
||||
<result property="ncj" column="ncj" jdbcType="VARCHAR"/>
|
||||
<result property="ncd" column="ncd" jdbcType="VARCHAR"/>
|
||||
<result property="yj1" column="yj1" jdbcType="VARCHAR"/>
|
||||
<result property="yd1" column="yd1" jdbcType="VARCHAR"/>
|
||||
<result property="yj2" column="yj2" jdbcType="VARCHAR"/>
|
||||
<result property="yd2" column="yd2" jdbcType="VARCHAR"/>
|
||||
<result property="yj3" column="yj3" jdbcType="VARCHAR"/>
|
||||
<result property="yd3" column="yd3" jdbcType="VARCHAR"/>
|
||||
<result property="yj4" column="yj4" jdbcType="VARCHAR"/>
|
||||
<result property="yd4" column="yd4" jdbcType="VARCHAR"/>
|
||||
<result property="yj5" column="yj5" jdbcType="VARCHAR"/>
|
||||
<result property="yd5" column="yd5" jdbcType="VARCHAR"/>
|
||||
<result property="yj6" column="yj6" jdbcType="VARCHAR"/>
|
||||
<result property="yd6" column="yd6" jdbcType="VARCHAR"/>
|
||||
<result property="yj7" column="yj7" jdbcType="VARCHAR"/>
|
||||
<result property="yd7" column="yd7" jdbcType="VARCHAR"/>
|
||||
<result property="yj8" column="yj8" jdbcType="VARCHAR"/>
|
||||
<result property="yd8" column="yd8" jdbcType="VARCHAR"/>
|
||||
<result property="yj9" column="yj9" jdbcType="VARCHAR"/>
|
||||
<result property="yd9" column="yd9" jdbcType="VARCHAR"/>
|
||||
<result property="yj10" column="yj10" jdbcType="VARCHAR"/>
|
||||
<result property="yd10" column="yd10" jdbcType="VARCHAR"/>
|
||||
<result property="yj11" column="yj11" jdbcType="VARCHAR"/>
|
||||
<result property="yd11" column="yd11" jdbcType="VARCHAR"/>
|
||||
<result property="yj12" column="yj12" jdbcType="VARCHAR"/>
|
||||
<result property="yd12" column="yd12" jdbcType="VARCHAR"/>
|
||||
<result property="yj13" column="yj13" jdbcType="VARCHAR"/>
|
||||
<result property="yd13" column="yd13" jdbcType="VARCHAR"/>
|
||||
<result property="kjtxdm" column="kjtxdm" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "SenderGlYebEntity_Base_Column_List">
|
||||
kjnd
|
||||
,kmdm
|
||||
,yeblx
|
||||
,wbdm
|
||||
,gsdm
|
||||
,ZTH
|
||||
,fzdm0
|
||||
,fzdm1
|
||||
,fzdm2
|
||||
,fzdm3
|
||||
,fzdm4
|
||||
,fzdm5
|
||||
,fzdm6
|
||||
,fzdm7
|
||||
,fzdm8
|
||||
,fzdm9
|
||||
,fzdm10
|
||||
,fzdm11
|
||||
,fzdm12
|
||||
,fzdm13
|
||||
,fzdm14
|
||||
,fzdm15
|
||||
,fzdm16
|
||||
,fzdm17
|
||||
,fzdm18
|
||||
,fzdm19
|
||||
,fzdm20
|
||||
,fzdm21
|
||||
,fzdm22
|
||||
,fzdm23
|
||||
,fzdm24
|
||||
,fzdm25
|
||||
,fzdm26
|
||||
,fzdm27
|
||||
,fzdm28
|
||||
,fzdm29
|
||||
,fzdm30
|
||||
,zdylb
|
||||
,zdydm
|
||||
,ncj
|
||||
,ncd
|
||||
,yj1
|
||||
,yd1
|
||||
,yj2
|
||||
,yd2
|
||||
,yj3
|
||||
,yd3
|
||||
,yj4
|
||||
,yd4
|
||||
,yj5
|
||||
,yd5
|
||||
,yj6
|
||||
,yd6
|
||||
,yj7
|
||||
,yd7
|
||||
,yj8
|
||||
,yd8
|
||||
,yj9
|
||||
,yd9
|
||||
,yj10
|
||||
,yd10
|
||||
,yj11
|
||||
,yd11
|
||||
,yj12
|
||||
,yd12
|
||||
,yj13
|
||||
,yd13
|
||||
,ID
|
||||
,kjtxdm
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-SenderGlYebEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity">
|
||||
select
|
||||
<include refid="SenderGlYebEntity_Base_Column_List" />
|
||||
from gl_yeb
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||
<if test="yeblx != null and yeblx != ''"> and yeblx = #{yeblx} </if>
|
||||
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||
<if test="fzdm0 != null and fzdm0 != ''"> and fzdm0 = #{fzdm0} </if>
|
||||
<if test="fzdm1 != null and fzdm1 != ''"> and fzdm1 = #{fzdm1} </if>
|
||||
<if test="fzdm2 != null and fzdm2 != ''"> and fzdm2 = #{fzdm2} </if>
|
||||
<if test="fzdm3 != null and fzdm3 != ''"> and fzdm3 = #{fzdm3} </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||
<if test="zdylb != null and zdylb != ''"> and zdylb = #{zdylb} </if>
|
||||
<if test="zdydm != null and zdydm != ''"> and zdydm = #{zdydm} </if>
|
||||
<if test="ncj != null"> and ncj = #{ncj} </if>
|
||||
<if test="ncd != null"> and ncd = #{ncd} </if>
|
||||
<if test="yj1 != null"> and yj1 = #{yj1} </if>
|
||||
<if test="yd1 != null"> and yd1 = #{yd1} </if>
|
||||
<if test="yj2 != null"> and yj2 = #{yj2} </if>
|
||||
<if test="yd2 != null"> and yd2 = #{yd2} </if>
|
||||
<if test="yj3 != null"> and yj3 = #{yj3} </if>
|
||||
<if test="yd3 != null"> and yd3 = #{yd3} </if>
|
||||
<if test="yj4 != null"> and yj4 = #{yj4} </if>
|
||||
<if test="yd4 != null"> and yd4 = #{yd4} </if>
|
||||
<if test="yj5 != null"> and yj5 = #{yj5} </if>
|
||||
<if test="yd5 != null"> and yd5 = #{yd5} </if>
|
||||
<if test="yj6 != null"> and yj6 = #{yj6} </if>
|
||||
<if test="yd6 != null"> and yd6 = #{yd6} </if>
|
||||
<if test="yj7 != null"> and yj7 = #{yj7} </if>
|
||||
<if test="yd7 != null"> and yd7 = #{yd7} </if>
|
||||
<if test="yj8 != null"> and yj8 = #{yj8} </if>
|
||||
<if test="yd8 != null"> and yd8 = #{yd8} </if>
|
||||
<if test="yj9 != null"> and yj9 = #{yj9} </if>
|
||||
<if test="yd9 != null"> and yd9 = #{yd9} </if>
|
||||
<if test="yj10 != null"> and yj10 = #{yj10} </if>
|
||||
<if test="yd10 != null"> and yd10 = #{yd10} </if>
|
||||
<if test="yj11 != null"> and yj11 = #{yj11} </if>
|
||||
<if test="yd11 != null"> and yd11 = #{yd11} </if>
|
||||
<if test="yj12 != null"> and yj12 = #{yj12} </if>
|
||||
<if test="yd12 != null"> and yd12 = #{yd12} </if>
|
||||
<if test="yj13 != null"> and yj13 = #{yj13} </if>
|
||||
<if test="yd13 != null"> and yd13 = #{yd13} </if>
|
||||
<if test="id != null"> and ID = #{id} </if>
|
||||
-- and zth in ('004','005','009','010','011','012','014')
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="SenderGlYebEntity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity">
|
||||
select count(1) from gl_yeb
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||
<if test="yeblx != null and yeblx != ''"> and yeblx = #{yeblx} </if>
|
||||
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||
<if test="fzdm0 != null and fzdm0 != ''"> and fzdm0 = #{fzdm0} </if>
|
||||
<if test="fzdm1 != null and fzdm1 != ''"> and fzdm1 = #{fzdm1} </if>
|
||||
<if test="fzdm2 != null and fzdm2 != ''"> and fzdm2 = #{fzdm2} </if>
|
||||
<if test="fzdm3 != null and fzdm3 != ''"> and fzdm3 = #{fzdm3} </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||
<if test="zdylb != null and zdylb != ''"> and zdylb = #{zdylb} </if>
|
||||
<if test="zdydm != null and zdydm != ''"> and zdydm = #{zdydm} </if>
|
||||
<if test="ncj != null"> and ncj = #{ncj} </if>
|
||||
<if test="ncd != null"> and ncd = #{ncd} </if>
|
||||
<if test="yj1 != null"> and yj1 = #{yj1} </if>
|
||||
<if test="yd1 != null"> and yd1 = #{yd1} </if>
|
||||
<if test="yj2 != null"> and yj2 = #{yj2} </if>
|
||||
<if test="yd2 != null"> and yd2 = #{yd2} </if>
|
||||
<if test="yj3 != null"> and yj3 = #{yj3} </if>
|
||||
<if test="yd3 != null"> and yd3 = #{yd3} </if>
|
||||
<if test="yj4 != null"> and yj4 = #{yj4} </if>
|
||||
<if test="yd4 != null"> and yd4 = #{yd4} </if>
|
||||
<if test="yj5 != null"> and yj5 = #{yj5} </if>
|
||||
<if test="yd5 != null"> and yd5 = #{yd5} </if>
|
||||
<if test="yj6 != null"> and yj6 = #{yj6} </if>
|
||||
<if test="yd6 != null"> and yd6 = #{yd6} </if>
|
||||
<if test="yj7 != null"> and yj7 = #{yj7} </if>
|
||||
<if test="yd7 != null"> and yd7 = #{yd7} </if>
|
||||
<if test="yj8 != null"> and yj8 = #{yj8} </if>
|
||||
<if test="yd8 != null"> and yd8 = #{yd8} </if>
|
||||
<if test="yj9 != null"> and yj9 = #{yj9} </if>
|
||||
<if test="yd9 != null"> and yd9 = #{yd9} </if>
|
||||
<if test="yj10 != null"> and yj10 = #{yj10} </if>
|
||||
<if test="yd10 != null"> and yd10 = #{yd10} </if>
|
||||
<if test="yj11 != null"> and yj11 = #{yj11} </if>
|
||||
<if test="yd11 != null"> and yd11 = #{yd11} </if>
|
||||
<if test="yj12 != null"> and yj12 = #{yj12} </if>
|
||||
<if test="yd12 != null"> and yd12 = #{yd12} </if>
|
||||
<if test="yj13 != null"> and yj13 = #{yj13} </if>
|
||||
<if test="yd13 != null"> and yd13 = #{yd13} </if>
|
||||
<if test="id != null"> and ID = #{id} </if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-SenderGlYebEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity">
|
||||
select
|
||||
<include refid="SenderGlYebEntity_Base_Column_List" />
|
||||
from gl_yeb
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<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="yeblx != null and yeblx != ''"> and yeblx like concat('%',#{yeblx},'%') </if>
|
||||
<if test="wbdm != null and wbdm != ''"> and wbdm like concat('%',#{wbdm},'%') </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="fzdm0 != null and fzdm0 != ''"> and fzdm0 like concat('%',#{fzdm0},'%') </if>
|
||||
<if test="fzdm1 != null and fzdm1 != ''"> and fzdm1 like concat('%',#{fzdm1},'%') </if>
|
||||
<if test="fzdm2 != null and fzdm2 != ''"> and fzdm2 like concat('%',#{fzdm2},'%') </if>
|
||||
<if test="fzdm3 != null and fzdm3 != ''"> and fzdm3 like concat('%',#{fzdm3},'%') </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 like concat('%',#{fzdm4},'%') </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 like concat('%',#{fzdm5},'%') </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 like concat('%',#{fzdm6},'%') </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 like concat('%',#{fzdm7},'%') </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 like concat('%',#{fzdm8},'%') </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 like concat('%',#{fzdm9},'%') </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 like concat('%',#{fzdm10},'%') </if>
|
||||
<if test="zdylb != null and zdylb != ''"> and zdylb like concat('%',#{zdylb},'%') </if>
|
||||
<if test="zdydm != null and zdydm != ''"> and zdydm like concat('%',#{zdydm},'%') </if>
|
||||
<if test="ncj != null"> and ncj like concat('%',#{ncj},'%') </if>
|
||||
<if test="ncd != null"> and ncd like concat('%',#{ncd},'%') </if>
|
||||
<if test="yj1 != null"> and yj1 like concat('%',#{yj1},'%') </if>
|
||||
<if test="yd1 != null"> and yd1 like concat('%',#{yd1},'%') </if>
|
||||
<if test="yj2 != null"> and yj2 like concat('%',#{yj2},'%') </if>
|
||||
<if test="yd2 != null"> and yd2 like concat('%',#{yd2},'%') </if>
|
||||
<if test="yj3 != null"> and yj3 like concat('%',#{yj3},'%') </if>
|
||||
<if test="yd3 != null"> and yd3 like concat('%',#{yd3},'%') </if>
|
||||
<if test="yj4 != null"> and yj4 like concat('%',#{yj4},'%') </if>
|
||||
<if test="yd4 != null"> and yd4 like concat('%',#{yd4},'%') </if>
|
||||
<if test="yj5 != null"> and yj5 like concat('%',#{yj5},'%') </if>
|
||||
<if test="yd5 != null"> and yd5 like concat('%',#{yd5},'%') </if>
|
||||
<if test="yj6 != null"> and yj6 like concat('%',#{yj6},'%') </if>
|
||||
<if test="yd6 != null"> and yd6 like concat('%',#{yd6},'%') </if>
|
||||
<if test="yj7 != null"> and yj7 like concat('%',#{yj7},'%') </if>
|
||||
<if test="yd7 != null"> and yd7 like concat('%',#{yd7},'%') </if>
|
||||
<if test="yj8 != null"> and yj8 like concat('%',#{yj8},'%') </if>
|
||||
<if test="yd8 != null"> and yd8 like concat('%',#{yd8},'%') </if>
|
||||
<if test="yj9 != null"> and yj9 like concat('%',#{yj9},'%') </if>
|
||||
<if test="yd9 != null"> and yd9 like concat('%',#{yd9},'%') </if>
|
||||
<if test="yj10 != null"> and yj10 like concat('%',#{yj10},'%') </if>
|
||||
<if test="yd10 != null"> and yd10 like concat('%',#{yd10},'%') </if>
|
||||
<if test="yj11 != null"> and yj11 like concat('%',#{yj11},'%') </if>
|
||||
<if test="yd11 != null"> and yd11 like concat('%',#{yd11},'%') </if>
|
||||
<if test="yj12 != null"> and yj12 like concat('%',#{yj12},'%') </if>
|
||||
<if test="yd12 != null"> and yd12 like concat('%',#{yd12},'%') </if>
|
||||
<if test="yj13 != null"> and yj13 like concat('%',#{yj13},'%') </if>
|
||||
<if test="yd13 != null"> and yd13 like concat('%',#{yd13},'%') </if>
|
||||
<if test="id != null"> and ID like concat('%',#{id},'%') </if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SenderGlYebEntity_list_or" resultMap="get-SenderGlYebEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity">
|
||||
select
|
||||
<include refid="SenderGlYebEntity_Base_Column_List" />
|
||||
from gl_yeb
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="kjnd != null and kjnd != ''"> or kjnd = #{kjnd} </if>
|
||||
<if test="kmdm != null and kmdm != ''"> or kmdm = #{kmdm} </if>
|
||||
<if test="yeblx != null and yeblx != ''"> or yeblx = #{yeblx} </if>
|
||||
<if test="wbdm != null and wbdm != ''"> or wbdm = #{wbdm} </if>
|
||||
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
|
||||
<if test="zth != null and zth != ''"> or ZTH = #{zth} </if>
|
||||
<if test="fzdm0 != null and fzdm0 != ''"> or fzdm0 = #{fzdm0} </if>
|
||||
<if test="fzdm1 != null and fzdm1 != ''"> or fzdm1 = #{fzdm1} </if>
|
||||
<if test="fzdm2 != null and fzdm2 != ''"> or fzdm2 = #{fzdm2} </if>
|
||||
<if test="fzdm3 != null and fzdm3 != ''"> or fzdm3 = #{fzdm3} </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> or fzdm4 = #{fzdm4} </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> or fzdm5 = #{fzdm5} </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> or fzdm6 = #{fzdm6} </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> or fzdm7 = #{fzdm7} </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> or fzdm8 = #{fzdm8} </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> or fzdm9 = #{fzdm9} </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> or fzdm10 = #{fzdm10} </if>
|
||||
<if test="zdylb != null and zdylb != ''"> or zdylb = #{zdylb} </if>
|
||||
<if test="zdydm != null and zdydm != ''"> or zdydm = #{zdydm} </if>
|
||||
<if test="ncj != null"> or ncj = #{ncj} </if>
|
||||
<if test="ncd != null"> or ncd = #{ncd} </if>
|
||||
<if test="yj1 != null"> or yj1 = #{yj1} </if>
|
||||
<if test="yd1 != null"> or yd1 = #{yd1} </if>
|
||||
<if test="yj2 != null"> or yj2 = #{yj2} </if>
|
||||
<if test="yd2 != null"> or yd2 = #{yd2} </if>
|
||||
<if test="yj3 != null"> or yj3 = #{yj3} </if>
|
||||
<if test="yd3 != null"> or yd3 = #{yd3} </if>
|
||||
<if test="yj4 != null"> or yj4 = #{yj4} </if>
|
||||
<if test="yd4 != null"> or yd4 = #{yd4} </if>
|
||||
<if test="yj5 != null"> or yj5 = #{yj5} </if>
|
||||
<if test="yd5 != null"> or yd5 = #{yd5} </if>
|
||||
<if test="yj6 != null"> or yj6 = #{yj6} </if>
|
||||
<if test="yd6 != null"> or yd6 = #{yd6} </if>
|
||||
<if test="yj7 != null"> or yj7 = #{yj7} </if>
|
||||
<if test="yd7 != null"> or yd7 = #{yd7} </if>
|
||||
<if test="yj8 != null"> or yj8 = #{yj8} </if>
|
||||
<if test="yd8 != null"> or yd8 = #{yd8} </if>
|
||||
<if test="yj9 != null"> or yj9 = #{yj9} </if>
|
||||
<if test="yd9 != null"> or yd9 = #{yd9} </if>
|
||||
<if test="yj10 != null"> or yj10 = #{yj10} </if>
|
||||
<if test="yd10 != null"> or yd10 = #{yd10} </if>
|
||||
<if test="yj11 != null"> or yj11 = #{yj11} </if>
|
||||
<if test="yd11 != null"> or yd11 = #{yd11} </if>
|
||||
<if test="yj12 != null"> or yj12 = #{yj12} </if>
|
||||
<if test="yd12 != null"> or yd12 = #{yd12} </if>
|
||||
<if test="yj13 != null"> or yj13 = #{yj13} </if>
|
||||
<if test="yd13 != null"> or yd13 = #{yd13} </if>
|
||||
<if test="id != null"> or ID = #{id} </if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_yeb(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
|
||||
<if test="kmdm != null and kmdm != ''"> kmdm , </if>
|
||||
<if test="yeblx != null and yeblx != ''"> yeblx , </if>
|
||||
<if test="wbdm != null and wbdm != ''"> wbdm , </if>
|
||||
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
|
||||
<if test="zth != null and zth != ''"> ZTH , </if>
|
||||
<if test="fzdm0 != null and fzdm0 != ''"> fzdm0 , </if>
|
||||
<if test="fzdm1 != null and fzdm1 != ''"> fzdm1 , </if>
|
||||
<if test="fzdm2 != null and fzdm2 != ''"> fzdm2 , </if>
|
||||
<if test="fzdm3 != null and fzdm3 != ''"> fzdm3 , </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> fzdm4 , </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> fzdm5 , </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> fzdm6 , </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> fzdm7 , </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> fzdm8 , </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> fzdm9 , </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> fzdm10 , </if>
|
||||
<if test="fzdm11 != null and fzdm11 != ''"> fzdm11 , </if>
|
||||
<if test="fzdm12 != null and fzdm12 != ''"> fzdm12 , </if>
|
||||
<if test="fzdm13 != null and fzdm13 != ''"> fzdm13 , </if>
|
||||
<if test="fzdm14 != null and fzdm14 != ''"> fzdm14 , </if>
|
||||
<if test="fzdm15 != null and fzdm15 != ''"> fzdm15 , </if>
|
||||
<if test="fzdm16 != null and fzdm16 != ''"> fzdm16 , </if>
|
||||
<if test="fzdm17 != null and fzdm17 != ''"> fzdm17 , </if>
|
||||
<if test="fzdm18 != null and fzdm18 != ''"> fzdm18 , </if>
|
||||
<if test="fzdm19 != null and fzdm19 != ''"> fzdm19 , </if>
|
||||
<if test="fzdm20 != null and fzdm20 != ''"> fzdm20 , </if>
|
||||
<if test="fzdm21 != null and fzdm21 != ''"> fzdm21 , </if>
|
||||
<if test="fzdm22 != null and fzdm22 != ''"> fzdm22 , </if>
|
||||
<if test="fzdm23 != null and fzdm23 != ''"> fzdm23 , </if>
|
||||
<if test="fzdm24 != null and fzdm24 != ''"> fzdm24 , </if>
|
||||
<if test="fzdm25 != null and fzdm25 != ''"> fzdm25 , </if>
|
||||
<if test="fzdm26 != null and fzdm26 != ''"> fzdm26 , </if>
|
||||
<if test="fzdm27 != null and fzdm27 != ''"> fzdm27 , </if>
|
||||
<if test="fzdm28 != null and fzdm28 != ''"> fzdm28 , </if>
|
||||
<if test="fzdm29 != null and fzdm29 != ''"> fzdm29 , </if>
|
||||
<if test="fzdm30 != null and fzdm30 != ''"> fzdm30 , </if>
|
||||
<if test="zdylb != null and zdylb != ''"> zdylb , </if>
|
||||
<if test="zdydm != null and zdydm != ''"> zdydm , </if>
|
||||
<if test="ncj != null"> ncj , </if>
|
||||
<if test="ncd != null"> ncd , </if>
|
||||
<if test="yj1 != null"> yj1 , </if>
|
||||
<if test="yd1 != null"> yd1 , </if>
|
||||
<if test="yj2 != null"> yj2 , </if>
|
||||
<if test="yd2 != null"> yd2 , </if>
|
||||
<if test="yj3 != null"> yj3 , </if>
|
||||
<if test="yd3 != null"> yd3 , </if>
|
||||
<if test="yj4 != null"> yj4 , </if>
|
||||
<if test="yd4 != null"> yd4 , </if>
|
||||
<if test="yj5 != null"> yj5 , </if>
|
||||
<if test="yd5 != null"> yd5 , </if>
|
||||
<if test="yj6 != null"> yj6 , </if>
|
||||
<if test="yd6 != null"> yd6 , </if>
|
||||
<if test="yj7 != null"> yj7 , </if>
|
||||
<if test="yd7 != null"> yd7 , </if>
|
||||
<if test="yj8 != null"> yj8 , </if>
|
||||
<if test="yd8 != null"> yd8 , </if>
|
||||
<if test="yj9 != null"> yj9 , </if>
|
||||
<if test="yd9 != null"> yd9 , </if>
|
||||
<if test="yj10 != null"> yj10 , </if>
|
||||
<if test="yd10 != null"> yd10 , </if>
|
||||
<if test="yj11 != null"> yj11 , </if>
|
||||
<if test="yd11 != null"> yd11 , </if>
|
||||
<if test="yj12 != null"> yj12 , </if>
|
||||
<if test="yd12 != null"> yd12 , </if>
|
||||
<if test="yj13 != null"> yj13 , </if>
|
||||
<if test="yd13 != null"> yd13, </if>
|
||||
<if test="kjtxdm != null and kjtxdm!=''"> kjtxdm </if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
|
||||
<if test="kmdm != null and kmdm != ''"> #{kmdm} ,</if>
|
||||
<if test="yeblx != null and yeblx != ''"> #{yeblx} ,</if>
|
||||
<if test="wbdm != null and wbdm != ''"> #{wbdm} ,</if>
|
||||
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
|
||||
<if test="zth != null and zth != ''"> #{zth} ,</if>
|
||||
<if test="fzdm0 != null and fzdm0 != ''"> #{fzdm0} ,</if>
|
||||
<if test="fzdm1 != null and fzdm1 != ''"> #{fzdm1} ,</if>
|
||||
<if test="fzdm2 != null and fzdm2 != ''"> #{fzdm2} ,</if>
|
||||
<if test="fzdm3 != null and fzdm3 != ''"> #{fzdm3} ,</if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> #{fzdm4} ,</if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> #{fzdm5} ,</if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> #{fzdm6} ,</if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> #{fzdm7} ,</if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> #{fzdm8} ,</if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> #{fzdm9} ,</if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> #{fzdm10} ,</if>
|
||||
<if test="fzdm11 != null and fzdm11 != ''"> #{fzdm11} , </if>
|
||||
<if test="fzdm12 != null and fzdm12 != ''"> #{fzdm12} , </if>
|
||||
<if test="fzdm13 != null and fzdm13 != ''"> #{fzdm13} , </if>
|
||||
<if test="fzdm14 != null and fzdm14 != ''"> #{fzdm14} , </if>
|
||||
<if test="fzdm15 != null and fzdm15 != ''"> #{fzdm15} , </if>
|
||||
<if test="fzdm16 != null and fzdm16 != ''"> #{fzdm16} , </if>
|
||||
<if test="fzdm17 != null and fzdm17 != ''"> #{fzdm17} , </if>
|
||||
<if test="fzdm18 != null and fzdm18 != ''"> #{fzdm18} , </if>
|
||||
<if test="fzdm19 != null and fzdm19 != ''"> #{fzdm19} , </if>
|
||||
<if test="fzdm20 != null and fzdm20 != ''"> #{fzdm20} , </if>
|
||||
<if test="fzdm21 != null and fzdm21 != ''"> #{fzdm21} , </if>
|
||||
<if test="fzdm22 != null and fzdm22 != ''"> #{fzdm22} , </if>
|
||||
<if test="fzdm23 != null and fzdm23 != ''"> #{fzdm23} , </if>
|
||||
<if test="fzdm24 != null and fzdm24 != ''"> #{fzdm24} , </if>
|
||||
<if test="fzdm25 != null and fzdm25 != ''"> #{fzdm25} , </if>
|
||||
<if test="fzdm26 != null and fzdm26 != ''"> #{fzdm26} , </if>
|
||||
<if test="fzdm27 != null and fzdm27 != ''"> #{fzdm27} , </if>
|
||||
<if test="fzdm28 != null and fzdm28 != ''"> #{fzdm28} , </if>
|
||||
<if test="fzdm29 != null and fzdm29 != ''"> #{fzdm29} , </if>
|
||||
<if test="fzdm30 != null and fzdm30 != ''"> #{fzdm30} , </if>
|
||||
<if test="zdylb != null and zdylb != ''"> #{zdylb} ,</if>
|
||||
<if test="zdydm != null and zdydm != ''"> #{zdydm} ,</if>
|
||||
<if test="ncj != null"> #{ncj} ,</if>
|
||||
<if test="ncd != null"> #{ncd} ,</if>
|
||||
<if test="yj1 != null"> #{yj1} ,</if>
|
||||
<if test="yd1 != null"> #{yd1} ,</if>
|
||||
<if test="yj2 != null"> #{yj2} ,</if>
|
||||
<if test="yd2 != null"> #{yd2} ,</if>
|
||||
<if test="yj3 != null"> #{yj3} ,</if>
|
||||
<if test="yd3 != null"> #{yd3} ,</if>
|
||||
<if test="yj4 != null"> #{yj4} ,</if>
|
||||
<if test="yd4 != null"> #{yd4} ,</if>
|
||||
<if test="yj5 != null"> #{yj5} ,</if>
|
||||
<if test="yd5 != null"> #{yd5} ,</if>
|
||||
<if test="yj6 != null"> #{yj6} ,</if>
|
||||
<if test="yd6 != null"> #{yd6} ,</if>
|
||||
<if test="yj7 != null"> #{yj7} ,</if>
|
||||
<if test="yd7 != null"> #{yd7} ,</if>
|
||||
<if test="yj8 != null"> #{yj8} ,</if>
|
||||
<if test="yd8 != null"> #{yd8} ,</if>
|
||||
<if test="yj9 != null"> #{yj9} ,</if>
|
||||
<if test="yd9 != null"> #{yd9} ,</if>
|
||||
<if test="yj10 != null"> #{yj10} ,</if>
|
||||
<if test="yd10 != null"> #{yd10} ,</if>
|
||||
<if test="yj11 != null"> #{yj11} ,</if>
|
||||
<if test="yd11 != null"> #{yd11} ,</if>
|
||||
<if test="yj12 != null"> #{yj12} ,</if>
|
||||
<if test="yd12 != null"> #{yd12} ,</if>
|
||||
<if test="yj13 != null"> #{yj13} ,</if>
|
||||
<if test="yd13 != null"> #{yd13}, </if>
|
||||
<if test="kjtxdm != null and kjtxdm!=''"> #{kjtxdm} </if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_yeb(kjnd, kmdm, yeblx, wbdm, gsdm, ZTH, fzdm0, fzdm1, fzdm2, fzdm3, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, zdylb, zdydm, ncj, ncd, yj1, yd1, yj2, yd2, yj3, yd3, yj4, yd4, yj5, yd5, yj6, yd6, yj7, yd7, yj8, yd8, yj9, yd9, yj10, yd10, yj11, yd11, yj12, yd12, yj13, yd13, ID)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.kjnd},#{entity.kmdm},#{entity.yeblx},#{entity.wbdm},#{entity.gsdm},#{entity.zth},#{entity.fzdm0},#{entity.fzdm1},#{entity.fzdm2},#{entity.fzdm3},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.zdylb},#{entity.zdydm},#{entity.ncj},#{entity.ncd},#{entity.yj1},#{entity.yd1},#{entity.yj2},#{entity.yd2},#{entity.yj3},#{entity.yd3},#{entity.yj4},#{entity.yd4},#{entity.yj5},#{entity.yd5},#{entity.yj6},#{entity.yd6},#{entity.yj7},#{entity.yd7},#{entity.yj8},#{entity.yd8},#{entity.yj9},#{entity.yd9},#{entity.yj10},#{entity.yd10},#{entity.yj11},#{entity.yd11},#{entity.yj12},#{entity.yd12},#{entity.yj13},#{entity.yd13},#{entity.id})
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_yeb(kjnd, kmdm, yeblx, wbdm, gsdm, ZTH, fzdm0, fzdm1, fzdm2, fzdm3, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, zdylb, zdydm, ncj, ncd, yj1, yd1, yj2, yd2, yj3, yd3, yj4, yd4, yj5, yd5, yj6, yd6, yj7, yd7, yj8, yd8, yj9, yd9, yj10, yd10, yj11, yd11, yj12, yd12, yj13, yd13, ID)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.kjnd},#{entity.kmdm},#{entity.yeblx},#{entity.wbdm},#{entity.gsdm},#{entity.zth},#{entity.fzdm0},#{entity.fzdm1},#{entity.fzdm2},#{entity.fzdm3},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.zdylb},#{entity.zdydm},#{entity.ncj},#{entity.ncd},#{entity.yj1},#{entity.yd1},#{entity.yj2},#{entity.yd2},#{entity.yj3},#{entity.yd3},#{entity.yj4},#{entity.yd4},#{entity.yj5},#{entity.yd5},#{entity.yj6},#{entity.yd6},#{entity.yj7},#{entity.yd7},#{entity.yj8},#{entity.yd8},#{entity.yj9},#{entity.yd9},#{entity.yj10},#{entity.yd10},#{entity.yj11},#{entity.yd11},#{entity.yj12},#{entity.yd12},#{entity.yj13},#{entity.yd13},#{entity.id})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
kjnd = values(kjnd),
|
||||
kmdm = values(kmdm),
|
||||
yeblx = values(yeblx),
|
||||
wbdm = values(wbdm),
|
||||
gsdm = values(gsdm),
|
||||
ZTH = values(ZTH),
|
||||
fzdm0 = values(fzdm0),
|
||||
fzdm1 = values(fzdm1),
|
||||
fzdm2 = values(fzdm2),
|
||||
fzdm3 = values(fzdm3),
|
||||
fzdm4 = values(fzdm4),
|
||||
fzdm5 = values(fzdm5),
|
||||
fzdm6 = values(fzdm6),
|
||||
fzdm7 = values(fzdm7),
|
||||
fzdm8 = values(fzdm8),
|
||||
fzdm9 = values(fzdm9),
|
||||
fzdm10 = values(fzdm10),
|
||||
zdylb = values(zdylb),
|
||||
zdydm = values(zdydm),
|
||||
ncj = values(ncj),
|
||||
ncd = values(ncd),
|
||||
yj1 = values(yj1),
|
||||
yd1 = values(yd1),
|
||||
yj2 = values(yj2),
|
||||
yd2 = values(yd2),
|
||||
yj3 = values(yj3),
|
||||
yd3 = values(yd3),
|
||||
yj4 = values(yj4),
|
||||
yd4 = values(yd4),
|
||||
yj5 = values(yj5),
|
||||
yd5 = values(yd5),
|
||||
yj6 = values(yj6),
|
||||
yd6 = values(yd6),
|
||||
yj7 = values(yj7),
|
||||
yd7 = values(yd7),
|
||||
yj8 = values(yj8),
|
||||
yd8 = values(yd8),
|
||||
yj9 = values(yj9),
|
||||
yd9 = values(yd9),
|
||||
yj10 = values(yj10),
|
||||
yd10 = values(yd10),
|
||||
yj11 = values(yj11),
|
||||
yd11 = values(yd11),
|
||||
yj12 = values(yj12),
|
||||
yd12 = values(yd12),
|
||||
yj13 = values(yj13),
|
||||
yd13 = values(yd13),
|
||||
ID = values(ID)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" >
|
||||
update gl_yeb set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="kjnd != null and kjnd != ''"> kjnd = #{kjnd},</if>
|
||||
<if test="kmdm != null and kmdm != ''"> kmdm = #{kmdm},</if>
|
||||
<if test="yeblx != null and yeblx != ''"> yeblx = #{yeblx},</if>
|
||||
<if test="wbdm != null and wbdm != ''"> wbdm = #{wbdm},</if>
|
||||
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
|
||||
<if test="zth != null and zth != ''"> ZTH = #{zth},</if>
|
||||
<if test="fzdm0 != null and fzdm0 != ''"> fzdm0 = #{fzdm0},</if>
|
||||
<if test="fzdm1 != null and fzdm1 != ''"> fzdm1 = #{fzdm1},</if>
|
||||
<if test="fzdm2 != null and fzdm2 != ''"> fzdm2 = #{fzdm2},</if>
|
||||
<if test="fzdm3 != null and fzdm3 != ''"> fzdm3 = #{fzdm3},</if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> fzdm4 = #{fzdm4},</if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> fzdm5 = #{fzdm5},</if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> fzdm6 = #{fzdm6},</if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> fzdm7 = #{fzdm7},</if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> fzdm8 = #{fzdm8},</if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> fzdm9 = #{fzdm9},</if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> fzdm10 = #{fzdm10},</if>
|
||||
<if test="fzdm11 != null and fzdm11 != ''"> fzdm11 = #{fzdm11},</if>
|
||||
<if test="fzdm12 != null and fzdm12 != ''"> fzdm12 = #{fzdm12},</if>
|
||||
<if test="fzdm13 != null and fzdm13 != ''"> fzdm13 = #{fzdm13},</if>
|
||||
<if test="fzdm14 != null and fzdm14 != ''"> fzdm14 = #{fzdm14},</if>
|
||||
<if test="fzdm15 != null and fzdm15 != ''"> fzdm15 = #{fzdm15},</if>
|
||||
<if test="fzdm16 != null and fzdm16 != ''"> fzdm16 = #{fzdm16},</if>
|
||||
<if test="fzdm17 != null and fzdm17 != ''"> fzdm17 = #{fzdm17},</if>
|
||||
<if test="fzdm18 != null and fzdm18 != ''"> fzdm18 = #{fzdm18},</if>
|
||||
<if test="fzdm19 != null and fzdm19 != ''"> fzdm19 = #{fzdm19},</if>
|
||||
<if test="fzdm20 != null and fzdm20 != ''"> fzdm20 = #{fzdm20},</if>
|
||||
<if test="fzdm21 != null and fzdm21 != ''"> fzdm21 = #{fzdm21},</if>
|
||||
<if test="fzdm22 != null and fzdm22 != ''"> fzdm22 = #{fzdm22},</if>
|
||||
<if test="fzdm23 != null and fzdm23 != ''"> fzdm23 = #{fzdm23},</if>
|
||||
<if test="fzdm24 != null and fzdm24 != ''"> fzdm24 = #{fzdm24},</if>
|
||||
<if test="fzdm25 != null and fzdm25 != ''"> fzdm25 = #{fzdm25},</if>
|
||||
<if test="fzdm26 != null and fzdm26 != ''"> fzdm26 = #{fzdm26},</if>
|
||||
<if test="fzdm27 != null and fzdm27 != ''"> fzdm27 = #{fzdm27},</if>
|
||||
<if test="fzdm28 != null and fzdm28 != ''"> fzdm28 = #{fzdm28},</if>
|
||||
<if test="fzdm29 != null and fzdm29 != ''"> fzdm29 = #{fzdm29},</if>
|
||||
<if test="fzdm30 != null and fzdm30 != ''"> fzdm30 = #{fzdm30},</if>
|
||||
<if test="zdylb != null and zdylb != ''"> zdylb = #{zdylb},</if>
|
||||
<if test="zdydm != null and zdydm != ''"> zdydm = #{zdydm},</if>
|
||||
<if test="ncj != null"> ncj = #{ncj},</if>
|
||||
<if test="ncd != null"> ncd = #{ncd},</if>
|
||||
<if test="yj1 != null"> yj1 = #{yj1},</if>
|
||||
<if test="yd1 != null"> yd1 = #{yd1},</if>
|
||||
<if test="yj2 != null"> yj2 = #{yj2},</if>
|
||||
<if test="yd2 != null"> yd2 = #{yd2},</if>
|
||||
<if test="yj3 != null"> yj3 = #{yj3},</if>
|
||||
<if test="yd3 != null"> yd3 = #{yd3},</if>
|
||||
<if test="yj4 != null"> yj4 = #{yj4},</if>
|
||||
<if test="yd4 != null"> yd4 = #{yd4},</if>
|
||||
<if test="yj5 != null"> yj5 = #{yj5},</if>
|
||||
<if test="yd5 != null"> yd5 = #{yd5},</if>
|
||||
<if test="yj6 != null"> yj6 = #{yj6},</if>
|
||||
<if test="yd6 != null"> yd6 = #{yd6},</if>
|
||||
<if test="yj7 != null"> yj7 = #{yj7},</if>
|
||||
<if test="yd7 != null"> yd7 = #{yd7},</if>
|
||||
<if test="yj8 != null"> yj8 = #{yj8},</if>
|
||||
<if test="yd8 != null"> yd8 = #{yd8},</if>
|
||||
<if test="yj9 != null"> yj9 = #{yj9},</if>
|
||||
<if test="yd9 != null"> yd9 = #{yd9},</if>
|
||||
<if test="yj10 != null"> yj10 = #{yj10},</if>
|
||||
<if test="yd10 != null"> yd10 = #{yd10},</if>
|
||||
<if test="yj11 != null"> yj11 = #{yj11},</if>
|
||||
<if test="yd11 != null"> yd11 = #{yd11},</if>
|
||||
<if test="yj12 != null"> yj12 = #{yj12},</if>
|
||||
<if test="yd12 != null"> yd12 = #{yd12},</if>
|
||||
<if test="yj13 != null"> yj13 = #{yj13},</if>
|
||||
<if test="yd13 != null"> yd13 = #{yd13},</if>
|
||||
<if test="kjtxdm != null and kjtxdm!=''"> kjtxdm = #{kjtxdm}</if>
|
||||
</trim>
|
||||
where ID = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="SenderGlYebEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" >
|
||||
update gl_yeb set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where ID = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="SenderGlYebEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" >
|
||||
update gl_yeb set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||
<if test="yeblx != null and yeblx != ''"> and yeblx = #{yeblx} </if>
|
||||
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||
<if test="fzdm0 != null and fzdm0 != ''"> and fzdm0 = #{fzdm0} </if>
|
||||
<if test="fzdm1 != null and fzdm1 != ''"> and fzdm1 = #{fzdm1} </if>
|
||||
<if test="fzdm2 != null and fzdm2 != ''"> and fzdm2 = #{fzdm2} </if>
|
||||
<if test="fzdm3 != null and fzdm3 != ''"> and fzdm3 = #{fzdm3} </if>
|
||||
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||
<if test="zdylb != null and zdylb != ''"> and zdylb = #{zdylb} </if>
|
||||
<if test="zdydm != null and zdydm != ''"> and zdydm = #{zdydm} </if>
|
||||
<if test="ncj != null"> and ncj = #{ncj} </if>
|
||||
<if test="ncd != null"> and ncd = #{ncd} </if>
|
||||
<if test="yj1 != null"> and yj1 = #{yj1} </if>
|
||||
<if test="yd1 != null"> and yd1 = #{yd1} </if>
|
||||
<if test="yj2 != null"> and yj2 = #{yj2} </if>
|
||||
<if test="yd2 != null"> and yd2 = #{yd2} </if>
|
||||
<if test="yj3 != null"> and yj3 = #{yj3} </if>
|
||||
<if test="yd3 != null"> and yd3 = #{yd3} </if>
|
||||
<if test="yj4 != null"> and yj4 = #{yj4} </if>
|
||||
<if test="yd4 != null"> and yd4 = #{yd4} </if>
|
||||
<if test="yj5 != null"> and yj5 = #{yj5} </if>
|
||||
<if test="yd5 != null"> and yd5 = #{yd5} </if>
|
||||
<if test="yj6 != null"> and yj6 = #{yj6} </if>
|
||||
<if test="yd6 != null"> and yd6 = #{yd6} </if>
|
||||
<if test="yj7 != null"> and yj7 = #{yj7} </if>
|
||||
<if test="yd7 != null"> and yd7 = #{yd7} </if>
|
||||
<if test="yj8 != null"> and yj8 = #{yj8} </if>
|
||||
<if test="yd8 != null"> and yd8 = #{yd8} </if>
|
||||
<if test="yj9 != null"> and yj9 = #{yj9} </if>
|
||||
<if test="yd9 != null"> and yd9 = #{yd9} </if>
|
||||
<if test="yj10 != null"> and yj10 = #{yj10} </if>
|
||||
<if test="yd10 != null"> and yd10 = #{yd10} </if>
|
||||
<if test="yj11 != null"> and yj11 = #{yj11} </if>
|
||||
<if test="yd11 != null"> and yd11 = #{yd11} </if>
|
||||
<if test="yj12 != null"> and yj12 = #{yj12} </if>
|
||||
<if test="yd12 != null"> and yd12 = #{yd12} </if>
|
||||
<if test="yj13 != null"> and yj13 = #{yj13} </if>
|
||||
<if test="yd13 != null"> and yd13 = #{yd13} </if>
|
||||
<if test="id != null"> and ID = #{id} </if>
|
||||
<if test="kjtxdm != null and kjtxdm!=''"> and kjtxdm = #{kjtxdm} </if>
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="SenderGlYebEntity_delete">
|
||||
delete from gl_yeb where ID = #{id}
|
||||
</delete>
|
||||
|
||||
|
||||
<!--通过会计年度,账套号,公司代码,科目代码删除-->
|
||||
<delete id="SenderGlYebEntity_delete_yeb">
|
||||
delete from gl_yeb where kjnd = #{kjnd} and gsdm=#{gsdm} and zth=#{zth}
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glYeb.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* (GlYeb)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-07-08 11:12:24
|
||||
*/
|
||||
public interface ISenderGlYebService extends IBaseService<SenderGlYebEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 同步余额数据 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/8 11:47
|
||||
* **/
|
||||
Object glYebSynchronization(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询余额数据 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/8 11:49
|
||||
* **/
|
||||
Object queryEntityPage(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询余额数据 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/8 13:50
|
||||
* **/
|
||||
List<SenderGlYebEntity> queryEntityPageHealthBureau(SenderGlYebEntity senderGlYebEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存余额数据 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/8 13:51
|
||||
* **/
|
||||
Object saveEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除余额数据 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/7/16 13:48
|
||||
* **/
|
||||
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||
}
|
|
@ -0,0 +1,363 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glYeb.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glYeb.dao.ISenderGlYebDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.glYeb.service.ISenderGlYebService;
|
||||
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlYeb)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-07-08 11:12:24
|
||||
*/
|
||||
@Service(value = "SenderGlYebServiceImpl")
|
||||
public class SenderGlYebServiceImpl extends BaseService<SenderGlYebEntity, String> implements ISenderGlYebService {
|
||||
|
||||
|
||||
private ISenderGlYebDao senderGlYebDao;
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
public void setSenderGlYebDao(ISenderGlYebDao dao) {
|
||||
this.senderGlYebDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
//同步余额数据
|
||||
@Override
|
||||
public Object glYebSynchronization(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlYebEntity senderGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class);
|
||||
List<SenderGlYebEntity> senderGlYebEntities=new ArrayList<>();
|
||||
String result=null;
|
||||
try {
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderGlYebEntity.getKjnd()==null){
|
||||
senderGlYebEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
/*try {
|
||||
//同步南浔区人民医院001余额数据
|
||||
senderGlYebEntity.setZth("001");
|
||||
senderGlYebEntity.setGsdm("0101010101");
|
||||
// senderGlYebEntity.setKmdm("1002010101");
|
||||
logger.info("================开始查询南浔区人民医院余额表数据=================");
|
||||
senderGlYebEntities= sqlSessionNxrm.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("南浔区人民医院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区人民医院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
try {
|
||||
//同步南浔区练市人民医院003余额数据
|
||||
senderGlYebEntity.setZth("003");
|
||||
senderGlYebEntity.setGsdm("0101010103");
|
||||
logger.info("================开始查询南浔区练市人民医院余额表数据=================");
|
||||
senderGlYebEntities= senderGlYebDao.querySenderGlYebEntity(senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("南浔区练市人民医院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市人民医院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
/*try {
|
||||
//同步练市镇中心卫生院005余额数据
|
||||
senderGlYebEntity.setZth("005");
|
||||
senderGlYebEntity.setGsdm("0101010202");
|
||||
logger.info("================开始查询南浔区练市镇中心卫生院余额表数据=================");
|
||||
senderGlYebEntities= sqlSessionNxrm.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步善琏镇卫生院007余额数据
|
||||
senderGlYebEntity.setZth("007");
|
||||
senderGlYebEntity.setGsdm("0101010204");
|
||||
logger.info("================开始查询南浔区善琏镇卫生院余额表数据=================");
|
||||
senderGlYebEntities= sqlSessionNxrm.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("南浔区善琏镇卫生院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区善琏镇卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步双林镇中心卫生院004余额数据
|
||||
senderGlYebEntity.setZth("004");
|
||||
senderGlYebEntity.setGsdm("0101010201");
|
||||
senderGlYebEntities= sqlSessionSlz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("双林镇中心卫生院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("双林镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步菱湖镇中心卫生院009余额数据
|
||||
senderGlYebEntity.setZth("009");
|
||||
senderGlYebEntity.setGsdm("0101020201");
|
||||
senderGlYebEntities= sqlSessionLhz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("菱湖镇中心卫生院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("菱湖镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步和孚镇卫生院010余额数据
|
||||
senderGlYebEntity.setZth("010");
|
||||
senderGlYebEntity.setGsdm("0101020202");
|
||||
senderGlYebEntities= sqlSessionHfz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("和孚镇卫生院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("和孚镇卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
}
|
||||
try {
|
||||
//同步千金镇卫生院011余额数据
|
||||
senderGlYebEntity.setZth("011");
|
||||
senderGlYebEntity.setGsdm("0101020203");
|
||||
senderGlYebEntities= sqlSessionQjz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("千金镇卫生院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("千金镇卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
}
|
||||
try {
|
||||
//同步石崇镇卫生院012余额数据
|
||||
senderGlYebEntity.setZth("012");
|
||||
senderGlYebEntity.setGsdm("0101020204");
|
||||
senderGlYebEntities= sqlSessionScz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("石崇镇卫生院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("石崇镇卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步南浔镇中心卫生院014余额数据
|
||||
senderGlYebEntity.setZth("014");
|
||||
senderGlYebEntity.setGsdm("010202");
|
||||
senderGlYebEntities= sqlSessionNxz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||
logger.info("南浔镇中心卫生院GRPU8余额数据同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
}catch (Exception e){
|
||||
logger.info("卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||
}
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("result",result);
|
||||
return jsonObject1;
|
||||
}
|
||||
|
||||
|
||||
private String sendYebToHealthBureauTwo(List<SenderGlYebEntity> senderGlYebEntities){
|
||||
if (CollectionUtils.isEmpty(senderGlYebEntities)) {
|
||||
logger.info("GRPU8没有需要同步得余额数据信息");
|
||||
return "GRPU8没有需要同步得余额数据信息";
|
||||
} else {
|
||||
//先删除再保存 根据会计年度,公司代码,账套号删除
|
||||
SenderGlYebEntity receiverGlYebEntity = new SenderGlYebEntity();
|
||||
receiverGlYebEntity.setKjnd(senderGlYebEntities.get(0).getKjnd());
|
||||
//receiverGlYebEntity.setKjnd("2021");
|
||||
receiverGlYebEntity.setGsdm(senderGlYebEntities.get(0).getGsdm());
|
||||
receiverGlYebEntity.setZth(senderGlYebEntities.get(0).getZth());
|
||||
try {
|
||||
JSONObject jsonObjectStr=new JSONObject();
|
||||
jsonObjectStr.put("jsonStr",receiverGlYebEntity);
|
||||
logger.info("========开始将卫生局得GRPU8账套号:{},公司代码:{},会计年度:{}的余额数据删除==========",senderGlYebEntities.get(0).getZth(),senderGlYebEntities.get(0).getGsdm(),senderGlYebEntities.get(0).getKjnd());
|
||||
deleteEntityHealthBureau(jsonObjectStr);
|
||||
logger.info("========卫生局得GRPU8账套号:{},公司代码:{},会计年度:{}的余额数据删除完毕==========",senderGlYebEntities.get(0).getZth(),senderGlYebEntities.get(0).getGsdm(),senderGlYebEntities.get(0).getKjnd());
|
||||
}catch (Exception e){
|
||||
logger.info("{}得GRPU8余额数据删除失败:{}", senderGlYebEntities.get(0).getZth(),e.getMessage());
|
||||
return "卫生院GRPU8余额数据删除失败";
|
||||
}
|
||||
for (SenderGlYebEntity senderGlYebEntity : senderGlYebEntities) {
|
||||
//senderGlYebEntity.setKjnd("2021");
|
||||
JSONObject jsonObjectStrSave = new JSONObject();
|
||||
jsonObjectStrSave.put("jsonStr", senderGlYebEntity);
|
||||
try {
|
||||
//保存数据
|
||||
logger.info("========开始将账套号为:{}得GRPU8余额数据同步新增到卫生局GRPU8余额数据中==========",senderGlYebEntity.getZth());
|
||||
saveEntityHealthBureau(jsonObjectStrSave);
|
||||
}catch (Exception e){
|
||||
logger.info("账套号:{}得GRPU8余额数据新增失败:{}",senderGlYebEntity.getZth(), e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return "同步卫生院GROU8余额数据成功";
|
||||
}
|
||||
}
|
||||
|
||||
//查询余额数据
|
||||
@Override
|
||||
public Object queryEntityPage(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlYebEntity senderGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class);
|
||||
List<SenderGlYebEntity> senderGlYebEntities=new ArrayList<>();
|
||||
try {
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderGlYebEntity.getKjnd()==null){
|
||||
senderGlYebEntity.setKjnd(String.valueOf(DateUtil.format(new Date(),"yyyy")));
|
||||
}
|
||||
if(StrUtil.isEmpty(senderGlYebEntity.getZth())){
|
||||
logger.info("======根据账套号:{}查询余额数据为空",senderGlYebEntity.getZth());
|
||||
return BaseResult.getFailureMessageEntity("请传递账套号");
|
||||
}
|
||||
/* switch (senderGlYebEntity.getGsdm()){
|
||||
case "0101010103"://练市人民医院
|
||||
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||
break;
|
||||
case "0101010201"://双林镇中心卫生院
|
||||
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||
break;
|
||||
case "0101010202"://练市镇中心卫生院
|
||||
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||
break;
|
||||
case "0101010204"://善琏镇卫生院
|
||||
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||
break;
|
||||
case "0101020201":
|
||||
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||
break;
|
||||
case "0101020202":
|
||||
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||
break;
|
||||
case "0101020203":
|
||||
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||
break;
|
||||
case "0101020204":
|
||||
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||
break;
|
||||
case "0101010101"://南浔区人民医院
|
||||
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}*/
|
||||
senderGlYebEntities = senderGlYebDao.querySenderGlYebEntity(senderGlYebEntity);
|
||||
PageInfo pageInfo=new PageInfo(senderGlYebEntities);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("pageInfo",pageInfo);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套号:{}查询卫生院GROU8余额数据失败:",senderGlYebEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询余额数据失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//查询余额数据
|
||||
@Override
|
||||
public List<SenderGlYebEntity> queryEntityPageHealthBureau(SenderGlYebEntity senderGlYebEntity) {
|
||||
try {
|
||||
logger.info("====开始根据账套号:{}查询卫生局中得余额数据====",senderGlYebEntity.getZth());
|
||||
List<SenderGlYebEntity> receiverGlYebEntities = senderGlYebDao.queryGlYebHealthBureau(senderGlYebEntity);
|
||||
return receiverGlYebEntities;
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套号:{}查询卫生局GRPU8余额数据错误:{}",senderGlYebEntity.getZth(),e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//保存余额数据
|
||||
@Override
|
||||
public Object saveEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlYebEntity receiverGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("========保存余额数据时会计年度为空==========");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("kmdm"))) {
|
||||
logger.info("========保存余额数据时科目代码为空==========");
|
||||
return BaseResult.getFailureMessageEntity("科目代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("========保存余额数据时公司代码为空==========");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
logger.info("========保存余额数据时账套号为空==========");
|
||||
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||
}
|
||||
try {
|
||||
logger.info("==========根据账套号:{}开始保存余额数据=========",receiverGlYebEntity.getZth());
|
||||
SenderGlYebEntity glYebEntity = senderGlYebDao.saveGlYebHealthBureau(receiverGlYebEntity);
|
||||
logger.info("==========根据账套号:{}保存得余额数据id为:{}=========",receiverGlYebEntity.getZth(),glYebEntity.getId());
|
||||
/*logger.info("=========开始保存余额中间表========");
|
||||
receiverGlYebEntity.setJid(glYebEntity.getId());//卫生局的id
|
||||
receiverGlYebEntity.setYid(jsonObject.getString("id")==null?String.valueOf(UUIDLong.longUUID()):jsonObject.getString("id"));//卫生院的id
|
||||
receiverGlYebEntity.setId(String.valueOf(UUIDLong.longUUID()));//自己本身的id
|
||||
ReceiverGlYebEntity receiverGlYeb = receiverGlYebDao.saveReceiverGlYebRelevance(receiverGlYebEntity);
|
||||
logger.info("==========保存得余额中间表的数据id为:{}=========",receiverGlYeb.getId());*/
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("yeb",glYebEntity);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套号:{}保存卫生局GROU8余额数据失败,",receiverGlYebEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("保存卫生局GROU8余额数据失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlYebEntity receiverGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("========保存余额数据时会计年度为空==========");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("========保存余额数据时公司代码为空==========");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
logger.info("========保存余额数据时账套号为空==========");
|
||||
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||
}
|
||||
try {
|
||||
logger.info("==========开始删除余额数据,会计年度为:{},公司代码为:{},账套号为:{},科目代码为:{}=========",
|
||||
jsonObject.getString("kjnd"),jsonObject.getString("gsdm"),jsonObject.getString("zth"),receiverGlYebEntity.getKmdm());
|
||||
Integer integer = senderGlYebDao.deleteGlYebHealthBureau(receiverGlYebEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("yeb",integer);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套号:{},会计年度:{}删除卫生局GROU8余额数据失败,",receiverGlYebEntity.getZth(),receiverGlYebEntity.getKjnd(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("删除卫生局GROU8余额数据失败");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glZtcs.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (gl_ztcs: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:45:03
|
||||
*/
|
||||
public interface ISenderGlZtcsDao extends IBaseDao<SenderGlZtcsEntity, String> {
|
||||
/**
|
||||
*
|
||||
* @content 查询账套信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlZtcsEntity> querySenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存账套信息到账套日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 15:33
|
||||
* **/
|
||||
SenderGlZtcsEntity saveSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新账套信息到账套日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 15:36
|
||||
* **/
|
||||
SenderGlZtcsEntity updateSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询账套信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlZtcsEntity> queryGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存账套信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 15:33
|
||||
* **/
|
||||
SenderGlZtcsEntity saveGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新账套信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 15:36
|
||||
* **/
|
||||
SenderGlZtcsEntity updateGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除账套信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:23
|
||||
* **/
|
||||
Integer deleteGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glZtcs.dao.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glZtcs.dao.ISenderGlZtcsDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* (GlZtcs)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:45:03
|
||||
*/
|
||||
@Repository(value = "SenderGlZtcsDaoImpl")
|
||||
public class SenderGlZtcsDaoImpl extends MybatisGenericDao<SenderGlZtcsEntity, String> implements ISenderGlZtcsDao {
|
||||
|
||||
@Override
|
||||
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||
public List<SenderGlZtcsEntity> querySenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||
return super.queryByLike(senderGlZtcsEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||
public SenderGlZtcsEntity saveSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||
return super.save(senderGlZtcsEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||
public SenderGlZtcsEntity updateSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||
return super.update(senderGlZtcsEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||
public List<SenderGlZtcsEntity> queryGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||
return super.query(senderGlZtcsEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||
public SenderGlZtcsEntity saveGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||
return super.save(senderGlZtcsEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||
public SenderGlZtcsEntity updateGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||
return super.update(senderGlZtcsEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||
public Integer deleteGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||
return super.delete("SenderGlZtcsEntity_delete_ztcs",senderGlZtcsEntity);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,971 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glZtcs.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* (GlZtcs)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:45:03
|
||||
*/
|
||||
public class SenderGlZtcsEntity 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;
|
||||
|
||||
private String kjyslbdm;
|
||||
private String wbxsws;
|
||||
private String hlxsws;
|
||||
private String sfpxjz;
|
||||
private String qyxbzw;
|
||||
private String pxjzfs;
|
||||
private String yzxjll;
|
||||
private String nsrlx;
|
||||
private String dzgd;
|
||||
private String dzgdzttb;
|
||||
|
||||
public String getKjyslbdm() {
|
||||
return kjyslbdm;
|
||||
}
|
||||
|
||||
public void setKjyslbdm(String kjyslbdm) {
|
||||
this.kjyslbdm = kjyslbdm;
|
||||
}
|
||||
|
||||
public String getWbxsws() {
|
||||
return wbxsws;
|
||||
}
|
||||
|
||||
public void setWbxsws(String wbxsws) {
|
||||
this.wbxsws = wbxsws;
|
||||
}
|
||||
|
||||
public String getHlxsws() {
|
||||
return hlxsws;
|
||||
}
|
||||
|
||||
public void setHlxsws(String hlxsws) {
|
||||
this.hlxsws = hlxsws;
|
||||
}
|
||||
|
||||
public String getSfpxjz() {
|
||||
return sfpxjz;
|
||||
}
|
||||
|
||||
public void setSfpxjz(String sfpxjz) {
|
||||
this.sfpxjz = sfpxjz;
|
||||
}
|
||||
|
||||
public String getQyxbzw() {
|
||||
return qyxbzw;
|
||||
}
|
||||
|
||||
public void setQyxbzw(String qyxbzw) {
|
||||
this.qyxbzw = qyxbzw;
|
||||
}
|
||||
|
||||
public String getPxjzfs() {
|
||||
return pxjzfs;
|
||||
}
|
||||
|
||||
public void setPxjzfs(String pxjzfs) {
|
||||
this.pxjzfs = pxjzfs;
|
||||
}
|
||||
|
||||
public String getYzxjll() {
|
||||
return yzxjll;
|
||||
}
|
||||
|
||||
public void setYzxjll(String yzxjll) {
|
||||
this.yzxjll = yzxjll;
|
||||
}
|
||||
|
||||
public String getNsrlx() {
|
||||
return nsrlx;
|
||||
}
|
||||
|
||||
public void setNsrlx(String nsrlx) {
|
||||
this.nsrlx = nsrlx;
|
||||
}
|
||||
|
||||
public String getDzgd() {
|
||||
return dzgd;
|
||||
}
|
||||
|
||||
public void setDzgd(String dzgd) {
|
||||
this.dzgd = dzgd;
|
||||
}
|
||||
|
||||
public String getDzgdzttb() {
|
||||
return dzgdzttb;
|
||||
}
|
||||
|
||||
public void setDzgdzttb(String dzgdzttb) {
|
||||
this.dzgdzttb = dzgdzttb;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,80 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glZtcs.service;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlZtcs)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:45:04
|
||||
*/
|
||||
public interface ISenderGlZtcsService extends IBaseService<SenderGlZtcsEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 同步账套信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 11:33
|
||||
* **/
|
||||
Object glZtcsSynchronization(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询账套信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:55
|
||||
* **/
|
||||
Object queryEntityPage(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询账套信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:55
|
||||
* **/
|
||||
List<SenderGlZtcsEntity> queryEntityPageHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存账套信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:02
|
||||
* **/
|
||||
Object saveEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新账套信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:09
|
||||
* **/
|
||||
Object updateEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除账套信息
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:21
|
||||
* **/
|
||||
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
}
|
|
@ -0,0 +1,478 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glZtcs.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glZtcs.dao.ISenderGlZtcsDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.glZtcs.service.ISenderGlZtcsService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlZtcs)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:45:04
|
||||
*/
|
||||
@Service(value = "SenderGlZtcsServiceImpl")
|
||||
public class SenderGlZtcsServiceImpl extends BaseService<SenderGlZtcsEntity, String> implements ISenderGlZtcsService {
|
||||
|
||||
|
||||
private ISenderGlZtcsDao senderGlZtcsDao;
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
public void setSenderGlZtcsDao(ISenderGlZtcsDao dao) {
|
||||
this.senderGlZtcsDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object glZtcsSynchronization(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlZtcsEntity senderGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||
List<SenderGlZtcsEntity> senderGlZtcsEntities=new ArrayList<>();
|
||||
String result=null;
|
||||
try {
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderGlZtcsEntity.getKjnd()==null){
|
||||
senderGlZtcsEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
/*try {
|
||||
//同步南浔区人民医院001账套信息
|
||||
senderGlZtcsEntity.setZtbh("001");
|
||||
senderGlZtcsEntity.setHsdwdm("0101010101");
|
||||
logger.info("===========开始查询南浔区人民医院账套信息=============");
|
||||
senderGlZtcsEntities= sqlSessionNxrm.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("南浔区人民医院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区人民医院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
try {
|
||||
//同步南浔区练市人民医院003账套信息
|
||||
senderGlZtcsEntity.setZtbh("003");
|
||||
senderGlZtcsEntity.setHsdwdm("0101010103");
|
||||
logger.info("===========开始查询南浔区练市人民医院账套信息=============");
|
||||
senderGlZtcsEntities= senderGlZtcsDao.querySenderGlZtcsEntity(senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("南浔区人民医院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区人民医院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
/*try {
|
||||
//同步练市镇中心卫生院005账套信息
|
||||
senderGlZtcsEntity.setZtbh("005");
|
||||
senderGlZtcsEntity.setHsdwdm("0101010202");
|
||||
logger.info("===========开始查询南浔区练市镇中心卫生院账套信息=============");
|
||||
senderGlZtcsEntities= sqlSessionNxrm.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步善琏镇卫生院007账套信息
|
||||
senderGlZtcsEntity.setZtbh("007");
|
||||
senderGlZtcsEntity.setHsdwdm("0101010204");
|
||||
logger.info("===========开始查询南浔区善琏镇卫生院账套信息=============");
|
||||
senderGlZtcsEntities= sqlSessionNxrm.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("南浔区善琏镇卫生院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区善琏镇卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步双林镇中心卫生院004账套信息
|
||||
senderGlZtcsEntity.setZtbh("004");
|
||||
senderGlZtcsEntity.setHsdwdm("0101010201");
|
||||
senderGlZtcsEntities= sqlSessionSlz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("双林镇中心卫生院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("双林镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步菱湖镇中心卫生院009账套信息
|
||||
senderGlZtcsEntity.setZtbh("009");
|
||||
senderGlZtcsEntity.setHsdwdm("0101020201");
|
||||
senderGlZtcsEntities= sqlSessionLhz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("菱湖镇中心卫生院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("菱湖镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步和孚镇卫生院010账套信息
|
||||
senderGlZtcsEntity.setZtbh("010");
|
||||
senderGlZtcsEntity.setHsdwdm("0101020202");
|
||||
senderGlZtcsEntities= sqlSessionHfz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("和孚镇卫生院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("和孚镇卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步千金镇卫生院011账套信息
|
||||
senderGlZtcsEntity.setZtbh("011");
|
||||
senderGlZtcsEntity.setHsdwdm("0101020203");
|
||||
senderGlZtcsEntities= sqlSessionQjz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("千金镇卫生院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("千金镇卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步石崇镇卫生院012账套信息
|
||||
senderGlZtcsEntity.setZtbh("012");
|
||||
senderGlZtcsEntity.setHsdwdm("0101020204");
|
||||
senderGlZtcsEntities= sqlSessionScz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("石崇镇卫生院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("石崇镇卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步南浔镇中心卫生院014账套信息
|
||||
senderGlZtcsEntity.setZtbh("014");
|
||||
senderGlZtcsEntity.setHsdwdm("010202");
|
||||
senderGlZtcsEntities= sqlSessionNxz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||
logger.info("南浔镇中心卫生院GRPU8账套信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
}catch (Exception e){
|
||||
logger.info("GRPU8账套信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("result",result);
|
||||
return jsonObject1;
|
||||
}
|
||||
|
||||
private String sendZtcsToHealthBureau(List<SenderGlZtcsEntity> senderGlZtcsEntities){
|
||||
if (CollectionUtils.isEmpty(senderGlZtcsEntities)) {
|
||||
logger.info("GRPU8没有需要同步得账套信息信息");
|
||||
return "GRPU8没有需要同步得账套信息信息";
|
||||
} else {
|
||||
for (SenderGlZtcsEntity ztcsEntity : senderGlZtcsEntities) {
|
||||
//ztcsEntity.setKjnd("2021");
|
||||
//ztcsEntity.setQykjqj(ztcsEntity.getQykjqj().replace("2024","2021"));
|
||||
//根据会计年度,公司代码,核算单位代码查询数据是否已经同步过
|
||||
SenderGlZtcsEntity receiverGlZtcsEntity = new SenderGlZtcsEntity();
|
||||
receiverGlZtcsEntity.setKjnd(ztcsEntity.getKjnd());
|
||||
receiverGlZtcsEntity.setZtbh(ztcsEntity.getZtbh());
|
||||
receiverGlZtcsEntity.setHsdwdm(ztcsEntity.getHsdwdm());
|
||||
try {
|
||||
List<SenderGlZtcsEntity> receiverGlZtcsEntities = queryEntityPageHealthBureau(receiverGlZtcsEntity);
|
||||
//设置id为会计年度,账套号,核算单位代码拼接,测试时候这样,具体看情况
|
||||
ztcsEntity.setId(ztcsEntity.getKjnd() + '-' + ztcsEntity.getZtbh() + '-' + ztcsEntity.getHsdwdm());
|
||||
JsonResultEntity jsonResultEntity=null;
|
||||
if (CollectionUtils.isEmpty(receiverGlZtcsEntities)) {
|
||||
//将数据保存
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", ztcsEntity);
|
||||
logger.info("===========开始将账套编码为:{}得GRPU8账套数据同步新增到卫生局GRPU8账套信息中=============",ztcsEntity.getZtmc());
|
||||
Object o = saveEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if(json.getString("status").equals("200")){
|
||||
//JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("========账套编码{}得GROU8账套信息同步保存返回结果为:{}======",ztcsEntity.getZtmc(),json.getString("ztcs"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null && jsonResultEntity.getStatus().equals("200")) {
|
||||
logger.info("===========开始将发送方得GRPU8账套数据新增到账套信息日志中=============");
|
||||
//保存发送方得日志
|
||||
ztcsEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderGlZtcsDao.saveSenderGlZtcsEntity(ztcsEntity);
|
||||
}*/
|
||||
} else {
|
||||
//将数据更新
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", ztcsEntity);
|
||||
logger.info("===========开始将账套编码为:{}得GRPU8账套数据同步更新到卫生局GRPU8账套信息中=============",ztcsEntity.getZtmc());
|
||||
Object o = updateEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if(json.getString("status").equalsIgnoreCase("200")){
|
||||
//JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("========账套编码:{}得GROU8账套信息同步更新返回结果为:{}======",ztcsEntity.getZtmc(),json.getString("ztcs"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null && jsonResultEntity.getStatus().equals("200")) {
|
||||
logger.info("===========开始将发送方得GRPU8账套数据更新到账套信息日志中=============");
|
||||
//保存发送方得日志
|
||||
ztcsEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderGlZtcsDao.updateSenderGlZtcsEntity(ztcsEntity);
|
||||
}*/
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("账套编码:{}得GRPU8账套信息同步失败:{}",ztcsEntity.getZtmc(), e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return "同步GROU8账套信息成功";
|
||||
}
|
||||
}
|
||||
|
||||
//查询账套信息
|
||||
@Override
|
||||
public Object queryEntityPage(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlZtcsEntity senderGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||
List<SenderGlZtcsEntity> senderGlZtcsEntities=new ArrayList<>();
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderGlZtcsEntity.getKjnd()==null){
|
||||
senderGlZtcsEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
if(StrUtil.isEmpty(senderGlZtcsEntity.getZtbh())){
|
||||
logger.info("======根据账套号:{}查询账套信息为空",senderGlZtcsEntity.getZtbh());
|
||||
return BaseResult.getFailureMessageEntity("请传递账套号");
|
||||
}
|
||||
try {
|
||||
/*switch (senderGlZtcsEntity.getZtbh()){
|
||||
case "003"://练市人民医院
|
||||
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||
break;
|
||||
case "004"://双林镇中心卫生院
|
||||
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||
break;
|
||||
case "005"://练市镇中心卫生院
|
||||
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||
break;
|
||||
case "007"://善琏镇卫生院
|
||||
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||
break;
|
||||
case "009":
|
||||
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||
break;
|
||||
case "010":
|
||||
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||
break;
|
||||
case "011":
|
||||
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||
break;
|
||||
case "012":
|
||||
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||
break;
|
||||
case "001"://南浔区人民医院
|
||||
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}*/
|
||||
senderGlZtcsEntities = senderGlZtcsDao.querySenderGlZtcsEntity(senderGlZtcsEntity);
|
||||
PageInfo pageInfo=new PageInfo(senderGlZtcsEntities);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("pageInfo",pageInfo);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("账套编码:{}查询GROU8账套信息失败:{}",senderGlZtcsEntity.getZtbh(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询GROU8账套信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//查询账套信息
|
||||
@Override
|
||||
public List<SenderGlZtcsEntity> queryEntityPageHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||
try {
|
||||
logger.info("=======根据账套号:{}查询卫生局得账套信息======",senderGlZtcsEntity.getZtbh());
|
||||
List<SenderGlZtcsEntity> receiverGlZtcsEntities = senderGlZtcsDao.queryGlZtcsHealthBureau(senderGlZtcsEntity);
|
||||
return receiverGlZtcsEntities;
|
||||
}catch (Exception e){
|
||||
logger.info("查询卫生局GROU8账套信息失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//保存账套信息
|
||||
@Override
|
||||
public Object saveEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlZtcsEntity receiverGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("===========保存账套信息时会计年度为空=========");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("ztbh"))) {
|
||||
logger.info("===========保存账套信息时账套编号为空=========");
|
||||
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("ztmc"))) {
|
||||
logger.info("===========保存账套信息时账套名称为空=========");
|
||||
return BaseResult.getFailureMessageEntity("账套名称为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("ztmce"))) {
|
||||
logger.info("===========保存账套信息时账套全称为空=========");
|
||||
return BaseResult.getFailureMessageEntity("账套全称为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("hsdwdm"))) {
|
||||
logger.info("===========保存账套信息时核算单位代码为空=========");
|
||||
return BaseResult.getFailureMessageEntity("核算单位代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("hsdwmc"))) {
|
||||
logger.info("===========保存账套信息时核算单位名称为空=========");
|
||||
return BaseResult.getFailureMessageEntity("核算单位名称为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("bwbdm"))) {
|
||||
logger.info("===========保存账套信息时本位币代码为空=========");
|
||||
return BaseResult.getFailureMessageEntity("本位币代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("bwbmc"))) {
|
||||
logger.info("===========保存账套信息时本位币名称为空=========");
|
||||
return BaseResult.getFailureMessageEntity("本位币名称为空");
|
||||
}
|
||||
try {
|
||||
receiverGlZtcsEntity.setCwzg("1");
|
||||
receiverGlZtcsEntity.setKjqjs(12);
|
||||
receiverGlZtcsEntity.setWbhs("0");
|
||||
receiverGlZtcsEntity.setHllx("G");
|
||||
receiverGlZtcsEntity.setSfyjz("1");
|
||||
receiverGlZtcsEntity.setYskz("0");
|
||||
receiverGlZtcsEntity.setYspzkz("0");
|
||||
receiverGlZtcsEntity.setSlxsws(4);
|
||||
receiverGlZtcsEntity.setDjxsws(2);
|
||||
receiverGlZtcsEntity.setAnyibz("1");
|
||||
receiverGlZtcsEntity.setXjbmfa("8");
|
||||
receiverGlZtcsEntity.setBkdtd("0");
|
||||
receiverGlZtcsEntity.setGkjzzf("0");
|
||||
receiverGlZtcsEntity.setZbkzmb("0");
|
||||
receiverGlZtcsEntity.setKzfs("0");
|
||||
receiverGlZtcsEntity.setKzqj("0");
|
||||
receiverGlZtcsEntity.setKzyj("0");
|
||||
receiverGlZtcsEntity.setYbksy("01");
|
||||
receiverGlZtcsEntity.setYbjsy("03");
|
||||
receiverGlZtcsEntity.setZfpzbh("M");
|
||||
receiverGlZtcsEntity.setBkdbh("M");
|
||||
receiverGlZtcsEntity.setBkhskm("0");
|
||||
receiverGlZtcsEntity.setBkyhkmyz("0");
|
||||
receiverGlZtcsEntity.setZfscbkd("0");
|
||||
receiverGlZtcsEntity.setBkdscpz("0");
|
||||
receiverGlZtcsEntity.setSzqxkz("0");
|
||||
receiverGlZtcsEntity.setDjxg("0");
|
||||
receiverGlZtcsEntity.setDjsh("0");
|
||||
receiverGlZtcsEntity.setDybz("0");
|
||||
receiverGlZtcsEntity.setJhsh("0");
|
||||
receiverGlZtcsEntity.setZpscbk("0");
|
||||
receiverGlZtcsEntity.setZphs("0");
|
||||
receiverGlZtcsEntity.setHeadbkdh("0");
|
||||
receiverGlZtcsEntity.setBkdfs("0");
|
||||
receiverGlZtcsEntity.setLrzy("0");
|
||||
receiverGlZtcsEntity.setMjxsxsws(2);
|
||||
receiverGlZtcsEntity.setNeedjfzb("0");
|
||||
receiverGlZtcsEntity.setNeedyskm("5");
|
||||
receiverGlZtcsEntity.setPzbtdf("0");
|
||||
receiverGlZtcsEntity.setYkjhyskm("0");
|
||||
receiverGlZtcsEntity.setBkdxssjkm("0");
|
||||
receiverGlZtcsEntity.setBkdxyfscz("0");
|
||||
receiverGlZtcsEntity.setDelmaxdh("0");
|
||||
receiverGlZtcsEntity.setBkddataqxqy("0");
|
||||
receiverGlZtcsEntity.setYkjhcs("0");
|
||||
receiverGlZtcsEntity.setYkjhfs("0");
|
||||
receiverGlZtcsEntity.setBkdxszhmc("0");
|
||||
receiverGlZtcsEntity.setMaxzdycount(20);
|
||||
receiverGlZtcsEntity.setId(receiverGlZtcsEntity.getKjnd()+'-'+receiverGlZtcsEntity.getZtbh()+'-'+receiverGlZtcsEntity.getHsdwdm());
|
||||
logger.info("==========开始根据账套号为:{}保存账套信息,id为:{}=========",receiverGlZtcsEntity.getZtbh(),receiverGlZtcsEntity.getId());
|
||||
SenderGlZtcsEntity receiverGlZtcsEntity1 = senderGlZtcsDao.saveGlZtcsHealthBureau(receiverGlZtcsEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("ztcs",receiverGlZtcsEntity1);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套编号:{}保存GROU8账套信息失败:{}",receiverGlZtcsEntity.getZtbh(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("保存GROU8账套信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
//更新账套信息
|
||||
@Override
|
||||
public Object updateEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlZtcsEntity receiverGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("===========更新账套信息时会计年度为空=========");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("ztbh"))) {
|
||||
logger.info("===========更新账套信息时账套编号为空=========");
|
||||
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("hsdwdm"))) {
|
||||
logger.info("===========更新账套信息时核算单位代码=========");
|
||||
return BaseResult.getFailureMessageEntity("核算单位代码");
|
||||
}
|
||||
try {
|
||||
receiverGlZtcsEntity.setId(receiverGlZtcsEntity.getKjnd()+'-'+receiverGlZtcsEntity.getZtbh()+'-'+receiverGlZtcsEntity.getHsdwdm());
|
||||
logger.info("==========开始根据账套号:{}更新账套信息,id为:{}=========",receiverGlZtcsEntity.getZtbh(),receiverGlZtcsEntity.getId());
|
||||
SenderGlZtcsEntity receiverGlZtcsEntity1 = senderGlZtcsDao.updateGlZtcsHealthBureau(receiverGlZtcsEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("ztcs",receiverGlZtcsEntity1);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套编号:{}更新GROU8账套信息失败:{}",receiverGlZtcsEntity.getZtbh(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("更新GROU8账套信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
//删除账套信息
|
||||
@Override
|
||||
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlZtcsEntity receiverGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("===========删除账套信息时会计年度为空=========");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("ztbh"))) {
|
||||
logger.info("===========删除账套信息时账套编号为空=========");
|
||||
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("hsdwdm"))) {
|
||||
logger.info("===========删除账套信息时核算单位代码=========");
|
||||
return BaseResult.getFailureMessageEntity("核算单位代码");
|
||||
}
|
||||
try {
|
||||
receiverGlZtcsEntity.setId(receiverGlZtcsEntity.getKjnd()+'-'+receiverGlZtcsEntity.getZtbh()+'-'+receiverGlZtcsEntity.getHsdwdm());
|
||||
logger.info("==========开始根据账套号:{}和会计年度:{}删除账套信息=========",receiverGlZtcsEntity.getZtbh(),receiverGlZtcsEntity.getKjnd());
|
||||
Integer integer = senderGlZtcsDao.deleteGlZtcsHealthBureau(receiverGlZtcsEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("ztcs",integer);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据账套编号:{}删除GROU8账套信息失败:{}",receiverGlZtcsEntity.getZtbh(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("删除GROU8账套信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glkmxx.dao;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (gl_kmxx: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:01:13
|
||||
*/
|
||||
public interface ISenderGlKmxxDao extends IBaseDao<SenderGlKmxxEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询科目信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlKmxxEntity> querySenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存科目信息到科目日志中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 16:12
|
||||
* **/
|
||||
SenderGlKmxxEntity saveSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新科目信息到科目日志中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 16:12
|
||||
* **/
|
||||
SenderGlKmxxEntity updateSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询科目信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlKmxxEntity> queryGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存科目信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 16:12
|
||||
* **/
|
||||
SenderGlKmxxEntity saveGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity );
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新科目信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 16:12
|
||||
* **/
|
||||
SenderGlKmxxEntity updateGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity );
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除科目信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 16:58
|
||||
* **/
|
||||
Integer deleteGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glkmxx.dao.impl;
|
||||
|
||||
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glkmxx.dao.ISenderGlKmxxDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlKmxx)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:01:13
|
||||
*/
|
||||
@Repository(value = "SenderGlKmxxDaoImpl")
|
||||
public class SenderGlKmxxDaoImpl extends MybatisGenericDao<SenderGlKmxxEntity, String> implements ISenderGlKmxxDao {
|
||||
|
||||
|
||||
@Override
|
||||
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||
public List<SenderGlKmxxEntity> querySenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||
return super.queryByLike(senderGlKmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||
public SenderGlKmxxEntity saveSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||
return super.save(senderGlKmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||
public SenderGlKmxxEntity updateSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||
return super.update(senderGlKmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||
public List<SenderGlKmxxEntity> queryGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||
return super.query(senderGlKmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||
public SenderGlKmxxEntity saveGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||
return super.save(senderGlKmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||
public SenderGlKmxxEntity updateGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||
return super.update(senderGlKmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||
public Integer deleteGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||
return super.delete("SenderGlKmxxEntity_delete_kmxx",senderGlKmxxEntity);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,396 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glkmxx.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* (GlKmxx)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:01:13
|
||||
*/
|
||||
public class SenderGlKmxxEntity 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 String jfmax;
|
||||
private String dfmax;
|
||||
private String 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;
|
||||
|
||||
private String kjtxdm;
|
||||
private String dwlxdm;
|
||||
private String kmsm;
|
||||
private String bcdj;
|
||||
private String czyjkz;
|
||||
private String qycyx;
|
||||
private String qyrjz;
|
||||
private String djdqrq;
|
||||
|
||||
|
||||
public String getKjtxdm() {
|
||||
return kjtxdm;
|
||||
}
|
||||
|
||||
public void setKjtxdm(String kjtxdm) {
|
||||
this.kjtxdm = kjtxdm;
|
||||
}
|
||||
|
||||
public String getDwlxdm() {
|
||||
return dwlxdm;
|
||||
}
|
||||
|
||||
public void setDwlxdm(String dwlxdm) {
|
||||
this.dwlxdm = dwlxdm;
|
||||
}
|
||||
|
||||
public String getKmsm() {
|
||||
return kmsm;
|
||||
}
|
||||
|
||||
public void setKmsm(String kmsm) {
|
||||
this.kmsm = kmsm;
|
||||
}
|
||||
|
||||
public String getBcdj() {
|
||||
return bcdj;
|
||||
}
|
||||
|
||||
public void setBcdj(String bcdj) {
|
||||
this.bcdj = bcdj;
|
||||
}
|
||||
|
||||
public String getCzyjkz() {
|
||||
return czyjkz;
|
||||
}
|
||||
|
||||
public void setCzyjkz(String czyjkz) {
|
||||
this.czyjkz = czyjkz;
|
||||
}
|
||||
|
||||
public String getQycyx() {
|
||||
return qycyx;
|
||||
}
|
||||
|
||||
public void setQycyx(String qycyx) {
|
||||
this.qycyx = qycyx;
|
||||
}
|
||||
|
||||
public String getQyrjz() {
|
||||
return qyrjz;
|
||||
}
|
||||
|
||||
public void setQyrjz(String qyrjz) {
|
||||
this.qyrjz = qyrjz;
|
||||
}
|
||||
|
||||
public String getDjdqrq() {
|
||||
return djdqrq;
|
||||
}
|
||||
|
||||
public void setDjdqrq(String djdqrq) {
|
||||
this.djdqrq = djdqrq;
|
||||
}
|
||||
|
||||
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 String getJfmax() {
|
||||
return jfmax;
|
||||
}
|
||||
|
||||
public void setJfmax(String jfmax) {
|
||||
this.jfmax = jfmax;
|
||||
}
|
||||
|
||||
public String getDfmax() {
|
||||
return dfmax;
|
||||
}
|
||||
|
||||
public void setDfmax(String dfmax) {
|
||||
this.dfmax = dfmax;
|
||||
}
|
||||
|
||||
public String getYemax() {
|
||||
return yemax;
|
||||
}
|
||||
|
||||
public void setYemax(String 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,529 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.glkmxx.dao.impl.SenderGlKmxxDaoImpl">
|
||||
|
||||
<resultMap id="get-SenderGlKmxxEntity-result" type="com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" >
|
||||
<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"/>
|
||||
<result property="kjtxdm" column="kjtxdm" jdbcType="VARCHAR"/>
|
||||
<result property="dwlxdm" column="dwlxdm" jdbcType="VARCHAR"/>
|
||||
<result property="kmsm" column="kmsm" jdbcType="VARCHAR"/>
|
||||
<result property="bcdj" column="bcdj" jdbcType="VARCHAR"/>
|
||||
<result property="czyjkz" column="czyjkz" jdbcType="VARCHAR"/>
|
||||
<result property="qycyx" column="qycyx" jdbcType="VARCHAR"/>
|
||||
<result property="qyrjz" column="qyrjz" jdbcType="VARCHAR"/>
|
||||
<result property="djdqrq" column="djdqrq" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "SenderGlKmxxEntity_Base_Column_List">
|
||||
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
|
||||
, kjtxdm
|
||||
, dwlxdm
|
||||
, kmsm
|
||||
, bcdj
|
||||
, czyjkz
|
||||
, qycyx
|
||||
, qyrjz
|
||||
, djdqrq
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-SenderGlKmxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity">
|
||||
select
|
||||
<include refid="SenderGlKmxxEntity_Base_Column_List" />
|
||||
from gl_kmxx
|
||||
<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="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>
|
||||
<if test="kjtxdm != null and kjtxdm != ''"> and kjtxdm = #{kjtxdm} </if>
|
||||
<if test="dwlxdm != null and dwlxdm != ''"> and dwlxdm = #{dwlxdm} </if>
|
||||
<if test="kmsm != null and kmsm != ''"> and kmsm = #{kmsm} </if>
|
||||
<if test="bcdj != null and bcdj != ''"> and bcdj = #{bcdj} </if>
|
||||
<if test="czyjkz != null and czyjkz != ''"> and czyjkz = #{czyjkz} </if>
|
||||
<if test="qycyx != null and qycyx != ''"> and qycyx = #{qycyx} </if>
|
||||
<if test="qyrjz != null and qyrjz != ''"> and qyrjz = #{qyrjz} </if>
|
||||
<if test="djdqrq != null and djdqrq != ''"> and zdyfzhs = #{djdqrq} </if>
|
||||
-- and gsdm in ('0101010201','0101010202')
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity">
|
||||
select count(1) from gl_kmxx
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-SenderGlKmxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity">
|
||||
select
|
||||
<include refid="SenderGlKmxxEntity_Base_Column_List" />
|
||||
from gl_kmxx
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SenderGlKmxxEntity_list_or" resultMap="get-SenderGlKmxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity">
|
||||
select
|
||||
<include refid="SenderGlKmxxEntity_Base_Column_List" />
|
||||
from gl_kmxx
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_kmxx(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<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="gsdm != null and gsdm != ''"> gsdm, </if>
|
||||
<if test="kjtxdm != null and kjtxdm != ''"> kjtxdm, </if>
|
||||
<if test="dwlxdm != null and dwlxdm != ''"> dwlxdm, </if>
|
||||
<if test="kmsm != null and kmsm != ''"> kmsm, </if>
|
||||
<if test="bcdj != null and bcdj != ''"> bcdj, </if>
|
||||
<if test="czyjkz != null and czyjkz != ''"> czyjkz, </if>
|
||||
<if test="qycyx != null and qycyx != ''"> qycyx, </if>
|
||||
<if test="qyrjz != null and qyrjz != ''"> qyrjz, </if>
|
||||
<if test="djdqrq != null and djdqrq != ''"> djdqrq </if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<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="gsdm != null and gsdm != ''"> #{gsdm}, </if>
|
||||
<if test="kjtxdm != null and kjtxdm != ''"> #{kjtxdm}, </if>
|
||||
<if test="dwlxdm != null and dwlxdm != ''"> #{dwlxdm}, </if>
|
||||
<if test="kmsm != null and kmsm != ''"> #{kmsm}, </if>
|
||||
<if test="bcdj != null and bcdj != ''"> #{bcdj}, </if>
|
||||
<if test="czyjkz != null and czyjkz != ''"> #{czyjkz}, </if>
|
||||
<if test="qycyx != null and qycyx != ''"> #{qycyx}, </if>
|
||||
<if test="qyrjz != null and qyrjz != ''"> #{qyrjz}, </if>
|
||||
<if test="djdqrq != null and gsdm != ''"> #{djdqrq} </if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_kmxx(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)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{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>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_kmxx(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)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{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.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" >
|
||||
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>
|
||||
<if test="kjtxdm != null and kjtxdm != ''"> kjtxdm = #{kjtxdm},</if>
|
||||
<if test="dwlxdm != null and dwlxdm != ''"> dwlxdm = #{dwlxdm},</if>
|
||||
<if test="kmsm != null and kmsm != ''"> kmsm = #{kmsm},</if>
|
||||
<if test="bcdj != null and bcdj != ''"> bcdj = #{bcdj},</if>
|
||||
<if test="czyjkz != null and czyjkz != ''"> czyjkz = #{czyjkz},</if>
|
||||
<if test="qycyx != null and qycyx != ''"> qycyx = #{qycyx},</if>
|
||||
<if test="qyrjz != null and qyrjz != ''"> qyrjz = #{qyrjz},</if>
|
||||
<if test="djdqrq != null and djdqrq != ''"> djdqrq = #{djdqrq}</if>
|
||||
</trim>
|
||||
where gsdm= #{gsdm} and kjnd=#{kjnd} and zth=#{zth} and kmdm=#{kmdm}
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="SenderGlKmxxEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" >
|
||||
update gl_kmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where id= #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="SenderGlKmxxEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" >
|
||||
update gl_kmxx 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="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>
|
||||
|
||||
<!--根据会计年度,账套号,科目代码,公司代码删除科目-->
|
||||
<delete id="SenderGlKmxxEntity_delete_kmxx">
|
||||
delete from gl_kmxx where
|
||||
gsdm= #{gsdm} and kjnd=#{kjnd} and zth=#{zth}
|
||||
<if test="kmdm != null and kmdm != ''"> and kmdm=#{kmdm}</if>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glkmxx.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity;
|
||||
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* (GlKmxx)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:01:13
|
||||
*/
|
||||
public interface ISenderGlKmxxService extends IBaseService<SenderGlKmxxEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 科目信息同步 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:27
|
||||
* **/
|
||||
Object kmxxSynchronization(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询科目信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:33
|
||||
* **/
|
||||
Object queryEntityPage(JSONObject json);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询科目信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:33
|
||||
* **/
|
||||
List<SenderGlKmxxEntity> queryEntityPageHealthBureau(SenderGlKmxxEntity receiverGlKmxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存科目信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 11:54
|
||||
* **/
|
||||
Object saveEntityHealthBureau(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新科目信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 13:37
|
||||
* **/
|
||||
Object updateEntityHealthBureau(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除科目信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 16:55
|
||||
* **/
|
||||
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 获取数据源编码
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/13 14:59
|
||||
* **/
|
||||
SysExtensionApiEntity getDataSourceCode(SysExtensionApiEntity sysExtensionApiEntity);
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,469 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glkmxx.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glkmxx.dao.ISenderGlKmxxDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.glkmxx.service.ISenderGlKmxxService;
|
||||
import com.hzya.frame.sysnew.application.database.dao.ISysApplicationDatabaseDao;
|
||||
import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity;
|
||||
import com.hzya.frame.sysnew.application.entity.SysApplicationEntity;
|
||||
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlKmxx)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:01:13
|
||||
*/
|
||||
@Service(value = "SenderGlKmxxServiceImpl")
|
||||
public class SenderGlKmxxServiceImpl extends BaseService<SenderGlKmxxEntity, String> implements ISenderGlKmxxService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private ISysApplicationDatabaseDao sysApplicationDatabaseDao;
|
||||
private ISenderGlKmxxDao senderGlKmxxDao;
|
||||
|
||||
|
||||
@Autowired
|
||||
public void setSenderGlKmxxDao(ISenderGlKmxxDao dao) {
|
||||
this.senderGlKmxxDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
//科目信息同步接口
|
||||
@Override
|
||||
public Object kmxxSynchronization(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlKmxxEntity senderGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||
String result = null;
|
||||
List<SenderGlKmxxEntity> senderGlKmxxEntities = new ArrayList<>();
|
||||
try {
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if (senderGlKmxxEntity.getKjnd() == null) {
|
||||
senderGlKmxxEntity.setKjnd(DateUtil.format(new Date(), "yyyy"));
|
||||
}
|
||||
/*try {
|
||||
//同步南浔区人民医院001科目信息
|
||||
senderGlKmxxEntity.setZth("001");
|
||||
senderGlKmxxEntity.setGsdm("0101010101");
|
||||
logger.info("==========开始查询南浔区人民医院科目信息========");
|
||||
senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result = sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("南浔区人民医院GRPU8科目信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区人民医院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
try {
|
||||
//同步南浔区练市人民医院003科目信息
|
||||
senderGlKmxxEntity.setZth("003");
|
||||
senderGlKmxxEntity.setGsdm("0101010103");
|
||||
logger.info("==========开始查询南浔区练市人民医院科目信息========");
|
||||
senderGlKmxxEntities = senderGlKmxxDao.querySenderGlKmxxEntity(senderGlKmxxEntity);
|
||||
//senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result = sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("南浔区练市人民医院GRPU8科目信息同步结果为:{}", result);
|
||||
} catch (Exception e) {
|
||||
logger.info("南浔区练市人民医院GRPU8科目信息同步失败:{}", e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
/*try {
|
||||
//同步练市镇中心卫生院005科目信息
|
||||
senderGlKmxxEntity.setZth("005");
|
||||
senderGlKmxxEntity.setGsdm("0101010202");
|
||||
logger.info("==========开始查询南浔区练市镇中心卫生院科目信息========");
|
||||
senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8科目信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步南浔区善琏镇卫生院007科目信息
|
||||
senderGlKmxxEntity.setZth("007");
|
||||
senderGlKmxxEntity.setGsdm("0101010204");
|
||||
logger.info("==========开始查询南浔区善琏镇卫生院科目信息========");
|
||||
senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("南浔区善琏镇卫生院GRPU8科目信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区善琏镇卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步双林镇中心卫生院004科目信息
|
||||
senderGlKmxxEntity.setZth("004");
|
||||
senderGlKmxxEntity.setGsdm("0101010201");
|
||||
senderGlKmxxEntities = sqlSessionSlz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("双林镇中心卫生院GRPU8科目信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("双林镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步菱湖镇中心卫生院009科目信息
|
||||
senderGlKmxxEntity.setZth("009");
|
||||
senderGlKmxxEntity.setGsdm("0101020201");
|
||||
senderGlKmxxEntities = sqlSessionLhz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("菱湖镇中心卫生院GRPU8科目信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("菱湖镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步和孚镇卫生院010科目信息
|
||||
senderGlKmxxEntity.setZth("010");
|
||||
senderGlKmxxEntity.setGsdm("0101020202");
|
||||
senderGlKmxxEntities = sqlSessionHfz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("和孚镇卫生院GRPU8科目信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("和孚镇卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步千金镇卫生院011科目信息
|
||||
senderGlKmxxEntity.setZth("011");
|
||||
senderGlKmxxEntity.setGsdm("0101020203");
|
||||
senderGlKmxxEntities = sqlSessionQjz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("千金镇卫生院GRPU8科目信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("千金镇卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步石崇镇卫生院012科目信息
|
||||
senderGlKmxxEntity.setZth("012");
|
||||
senderGlKmxxEntity.setGsdm("0101020204");
|
||||
senderGlKmxxEntities = sqlSessionScz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("石崇镇卫生院GRPU8科目信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("石崇镇卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步南浔镇中心卫生院014科目信息
|
||||
senderGlKmxxEntity.setZth("014");
|
||||
senderGlKmxxEntity.setGsdm("010202");
|
||||
senderGlKmxxEntities = sqlSessionNxz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||
logger.info("南浔镇中心卫生院GRPU8科目信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
} catch (Exception e) {
|
||||
logger.info("GRPU8科目信息同步失败:{}", e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
JSONObject jsonObject1 = new JSONObject();
|
||||
jsonObject1.put("status", "200");
|
||||
jsonObject1.put("result", result);
|
||||
return jsonObject1;
|
||||
}
|
||||
|
||||
private String sendKmxxToHealthBureau(List<SenderGlKmxxEntity> senderGlKmxxEntities) {
|
||||
if (CollectionUtils.isEmpty(senderGlKmxxEntities)) {
|
||||
logger.info("GRPU8没有需要同步得科目信息");
|
||||
return "GRPU8没有需要同步得科目信息";
|
||||
} else {
|
||||
for (SenderGlKmxxEntity kmxxEntity : senderGlKmxxEntities) {
|
||||
// kmxxEntity.setKjnd("2021");
|
||||
//根据会计年度,公司代码,账套号,科目代码查询接收方数据是否已经同步过
|
||||
SenderGlKmxxEntity receiverGlKmxxEntity = new SenderGlKmxxEntity();
|
||||
receiverGlKmxxEntity.setKjnd(kmxxEntity.getKjnd());
|
||||
receiverGlKmxxEntity.setZth(kmxxEntity.getZth());
|
||||
receiverGlKmxxEntity.setGsdm(kmxxEntity.getGsdm());
|
||||
receiverGlKmxxEntity.setKmdm(kmxxEntity.getKmdm());
|
||||
try {
|
||||
//查询接收方中是否存在
|
||||
List<SenderGlKmxxEntity> receiverGlKmxxEntities = queryEntityPageHealthBureau(receiverGlKmxxEntity);
|
||||
//设置id为会计年度,公司代码,账套号,科目代码拼接,测试时候这样,具体看情况
|
||||
kmxxEntity.setId(kmxxEntity.getGsdm() + '-' + kmxxEntity.getZth() + '-' + kmxxEntity.getKjnd() + '-' + kmxxEntity.getKmdm());
|
||||
JsonResultEntity jsonResultEntity = null;
|
||||
//如果在接收方信息中不存在,则保存数据到接收方
|
||||
if (CollectionUtils.isEmpty(receiverGlKmxxEntities)) {
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", kmxxEntity);
|
||||
logger.info("===========开始将账套号为:{}的GRPU8科目信息数据新增到卫生局得GRPU8中=============", kmxxEntity.getZth());
|
||||
Object o = saveEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if (json.getString("status").equalsIgnoreCase("200")) {
|
||||
//JSONObject jsonObject =(JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("账套号:{}的GROU8得科目信息同步卫生局保存返回结果为:{}", kmxxEntity.getZth(), json.getString("kmxx"));
|
||||
}
|
||||
//日志暂时不保存和更新
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方得GRPU8数据新增到科目信息日志中=============");
|
||||
//保存发送方得日志
|
||||
kmxxEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderGlKmxxDao.saveSenderGlKmxxEntity(kmxxEntity);
|
||||
}*/
|
||||
} else {
|
||||
//如果存在,则更新
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", kmxxEntity);
|
||||
logger.info("===========开始将账套号:{}得GRPU8科目信息数据更新到卫生局GRPU8中=============", kmxxEntity.getZth());
|
||||
Object o = updateEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if (json.getString("status").equalsIgnoreCase("200")) {
|
||||
//JSONObject jsonObject = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("账套号:{}的GROU8得科目信息同步卫生局更新返回结果为:{}", kmxxEntity.getZth(), json.getString("kmxx"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方得GRPU8数据更新到科目信息日志中=============");
|
||||
//更新发送方得日志
|
||||
kmxxEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderGlKmxxDao.updateSenderGlKmxxEntity(kmxxEntity);
|
||||
}*/
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("{}的GRPU8科目信息同步失败:{}", kmxxEntity.getZth(), e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return "同步GRPU8科目信息成功";
|
||||
}
|
||||
}
|
||||
|
||||
//查询科目信息
|
||||
@Override
|
||||
public Object queryEntityPage(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlKmxxEntity senderGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||
List<SenderGlKmxxEntity> glKmxxEntities = new ArrayList<>();
|
||||
if (StrUtil.isEmpty(senderGlKmxxEntity.getZth())) {
|
||||
logger.info("======传入的账套号为:{}", senderGlKmxxEntity.getZth());
|
||||
return BaseResult.getFailureMessageEntity("请传递账套号");
|
||||
}
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if (senderGlKmxxEntity.getKjnd() == null) {
|
||||
senderGlKmxxEntity.setKjnd(DateUtil.format(new Date(), "yyyy"));
|
||||
}
|
||||
try {
|
||||
/*switch (senderGlKmxxEntity.getZth()){
|
||||
case "003"://练市人民医院
|
||||
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||
break;
|
||||
case "004"://双林镇中心卫生院
|
||||
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||
break;
|
||||
case "005"://练市镇中心卫生院
|
||||
glKmxxEntities =senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||
break;
|
||||
case "007"://善琏镇卫生院
|
||||
glKmxxEntities =senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||
break;
|
||||
case "009":
|
||||
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||
break;
|
||||
case "010":
|
||||
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||
break;
|
||||
case "011":
|
||||
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||
break;
|
||||
case "012":
|
||||
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||
break;
|
||||
case "001"://南浔人民医院
|
||||
glKmxxEntities =senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}*/
|
||||
glKmxxEntities = senderGlKmxxDao.querySenderGlKmxxEntity(senderGlKmxxEntity);
|
||||
PageInfo pageInfo = new PageInfo(glKmxxEntities);
|
||||
JSONObject jsonObject1 = new JSONObject();
|
||||
jsonObject1.put("status", 200);
|
||||
jsonObject1.put("pageInfo", pageInfo);
|
||||
return jsonObject1;
|
||||
} catch (Exception e) {
|
||||
logger.info("查询GROU8科目信息失败:{}", e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询GROU8科目信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
//查询科目信息
|
||||
@Override
|
||||
public List<SenderGlKmxxEntity> queryEntityPageHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||
try {
|
||||
logger.info("====开始根据账套号:{}查询卫生局中得科目信息数据====", senderGlKmxxEntity.getZth());
|
||||
List<SenderGlKmxxEntity> senderGlKmxxEntities = senderGlKmxxDao.queryGlKmxxHealthBureau(senderGlKmxxEntity);
|
||||
return senderGlKmxxEntities;
|
||||
} catch (Exception e) {
|
||||
logger.info("根据账套号:{}查询得卫生局GROU8科目信息失败:{}", senderGlKmxxEntity.getZth(), e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//保存科目信息
|
||||
@Override
|
||||
public Object saveEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlKmxxEntity senderGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("======保存科目信息会计年度为空=====");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("======保存科目信息公司代码为空=====");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
logger.info("======保存科目信息账套号为空=====");
|
||||
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("kmdm"))) {
|
||||
logger.info("======保存科目信息科目代码为空=====");
|
||||
return BaseResult.getFailureMessageEntity("科目代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("kmmc"))) {
|
||||
logger.info("======保存科目信息科目名称为空=====");
|
||||
return BaseResult.getFailureMessageEntity("科目名称为空");
|
||||
}
|
||||
try {
|
||||
SenderGlKmxxEntity senderGlKmxxQuery=new SenderGlKmxxEntity();
|
||||
senderGlKmxxQuery.setZth(senderGlKmxxEntity.getZth());
|
||||
senderGlKmxxQuery.setGsdm(senderGlKmxxEntity.getGsdm());
|
||||
senderGlKmxxQuery.setKjnd(senderGlKmxxEntity.getKjnd());
|
||||
senderGlKmxxQuery.setKmdm(senderGlKmxxEntity.getKmdm());
|
||||
//先查询数据是否存在,如果存在则更新,不存在则更新
|
||||
List<SenderGlKmxxEntity> senderGlKmxxEntities = queryEntityPageHealthBureau(senderGlKmxxQuery);
|
||||
if(CollectionUtils.isEmpty(senderGlKmxxEntities)){
|
||||
senderGlKmxxEntity.setId(senderGlKmxxEntity.getGsdm() + '-' + senderGlKmxxEntity.getZth() + '-' + senderGlKmxxEntity.getKjnd() + '-' + senderGlKmxxEntity.getKmdm());
|
||||
logger.info("=======开始根据账套号:{}保存科目信息,id为:{}", senderGlKmxxEntity.getZth(), senderGlKmxxEntity.getId());
|
||||
SenderGlKmxxEntity senderGlKmxx = senderGlKmxxDao.saveGlKmxxHealthBureau(senderGlKmxxEntity);
|
||||
JSONObject jsonObject1 = new JSONObject();
|
||||
jsonObject1.put("status", "200");
|
||||
jsonObject1.put("kmxx", senderGlKmxx);
|
||||
return jsonObject1;
|
||||
}else{
|
||||
SenderGlKmxxEntity receiverGlKmxx = senderGlKmxxDao.updateGlKmxxHealthBureau(senderGlKmxxEntity);
|
||||
JSONObject jsonObject1 = new JSONObject();
|
||||
jsonObject1.put("status", "200");
|
||||
jsonObject1.put("kmxx", receiverGlKmxx);
|
||||
return jsonObject1;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("根据账套号:{}保存GROU8科目信息失败:{}", senderGlKmxxEntity.getZth(), e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("保存GROU8科目信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
//更新科目信息
|
||||
@Override
|
||||
public Object updateEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlKmxxEntity receiverGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("======更新科目信息会计年度为空=====");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("======更新科目信息公司代码为空=====");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
logger.info("======更新科目信息账套号为空=====");
|
||||
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("kmdm"))) {
|
||||
logger.info("======更新科目信息科目代码为空=====");
|
||||
return BaseResult.getFailureMessageEntity("科目代码为空");
|
||||
}
|
||||
try {
|
||||
receiverGlKmxxEntity.setId(receiverGlKmxxEntity.getGsdm() + '-' + receiverGlKmxxEntity.getZth() + '-' + receiverGlKmxxEntity.getKjnd() + '-' + receiverGlKmxxEntity.getKmdm());
|
||||
logger.info("=======开始根据账套号:{}更新科目信息,id为:{}", receiverGlKmxxEntity.getZth(), receiverGlKmxxEntity.getId());
|
||||
SenderGlKmxxEntity receiverGlKmxx = senderGlKmxxDao.updateGlKmxxHealthBureau(receiverGlKmxxEntity);
|
||||
JSONObject jsonObject1 = new JSONObject();
|
||||
jsonObject1.put("status", "200");
|
||||
jsonObject1.put("kmxx", receiverGlKmxx);
|
||||
return jsonObject1;
|
||||
} catch (Exception e) {
|
||||
logger.info("根据账套号:{}更新GROU8科目信息失败:{}", receiverGlKmxxEntity.getZth(), e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("更新GROU8科目信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
//删除科目信息 卫生局
|
||||
@Override
|
||||
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlKmxxEntity receiverGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("======删除科目信息会计年度为空=====");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("======删除科目信息公司代码为空=====");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
logger.info("======删除科目信息账套号为空=====");
|
||||
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||
}
|
||||
/*if (!checkStr(jsonObject.getString("kmdm"))) {
|
||||
logger.info("======删除科目信息科目代码为空=====");
|
||||
return BaseResult.getFailureMessageEntity("科目代码为空");
|
||||
}*/
|
||||
try {
|
||||
receiverGlKmxxEntity.setId(receiverGlKmxxEntity.getGsdm() + '-' + receiverGlKmxxEntity.getZth() + '-' + receiverGlKmxxEntity.getKjnd() + '-' + receiverGlKmxxEntity.getKmdm());
|
||||
logger.info("=======开始根据账套号:{}和会计年度:{}删除科目信息,科目代码为:{}", receiverGlKmxxEntity.getZth(), receiverGlKmxxEntity.getKjnd(), receiverGlKmxxEntity.getKmdm());
|
||||
Integer integer = senderGlKmxxDao.deleteGlKmxxHealthBureau(receiverGlKmxxEntity);
|
||||
JSONObject jsonObject1 = new JSONObject();
|
||||
jsonObject1.put("status", "200");
|
||||
jsonObject1.put("kmxx", integer);
|
||||
return jsonObject1;
|
||||
} catch (Exception e) {
|
||||
logger.info("根据账套号:{}和科目代码:{}以及会计年度:{}删除GROU8科目信息失败:{}", receiverGlKmxxEntity.getZth(), receiverGlKmxxEntity.getKmdm(), receiverGlKmxxEntity.getKjnd(), e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("删除GROU8科目信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
//获取数据源编码
|
||||
@Override
|
||||
public SysExtensionApiEntity getDataSourceCode(SysExtensionApiEntity entity) {
|
||||
try {
|
||||
SysApplicationEntity applicationEntity = entity.getReceiveApp();
|
||||
SysApplicationDatabaseEntity sysApplicationDatabaseEntity = new SysApplicationDatabaseEntity();
|
||||
sysApplicationDatabaseEntity.setSts("Y");
|
||||
sysApplicationDatabaseEntity.setAppId(applicationEntity.getId());
|
||||
sysApplicationDatabaseEntity.setDataSourceCode("master");
|
||||
List<SysApplicationDatabaseEntity> sysDataSourceEntities = sysApplicationDatabaseDao.queryDSBase(sysApplicationDatabaseEntity);
|
||||
if (sysDataSourceEntities != null && sysDataSourceEntities.size() > 0) {
|
||||
String parm = entity.getBodys();
|
||||
JSONObject jsonObject = JSONObject.parseObject(parm);
|
||||
jsonObject.put("dataSourceCode", sysDataSourceEntities.get(0).getSourceCode());
|
||||
entity.setBodys(jsonObject.toJSONString());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxmzl.dao;
|
||||
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (gl_xmzl: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:38
|
||||
*/
|
||||
public interface ISenderGlXmzlDao extends IBaseDao<SenderGlXmzlEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询项目资料 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlXmzlEntity> querySenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存项目资料到项目日志中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 16:55
|
||||
* **/
|
||||
SenderGlXmzlEntity saveSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新项目资料到项目日志中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 16:55
|
||||
* **/
|
||||
SenderGlXmzlEntity updateSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询项目资料 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderGlXmzlEntity> queryGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存项目资料到项目日志中 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 16:55
|
||||
* **/
|
||||
SenderGlXmzlEntity saveGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新项目资料到项目日志中 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 16:55
|
||||
* **/
|
||||
SenderGlXmzlEntity updateGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除项目资料
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:15
|
||||
* **/
|
||||
Integer deleteGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxmzl.dao.impl;
|
||||
|
||||
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glxmzl.dao.ISenderGlXmzlDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlXmzl)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:38
|
||||
*/
|
||||
@Repository(value = "SenderGlXmzlDaoImpl")
|
||||
public class SenderGlXmzlDaoImpl extends MybatisGenericDao<SenderGlXmzlEntity, String> implements ISenderGlXmzlDao {
|
||||
|
||||
@Override
|
||||
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||
public List<SenderGlXmzlEntity> querySenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||
return super.queryByLike(senderGlXmzlEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||
public SenderGlXmzlEntity saveSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||
return super.save(senderGlXmzlEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||
public SenderGlXmzlEntity updateSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||
return super.update(senderGlXmzlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||
public List<SenderGlXmzlEntity> queryGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||
return super.query(senderGlXmzlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||
public SenderGlXmzlEntity saveGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||
return super.save(senderGlXmzlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||
public SenderGlXmzlEntity updateGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||
return super.update(senderGlXmzlEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||
public Integer deleteGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||
return super.delete("SenderGlXmzlEntity_delete_xmzl",senderGlXmzlEntity);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,296 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxmzl.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* (GlXmzl)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:38
|
||||
*/
|
||||
public class SenderGlXmzlEntity 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;
|
||||
|
||||
private String sfjjxm;
|
||||
|
||||
public String getSfjjxm() {
|
||||
return sfjjxm;
|
||||
}
|
||||
|
||||
public void setSfjjxm(String sfjjxm) {
|
||||
this.sfjjxm = sfjjxm;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,440 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.glxmzl.dao.impl.SenderGlXmzlDaoImpl">
|
||||
|
||||
<resultMap id="get-SenderGlXmzlEntity-result" type="com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" >
|
||||
<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"/>
|
||||
<result property="sfjjxm" column="sfjjxm" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "SenderGlXmzlEntity_Base_Column_List">
|
||||
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
|
||||
,sfjjxm
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-SenderGlXmzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity">
|
||||
select
|
||||
<include refid="SenderGlXmzlEntity_Base_Column_List" />
|
||||
from gl_xmzl
|
||||
<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="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>
|
||||
<if test="sfjjxm != null and sfjjxm != ''"> and sfjjxm = #{sfjjxm} </if>
|
||||
-- and gsdm in ('0101010201','0101010202')
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="SenderGlXmzlEntity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity">
|
||||
select count(1) from gl_xmzl
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-SenderGlXmzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity">
|
||||
select
|
||||
<include refid="SenderGlXmzlEntity_Base_Column_List" />
|
||||
from gl_xmzl
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SenderGlXmzlEntity_list_or" resultMap="get-SenderGlXmzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity">
|
||||
select
|
||||
<include refid="SenderGlXmzlEntity_Base_Column_List" />
|
||||
from gl_xmzl
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_xmzl(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<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="sfjjxm != null and sfjjxm != ''"> sfjjxm, </if>
|
||||
<if test="gsdm != null and gsdm != ''"> GSDM </if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<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="sfjjxm != null and sfjjxm != ''"> #{sfjjxm} ,</if>
|
||||
<if test="gsdm != null and gsdm != ''"> #{gsdm} </if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_xmzl(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)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{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>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into gl_xmzl(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)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{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.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" >
|
||||
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="sfjjxm != null"> sfjjxm = #{sfjjxm},</if>
|
||||
<if test="glh != null and glh != ''"> GLH = #{glh}</if>
|
||||
</trim>
|
||||
where kjnd= #{kjnd} and gsdm=#{gsdm} and xmdm=#{xmdm}
|
||||
</update>
|
||||
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="SenderGlXmzlEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" >
|
||||
update gl_xmzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where id= #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="SenderGlXmzlEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" >
|
||||
update gl_xmzl 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="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>
|
||||
|
||||
<!--通过会计年度,公司代码,项目资料代码删除-->
|
||||
<delete id="SenderGlXmzlEntity_delete_xmzl">
|
||||
delete from gl_xmzl where gsdm= #{gsdm} and kjnd=#{kjnd}
|
||||
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxmzl.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* (GlXmzl)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:38
|
||||
*/
|
||||
public interface ISenderGlXmzlService extends IBaseService<SenderGlXmzlEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 同步项目资料 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 11:53
|
||||
* **/
|
||||
Object glXmzlSynchronization(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询项目资料 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:48
|
||||
* **/
|
||||
Object queryEntityPage(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询项目资料 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:48
|
||||
* **/
|
||||
List<SenderGlXmzlEntity> queryEntityPageHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存项目资料 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 13:43
|
||||
* **/
|
||||
Object saveEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新项目资料 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:00
|
||||
* **/
|
||||
Object updateEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除项目资料 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:08
|
||||
* **/
|
||||
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
}
|
|
@ -0,0 +1,393 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxmzl.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.glxmzl.dao.ISenderGlXmzlDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.glxmzl.service.ISenderGlXmzlService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlXmzl)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 10:02:38
|
||||
*/
|
||||
@Service(value = "SenderGlXmzlServiceImpl")
|
||||
public class SenderGlXmzlServiceImpl extends BaseService<SenderGlXmzlEntity, String> implements ISenderGlXmzlService {
|
||||
|
||||
|
||||
|
||||
private ISenderGlXmzlDao senderGlXmzlDao;
|
||||
|
||||
@Autowired
|
||||
public void setSenderGlXmzlDao(ISenderGlXmzlDao dao) {
|
||||
this.senderGlXmzlDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
//同步项目资料
|
||||
@Override
|
||||
public Object glXmzlSynchronization(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlXmzlEntity senderGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||
List<SenderGlXmzlEntity> senderGlXmzlEntities=new ArrayList<>();
|
||||
String result=null;
|
||||
try {
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderGlXmzlEntity.getKjnd()==null){
|
||||
senderGlXmzlEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
logger.info("===========开始查询GRPU8项目资料信息=============");
|
||||
/*try {
|
||||
//同步南浔区人民医院001项目资料
|
||||
senderGlXmzlEntity.setGsdm("0101010101");
|
||||
logger.info("==========开始查询南浔区人民医院项目资料========");
|
||||
senderGlXmzlEntities = sqlSessionNxrm.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("南浔区人民医院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区人民医院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
try {
|
||||
//同步南浔区练市人民医院003项目资料
|
||||
senderGlXmzlEntity.setGsdm("0101010103");
|
||||
logger.info("==========开始查询南浔区练市人民医院项目资料========");
|
||||
senderGlXmzlEntities=senderGlXmzlDao.querySenderGlXmzlEntity(senderGlXmzlEntity);
|
||||
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("南浔区练市人民医院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市人民医院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
/*try {
|
||||
//同步练市镇中心卫生院005项目资料
|
||||
senderGlXmzlEntity.setGsdm("0101010202");
|
||||
logger.info("==========开始查询南浔区练市镇中心卫生院项目资料========");
|
||||
senderGlXmzlEntities = sqlSessionNxrm.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("练市镇中心卫生院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("练市镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步善琏镇卫生院007项目资料
|
||||
senderGlXmzlEntity.setGsdm("0101010204");
|
||||
logger.info("==========开始查询南浔区善琏镇卫生院项目资料========");
|
||||
senderGlXmzlEntities = sqlSessionNxrm.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("南浔区善琏镇卫生院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区善琏镇卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步双林镇中心卫生院004项目资料
|
||||
senderGlXmzlEntity.setGsdm("0101010201");
|
||||
senderGlXmzlEntities = sqlSessionSlz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("双林镇中心卫生院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("双林镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步菱湖镇中心卫生院009项目资料
|
||||
senderGlXmzlEntity.setGsdm("0101020201");
|
||||
senderGlXmzlEntities = sqlSessionLhz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("菱湖镇中心卫生院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("菱湖镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步和孚镇卫生院010项目资料
|
||||
senderGlXmzlEntity.setGsdm("0101020202");
|
||||
senderGlXmzlEntities = sqlSessionHfz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("和孚镇卫生院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("和孚镇卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步千金镇卫生院011项目资料
|
||||
senderGlXmzlEntity.setGsdm("0101020203");
|
||||
senderGlXmzlEntities = sqlSessionQjz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("千金镇卫生院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("千金镇卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步石崇镇卫生院012项目资料
|
||||
senderGlXmzlEntity.setGsdm("0101020204");
|
||||
senderGlXmzlEntities = sqlSessionScz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("石崇镇卫生院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("石崇镇卫生院GRPU8项目资料同步失败:{}",result);
|
||||
e.printStackTrace();
|
||||
}try {
|
||||
//同步南浔镇中心卫生院014项目资料
|
||||
senderGlXmzlEntity.setGsdm("010202");
|
||||
senderGlXmzlEntities = sqlSessionNxz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||
result= sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||
logger.info("南浔镇中心卫生院GRPU8项目资料同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
}catch (Exception e){
|
||||
logger.info("GRPU8项目资料同步失败:{}",e.getMessage());
|
||||
throw new RuntimeException(e.getMessage());
|
||||
}
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("result",result);
|
||||
return jsonObject1;
|
||||
}
|
||||
|
||||
private String sendXmzlToHealthBureau(List<SenderGlXmzlEntity> senderGlXmzlEntities){
|
||||
if (CollectionUtils.isEmpty(senderGlXmzlEntities)) {
|
||||
logger.info("GRPU8没有需要同步得项目资料信息");
|
||||
return "GRPU8没有需要同步得项目资料信息";
|
||||
} else {
|
||||
for (SenderGlXmzlEntity xmzlEntity : senderGlXmzlEntities) {
|
||||
//xmzlEntity.setKjnd("2021");
|
||||
//根据会计年度,公司代码,项目代码查询数据是否已经同步过
|
||||
SenderGlXmzlEntity receiverGlXmzlEntity = new SenderGlXmzlEntity();
|
||||
receiverGlXmzlEntity.setKjnd(xmzlEntity.getKjnd());
|
||||
receiverGlXmzlEntity.setGsdm(xmzlEntity.getGsdm());
|
||||
receiverGlXmzlEntity.setXmdm(xmzlEntity.getXmdm());
|
||||
try {
|
||||
List<SenderGlXmzlEntity> receiverGlXmzlEntities=queryEntityPageHealthBureau(receiverGlXmzlEntity);
|
||||
//设置id为会计年度,公司代码,项目代码拼接,测试时候这样,具体看情况
|
||||
xmzlEntity.setId(xmzlEntity.getGsdm() + '-' + xmzlEntity.getKjnd() + '-' + xmzlEntity.getXmdm());
|
||||
JsonResultEntity jsonResultEntity=null;
|
||||
if (CollectionUtils.isEmpty(receiverGlXmzlEntities)) {
|
||||
logger.info("===========开始将公司代码为:{}得GRPU8项目资料信息同步保存到卫生局GRPU8中=============",xmzlEntity.getGsdm());
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", xmzlEntity);
|
||||
Object o = saveEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if(json.getString("status").equalsIgnoreCase("200")){
|
||||
//JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("======公司代码为:{}得GROU8项目资料信息同步保存到卫生局得返回结果为:{}=======",xmzlEntity.getGsdm(),json.getString("xmzl"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方的GRPU8项目资料信息新增到项目资料日志中=============");
|
||||
//保存发送方得日志
|
||||
xmzlEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderGlXmzlDao.saveSenderGlXmzlEntity(xmzlEntity);
|
||||
}*/
|
||||
} else {
|
||||
logger.info("===========开始将公司代码为:{}得GRPU8项目资料信息同步更新到卫生局GRPU8中=============",xmzlEntity.getGsdm());
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", xmzlEntity);
|
||||
Object o = updateEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if(json.getString("status").equalsIgnoreCase("200")){
|
||||
//JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("======公司代码:{}得GROU8项目资料信息同步更新到卫生局得返回结果为:{}=======",xmzlEntity.getGsdm(),json.getString("xmzl"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方的GRPU8项目资料信息更新到项目资料日志中=============");
|
||||
//保存发送方得日志
|
||||
xmzlEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderGlXmzlDao.updateSenderGlXmzlEntity(xmzlEntity);
|
||||
}*/
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("公司代码为:{}得GRPU8项目资料同步失败:{}", xmzlEntity.getGsdm(),e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return "同步GROU8项目资料成功";
|
||||
}
|
||||
}
|
||||
|
||||
//查询项目资料
|
||||
@Override
|
||||
public Object queryEntityPage(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlXmzlEntity senderGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||
List<SenderGlXmzlEntity> senderGlXmzlEntities=new ArrayList<>();
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderGlXmzlEntity.getKjnd()==null){
|
||||
senderGlXmzlEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
if(StrUtil.isEmpty(senderGlXmzlEntity.getGsdm())){
|
||||
logger.info("======根据公司编码:{}查询项目资料为空",senderGlXmzlEntity.getGsdm());
|
||||
return BaseResult.getFailureMessageEntity("请传递公司编码");
|
||||
}
|
||||
try {
|
||||
/*switch (senderGlXmzlEntity.getGsdm()){
|
||||
case "0101010103"://练市人民医院
|
||||
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||
break;
|
||||
case "0101010201"://双林镇中心卫生院
|
||||
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||
break;
|
||||
case "0101010202"://练市镇中心卫生院
|
||||
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||
break;
|
||||
case "0101010204"://善琏镇卫生院
|
||||
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||
break;
|
||||
case "0101020201":
|
||||
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||
break;
|
||||
case "0101020202":
|
||||
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||
break;
|
||||
case "0101020203":
|
||||
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||
break;
|
||||
case "0101020204":
|
||||
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||
break;
|
||||
case "0101010101"://南浔区人民医院
|
||||
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}*/
|
||||
senderGlXmzlEntities = senderGlXmzlDao.querySenderGlXmzlEntity(senderGlXmzlEntity);
|
||||
PageInfo pageInfo=new PageInfo(senderGlXmzlEntities);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("pageInfo",pageInfo);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据公司代码:{}查询GROU8项目资料失败:{}",senderGlXmzlEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询GROU8项目资料失败");
|
||||
}
|
||||
}
|
||||
|
||||
//保存项目资料
|
||||
@Override
|
||||
public Object saveEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlXmzlEntity receiverGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||
if (StrUtil.isEmpty(jsonObject.getString("kjnd"))) {
|
||||
logger.info("保存项目资料时会计年度为空");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||
logger.info("保存项目资料时公司代码为空");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("xmdm"))) {
|
||||
logger.info("保存项目资料时项目资料代码为空");
|
||||
return BaseResult.getFailureMessageEntity("项目资料代码为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("xmmc"))) {
|
||||
logger.info("保存项目资料时项目资料名称为空");
|
||||
return BaseResult.getFailureMessageEntity("项目资料名称为空");
|
||||
}
|
||||
try {
|
||||
receiverGlXmzlEntity.setId(receiverGlXmzlEntity.getGsdm()+'-'+receiverGlXmzlEntity.getKjnd()+'-'+receiverGlXmzlEntity.getXmdm());
|
||||
logger.info("=======开始根据公司代码:{}保存项目资料,id为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getId());
|
||||
SenderGlXmzlEntity receiverGlXmzlEntitySave = senderGlXmzlDao.saveGlXmzlHealthBureau(receiverGlXmzlEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("xmzl",receiverGlXmzlEntitySave);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据公司代码:{}保存GROU8项目资料失败:{}",receiverGlXmzlEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("保存GROU8项目资料失败");
|
||||
}
|
||||
}
|
||||
|
||||
//更新项目资料
|
||||
@Override
|
||||
public Object updateEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlXmzlEntity receiverGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||
if (StrUtil.isEmpty(jsonObject.getString("kjnd"))) {
|
||||
logger.info("更新项目资料时会计年度为空");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||
logger.info("更新项目资料时公司代码为空");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("xmdm"))) {
|
||||
logger.info("更新项目资料时项目资料代码为空");
|
||||
return BaseResult.getFailureMessageEntity("项目资料代码为空");
|
||||
}
|
||||
try {
|
||||
receiverGlXmzlEntity.setId(receiverGlXmzlEntity.getGsdm()+'-'+receiverGlXmzlEntity.getKjnd()+'-'+receiverGlXmzlEntity.getXmdm());
|
||||
logger.info("=======开始根据公司代码:{}更新项目资料,id为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getId());
|
||||
SenderGlXmzlEntity receiverGlXmzlEntity1 = senderGlXmzlDao.updateGlXmzlHealthBureau(receiverGlXmzlEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("xmzl",receiverGlXmzlEntity1);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据公司代码:{}更新GROU8项目资料失败:{}",receiverGlXmzlEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("更新GROU8项目资料失败");
|
||||
}
|
||||
}
|
||||
|
||||
//删除项目资料
|
||||
@Override
|
||||
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderGlXmzlEntity receiverGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||
if (StrUtil.isEmpty(jsonObject.getString("kjnd"))) {
|
||||
logger.info("删除项目资料时会计年度为空");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||
logger.info("删除项目资料时公司代码为空");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
try {
|
||||
receiverGlXmzlEntity.setId(receiverGlXmzlEntity.getGsdm()+'-'+receiverGlXmzlEntity.getKjnd()+'-'+receiverGlXmzlEntity.getXmdm());
|
||||
logger.info("=======开始根据公司代码:{}删除项目资料为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getXmdm());
|
||||
Integer integer = senderGlXmzlDao.deleteGlXmzlHealthBureau(receiverGlXmzlEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("xmzl",integer);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("根据公司代码:{}删除GROU8项目资料:{}失败:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getXmdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("删除GROU8项目资料失败");
|
||||
}
|
||||
}
|
||||
|
||||
//查询项目资料
|
||||
@Override
|
||||
public List<SenderGlXmzlEntity> queryEntityPageHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||
try {
|
||||
logger.info("====根据公司代码:{}查询卫生局中得项目资料数据====",senderGlXmzlEntity.getGsdm());
|
||||
List<SenderGlXmzlEntity> receiverGlXmzlEntities = senderGlXmzlDao.queryGlXmzlHealthBureau(senderGlXmzlEntity);
|
||||
return receiverGlXmzlEntities;
|
||||
}catch (Exception e){
|
||||
logger.info("根据公司代码:{}查询卫生局的GROU8项目资料失败:{}",senderGlXmzlEntity.getGsdm(),e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjjsfs.dao;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:52
|
||||
*/
|
||||
public interface IOerDjjsfsDao extends IBaseDao<OerDjjsfsEntity,String> {
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjjsfs.dao.impl;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjjsfs.dao.IOerDjjsfsDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:53
|
||||
*/
|
||||
@Repository(value = "oerDjjsfsDao")
|
||||
public class OerDjjsfsDaoImpl extends MybatisGenericDao<OerDjjsfsEntity,String> implements IOerDjjsfsDao {
|
||||
}
|
|
@ -0,0 +1,231 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销结算方式栏
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/16 22:07
|
||||
*/
|
||||
|
||||
public class OerDjjsfsEntity extends BaseEntity {
|
||||
private String gsdm;//公司代码
|
||||
private String kjnd;//会计年度
|
||||
private String djlxId;
|
||||
private String mlId;
|
||||
private String xh;//序号
|
||||
private String jsfsdm;//结算方式编码
|
||||
private String jsfsmc;//结算方式名称
|
||||
private String kmdm;//科目代码
|
||||
private String kmmc;//科目名称
|
||||
private String skr;//收款人
|
||||
private String khyh;//开户银行
|
||||
private String yhzh;//银行账号
|
||||
private String gwkh;//公务卡号
|
||||
private String gwkxfsj;
|
||||
private String zph;//支票号
|
||||
private String je;//金额
|
||||
private String province;//省份
|
||||
private String city;//城市
|
||||
private String yh;//银行机构
|
||||
private String yhhh;//银行行号
|
||||
private String rytype;//人员类型
|
||||
private String grdm;
|
||||
private String yt;//用途
|
||||
private String skrbz;
|
||||
|
||||
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 getDjlxId() {
|
||||
return djlxId;
|
||||
}
|
||||
|
||||
public void setDjlxId(String djlxId) {
|
||||
this.djlxId = djlxId;
|
||||
}
|
||||
|
||||
public String getMlId() {
|
||||
return mlId;
|
||||
}
|
||||
|
||||
public void setMlId(String mlId) {
|
||||
this.mlId = mlId;
|
||||
}
|
||||
|
||||
public String getXh() {
|
||||
return xh;
|
||||
}
|
||||
|
||||
public void setXh(String xh) {
|
||||
this.xh = xh;
|
||||
}
|
||||
|
||||
public String getJsfsdm() {
|
||||
return jsfsdm;
|
||||
}
|
||||
|
||||
public void setJsfsdm(String jsfsdm) {
|
||||
this.jsfsdm = jsfsdm;
|
||||
}
|
||||
|
||||
public String getJsfsmc() {
|
||||
return jsfsmc;
|
||||
}
|
||||
|
||||
public void setJsfsmc(String jsfsmc) {
|
||||
this.jsfsmc = jsfsmc;
|
||||
}
|
||||
|
||||
public String getKmdm() {
|
||||
return kmdm;
|
||||
}
|
||||
|
||||
public void setKmdm(String kmdm) {
|
||||
this.kmdm = kmdm;
|
||||
}
|
||||
|
||||
public String getKmmc() {
|
||||
return kmmc;
|
||||
}
|
||||
|
||||
public void setKmmc(String kmmc) {
|
||||
this.kmmc = kmmc;
|
||||
}
|
||||
|
||||
public String getSkr() {
|
||||
return skr;
|
||||
}
|
||||
|
||||
public void setSkr(String skr) {
|
||||
this.skr = skr;
|
||||
}
|
||||
|
||||
public String getKhyh() {
|
||||
return khyh;
|
||||
}
|
||||
|
||||
public void setKhyh(String khyh) {
|
||||
this.khyh = khyh;
|
||||
}
|
||||
|
||||
public String getYhzh() {
|
||||
return yhzh;
|
||||
}
|
||||
|
||||
public void setYhzh(String yhzh) {
|
||||
this.yhzh = yhzh;
|
||||
}
|
||||
|
||||
public String getGwkh() {
|
||||
return gwkh;
|
||||
}
|
||||
|
||||
public void setGwkh(String gwkh) {
|
||||
this.gwkh = gwkh;
|
||||
}
|
||||
|
||||
public String getGwkxfsj() {
|
||||
return gwkxfsj;
|
||||
}
|
||||
|
||||
public void setGwkxfsj(String gwkxfsj) {
|
||||
this.gwkxfsj = gwkxfsj;
|
||||
}
|
||||
|
||||
public String getZph() {
|
||||
return zph;
|
||||
}
|
||||
|
||||
public void setZph(String zph) {
|
||||
this.zph = zph;
|
||||
}
|
||||
|
||||
public String getJe() {
|
||||
return je;
|
||||
}
|
||||
|
||||
public void setJe(String je) {
|
||||
this.je = je;
|
||||
}
|
||||
|
||||
public String getProvince() {
|
||||
return province;
|
||||
}
|
||||
|
||||
public void setProvince(String province) {
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getYh() {
|
||||
return yh;
|
||||
}
|
||||
|
||||
public void setYh(String yh) {
|
||||
this.yh = yh;
|
||||
}
|
||||
|
||||
public String getYhhh() {
|
||||
return yhhh;
|
||||
}
|
||||
|
||||
public void setYhhh(String yhhh) {
|
||||
this.yhhh = yhhh;
|
||||
}
|
||||
|
||||
public String getRytype() {
|
||||
return rytype;
|
||||
}
|
||||
|
||||
public void setRytype(String rytype) {
|
||||
this.rytype = rytype;
|
||||
}
|
||||
|
||||
public String getGrdm() {
|
||||
return grdm;
|
||||
}
|
||||
|
||||
public void setGrdm(String grdm) {
|
||||
this.grdm = grdm;
|
||||
}
|
||||
|
||||
public String getYt() {
|
||||
return yt;
|
||||
}
|
||||
|
||||
public void setYt(String yt) {
|
||||
this.yt = yt;
|
||||
}
|
||||
|
||||
public String getSkrbz() {
|
||||
return skrbz;
|
||||
}
|
||||
|
||||
public void setSkrbz(String skrbz) {
|
||||
this.skrbz = skrbz;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,132 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.oerdjjsfs.dao.impl.OerDjjsfsDaoImpl">
|
||||
<resultMap id="get-OerDjjsfsEntity-result" type="com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity">
|
||||
<result property="mlId" column="mlId" />
|
||||
<result property="djlxId" column="djlxId" />
|
||||
<result property="gsdm" column="gsdm" />
|
||||
<result property="kjnd" column="kjnd" />
|
||||
<result property="jsfsdm" column="jsfsdm" />
|
||||
<result property="jsfsmc" column="jsfsmc"/>
|
||||
<result property="xh" column="xh" />
|
||||
<result property="skr" column="skr" />
|
||||
<result property="khyh" column="khyh" />
|
||||
<result property="yhzh" column="yhzh" />
|
||||
<result property="kmdm" column="kmdm" />
|
||||
<result property="kmmc" column="kmmc" />
|
||||
<result property="je" column="je" />
|
||||
<result property="gwkh" column="gwkh" />
|
||||
<result property="gwkxfsj" column="gwkxfsj" />
|
||||
<result property="yh" column="yh" />
|
||||
<result property="yhhh" column="yhhh" />
|
||||
<result property="city" column="city" />
|
||||
<result property="rytype" column="rytype" />
|
||||
<result property="grdm" column="grdm" />
|
||||
<result property="yt" column="yt" />
|
||||
<result property="skrbz" column="skrbz" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="OerDjjsfsEntity_Base_Column_List">
|
||||
GSDM,KJND
|
||||
</sql>
|
||||
|
||||
<insert id="OerDjjsfsEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity">
|
||||
insert into OER_DJJSFS(
|
||||
<if test="kjnd != null and kjnd !='' ">KJND, </if>
|
||||
<if test="djlxId != null and djlxId !='' "> DJLXID, </if>
|
||||
<if test="mlId != null and mlId !='' "> MLID, </if>
|
||||
<if test="xh != null and xh !='' "> XH, </if>
|
||||
<if test="jsfsdm != null and jsfsdm !=''"> JSFSDM, </if>
|
||||
<if test="jsfsmc != null and jsfsmc !='' "> JSFSMC, </if>
|
||||
<if test="kmdm != null and kmdm !='' "> KMDM, </if>
|
||||
<if test="kmmc != null and kmmc !='' "> KMMC,</if>
|
||||
<if test="skr != null and skr !='' "> SKR, </if>
|
||||
<if test="khyh != null and khyh !='' "> KHYH,</if>
|
||||
<if test="yhzh != null and yhzh !=''"> YHZH, </if>
|
||||
<if test="gwkh != null and gwkh !='' "> GWKH, </if>
|
||||
<if test="gwkxfsj != null and gwkxfsj !='' "> GWKXFSJ, </if>
|
||||
<if test="zph != null and zph !='' "> ZPH, </if>
|
||||
<if test="je != null and je !='' "> JE, </if>
|
||||
<if test="province != null and province !='' ">PROVINCE,</if>
|
||||
<if test="city != null and city !='' "> CITY,</if>
|
||||
<if test="yh != null and yh !='' "> YH, </if>
|
||||
<if test="yhhh != null and yhhh !='' "> YHHH,</if>
|
||||
<if test="rytype != null and rytype !='' "> RYType, </if>
|
||||
<if test="grdm != null and grdm !='' "> GRDM, </if>
|
||||
<if test="yt != null and yt !='' "> yt,</if>
|
||||
<if test="skrbz != null and skrbz !='' "> SKRBZ, </if>
|
||||
<if test="gsdm != null and gsdm !='' "> GSDM </if>
|
||||
)
|
||||
values (
|
||||
<if test="kjnd != null and kjnd !='' "> #{kjnd}, </if>
|
||||
<if test="djlxId != null and djlxId !='' "> #{djlxId}, </if>
|
||||
<if test="mlId != null and mlId !='' "> #{mlId}, </if>
|
||||
<if test="xh != null and xh !='' "> #{xh}, </if>
|
||||
<if test="jsfsdm != null and jsfsdm !=''"> #{jsfsdm}, </if>
|
||||
<if test="jsfsmc != null and jsfsmc !='' "> #{jsfsmc}, </if>
|
||||
<if test="kmdm != null and kmdm !='' "> #{kmdm}, </if>
|
||||
<if test="kmmc != null and kmmc !='' "> #{kmmc},</if>
|
||||
<if test="skr != null and skr !='' "> #{skr}, </if>
|
||||
<if test="khyh != null and khyh !='' "> #{khyh},</if>
|
||||
<if test="yhzh != null and yhzh !=''"> #{yhzh}, </if>
|
||||
<if test="gwkh != null and gwkh !='' "> #{gwkh}, </if>
|
||||
<if test="gwkxfsj != null and gwkxfsj !='' "> #{gwkxfsj}, </if>
|
||||
<if test="zph != null and zph !='' "> #{zph}, </if>
|
||||
<if test="je != null and je !='' "> #{je}, </if>
|
||||
<if test="province != null and province !='' ">#{province},</if>
|
||||
<if test="city != null and city !='' "> #{city},</if>
|
||||
<if test="yh != null and yh !='' "> #{yh}, </if>
|
||||
<if test="yhhh != null and yhhh !='' "> #{yhhh},</if>
|
||||
<if test="rytype != null and rytype !='' "> #{rytype}, </if>
|
||||
<if test="grdm != null and grdm !='' "> #{grdm}, </if>
|
||||
<if test="yt != null and yt !='' "> #{yt},</if>
|
||||
<if test="skrbz != null and skrbz !='' "> #{skrbz}, </if>
|
||||
<if test="gsdm != null and gsdm !='' "> #{gsdm} </if>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="OerDjjsfsEntity_update" parameterType="com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity">
|
||||
update oer_djjsfs set skrbz = '1'
|
||||
where gsdm = #{gsdm} and kjnd <> '-1'
|
||||
AND EXISTS (
|
||||
SELECT
|
||||
1
|
||||
FROM
|
||||
oer_djjsfs a
|
||||
WHERE
|
||||
gsdm = #{gsdm}
|
||||
AND kjnd = '-1'
|
||||
AND oer_djjsfs.skr = a.skr
|
||||
AND oer_djjsfs.khyh = a.KHYH
|
||||
AND oer_djjsfs.yhzh = a.yhzh
|
||||
)
|
||||
</update>
|
||||
|
||||
<update id="OerDjjsfsEntity_update_pub" parameterType="com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity">
|
||||
update Pub_fp set zt = '1',BXDID = #{mlId}
|
||||
WHERE
|
||||
FPID IN (
|
||||
SELECT
|
||||
FPID
|
||||
FROM
|
||||
oer_annex
|
||||
WHERE
|
||||
gsdm = #{gsdm}
|
||||
AND kjnd = #{kjnd}
|
||||
AND MLID = ${mlId}
|
||||
AND FJType = '电子发票'
|
||||
);
|
||||
</update>
|
||||
|
||||
<!--单据删除 单据保存时使用-->
|
||||
<delete id="OerDjjsfsEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity">
|
||||
delete FROM oer_djjsfs where GSDM =#{gsdm} and KJND=#{kjnd} and MLID=${mlId} and DJLXID=${djlxId}
|
||||
</delete>
|
||||
|
||||
<!--单据删除 单据删除时使用-->
|
||||
<delete id="OerDjjsfsEntity_delete_del" parameterType="com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity">
|
||||
DELETE FROM oer_djjsfs WHERE GSDM = #{gsdm} AND KJND = #{kjnd} AND DJLXID = #{djlxId} AND MLID = #{mlId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,11 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjjsfs.service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销结算方式栏
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:27
|
||||
*/
|
||||
public interface IOerDjjsfsService {
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjjsfs.service.impl;
|
||||
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjjsfs.service.IOerDjjsfsService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销结算方式栏
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:30
|
||||
*/
|
||||
@Service(value = "oerDjjsfsService")
|
||||
public class OerDjjsfsServiceImpl implements IOerDjjsfsService {
|
||||
}
|
|
@ -0,0 +1,122 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjml.controller;
|
||||
|
||||
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.service.IOerDjmlService;
|
||||
import com.hzya.frame.web.action.DefaultController;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销报销明细总
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 15:52
|
||||
*/
|
||||
@RequestMapping("/grp/api")
|
||||
@Controller
|
||||
public class OerDjmlController extends DefaultController {
|
||||
@Autowired
|
||||
private IOerDjmlService iOerDjmlService;
|
||||
|
||||
/***
|
||||
* @Content:费用报销单发起保存
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 11:23
|
||||
* @Param [jsonObject]
|
||||
* @return java.lang.String
|
||||
**/
|
||||
/*@ResponseBody
|
||||
//@RequestMapping("/saveExpenseDocuments")
|
||||
public JsonResultEntity saveExpenseDocuments(@RequestBody JSONObject jsonObject){
|
||||
try {
|
||||
String result = null;//iOerDjmlService.saveExpenseDocuments(jsonObject);
|
||||
return getSuccessMessageEntity("报销单保存成功","报销单保存","报销单单据编号为:"+result);
|
||||
}catch (Exception e){
|
||||
*//* String message="";
|
||||
if(e instanceof BaseSystemException){
|
||||
message=e.getMessage();
|
||||
}*//*
|
||||
return getFailureMessageEntity("报销单保存失败,错误原因为:"+e.getMessage(),"报销单保存");
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping("/queryOerDjmlEntity")
|
||||
public JsonResultEntity test(@RequestBody OerDjmlEntity oerDjmlEntity) throws Exception{
|
||||
OerDjmlEntity oerDjmlEntity1 = iOerDjmlService.queryOerDjmlEntity(oerDjmlEntity);
|
||||
logger.info("查询出来的Rpt_Rt_content只为:{}",oerDjmlEntity1.getRptRtContent());
|
||||
String str=new String(oerDjmlEntity1.getRptRtContent(),"ISO-8859-1");
|
||||
/*try {
|
||||
|
||||
// 将byte[]转换成InputStream
|
||||
ByteArrayInputStream bais = new ByteArrayInputStream(oerDjmlEntity1.getRptRtContent());
|
||||
|
||||
// 创建ZipInputStream
|
||||
ZipInputStream zis = new ZipInputStream(bais);
|
||||
|
||||
// 获取第一个条目
|
||||
ZipEntry entry = zis.getNextEntry();
|
||||
|
||||
if (entry != null) {
|
||||
// 创建一个新的ByteArrayOutputStream来存储解压缩后的数据
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
|
||||
byte[] buffer = new byte[1024];
|
||||
int len;
|
||||
|
||||
// 读取解压缩的数据并写入ByteArrayOutputStream
|
||||
while ((len = zis.read(buffer)) > 0) {
|
||||
baos.write(buffer, 0, len);
|
||||
}
|
||||
|
||||
// 关闭资源
|
||||
zis.closeEntry();
|
||||
zis.close();
|
||||
bais.close();
|
||||
|
||||
// 将解压缩后的数据转换成字符串
|
||||
String decompressedString = new String(baos.toByteArray(), "UTF-8");
|
||||
|
||||
System.out.println("Decompressed String: " + decompressedString);
|
||||
} else {
|
||||
System.out.println("No entries found in the ZIP data.");
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
|
||||
/* String outputImagePath = "C:\\Users\\笃曙\\Desktop\\项目相关\\南浔卫生局\\image.png"; // 输出图片路径
|
||||
|
||||
try (FileOutputStream fos = new FileOutputStream(outputImagePath)) {
|
||||
fos.write(oerDjmlEntity1.getRptRtContent());
|
||||
logger.info("图片路径:{}",outputImagePath);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
/* byte[] data = oerDjmlEntity1.getRptRtContent();
|
||||
File file = new File("C:\\Users\\笃曙\\Desktop\\项目相关\\南浔卫生局\\IMG_20181213_154235.png"); // 要写入的文件
|
||||
try (FileOutputStream fos = new FileOutputStream(file)) {
|
||||
fos.write(data); // 将字节数组写入文件
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.out.println("File saved successfully.");*/
|
||||
|
||||
|
||||
logger.info("转换之后的值:{}",str);
|
||||
|
||||
return getFailureMessageEntity("成功",str);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjml.dao;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:54
|
||||
*/
|
||||
public interface IOerDjmlDao extends IBaseDao<OerDjmlEntity,String> {
|
||||
|
||||
|
||||
/***
|
||||
* 根据公司代码获取单据最大号
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 15:17
|
||||
* @param oerDjmlEntity
|
||||
* @return java.lang.String
|
||||
**/
|
||||
String getMaxDjbgByGsdm(OerDjmlEntity oerDjmlEntity);
|
||||
|
||||
/****
|
||||
* 根据公司代码获取最大MLID
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 15:24
|
||||
* @Param [gsdm]
|
||||
* @return java.lang.String
|
||||
**/
|
||||
String getMaxMlIdByGsdm(OerDjmlEntity oerDjmlEntity);
|
||||
|
||||
//获取最大单据编号,指标被占用时候
|
||||
String getMaxDjbgByGsdmZy(OerDjmlEntity oerDjmlEntity);
|
||||
|
||||
OerDjmlEntity queryOerDjmlEntity(OerDjmlEntity oerDjmlEntity);
|
||||
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjml.dao.impl;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.dao.IOerDjmlDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:55
|
||||
*/
|
||||
@Repository(value = "oerDjmlDao")
|
||||
public class OerDjmlDaoImpl extends MybatisGenericDao<OerDjmlEntity,String> implements IOerDjmlDao {
|
||||
|
||||
@Override
|
||||
public String getMaxDjbgByGsdm(OerDjmlEntity oerDjmlEntity) {
|
||||
oerDjmlEntity = (OerDjmlEntity) super.selectOne("OerDjmlEntity_list_base_djbhMax",oerDjmlEntity);
|
||||
if(null == oerDjmlEntity){
|
||||
throw new RuntimeException("查询最大单据号错误!请联系管理员");
|
||||
}else{
|
||||
return oerDjmlEntity.getDjbh();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMaxMlIdByGsdm(OerDjmlEntity oerDjmlEntity) {
|
||||
oerDjmlEntity= (OerDjmlEntity) super.selectOne("OerDjmlEntity_list_base_mlidMax",oerDjmlEntity);
|
||||
if(null == oerDjmlEntity){
|
||||
throw new RuntimeException("查询最大MlId错误!请联系管理员");
|
||||
}else{
|
||||
return oerDjmlEntity.getMlId();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMaxDjbgByGsdmZy(OerDjmlEntity oerDjmlEntity) {
|
||||
oerDjmlEntity = (OerDjmlEntity) super.selectOne("OerDjmlEntity_list_base_djbhMax_zy",oerDjmlEntity);
|
||||
if(null == oerDjmlEntity){
|
||||
throw new RuntimeException("指标占用查询最大单据号错误!请联系管理员");
|
||||
}else{
|
||||
return oerDjmlEntity.getDjbh();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public OerDjmlEntity queryOerDjmlEntity(OerDjmlEntity oerDjmlEntity) {
|
||||
oerDjmlEntity = (OerDjmlEntity) super.selectOne("OerDjmlEntity_list_base_Rpt_Rt_content",oerDjmlEntity);
|
||||
if(null == oerDjmlEntity){
|
||||
throw new RuntimeException("查询失败");
|
||||
}else{
|
||||
return oerDjmlEntity;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,313 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjml.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销报销明细总
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/16 21:49
|
||||
*/
|
||||
public class OerDjmlEntity extends BaseEntity {
|
||||
private String mlId;
|
||||
private String gsdm;//公司代码
|
||||
private String kjnd;//会计年度
|
||||
private String djlxId;
|
||||
private String zt;
|
||||
private String crerdm;//制单人代码
|
||||
private String crermc;//制单人名称
|
||||
private String crerdate;//日期
|
||||
private String flowcode;
|
||||
private String curshjd;
|
||||
private String nextshjd;
|
||||
private String shrs;
|
||||
private String shrId;
|
||||
private String shrq;
|
||||
private String jsfs;
|
||||
private String djbh;//单据号
|
||||
private String djdate;//单据日期
|
||||
private String fjs;//附件数
|
||||
private String bmdm;//部门代码
|
||||
private String bmmc;//部门名称
|
||||
private String grdm;//报销人代码
|
||||
private String grmc;//报销人名称
|
||||
private String tel;//联系电话
|
||||
private String yjje;//预借金额
|
||||
private String thje;//退还金额
|
||||
private String blje;//补领金额
|
||||
private String je;//报销金额
|
||||
private String whje;
|
||||
private String jedx;//金额大写
|
||||
private String zy;//摘要
|
||||
|
||||
private String pzh;//凭证号
|
||||
private String fph;//发票号
|
||||
|
||||
private byte[] RptRtContent;
|
||||
|
||||
public String getMlId() {
|
||||
return mlId;
|
||||
}
|
||||
|
||||
public void setMlId(String mlId) {
|
||||
this.mlId = mlId;
|
||||
}
|
||||
|
||||
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 getDjlxId() {
|
||||
return djlxId;
|
||||
}
|
||||
|
||||
public void setDjlxId(String djlxId) {
|
||||
this.djlxId = djlxId;
|
||||
}
|
||||
|
||||
public String getZt() {
|
||||
return zt;
|
||||
}
|
||||
|
||||
public void setZt(String zt) {
|
||||
this.zt = zt;
|
||||
}
|
||||
|
||||
public String getCrerdm() {
|
||||
return crerdm;
|
||||
}
|
||||
|
||||
public void setCrerdm(String crerdm) {
|
||||
this.crerdm = crerdm;
|
||||
}
|
||||
|
||||
public String getCrermc() {
|
||||
return crermc;
|
||||
}
|
||||
|
||||
public void setCrermc(String crermc) {
|
||||
this.crermc = crermc;
|
||||
}
|
||||
|
||||
public String getCrerdate() {
|
||||
return crerdate;
|
||||
}
|
||||
|
||||
public void setCrerdate(String crerdate) {
|
||||
this.crerdate = crerdate;
|
||||
}
|
||||
|
||||
public String getFlowcode() {
|
||||
return flowcode;
|
||||
}
|
||||
|
||||
public void setFlowcode(String flowcode) {
|
||||
this.flowcode = flowcode;
|
||||
}
|
||||
|
||||
public String getCurshjd() {
|
||||
return curshjd;
|
||||
}
|
||||
|
||||
public void setCurshjd(String curshjd) {
|
||||
this.curshjd = curshjd;
|
||||
}
|
||||
|
||||
public String getNextshjd() {
|
||||
return nextshjd;
|
||||
}
|
||||
|
||||
public void setNextshjd(String nextshjd) {
|
||||
this.nextshjd = nextshjd;
|
||||
}
|
||||
|
||||
public String getShrs() {
|
||||
return shrs;
|
||||
}
|
||||
|
||||
public void setShrs(String shrs) {
|
||||
this.shrs = shrs;
|
||||
}
|
||||
|
||||
public String getShrId() {
|
||||
return shrId;
|
||||
}
|
||||
|
||||
public void setShrId(String shrId) {
|
||||
this.shrId = shrId;
|
||||
}
|
||||
|
||||
public String getShrq() {
|
||||
return shrq;
|
||||
}
|
||||
|
||||
public void setShrq(String shrq) {
|
||||
this.shrq = shrq;
|
||||
}
|
||||
|
||||
public String getJsfs() {
|
||||
return jsfs;
|
||||
}
|
||||
|
||||
public void setJsfs(String jsfs) {
|
||||
this.jsfs = jsfs;
|
||||
}
|
||||
|
||||
public String getDjbh() {
|
||||
return djbh;
|
||||
}
|
||||
|
||||
public void setDjbh(String djbh) {
|
||||
this.djbh = djbh;
|
||||
}
|
||||
|
||||
public String getDjdate() {
|
||||
return djdate;
|
||||
}
|
||||
|
||||
public void setDjdate(String djdate) {
|
||||
this.djdate = djdate;
|
||||
}
|
||||
|
||||
public String getFjs() {
|
||||
return fjs;
|
||||
}
|
||||
|
||||
public void setFjs(String fjs) {
|
||||
this.fjs = fjs;
|
||||
}
|
||||
|
||||
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 getGrdm() {
|
||||
return grdm;
|
||||
}
|
||||
|
||||
public void setGrdm(String grdm) {
|
||||
this.grdm = grdm;
|
||||
}
|
||||
|
||||
public String getGrmc() {
|
||||
return grmc;
|
||||
}
|
||||
|
||||
public void setGrmc(String grmc) {
|
||||
this.grmc = grmc;
|
||||
}
|
||||
|
||||
public String getTel() {
|
||||
return tel;
|
||||
}
|
||||
|
||||
public void setTel(String tel) {
|
||||
this.tel = tel;
|
||||
}
|
||||
|
||||
public String getYjje() {
|
||||
return yjje;
|
||||
}
|
||||
|
||||
public void setYjje(String yjje) {
|
||||
this.yjje = yjje;
|
||||
}
|
||||
|
||||
public String getThje() {
|
||||
return thje;
|
||||
}
|
||||
|
||||
public void setThje(String thje) {
|
||||
this.thje = thje;
|
||||
}
|
||||
|
||||
public String getBlje() {
|
||||
return blje;
|
||||
}
|
||||
|
||||
public void setBlje(String blje) {
|
||||
this.blje = blje;
|
||||
}
|
||||
|
||||
public String getJe() {
|
||||
return je;
|
||||
}
|
||||
|
||||
public void setJe(String je) {
|
||||
this.je = je;
|
||||
}
|
||||
|
||||
public String getWhje() {
|
||||
return whje;
|
||||
}
|
||||
|
||||
public void setWhje(String whje) {
|
||||
this.whje = whje;
|
||||
}
|
||||
|
||||
public String getJedx() {
|
||||
return jedx;
|
||||
}
|
||||
|
||||
public void setJedx(String jedx) {
|
||||
this.jedx = jedx;
|
||||
}
|
||||
|
||||
public String getZy() {
|
||||
return zy;
|
||||
}
|
||||
|
||||
public void setZy(String zy) {
|
||||
this.zy = zy;
|
||||
}
|
||||
|
||||
public String getPzh() {
|
||||
return pzh;
|
||||
}
|
||||
|
||||
public void setPzh(String pzh) {
|
||||
this.pzh = pzh;
|
||||
}
|
||||
|
||||
public String getFph() {
|
||||
return fph;
|
||||
}
|
||||
|
||||
public void setFph(String fph) {
|
||||
this.fph = fph;
|
||||
}
|
||||
|
||||
public byte[] getRptRtContent() {
|
||||
return RptRtContent;
|
||||
}
|
||||
|
||||
public void setRptRtContent(byte[] rptRtContent) {
|
||||
RptRtContent = rptRtContent;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,192 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.oerdjml.dao.impl.OerDjmlDaoImpl">
|
||||
<resultMap id="get-OerDjmlEntity-result" type="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
<result property="mlId" column="mlId" />
|
||||
<result property="djlxId" column="djlxId" />
|
||||
<result property="gsdm" column="gsdm" />
|
||||
<result property="kjnd" column="kjnd" />
|
||||
<result property="zt" column="zt" />
|
||||
<result property="crerdm" column="crerdm"/>
|
||||
<result property="crermc" column="crermc" />
|
||||
<result property="crerdate" column="crerdate" />
|
||||
<result property="curshjd" column="curshjd" />
|
||||
<result property="nextshjd" column="nextshjd" />
|
||||
<result property="shrs" column="shr" />
|
||||
<result property="shrId" column="shrId" />
|
||||
<result property="je" column="je" />
|
||||
<result property="shrq" column="shrq" />
|
||||
<result property="jsfs" column="jsfs" />
|
||||
<result property="djbh" column="djbh" />
|
||||
<result property="djdate" column="djdate" />
|
||||
<result property="fjs" column="fjs" />
|
||||
<result property="bmdm" column="bmdm" />
|
||||
<result property="bmmc" column="bmmc" />
|
||||
<result property="grdm" column="grdm" />
|
||||
<result property="grmc" column="grmc" />
|
||||
<result property="tel" column="tel" />
|
||||
<result property="yjje" column="yjje" />
|
||||
<result property="thje" column="thje" />
|
||||
<result property="blje" column="blje" />
|
||||
<result property="whje" column="whje" />
|
||||
<result property="jedx" column="jedx" />
|
||||
<result column="Rpt_Rt_content" property="RptRtContent" jdbcType="BLOB" typeHandler="org.apache.ibatis.type.BlobTypeHandler" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="OerDjmlEntity_Base_Column_List">
|
||||
GSDM,KJND,mlId
|
||||
</sql>
|
||||
|
||||
<select id="OerDjmlEntity_list_base_Rpt_Rt_content" resultMap="get-OerDjmlEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
select Rpt_Rt_content as Rpt_Rt_content from Rpt_Report where kjnd='2024' and rpt_rt_id='1883339185'
|
||||
<!--select ATFile as Rpt_Rt_content from AT_AttachmentFile where ATGuid='A1:00367df4-d5d6-4abb-82f6-e3bd1ca9e070'-->
|
||||
</select>
|
||||
|
||||
<!-- 查询最大单据编号+1-->
|
||||
<select id="OerDjmlEntity_list_base_djbhMax" resultMap="get-OerDjmlEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
select
|
||||
case when
|
||||
len(isnull(max(right(DJBH,'4')), '0')+1)=2 then
|
||||
concat(#{fph}+'BXD'+#{djdate}+'00',isnull(max(right(DJBH,'4')), '0')+1)
|
||||
when len(isnull(max(right(DJBH,'4')), '0')+1)=1 then
|
||||
concat(#{fph}+'BXD'+#{djdate}+'000',isnull(max(right(DJBH,'4')), '0')+1)
|
||||
when len(isnull(max(right(DJBH,'4')), '0')+1)=3 then
|
||||
concat(#{fph}+'BXD'+#{djdate}+'0',isnull(max(right(DJBH,'4')), '0')+1)
|
||||
else concat(#{fph}+'BXD'+#{djdate}+'',isnull(max(right(DJBH,'4')), '0')+1) end
|
||||
as djbh from OER_DJML where GSDM=#{gsdm} and DJBH like '%BXD'+#{djdate}+'%';
|
||||
</select>
|
||||
|
||||
<!-- 查询最大单据编号+1 指标占用时候使用-->
|
||||
<select id="OerDjmlEntity_list_base_djbhMax_zy" resultMap="get-OerDjmlEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
select
|
||||
case when
|
||||
len(isnull(max(right(DJBH,'4')), '0')+1)=2 then
|
||||
concat('ZYBXD'+#{djdate}+'00',isnull(max(right(DJBH,'4')), '0')+1)
|
||||
when len(isnull(max(right(DJBH,'4')), '0')+1)=1 then
|
||||
concat('ZYBXD'+#{djdate}+'000',isnull(max(right(DJBH,'4')), '0')+1)
|
||||
when len(isnull(max(right(DJBH,'4')), '0')+1)=3 then
|
||||
concat('ZYBXD'+#{djdate}+'0',isnull(max(right(DJBH,'4')), '0')+1)
|
||||
else concat('ZYBXD'+#{djdate}+'',isnull(max(right(DJBH,'4')), '0')+1) end
|
||||
as djbh from OER_DJML where GSDM=#{gsdm} and DJBH like '%ZYBXD'+#{djdate}+'%';
|
||||
</select>
|
||||
|
||||
<!-- 查询最大mlid+1-->
|
||||
<!--<select id="OerDjmlEntity_list_base_mlidMax" resultMap="get-OerDjmlEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
select
|
||||
case when
|
||||
length(ifnull(max(right(mlid,'4')), '0')+1)=2 then
|
||||
concat(concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'00'),ifnull(max(right(mlid,'4')), '0')+1)
|
||||
when length(ifnull(max(right(mlid,'4')), '0')+1)=1 then
|
||||
concat(concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'000'),ifnull(max(right(mlid,'4')), '0')+1)
|
||||
when length(ifnull(max(right(mlid,'4')), '0')+1)=3 then
|
||||
concat(concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'0'),ifnull(max(right(mlid,'4')), '0')+1)
|
||||
else concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),ifnull(max(right(mlid,'4')), '0')+1) end
|
||||
as mlId from OER_DJML where GSDM=#{gsdm} and mlid like concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'%')
|
||||
</select>-->
|
||||
<select id="OerDjmlEntity_list_base_mlidMax" resultMap="get-OerDjmlEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
select (isnull(max(MLID),concat(substring(#{djdate},0,7),0000)) + 1) as mlId
|
||||
from OER_DJML where 1=1 and GSDM=#{gsdm} and MLID like concat(substring(#{djdate},0,7),'%')
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="OerDjmlEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
insert into OER_DJML(
|
||||
<if test="gsdm != null and gsdm !='' "> GSDM, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> KJND, </if>
|
||||
<if test="djlxId != null and djlxId !='' "> DJLXID, </if>
|
||||
<if test="mlId != null and mlId !='' "> MLID, </if>
|
||||
<if test="zt != null and zt !='' "> ZT, </if>
|
||||
<if test="crerdm != null and crerdm !=''"> CRerDM, </if>
|
||||
<if test="crermc != null and crermc !='' "> CRerMC, </if>
|
||||
<if test="crerdate != null and crerdate !='' "> CRerDate, </if>
|
||||
<if test="flowcode != null and flowcode !='' "> FlowCode,</if>
|
||||
<if test="curshjd != null and curshjd !='' "> CurSHJD, </if>
|
||||
<if test="nextshjd != null and nextshjd !='' "> NextSHJD,</if>
|
||||
<if test="shrs != null and shrs !='' "> SHR,</if>
|
||||
<if test="shrId != null and shrId !=''"> SHRID, </if>
|
||||
<if test="shrq != null and shrq !='' "> SHRQ, </if>
|
||||
<if test="jsfs != null and jsfs !='' "> JSFS, </if>
|
||||
<if test="djbh != null and djbh !='' "> DJBH, </if>
|
||||
<if test="djdate != null and djdate !='' "> DJDate, </if>
|
||||
<if test="fjs != null and fjs !='' "> FJS,</if>
|
||||
<if test="bmdm != null and bmdm !='' "> BMDM, </if>
|
||||
<if test="bmmc != null and bmmc !='' "> BMMC,</if>
|
||||
<if test="grdm != null and grdm !='' ">GRDM, </if>
|
||||
<if test="grmc != null and grmc !='' ">GRMC,</if>
|
||||
<if test="tel != null and tel !='' "> TEL, </if>
|
||||
<if test="yjje != null and yjje !='' "> YJJE, </if>
|
||||
<if test="thje != null and thje !='' "> THJE,</if>
|
||||
<if test="blje != null and blje !='' "> BLJE, </if>
|
||||
<if test="je != null and je !='' "> JE, </if>
|
||||
<if test="whje != null and whje !='' "> WHJE,</if>
|
||||
<if test="jedx != null and jedx !='' "> JEDX </if>
|
||||
)
|
||||
values (
|
||||
<if test="gsdm != null and gsdm !='' "> #{gsdm}, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> #{kjnd}, </if>
|
||||
<if test="djlxId != null and djlxId !='' "> ${djlxId}, </if>
|
||||
<if test="mlId != null and mlId !='' "> ${mlId}, </if>
|
||||
<if test="zt != null and zt !='' "> #{zt}, </if>
|
||||
<if test="crerdm != null and crerdm !=''"> #{crerdm}, </if>
|
||||
<if test="crermc != null and crermc !='' "> #{crermc}, </if>
|
||||
<if test="crerdate != null and crerdate !='' "> #{crerdate}, </if>
|
||||
<if test="flowcode != null and flowcode !='' "> #{flowcode},</if>
|
||||
<if test="curshjd != null and curshjd !='' "> ${curshjd}, </if>
|
||||
<if test="nextshjd != null and nextshjd !='' "> ${nextshjd},</if>
|
||||
<if test="shrs != null and shrs !='' "> #{shrs}, </if>
|
||||
<if test="shrId != null and shrId !='' "> #{shrId}, </if>
|
||||
<if test="shrq != null and shrq !='' "> #{shrq}, </if>
|
||||
<if test="jsfs != null and jsfs !='' "> #{jsfs}, </if>
|
||||
<if test="djbh != null and djbh !='' "> #{djbh}, </if>
|
||||
<if test="djdate != null and djdate !='' "> #{djdate}, </if>
|
||||
<if test="fjs != null and fjs !='' "> ${fjs},</if>
|
||||
<if test="bmdm != null and bmdm !='' "> #{bmdm}, </if>
|
||||
<if test="bmmc != null and bmmc !='' "> #{bmmc},</if>
|
||||
<if test="grdm != null and grdm !='' "> #{grdm}, </if>
|
||||
<if test="grmc != null and grmc !='' "> #{grmc},</if>
|
||||
<if test="tel != null and tel !='' "> #{tel}, </if>
|
||||
<if test="yjje != null and yjje !='' "> #{yjje}, </if>
|
||||
<if test="thje != null and thje !='' "> #{thje},</if>
|
||||
<if test="blje != null and blje !='' "> #{blje}, </if>
|
||||
<if test="je != null and je !='' "> #{je}, </if>
|
||||
<if test="whje != null and whje !='' "> #{whje},</if>
|
||||
<if test="jedx != null and jedx !='' "> #{jedx} </if>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="OerDjmlEntity_update" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
update oer_djml set zy= #{zy}
|
||||
where GSDM = #{gsdm} and KJND=#{kjnd} and DJLXID=${djlxId} and MLID=${mlId}
|
||||
</update>
|
||||
|
||||
<!--删除,用于单据删除时使用-->
|
||||
<delete id="OerDjmlEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
DELETE
|
||||
FROM
|
||||
oer_djml
|
||||
WHERE
|
||||
GSDM = #{gsdm}
|
||||
AND KJND = #{kjnd}
|
||||
AND DJLXID = #{djlxId}
|
||||
AND MLID = #{mlId}
|
||||
</delete>
|
||||
|
||||
<!--修改 用于单据送审和审批时使用-->
|
||||
<update id="OerDjmlEntity_update_songs" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
|
||||
UPDATE OER_DJML
|
||||
SET ZT = #{zt},
|
||||
FlowCode = #{flowcode},
|
||||
CurSHJD =#{curshjd},
|
||||
NextSHJD = #{nextshjd},
|
||||
SHRID =#{shrId},
|
||||
SHR = #{shrs},
|
||||
SHRQ = #{shrq}
|
||||
WHERE
|
||||
gsdm = #{gsdm}
|
||||
AND kjnd = #{kjnd}
|
||||
AND djlxid = #{djlxId}
|
||||
AND mlid = #{mlId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,28 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjml.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销报销明细总
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:28
|
||||
*/
|
||||
public interface IOerDjmlService {
|
||||
|
||||
/*****
|
||||
* 费用报销单保存方法,三方系统传JSON数据,解析完成后保存到GRP费用报销单
|
||||
* @author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 11:24
|
||||
* @param jsonObject 三方系统传递JSON对象数据
|
||||
* @return Result<XxxxDO>
|
||||
**/
|
||||
String saveExpenseDocuments(JSONObject jsonObject);
|
||||
|
||||
|
||||
OerDjmlEntity queryOerDjmlEntity(OerDjmlEntity oerDjmlEntity);
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,602 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjml.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.IGbiZbsyrecDao;
|
||||
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjjsfs.dao.IOerDjjsfsDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjjsfs.entity.OerDjjsfsEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.dao.IOerDjmlDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.service.IOerDjmlService;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjnr.dao.IOerDjnrDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.oeryszb.dao.IOerYszbDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.pubauditlog.dao.IPubAuditLogDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.pubobjflow.dao.IPubObjFlowDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity;
|
||||
import com.hzya.frame.web.exception.BaseSystemException;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销报销明细总
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:31
|
||||
*/
|
||||
@Service(value = "oerDjmlService")
|
||||
public class OerDjmlServiceImpl implements IOerDjmlService {
|
||||
private static Logger logger= LogManager.getLogger(OerDjmlServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private IGbiZbsyrecDao iGbiZbsyrecDao;
|
||||
@Autowired
|
||||
private IOerDjjsfsDao iOerDjjsfsDao;
|
||||
@Autowired
|
||||
private IOerDjmlDao iOerDjmlDao;
|
||||
@Autowired
|
||||
private IOerDjnrDao iOerDjnrDao;
|
||||
@Autowired
|
||||
private IOerYszbDao iOerYszbDao;
|
||||
@Autowired
|
||||
private IPubAuditLogDao iPubAuditLogDao;
|
||||
@Autowired
|
||||
private IPubObjFlowDao iPubObjFlowDao;
|
||||
|
||||
@Override
|
||||
public String saveExpenseDocuments(JSONObject jsonObject) {
|
||||
|
||||
//jsonObject = createTestData();
|
||||
logger.info("费用报销单开始保存,接收三方系统参数:------>"+jsonObject.toJSONString());
|
||||
//获取主表数据
|
||||
logger.info("开始处理数据:------>");
|
||||
String gsdm = jsonObject.getString("gsdm");
|
||||
logger.info("根据公司代码查询最大单据编号,公司代码:------>"+gsdm);
|
||||
if(StrUtil.isEmpty(gsdm)){
|
||||
throw new BaseSystemException("公司代码不能为空!请排查参数gsdm");
|
||||
}
|
||||
if(StrUtil.isEmpty(jsonObject.getString("djdate"))){
|
||||
throw new BaseSystemException("单据日期不能为空!请排查参数djdate");
|
||||
}
|
||||
logger.info("国子系统传递过来的发票号为:------>"+jsonObject.getString("fph"));
|
||||
if(StrUtil.isEmpty(jsonObject.getString("fph")) || "".equals(jsonObject.getString("fph"))){
|
||||
jsonObject.put("fph","");
|
||||
}else{
|
||||
jsonObject.put("fph",jsonObject.getString("fph")+"-");
|
||||
}
|
||||
logger.info("调整之后的发票号为:------>"+jsonObject.getString("fph"));
|
||||
if(StrUtil.isEmpty(jsonObject.getString("zy")) || "".equals(jsonObject.getString("zy"))){
|
||||
StringBuffer stringBuffer=new StringBuffer();
|
||||
if(StrUtil.isNotEmpty(jsonObject.getString("fph")) || !"".equals(jsonObject.getString("fph"))){
|
||||
stringBuffer.append(jsonObject.getString("fph"));
|
||||
}
|
||||
if(StrUtil.isNotEmpty(jsonObject.getString("bmmc")) || !"".equals(jsonObject.getString("bmmc"))){
|
||||
stringBuffer.append(jsonObject.getString("bmmc")+"-");
|
||||
}
|
||||
if(StrUtil.isNotEmpty(jsonObject.getString("zcmc")) || !"".equals(jsonObject.getString("zcmc"))){
|
||||
stringBuffer.append(jsonObject.getString("zcmc"));
|
||||
}
|
||||
jsonObject.put("zy",stringBuffer);
|
||||
}
|
||||
logger.info("主表摘要为:{}",jsonObject.getString("zy"));
|
||||
OerDjmlEntity oerDjmlEntity=new OerDjmlEntity();
|
||||
oerDjmlEntity.setGsdm(gsdm);
|
||||
oerDjmlEntity.setDjdate(jsonObject.getString("djdate"));
|
||||
oerDjmlEntity.setFph(nullConvert(jsonObject.getString("fph")));
|
||||
String maxDjbh = iOerDjmlDao.getMaxDjbgByGsdm(oerDjmlEntity);
|
||||
logger.info("获取到最大单据编号:------>"+maxDjbh);
|
||||
//查询最大单据ID mlid
|
||||
String maxMlId = iOerDjmlDao.getMaxMlIdByGsdm(oerDjmlEntity);
|
||||
logger.info("获取到最大单据ID MLID:------>"+maxMlId);
|
||||
logger.info("组装单据主表数据开始:------>");
|
||||
|
||||
OerDjmlEntity oerdjml = createMainData(jsonObject,maxDjbh,maxMlId);
|
||||
logger.info("保存主表信息:------>");
|
||||
iOerDjmlDao.save("OerDjmlEntity_insert",oerdjml);
|
||||
logger.info("保存完主表信息后,更新主表摘要:------>");
|
||||
OerDjmlEntity oerDjml = updateOerDjmlZy(jsonObject, maxMlId);
|
||||
logger.info("更新主表摘要开始----->");
|
||||
iOerDjmlDao.update("OerDjmlEntity_update",oerDjml);
|
||||
logger.info("组装单据报销明细开始:------>");
|
||||
List<OerDjnrEntity> oerDjnrEntityList = creatOerDjnrEntity(jsonObject,maxDjbh,maxMlId);
|
||||
logger.info("保存报销明细开始:------>");
|
||||
for(OerDjnrEntity djnrEntity : oerDjnrEntityList){
|
||||
if(djnrEntity.getZy()==null||("").equals(djnrEntity.getZy())){
|
||||
StringBuffer stringBuffer=new StringBuffer();
|
||||
if(StrUtil.isNotEmpty(jsonObject.getString("fph")) || !"".equals(jsonObject.getString("fph"))){
|
||||
stringBuffer.append(jsonObject.getString("fph"));
|
||||
}
|
||||
if(StrUtil.isNotEmpty(jsonObject.getString("bmmc")) || !"".equals(jsonObject.getString("bmmc"))){
|
||||
stringBuffer.append(jsonObject.getString("bmmc")+"-");
|
||||
}
|
||||
if(StrUtil.isNotEmpty(jsonObject.getString("zcmc")) || !"".equals(jsonObject.getString("zcmc"))){
|
||||
stringBuffer.append(jsonObject.getString("zcmc"));
|
||||
}
|
||||
djnrEntity.setZy(stringBuffer.toString());
|
||||
}
|
||||
logger.info("明细表摘要为:{}",djnrEntity.getZy());
|
||||
iOerDjnrDao.save("OerDjnrEntity_insert",djnrEntity);
|
||||
logger.info("保存完报销明细后,根据明细数据生成预算指标数据:------>");
|
||||
OerYszbEntity yszbEntity = createOerYszbEntity(djnrEntity,maxMlId);
|
||||
logger.info("保存预算指标开始:------>");
|
||||
iOerYszbDao.save("OerYszbEntity_insert",yszbEntity);
|
||||
logger.info("保存预算指标记录:------>");
|
||||
GbiZbsyrecEntity oeryszb= creteOerYszbEntity(jsonObject,djnrEntity);
|
||||
iGbiZbsyrecDao.save("GbiZbsyrecEntity_insert",oeryszb);
|
||||
}
|
||||
logger.info("组装单据结算方式明细开始:------>");
|
||||
List<OerDjjsfsEntity> oerDjjsfsEntityList = creatOerDjjsfsEntityList(jsonObject,maxDjbh,maxMlId);
|
||||
logger.info("保存结算方式明细开始:------>");
|
||||
for(OerDjjsfsEntity oerdjjsfs :oerDjjsfsEntityList){
|
||||
iOerDjjsfsDao.save("OerDjjsfsEntity_insert",oerdjjsfs);
|
||||
}
|
||||
//保存日志表PubAuditLog
|
||||
List<PubAuditLogEntity> pubAuditLogEntityList = createPubAuditLog(jsonObject, maxMlId);
|
||||
for (PubAuditLogEntity pubAuditLog : pubAuditLogEntityList) {
|
||||
iPubAuditLogDao.save("PubAuditLogEntity_insert",pubAuditLog);
|
||||
}
|
||||
//保存节点PUB_OBJ_FLOW
|
||||
PubObjFlowEntity pubObjFlowEntity = createPubObjFlow(jsonObject, maxMlId);
|
||||
iPubObjFlowDao.save("PubObjFlowEntity_insert",pubObjFlowEntity);
|
||||
return maxDjbh;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OerDjmlEntity queryOerDjmlEntity(OerDjmlEntity oerDjmlEntity) {
|
||||
OerDjmlEntity oerDjmlEntity1 = iOerDjmlDao.queryOerDjmlEntity(oerDjmlEntity);
|
||||
return oerDjmlEntity1;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存节点PUB_OBJ_FLOW
|
||||
* @param jsonObject
|
||||
* @param maxMlId
|
||||
*/
|
||||
public PubObjFlowEntity createPubObjFlow(JSONObject jsonObject, String maxMlId){
|
||||
PubObjFlowEntity pubObjFlowEntity = jsonObject.toJavaObject(PubObjFlowEntity.class);
|
||||
PubObjFlowEntity pubObjFlowEntityPofid=iPubObjFlowDao.query(pubObjFlowEntity, "PubObjFlowEntity_list_base");
|
||||
pubObjFlowEntity.setDjh(maxMlId);
|
||||
pubObjFlowEntity.setPofId(pubObjFlowEntityPofid.getPofId());
|
||||
pubObjFlowEntity.setModCode("OER");
|
||||
pubObjFlowEntity.setDjlx(jsonObject.getString("djlxId"));
|
||||
pubObjFlowEntity.setShrs(jsonObject.getString("crerdm"));
|
||||
pubObjFlowEntity.setShrmc(jsonObject.getString("crermc"));
|
||||
pubObjFlowEntity.setFlowcode("000006");
|
||||
pubObjFlowEntity.setAuditFlag("999");
|
||||
pubObjFlowEntity.setAuditAftFlag("-1");
|
||||
pubObjFlowEntity.setIsaudit("1");
|
||||
return pubObjFlowEntity;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增日志表PubAuditLog
|
||||
* @param jsonObject
|
||||
* @param maxMlId
|
||||
*/
|
||||
public List<PubAuditLogEntity> createPubAuditLog(JSONObject jsonObject,String maxMlId){
|
||||
List<PubAuditLogEntity> pubAuditLogEntityList=new ArrayList<>();
|
||||
//拼接送审参数
|
||||
PubAuditLogEntity pubAuditLogEntity = new PubAuditLogEntity();
|
||||
pubAuditLogEntity.setBillname("费用报销[向导式]");
|
||||
pubAuditLogEntity.setFlowname("暂时费用报销审批流");
|
||||
pubAuditLogEntity.setNodeseq("-9");
|
||||
pubAuditLogEntity.setNodename("送审");
|
||||
pubAuditLogEntity.setAuditorId("1");
|
||||
pubAuditLogEntity.setAuditor("系统管理员");
|
||||
pubAuditLogEntity.setAmt(jsonObject.getString("je"));
|
||||
pubAuditLogEntity.setRemark("国子系统送审成功");
|
||||
pubAuditLogEntity.setAtype("国子系统通过");
|
||||
pubAuditLogEntity.setBillId(maxMlId);
|
||||
pubAuditLogEntity.setModname("OER");
|
||||
pubAuditLogEntity.setFlowcode("000006");
|
||||
pubAuditLogEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||
pubAuditLogEntity.setKjnd(jsonObject.getString("kjnd"));
|
||||
pubAuditLogEntity.setServdatetime("1");
|
||||
pubAuditLogEntity.setAdatetime("1");
|
||||
//获取最大值logid
|
||||
PubAuditLogEntity pubAuditLogEntityLogid = iPubAuditLogDao.query(pubAuditLogEntity, "PubAuditLogEntity_list_base_max");
|
||||
pubAuditLogEntity.setLogId(pubAuditLogEntityLogid.getLogId());
|
||||
//获取最大值logseq
|
||||
PubAuditLogEntity pubAuditLogEntityLogseq=iPubAuditLogDao.query(pubAuditLogEntity,"PubAuditLogEntity_list_base_logseq");
|
||||
pubAuditLogEntity.setLogseq(pubAuditLogEntityLogseq.getLogseq());
|
||||
|
||||
/* //拼接审核参数
|
||||
PubAuditLogEntity pubAuditLogEntityTwo = new PubAuditLogEntity();
|
||||
pubAuditLogEntityTwo.setBillname("费用报销[向导式]");
|
||||
pubAuditLogEntityTwo.setFlowname("暂时费用报销审批流");
|
||||
pubAuditLogEntityTwo.setBizname("费用报销[向导式]");
|
||||
pubAuditLogEntityTwo.setNodeseq("999");
|
||||
pubAuditLogEntityTwo.setNodename("财务稽核");
|
||||
pubAuditLogEntityTwo.setAuditorId("1");
|
||||
pubAuditLogEntityTwo.setAuditor("系统管理员");
|
||||
pubAuditLogEntityTwo.setAmt(jsonObject.getString("je"));
|
||||
pubAuditLogEntityTwo.setRemark("国子系统审核通过");
|
||||
pubAuditLogEntityTwo.setAtype("通过");
|
||||
pubAuditLogEntityTwo.setBillId(maxMlId);
|
||||
pubAuditLogEntityTwo.setModname("OER");
|
||||
pubAuditLogEntityTwo.setFlowcode(jsonObject.getString("flowcode"));
|
||||
pubAuditLogEntityTwo.setGsdm(jsonObject.getString("gsdm"));
|
||||
pubAuditLogEntityTwo.setKjnd(jsonObject.getString("kjnd"));
|
||||
pubAuditLogEntityTwo.setServdatetime("1");
|
||||
pubAuditLogEntityTwo.setAdatetime("1");
|
||||
//获取最大值logid
|
||||
PubAuditLogEntity pubAuditLogEntityLogids = iPubAuditLogDao.query(pubAuditLogEntityTwo, "PubAuditLogEntity_list_base_max");
|
||||
pubAuditLogEntityTwo.setLogId(pubAuditLogEntityLogids.getLogId());
|
||||
//获取最大值logseq
|
||||
PubAuditLogEntity pubAuditLogEntityLogseqs=iPubAuditLogDao.query(pubAuditLogEntityTwo,"PubAuditLogEntity_list_base_logseq");
|
||||
pubAuditLogEntityTwo.setLogseq(pubAuditLogEntityLogseqs.getLogseq());
|
||||
pubAuditLogEntityList.add(pubAuditLogEntity);
|
||||
pubAuditLogEntityList.add(pubAuditLogEntityTwo);*/
|
||||
|
||||
pubAuditLogEntityList.add(pubAuditLogEntity);
|
||||
return pubAuditLogEntityList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新主表摘要内容
|
||||
* @param jsonObject
|
||||
* @return
|
||||
*/
|
||||
private OerDjmlEntity updateOerDjmlZy(JSONObject jsonObject,String maxMlId){
|
||||
OerDjmlEntity oerDjml=new OerDjmlEntity();
|
||||
oerDjml.setZy(jsonObject.getString("zy"));
|
||||
oerDjml.setGsdm(jsonObject.getString("gsdm"));
|
||||
oerDjml.setKjnd(jsonObject.getString("kjnd"));
|
||||
oerDjml.setDjlxId(jsonObject.getString("djlxId"));
|
||||
oerDjml.setMlId(maxMlId);
|
||||
return oerDjml;
|
||||
}
|
||||
|
||||
/*****
|
||||
* 根据预算指标,生成指标生成指标使用记录
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 16:43
|
||||
* @Param [djnrEntity]
|
||||
* @return com.hzya.frame.online.expense.insert.oerYszb.entity.oerYszbEntity
|
||||
**/
|
||||
private GbiZbsyrecEntity creteOerYszbEntity(JSONObject jsonObject,OerDjnrEntity djnrEntity) {
|
||||
GbiZbsyrecEntity yszbEntity = new GbiZbsyrecEntity();
|
||||
BeanUtil.copyProperties(djnrEntity,yszbEntity);
|
||||
yszbEntity.setModule(djnrEntity.getModule());
|
||||
yszbEntity.setDjlx(djnrEntity.getDjlxId());
|
||||
yszbEntity.setDjId(djnrEntity.getMlId());
|
||||
yszbEntity.setDjflh(djnrEntity.getDjflh());
|
||||
yszbEntity.setDjflmx(djnrEntity.getMlId());
|
||||
yszbEntity.setDjywrq(jsonObject.getString("djdate"));
|
||||
//yszbEntity.setDjzt("1");//审核中
|
||||
yszbEntity.setDjzt("2");//已审核
|
||||
yszbEntity.setJhId(djnrEntity.getZbId());
|
||||
yszbEntity.setDjje(djnrEntity.getJe());
|
||||
yszbEntity.setSl("0");
|
||||
yszbEntity.setDjzy(djnrEntity.getZy());
|
||||
yszbEntity.setSzfx("1");
|
||||
yszbEntity.setZblb("MXZB");
|
||||
yszbEntity.setJdzb("0");
|
||||
yszbEntity.setCzlx("0");
|
||||
yszbEntity.setZzbz("0");
|
||||
return yszbEntity;
|
||||
}
|
||||
|
||||
|
||||
/****
|
||||
* 组装结算方式集合
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 16:08
|
||||
* @param jsonObject 三方json数据, maxDjbh, maxMlId]
|
||||
* @return java.util.List<com.hzya.frame.online.expense.insert.oerDjjsfs.entity.oerDjjsfsEntity>
|
||||
**/
|
||||
private List<OerDjjsfsEntity> creatOerDjjsfsEntityList(JSONObject jsonObject, String maxDjbh, String maxMlId) {
|
||||
List<OerDjjsfsEntity> oerDjjsfsEntityList = null;
|
||||
JSONArray jsonArray = jsonObject.getJSONArray("oer_djjsfs_array");
|
||||
if(jsonArray.size() == 0){
|
||||
throw new BaseSystemException("报销单结算明细数据为空!请检查参数:oer_djjsfs_array");
|
||||
}else{
|
||||
oerDjjsfsEntityList = new ArrayList<>();
|
||||
for(Object object :jsonArray){
|
||||
String detailsStr = JSON.toJSONString(object);
|
||||
logger.info("当前明细行json数据:"+detailsStr);
|
||||
JSONObject details = JSON.parseObject(detailsStr);
|
||||
OerDjjsfsEntity djjsfsEntity = details.toJavaObject(OerDjjsfsEntity.class);
|
||||
djjsfsEntity.setMlId(maxMlId);
|
||||
djjsfsEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||
oerDjjsfsEntityList.add(djjsfsEntity);
|
||||
}
|
||||
|
||||
return oerDjjsfsEntityList;
|
||||
}
|
||||
}
|
||||
|
||||
/****
|
||||
* 根据报销明细生成预算指标数据
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 16:00
|
||||
* @param djnrEntity 报销明细数据, maxMlId 最大id
|
||||
* @return com.hzya.frame.online.expense.insert.oerYszb.entity.oerYszbEntity
|
||||
**/
|
||||
private OerYszbEntity createOerYszbEntity(OerDjnrEntity djnrEntity, String maxMlId) {
|
||||
OerYszbEntity oerYszbEntity = new OerYszbEntity();
|
||||
BeanUtil.copyProperties(djnrEntity,oerYszbEntity);
|
||||
oerYszbEntity.setDataId("0");
|
||||
oerYszbEntity.setZbdm("00000295");
|
||||
oerYszbEntity.setJhId("0");
|
||||
oerYszbEntity.setMlId(maxMlId);
|
||||
return oerYszbEntity;
|
||||
}
|
||||
|
||||
/*****
|
||||
* 组装报销明细数据
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 15:40
|
||||
* @param jsonObject 三方json对象, maxDjbh 主表最大编号, maxMlId 组表最大ID]
|
||||
* @return java.util.List<com.hzya.frame.online.expense.insert.oerDjnr.entity.oerDjnrEntity>
|
||||
**/
|
||||
private List<OerDjnrEntity> creatOerDjnrEntity(JSONObject jsonObject, String maxDjbh, String maxMlId) {
|
||||
List<OerDjnrEntity> djnrEntityList = null;
|
||||
JSONArray jsonArray = jsonObject.getJSONArray("oer_djnr_array");
|
||||
if(jsonArray.size() == 0){
|
||||
throw new BaseSystemException("报销单明细数据为空!请检查参数:oer_djnr_array");
|
||||
}else{
|
||||
djnrEntityList = new ArrayList<>();
|
||||
for(Object object :jsonArray){
|
||||
String detailsStr = JSON.toJSONString(object);
|
||||
logger.info("当前明细行json数据:"+detailsStr);
|
||||
JSONObject details = JSON.parseObject(detailsStr);
|
||||
/* //根据指标id查询指标信息
|
||||
GbiZbxmbEntity gbiZbxmbEntity=new GbiZbxmbEntity();
|
||||
gbiZbxmbEntity.setZbid(details.getString("zbid"));
|
||||
GbiZbxmbEntity gbiZbxmbEntitie = iGbiZbxmbDao.selectGbiZbxmb(gbiZbxmbEntity);
|
||||
details.put("fzx7dm",gbiZbxmbEntitie.getFz7dm());
|
||||
details.put("xmdm",gbiZbxmbEntitie.getXmdm());
|
||||
details.put("fzx6dm",gbiZbxmbEntitie.getFz6dm());
|
||||
details.put("bmmc",gbiZbxmbEntitie.getBmmc());
|
||||
details.put("xmmc",gbiZbxmbEntitie.getXmmc());
|
||||
details.put("fzx6mc",gbiZbxmbEntitie.getFz6mc());
|
||||
details.put("fzx7mc",gbiZbxmbEntitie.getFz7mc());
|
||||
details.put("bmdm",gbiZbxmbEntitie.getBmdm());*/
|
||||
OerDjnrEntity djnrEntity = details.toJavaObject(OerDjnrEntity.class);
|
||||
djnrEntity.setMlId(maxMlId);
|
||||
djnrEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||
djnrEntityList.add(djnrEntity);
|
||||
}
|
||||
|
||||
return djnrEntityList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/****
|
||||
* 组装主表数据
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 15:34
|
||||
* @param jsonObject 三方JSON对象, maxDjbh 最大单据号, maxMlId 最大id
|
||||
* @return com.hzya.frame.online.expense.insert.oerDjml.entity.oerDjmlEntity
|
||||
**/
|
||||
private OerDjmlEntity createMainData(JSONObject jsonObject, String maxDjbh, String maxMlId) {
|
||||
OerDjmlEntity oerDjmlEntity = jsonObject.toJavaObject(OerDjmlEntity.class);
|
||||
//审核中
|
||||
/*oerDjmlEntity.setDjbh(maxDjbh);
|
||||
oerDjmlEntity.setMlId(maxMlId);
|
||||
oerDjmlEntity.setZt("2");
|
||||
oerDjmlEntity.setFlowcode("000006");
|
||||
oerDjmlEntity.setCurshjd("-9");
|
||||
oerDjmlEntity.setNextshjd("999");
|
||||
oerDjmlEntity.setShrId("-1");*/
|
||||
//已审核
|
||||
oerDjmlEntity.setDjbh(maxDjbh);
|
||||
oerDjmlEntity.setMlId(maxMlId);
|
||||
oerDjmlEntity.setZt("3");
|
||||
oerDjmlEntity.setFlowcode("000006");
|
||||
oerDjmlEntity.setCurshjd("999");
|
||||
oerDjmlEntity.setNextshjd("-1");
|
||||
logger.info("主表数据组装完成:"+JSON.toJSONString(oerDjmlEntity));
|
||||
return oerDjmlEntity;
|
||||
}
|
||||
|
||||
public static String nullConvert(String str){
|
||||
if (null == str){
|
||||
return "";
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
/*****
|
||||
* @Content:测试data数据
|
||||
* @Author 👻👻👻👻👻👻👻👻 gjh
|
||||
* @Date 2023-06-29 15:09
|
||||
* @Param []
|
||||
* @return com.alibaba.fastjson.JSONObject
|
||||
**/
|
||||
private JSONObject createTestData( ) {
|
||||
JSONObject main = new JSONObject();
|
||||
//公司代码
|
||||
main.put("gsdm","001");
|
||||
//会计年度
|
||||
main.put("kjnd","2023");
|
||||
//单据类型ID默认 102
|
||||
main.put("djlxid","102");
|
||||
//zt 默认 1
|
||||
main.put("zt","1");
|
||||
//制单人代码
|
||||
main.put("crerdm","1");
|
||||
//制单人名称
|
||||
main.put("crermc","系统管理员");
|
||||
//制单日期 crerdate
|
||||
main.put("crerdate","20230616");
|
||||
//流程编码 flowcode 流程编码,默认空
|
||||
main.put("flowcode","");
|
||||
|
||||
//默认空
|
||||
main.put("curshjd","");
|
||||
//默认 -9
|
||||
main.put("nextshjd","-9");
|
||||
//默认 -1
|
||||
main.put("shrid","-1");
|
||||
//默认空
|
||||
main.put("shr","-1");
|
||||
//默认空
|
||||
main.put("shrq","-1");
|
||||
//结算方式默认空
|
||||
main.put("jsfs","");
|
||||
//单据编号 系统生成
|
||||
main.put("djbh","bxd202306160003");
|
||||
//单据日期
|
||||
main.put("djdate","20230616");
|
||||
//附件数 默认0
|
||||
main.put("fjs",0);
|
||||
//部门代码
|
||||
main.put("bmdm",30);
|
||||
//部门名称
|
||||
main.put("bmmc","学生处");
|
||||
//报销人代码
|
||||
main.put("grdm","2006001019");
|
||||
//报销人名称
|
||||
main.put("grmc","方烨枫");
|
||||
//联系电话
|
||||
main.put("tel","12345678910");
|
||||
//预借金额
|
||||
main.put("yjje",0);
|
||||
//退还金额
|
||||
main.put("thje",0);
|
||||
//补领金额
|
||||
main.put("blje",0);
|
||||
//报销金额
|
||||
main.put("je",0);
|
||||
//补领金额
|
||||
main.put("whje",0);
|
||||
//金额大写
|
||||
main.put("jedx","肆元壹角贰分");
|
||||
//摘要
|
||||
main.put("zy","测试单据");
|
||||
|
||||
//报销明细
|
||||
//oer_djnr
|
||||
//结算方式
|
||||
//oer_djjsfs
|
||||
//报销明细集合
|
||||
JSONArray oer_djnrArray = new JSONArray();
|
||||
|
||||
//报销明细行
|
||||
JSONObject djnr = new JSONObject();
|
||||
//序号
|
||||
djnr.put("xh","1");
|
||||
//主表ID,默认主表
|
||||
djnr.put("mlid","");
|
||||
//公司代码,默认主表
|
||||
djnr.put("gsdm","");
|
||||
//会计年度,默认主表
|
||||
djnr.put("kjnd","2023");
|
||||
//单据类型,默认主表
|
||||
djnr.put("djlxid","102");
|
||||
//待确认
|
||||
djnr.put("bnxid","148");
|
||||
//指标ID
|
||||
djnr.put("zbid","89");
|
||||
//摘要
|
||||
djnr.put("zy","测试使用,不做处理");
|
||||
//附件数,应该是不用的
|
||||
djnr.put("fjs","0");
|
||||
//金额
|
||||
djnr.put("je","4.12");
|
||||
//辅助项6代码
|
||||
djnr.put("fzx6dm","509040101");
|
||||
//辅助项6名称
|
||||
djnr.put("fzx6mc","行政)办公耗材");
|
||||
//经费部门代码
|
||||
djnr.put("bmdm","30");
|
||||
//经费部门名称
|
||||
djnr.put("bmmc","学生处");
|
||||
//项目代码
|
||||
djnr.put("xmdm","00");
|
||||
//项目名称
|
||||
djnr.put("xmmc","部门日常经费");
|
||||
//经费类型代码
|
||||
djnr.put("fzx7dm","702");
|
||||
//经费名称名称
|
||||
djnr.put("fzx7mc","自筹资金");
|
||||
//科目代码
|
||||
djnr.put("kmdm","10101");
|
||||
//科目名称
|
||||
djnr.put("kmmc","人民币");
|
||||
//待确认
|
||||
djnr.put("kzzbid","");
|
||||
|
||||
|
||||
oer_djnrArray.add(djnr);
|
||||
//添加报销明细到集合
|
||||
main.put("oer_djnr_array",oer_djnrArray);
|
||||
|
||||
//结算方式对象
|
||||
JSONObject jsfs = new JSONObject();
|
||||
|
||||
//序号
|
||||
jsfs.put("xh","1");
|
||||
//主表ID,默认主表
|
||||
jsfs.put("mlid","2023060163");
|
||||
//公司代码,默认主表
|
||||
jsfs.put("gsdm","2023060163");
|
||||
//会计年度,默认主表
|
||||
jsfs.put("kjnd","2023");
|
||||
//单据类型,默认主表
|
||||
jsfs.put("djlxid","102");
|
||||
//结算方式代码
|
||||
jsfs.put("jsfsdm","01");
|
||||
//结算方式名称
|
||||
jsfs.put("jsfsdm","现金");
|
||||
//科目代码
|
||||
jsfs.put("kmdm","10101");
|
||||
//科目名称
|
||||
jsfs.put("kmmc","人民币");
|
||||
//收款人
|
||||
jsfs.put("skr","001[中石化公司]");
|
||||
//开户银行
|
||||
jsfs.put("khyh","中国人民银行长沙中心支行营业部");
|
||||
//银行账户
|
||||
jsfs.put("yhzh","");
|
||||
//公务卡号
|
||||
jsfs.put("gwkh","");
|
||||
//公务卡支付时间
|
||||
jsfs.put("gwkxfsj","");
|
||||
//支票号
|
||||
jsfs.put("zph","");
|
||||
//金额
|
||||
jsfs.put("je","4.12");
|
||||
//省份
|
||||
jsfs.put("province","43[湖南省]");
|
||||
//城市
|
||||
jsfs.put("city","5510[长沙市]");
|
||||
//银行
|
||||
jsfs.put("yh","001[中国人民银行]");
|
||||
//银行行号
|
||||
jsfs.put("yhhh","001551068617[中国人民银行长沙中心支行营业部]");
|
||||
//负责人
|
||||
jsfs.put("rytype","");
|
||||
|
||||
//报销人代码
|
||||
jsfs.put("grdm","");
|
||||
//用途
|
||||
jsfs.put("yt","用途");
|
||||
//收款人编制
|
||||
jsfs.put("skrbz","");
|
||||
//结算方式集合
|
||||
JSONArray oer_djjsfs_array = new JSONArray();
|
||||
oer_djjsfs_array.add(jsfs);
|
||||
main.put("oer_djjsfs_array",oer_djjsfs_array);
|
||||
return main;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjnr.dao;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:57
|
||||
*/
|
||||
public interface IOerDjnrDao extends IBaseDao<OerDjnrEntity,String> {
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjnr.dao.impl;
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjnr.dao.IOerDjnrDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:57
|
||||
*/
|
||||
@Repository(value = "oerDjnrDao")
|
||||
public class OerDjnrDaoImpl extends MybatisGenericDao<OerDjnrEntity,String> implements IOerDjnrDao {
|
||||
}
|
|
@ -0,0 +1,222 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjnr.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销明细栏
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/16 21:58
|
||||
*/
|
||||
|
||||
public class OerDjnrEntity extends BaseEntity {
|
||||
private String xh;//序号
|
||||
private String mlId;
|
||||
private String module;
|
||||
private String djflh;
|
||||
private String gsdm;//公司代码
|
||||
private String kjnd;//会计年度
|
||||
private String djlxId;
|
||||
private String bnxId;
|
||||
private String zbId;//预算指标id
|
||||
private String zy;//摘要
|
||||
private String fjs;//附件数
|
||||
private String je;//金额
|
||||
private String fzx6dm;//支出项目代码
|
||||
private String fzx6mc;//支出项目名称
|
||||
private String bmdm;//部门代码
|
||||
private String bmmc;//部门名称
|
||||
private String xmdm;//项目代码
|
||||
private String xmmc;//项目名称
|
||||
private String fzx7dm;//资金来源代码
|
||||
private String fzx7mc;//资金来源名称
|
||||
private String kmdm;//支出科目代码
|
||||
private String kmmc;//支出科目名称
|
||||
private String kzzbId;
|
||||
|
||||
public String getXh() {
|
||||
return xh;
|
||||
}
|
||||
|
||||
public void setXh(String xh) {
|
||||
this.xh = xh;
|
||||
}
|
||||
|
||||
public String getMlId() {
|
||||
return mlId;
|
||||
}
|
||||
|
||||
public void setMlId(String mlId) {
|
||||
this.mlId = mlId;
|
||||
}
|
||||
|
||||
public String getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(String module) {
|
||||
this.module = module;
|
||||
}
|
||||
|
||||
public String getDjflh() {
|
||||
return djflh;
|
||||
}
|
||||
|
||||
public void setDjflh(String djflh) {
|
||||
this.djflh = djflh;
|
||||
}
|
||||
|
||||
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 getDjlxId() {
|
||||
return djlxId;
|
||||
}
|
||||
|
||||
public void setDjlxId(String djlxId) {
|
||||
this.djlxId = djlxId;
|
||||
}
|
||||
|
||||
public String getBnxId() {
|
||||
return bnxId;
|
||||
}
|
||||
|
||||
public void setBnxId(String bnxId) {
|
||||
this.bnxId = bnxId;
|
||||
}
|
||||
|
||||
public String getZbId() {
|
||||
return zbId;
|
||||
}
|
||||
|
||||
public void setZbId(String zbId) {
|
||||
this.zbId = zbId;
|
||||
}
|
||||
|
||||
public String getZy() {
|
||||
return zy;
|
||||
}
|
||||
|
||||
public void setZy(String zy) {
|
||||
this.zy = zy;
|
||||
}
|
||||
|
||||
public String getFjs() {
|
||||
return fjs;
|
||||
}
|
||||
|
||||
public void setFjs(String fjs) {
|
||||
this.fjs = fjs;
|
||||
}
|
||||
|
||||
public String getJe() {
|
||||
return je;
|
||||
}
|
||||
|
||||
public void setJe(String je) {
|
||||
this.je = je;
|
||||
}
|
||||
|
||||
public String getFzx6dm() {
|
||||
return fzx6dm;
|
||||
}
|
||||
|
||||
public void setFzx6dm(String fzx6dm) {
|
||||
this.fzx6dm = fzx6dm;
|
||||
}
|
||||
|
||||
public String getFzx6mc() {
|
||||
return fzx6mc;
|
||||
}
|
||||
|
||||
public void setFzx6mc(String fzx6mc) {
|
||||
this.fzx6mc = fzx6mc;
|
||||
}
|
||||
|
||||
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 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 getFzx7dm() {
|
||||
return fzx7dm;
|
||||
}
|
||||
|
||||
public void setFzx7dm(String fzx7dm) {
|
||||
this.fzx7dm = fzx7dm;
|
||||
}
|
||||
|
||||
public String getFzx7mc() {
|
||||
return fzx7mc;
|
||||
}
|
||||
|
||||
public void setFzx7mc(String fzx7mc) {
|
||||
this.fzx7mc = fzx7mc;
|
||||
}
|
||||
|
||||
public String getKmdm() {
|
||||
return kmdm;
|
||||
}
|
||||
|
||||
public void setKmdm(String kmdm) {
|
||||
this.kmdm = kmdm;
|
||||
}
|
||||
|
||||
public String getKmmc() {
|
||||
return kmmc;
|
||||
}
|
||||
|
||||
public void setKmmc(String kmmc) {
|
||||
this.kmmc = kmmc;
|
||||
}
|
||||
|
||||
public String getKzzbId() {
|
||||
return kzzbId;
|
||||
}
|
||||
|
||||
public void setKzzbId(String kzzbId) {
|
||||
this.kzzbId = kzzbId;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.oerdjnr.dao.impl.OerDjnrDaoImpl">
|
||||
<resultMap id="get-OerDjnrEntity-result" type="com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity">
|
||||
<result property="mlId" column="mlId" />
|
||||
<result property="djlxId" column="djlxId" />
|
||||
<result property="gsdm" column="gsdm" />
|
||||
<result property="kjnd" column="kjnd" />
|
||||
<result property="bnxId" column="bnxId" />
|
||||
<result property="fjs" column="fjs"/>
|
||||
<result property="xh" column="xh" />
|
||||
<result property="fzx6dm" column="fzx6dm" />
|
||||
<result property="zbId" column="zbId" />
|
||||
<result property="fzx6mc" column="fzx6mc" />
|
||||
<result property="kmdm" column="kmdm" />
|
||||
<result property="kmmc" column="kmmc" />
|
||||
<result property="je" column="je" />
|
||||
<result property="zy" column="zy" />
|
||||
<result property="bmdm" column="bmdm" />
|
||||
<result property="bmmc" column="bmmc" />
|
||||
<result property="xmdm" column="xmdm" />
|
||||
<result property="xmmc" column="xmmc" />
|
||||
<result property="fzx7dm" column="fzx7dm" />
|
||||
<result property="fzx7mc" column="fzx7mc" />
|
||||
<result property="kzzbId" column="kzzbId" />
|
||||
<result property="module" column="module" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="OerDjnrEntity_Base_Column_List">
|
||||
MLID,DJLXID,GSDM,KJND,BNXID
|
||||
</sql>
|
||||
<insert id="OerDjnrEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity">
|
||||
insert into OER_DJNR(
|
||||
<if test="mlId != null and mlId !='' "> MLID, </if>
|
||||
<if test="djlxId != null and djlxId !='' "> DJLXID, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> KJND, </if>
|
||||
<if test="bnxId != null and bnxId !='' "> BNXID, </if>
|
||||
<if test="xh != null and xh !=''"> XH, </if>
|
||||
<if test="zbId != null and zbId !='' "> ZBID, </if>
|
||||
<if test="kmdm != null and kmdm !='' "> KMDM, </if>
|
||||
<if test="kmmc != null and kmmc !='' "> KMMC,</if>
|
||||
<if test="je != null and je !='' ">JE, </if>
|
||||
<if test="zy != null and zy !='' "> ZY,</if>
|
||||
<if test="fjs != null and fjs !=''">FJS, </if>
|
||||
<if test="fzx6dm != null and fzx6dm !='' "> FZX6DM, </if>
|
||||
<if test="fzx6mc != null and fzx6mc !='' ">FZX6MC, </if>
|
||||
<if test="bmdm != null and bmdm !='' "> BMDM, </if>
|
||||
<if test="bmmc != null and bmmc !='' "> BMMC, </if>
|
||||
<if test="xmdm != null and xmdm !='' "> XMDM, </if>
|
||||
<if test="xmmc != null and xmmc !='' "> XMMC,</if>
|
||||
<if test="fzx7dm != null and fzx7dm !='' "> FZX7DM, </if>
|
||||
<if test="fzx7mc != null and fzx7mc !='' "> FZX7MC,</if>
|
||||
<if test="kzzbId != null and kzzbId !='' "> KZZBID, </if>
|
||||
<if test="gsdm != null and gsdm !='' "> GSDM </if>
|
||||
)
|
||||
values (
|
||||
<if test="mlId != null and mlId !='' "> #{mlId}, </if>
|
||||
<if test="djlxId != null and djlxId !='' "> #{djlxId}, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> #{kjnd}, </if>
|
||||
<if test="bnxId != null and bnxId !='' "> #{bnxId}, </if>
|
||||
<if test="xh != null and xh !=''"> #{xh}, </if>
|
||||
<if test="zbId != null and zbId !='' "> #{zbId}, </if>
|
||||
<if test="kmdm != null and kmdm !='' "> #{kmdm}, </if>
|
||||
<if test="kmmc != null and kmmc !='' "> #{kmmc},</if>
|
||||
<if test="je != null and je !='' "> #{je}, </if>
|
||||
<if test="zy != null and zy !='' "> #{zy},</if>
|
||||
<if test="fjs != null and fjs !=''"> #{fjs}, </if>
|
||||
<if test="fzx6dm != null and fzx6dm !='' "> #{fzx6dm}, </if>
|
||||
<if test="fzx6mc != null and fzx6mc !='' "> #{fzx6mc}, </if>
|
||||
<if test="bmdm != null and bmdm !='' "> #{bmdm}, </if>
|
||||
<if test="bmmc != null and bmmc !='' "> #{bmmc}, </if>
|
||||
<if test="xmdm != null and xmdm !='' "> #{xmdm}, </if>
|
||||
<if test="xmmc != null and xmmc !='' "> #{xmmc},</if>
|
||||
<if test="fzx7dm != null and fzx7dm !='' "> #{fzx7dm}, </if>
|
||||
<if test="fzx7mc != null and fzx7mc !='' "> #{fzx7mc},</if>
|
||||
<if test="kzzbId != null and kzzbId !='' "> #{kzzbId}, </if>
|
||||
<if test="gsdm != null and gsdm !='' "> #{gsdm} </if>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!--删除 用于单据删除时使用-->
|
||||
<delete id="OerDjnrEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.oerdjnr.entity.OerDjnrEntity">
|
||||
DELETE
|
||||
FROM
|
||||
oer_djnr
|
||||
WHERE
|
||||
GSDM = #{gsdm}
|
||||
AND KJND = #{kjnd}
|
||||
AND DJLXID = #{djlxId}
|
||||
AND MLID = #{mlId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,11 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjnr.service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销明细栏
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:28
|
||||
*/
|
||||
public interface IOerDjnrService {
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oerdjnr.service.impl;
|
||||
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjnr.service.IOerDjnrService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:费用报销明细栏
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:31
|
||||
*/
|
||||
@Service(value = "oerDjnrService")
|
||||
public class OerDjnrServiceImpl implements IOerDjnrService {
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oeryszb.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:59
|
||||
*/
|
||||
public interface IOerYszbDao extends IBaseDao<OerYszbEntity,String> {
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oeryszb.dao.impl;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oeryszb.dao.IOerYszbDao;
|
||||
import com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:59
|
||||
*/
|
||||
@Repository(value = "oerYszbDao")
|
||||
public class OerYszbDaoImpl extends MybatisGenericDao<OerYszbEntity,String> implements IOerYszbDao {
|
||||
}
|
|
@ -0,0 +1,150 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oeryszb.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/16 22:02
|
||||
*/
|
||||
|
||||
public class OerYszbEntity extends BaseEntity {
|
||||
private String mlId;
|
||||
private String djlxId;
|
||||
private String gsdm;//公司代码
|
||||
private String kjnd;//会计年度
|
||||
private String bnxId;
|
||||
private String dataId;
|
||||
private String xh;
|
||||
private String zbdm;
|
||||
private String zbId;//指标id
|
||||
private String jhId;//计划id
|
||||
private String kzzbId;
|
||||
private String kmdm;//支出科目代码
|
||||
private String kmmc;//支出科目名称
|
||||
private String je;//金额
|
||||
private String zy;//摘要
|
||||
|
||||
public String getMlId() {
|
||||
return mlId;
|
||||
}
|
||||
|
||||
public void setMlId(String mlId) {
|
||||
this.mlId = mlId;
|
||||
}
|
||||
|
||||
public String getDjlxId() {
|
||||
return djlxId;
|
||||
}
|
||||
|
||||
public void setDjlxId(String djlxId) {
|
||||
this.djlxId = djlxId;
|
||||
}
|
||||
|
||||
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 getBnxId() {
|
||||
return bnxId;
|
||||
}
|
||||
|
||||
public void setBnxId(String bnxId) {
|
||||
this.bnxId = bnxId;
|
||||
}
|
||||
|
||||
public String getDataId() {
|
||||
return dataId;
|
||||
}
|
||||
|
||||
public void setDataId(String dataId) {
|
||||
this.dataId = dataId;
|
||||
}
|
||||
|
||||
public String getXh() {
|
||||
return xh;
|
||||
}
|
||||
|
||||
public void setXh(String xh) {
|
||||
this.xh = xh;
|
||||
}
|
||||
|
||||
public String getZbdm() {
|
||||
return zbdm;
|
||||
}
|
||||
|
||||
public void setZbdm(String zbdm) {
|
||||
this.zbdm = zbdm;
|
||||
}
|
||||
|
||||
public String getZbId() {
|
||||
return zbId;
|
||||
}
|
||||
|
||||
public void setZbId(String zbId) {
|
||||
this.zbId = zbId;
|
||||
}
|
||||
|
||||
public String getJhId() {
|
||||
return jhId;
|
||||
}
|
||||
|
||||
public void setJhId(String jhId) {
|
||||
this.jhId = jhId;
|
||||
}
|
||||
|
||||
public String getKzzbId() {
|
||||
return kzzbId;
|
||||
}
|
||||
|
||||
public void setKzzbId(String kzzbId) {
|
||||
this.kzzbId = kzzbId;
|
||||
}
|
||||
|
||||
public String getKmdm() {
|
||||
return kmdm;
|
||||
}
|
||||
|
||||
public void setKmdm(String kmdm) {
|
||||
this.kmdm = kmdm;
|
||||
}
|
||||
|
||||
public String getKmmc() {
|
||||
return kmmc;
|
||||
}
|
||||
|
||||
public void setKmmc(String kmmc) {
|
||||
this.kmmc = kmmc;
|
||||
}
|
||||
|
||||
public String getJe() {
|
||||
return je;
|
||||
}
|
||||
|
||||
public void setJe(String je) {
|
||||
this.je = je;
|
||||
}
|
||||
|
||||
public String getZy() {
|
||||
return zy;
|
||||
}
|
||||
|
||||
public void setZy(String zy) {
|
||||
this.zy = zy;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.oeryszb.dao.impl.OerYszbDaoImpl">
|
||||
<resultMap id="get-OerYszbEntity-result" type="com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity">
|
||||
<result property="mlId" column="mlId" />
|
||||
<result property="djlxId" column="djlxId" />
|
||||
<result property="gsdm" column="gsdm" />
|
||||
<result property="kjnd" column="kjnd" />
|
||||
<result property="bnxId" column="bnxId" />
|
||||
<!--<result property="DataID" column="DataID"/>-->
|
||||
<result property="xh" column="xh" />
|
||||
<result property="zbdm" column="zbdm" />
|
||||
<result property="zbId" column="zbId" />
|
||||
<result property="jhId" column="jhId" />
|
||||
<result property="kzzbId" column="kzzbId" />
|
||||
<result property="kmdm" column="kmdm" />
|
||||
<result property="kmmc" column="kmmc" />
|
||||
<result property="je" column="je" />
|
||||
<result property="zy" column="zy" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="OerYszbEntity_Base_Column_List">
|
||||
MLID,DJLXID,GSDM,KJND,BNXID
|
||||
</sql>
|
||||
<insert id="OerYszbEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity">
|
||||
insert into OER_YSZB(
|
||||
<if test="mlId != null and mlId !='' "> MLID, </if>
|
||||
<if test="djlxId != null and djlxId !='' "> DJLXID, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> KJND, </if>
|
||||
<if test="bnxId != null and bnxId !='' "> BNXID, </if>
|
||||
<if test="dataId != null and dataId !='' "> DataID, </if>
|
||||
<if test="xh != null and xh !=''"> XH, </if>
|
||||
<if test="zbdm != null and zbdm !='' "> ZBDM, </if>
|
||||
<if test="zbId != null and zbId !='' "> ZBID, </if>
|
||||
<if test="jhId != null and jhId !='' "> JHID, </if>
|
||||
<if test="kzzbId != null and kzzbId !='' "> KZZBID, </if>
|
||||
<if test="kmdm != null and kmdm !='' "> KMDM, </if>
|
||||
<if test="kmmc != null and kmmc !='' "> KMMC,</if>
|
||||
<if test="je != null and je !='' "> JE, </if>
|
||||
<if test="zy != null and zy !='' ">ZY,</if>
|
||||
<if test="gsdm != null and gsdm !='' "> GSDM </if>
|
||||
)
|
||||
values (
|
||||
<if test="mlId != null and mlId !='' "> #{mlId}, </if>
|
||||
<if test="djlxId != null and djlxId !='' "> #{djlxId}, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> #{kjnd}, </if>
|
||||
<if test="bnxId != null and bnxId !='' "> #{bnxId}, </if>
|
||||
<if test="dataId != null and dataId !='' "> #{dataId}, </if>
|
||||
<if test="xh != null and xh !=''"> #{xh}, </if>
|
||||
<if test="zbdm != null and zbdm !='' "> #{zbdm}, </if>
|
||||
<if test="zbId != null and zbId !='' "> #{zbId}, </if>
|
||||
<if test="jhId != null and jhId !='' "> #{jhId}, </if>
|
||||
<if test="kzzbId != null and kzzbId !='' "> #{kzzbId}, </if>
|
||||
<if test="kmdm != null and kmdm !='' "> #{kmdm}, </if>
|
||||
<if test="kmmc != null and kmmc !='' "> #{kmmc},</if>
|
||||
<if test="je != null and je !='' "> #{je}, </if>
|
||||
<if test="zy != null and zy !='' "> #{zy},</if>
|
||||
<if test="gsdm != null and gsdm !='' "> #{gsdm} </if>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<delete id="OerYszbEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.oeryszb.entity.OerYszbEntity">
|
||||
DELETE
|
||||
FROM
|
||||
oer_yszb
|
||||
WHERE
|
||||
GSDM = #{gsdm}
|
||||
AND KJND = #{kjnd}
|
||||
AND MLID = #{mlId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,11 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oeryszb.service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:28
|
||||
*/
|
||||
public interface IOerYszbService {
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.oeryszb.service.impl;
|
||||
|
||||
import com.hzya.frame.grpU8.nxproof.oeryszb.service.IOerYszbService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:32
|
||||
*/
|
||||
@Service(value = "oerYszbService")
|
||||
public class OerYszbServiceImpl implements IOerYszbService {
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubauditlog.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:59
|
||||
*/
|
||||
public interface IPubAuditLogDao extends IBaseDao<PubAuditLogEntity,String> {
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubauditlog.dao.impl;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubauditlog.dao.IPubAuditLogDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:59
|
||||
*/
|
||||
@Repository(value = "pubAuditLogDao")
|
||||
public class PubAuditLogDaoImpl extends MybatisGenericDao<PubAuditLogEntity,String> implements IPubAuditLogDao {
|
||||
}
|
|
@ -0,0 +1,195 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubauditlog.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/16 22:02
|
||||
*/
|
||||
|
||||
public class PubAuditLogEntity extends BaseEntity {
|
||||
private String billId;
|
||||
private String gsdm;//公司代码
|
||||
private String kjnd;//会计年度
|
||||
private String logId;
|
||||
private String billname;
|
||||
private String flowcode;
|
||||
private String flowname;
|
||||
private String modname;
|
||||
private String bizname;
|
||||
private String nodename;
|
||||
private String nodeseq;
|
||||
private String auditorId;
|
||||
private String auditor;
|
||||
private String adatetime;
|
||||
private String remark;
|
||||
private String atype;
|
||||
private String amt;
|
||||
private String logseq;
|
||||
private String servdatetime;
|
||||
private String computername;
|
||||
|
||||
public String getBillId() {
|
||||
return billId;
|
||||
}
|
||||
|
||||
public void setBillId(String billId) {
|
||||
this.billId = billId;
|
||||
}
|
||||
|
||||
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 getLogId() {
|
||||
return logId;
|
||||
}
|
||||
|
||||
public void setLogId(String logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public String getBillname() {
|
||||
return billname;
|
||||
}
|
||||
|
||||
public void setBillname(String billname) {
|
||||
this.billname = billname;
|
||||
}
|
||||
|
||||
public String getFlowcode() {
|
||||
return flowcode;
|
||||
}
|
||||
|
||||
public void setFlowcode(String flowcode) {
|
||||
this.flowcode = flowcode;
|
||||
}
|
||||
|
||||
public String getFlowname() {
|
||||
return flowname;
|
||||
}
|
||||
|
||||
public void setFlowname(String flowname) {
|
||||
this.flowname = flowname;
|
||||
}
|
||||
|
||||
public String getModname() {
|
||||
return modname;
|
||||
}
|
||||
|
||||
public void setModname(String modname) {
|
||||
this.modname = modname;
|
||||
}
|
||||
|
||||
public String getBizname() {
|
||||
return bizname;
|
||||
}
|
||||
|
||||
public void setBizname(String bizname) {
|
||||
this.bizname = bizname;
|
||||
}
|
||||
|
||||
public String getNodename() {
|
||||
return nodename;
|
||||
}
|
||||
|
||||
public void setNodename(String nodename) {
|
||||
this.nodename = nodename;
|
||||
}
|
||||
|
||||
public String getNodeseq() {
|
||||
return nodeseq;
|
||||
}
|
||||
|
||||
public void setNodeseq(String nodeseq) {
|
||||
this.nodeseq = nodeseq;
|
||||
}
|
||||
|
||||
public String getAuditorId() {
|
||||
return auditorId;
|
||||
}
|
||||
|
||||
public void setAuditorId(String auditorId) {
|
||||
this.auditorId = auditorId;
|
||||
}
|
||||
|
||||
public String getAuditor() {
|
||||
return auditor;
|
||||
}
|
||||
|
||||
public void setAuditor(String auditor) {
|
||||
this.auditor = auditor;
|
||||
}
|
||||
|
||||
public String getAdatetime() {
|
||||
return adatetime;
|
||||
}
|
||||
|
||||
public void setAdatetime(String adatetime) {
|
||||
this.adatetime = adatetime;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getAtype() {
|
||||
return atype;
|
||||
}
|
||||
|
||||
public void setAtype(String atype) {
|
||||
this.atype = atype;
|
||||
}
|
||||
|
||||
public String getAmt() {
|
||||
return amt;
|
||||
}
|
||||
|
||||
public void setAmt(String amt) {
|
||||
this.amt = amt;
|
||||
}
|
||||
|
||||
public String getLogseq() {
|
||||
return logseq;
|
||||
}
|
||||
|
||||
public void setLogseq(String logseq) {
|
||||
this.logseq = logseq;
|
||||
}
|
||||
|
||||
public String getServdatetime() {
|
||||
return servdatetime;
|
||||
}
|
||||
|
||||
public void setServdatetime(String servdatetime) {
|
||||
this.servdatetime = servdatetime;
|
||||
}
|
||||
|
||||
public String getComputername() {
|
||||
return computername;
|
||||
}
|
||||
|
||||
public void setComputername(String computername) {
|
||||
this.computername = computername;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.pubauditlog.dao.impl.PubAuditLogDaoImpl">
|
||||
<resultMap id="get-PubAuditLogEntity-result" type="com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity">
|
||||
<result property="billId" column="billId" />
|
||||
<result property="gsdm" column="gsdm" />
|
||||
<result property="kjnd" column="kjnd" />
|
||||
<result property="logId" column="logId" />
|
||||
<result property="billname" column="billname" />
|
||||
<result property="flowcode" column="flowcode" />
|
||||
<result property="flowname" column="flowname" />
|
||||
<result property="modname" column="modname" />
|
||||
<result property="bizname" column="bizname" />
|
||||
<result property="nodename" column="nodename" />
|
||||
<result property="nodeseq" column="nodeseq" />
|
||||
<result property="auditorId" column="auditorId" />
|
||||
<result property="auditor" column="auditor" />
|
||||
<result property="adatetime" column="adatetime" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="atype" column="atype" />
|
||||
<result property="amt" column="amt" />
|
||||
<result property="servdatetime" column="servdatetime" />
|
||||
<result property="computername" column="computername" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="PubAuditLogEntity_Base_Column_List">
|
||||
GSDM,KJN
|
||||
</sql>
|
||||
|
||||
<!--查询logId最大值+1-->
|
||||
<select id="PubAuditLogEntity_list_base_max" resultMap="get-PubAuditLogEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity">
|
||||
select isnull(max(logid)+1,1) as logId from PUBAUDITLOG WHERE gsdm = #{gsdm} AND kjnd = #{kjnd}
|
||||
</select>
|
||||
<!--查询logseq最大值+1-->
|
||||
<select id="PubAuditLogEntity_list_base_logseq" resultMap="get-PubAuditLogEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity">
|
||||
select isnull(max(logseq)+1,1) as logseq from PUBAUDITLOG WHERE gsdm = #{gsdm} AND kjnd = #{kjnd}
|
||||
</select>
|
||||
|
||||
|
||||
<!--保存 单据保存时使用 直接送审和已审核-->
|
||||
<insert id="PubAuditLogEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity">
|
||||
insert into PubAuditLog(
|
||||
<if test="billId != null and billId !='' "> BillID, </if>
|
||||
<if test="logId != null and logId !='' "> LOGID, </if>
|
||||
<if test="billname != null and billname !='' "> BILLNAME, </if>
|
||||
<if test="flowcode != null and flowcode !='' "> FLOWCODE, </if>
|
||||
<if test="flowname != null and flowname !='' "> FLOWNAME, </if>
|
||||
<if test="modname != null and modname !='' "> MODNAME, </if>
|
||||
<if test="bizname != null and bizname !='' "> BIZNAME, </if>
|
||||
<if test="nodename != null and nodename !='' "> NODENAME, </if>
|
||||
<if test="nodeseq != null and nodeseq !='' "> NODESEQ, </if>
|
||||
<if test="auditorId != null and auditorId !='' "> AUDITORID, </if>
|
||||
<if test="auditor != null and auditor !='' "> AUDITOR, </if>
|
||||
<if test="adatetime != null and adatetime !='' "> ADATETIME, </if>
|
||||
<if test="remark != null and remark !='' "> REMARK, </if>
|
||||
<if test="atype != null and atype !='' "> ATYPE, </if>
|
||||
<if test="amt != null and amt !='' "> AMT, </if>
|
||||
<if test="servdatetime != null and servdatetime !='' "> ServDateTime, </if>
|
||||
<if test="computername != null and computername !='' "> ComputerName, </if>
|
||||
<if test="gsdm != null and gsdm !='' "> GSDM, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> KJND </if>
|
||||
)
|
||||
values (
|
||||
<if test="billId != null and billId !='' "> #{billId}, </if>
|
||||
<if test="logId != null and logId !='' "> #{logId}, </if>
|
||||
<if test="billname != null and billname !='' "> #{billname}, </if>
|
||||
<if test="flowcode != null and flowcode !='' "> #{flowcode}, </if>
|
||||
<if test="flowname != null and flowname !='' "> #{flowname}, </if>
|
||||
<if test="modname != null and modname !='' "> #{modname}, </if>
|
||||
<if test="bizname != null and bizname !='' "> #{bizname}, </if>
|
||||
<if test="nodename != null and nodename !='' "> #{nodename}, </if>
|
||||
<if test="nodeseq != null and nodeseq !='' "> #{nodeseq}, </if>
|
||||
<if test="auditorId != null and auditorId !='' "> #{auditorId}, </if>
|
||||
<if test="auditor != null and auditor !='' "> #{auditor}, </if>
|
||||
<if test="adatetime != null and adatetime !='' "> replace(replace(replace(CONVERT (VARCHAR, getdate(), 120),'-',''),':',''),' ',''), </if>
|
||||
<if test="remark != null and remark !='' "> #{remark}, </if>
|
||||
<if test="atype != null and atype !='' "> #{atype}, </if>
|
||||
<if test="amt != null and amt !='' "> #{amt}, </if>
|
||||
<if test="servdatetime != null and servdatetime !='' "> CONVERT (VARCHAR, getdate(), 120), </if>
|
||||
<if test="computername != null and computername !='' "> #{computername}, </if>
|
||||
<if test="gsdm != null and gsdm !='' "> #{gsdm}, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> #{kjnd} </if>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!--删除 单据删除时使用-->
|
||||
<delete id="PubAuditLogEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.pubauditlog.entity.PubAuditLogEntity">
|
||||
DELETE
|
||||
FROM
|
||||
PubAuditLog
|
||||
WHERE
|
||||
GSDM = #{gsdm}
|
||||
AND KJND = #{kjnd}
|
||||
AND BillID = #{billId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,11 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubauditlog.service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:28
|
||||
*/
|
||||
public interface IPubAuditLogService {
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubauditlog.service.impl;
|
||||
|
||||
import com.hzya.frame.grpU8.nxproof.pubauditlog.service.IPubAuditLogService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:32
|
||||
*/
|
||||
@Service(value = "pubAuditLogService")
|
||||
public class PubAuditLogServiceImpl implements IPubAuditLogService {
|
||||
}
|
|
@ -0,0 +1,92 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubbmxx.dao;
|
||||
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (pubbmxx: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:48:44
|
||||
*/
|
||||
public interface ISenderPubbmxxDao extends IBaseDao<SenderPubbmxxEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询部门信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderPubbmxxEntity> querySenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存部门信息到日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 15:26
|
||||
* **/
|
||||
SenderPubbmxxEntity saveSenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新部门信息到日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 15:26
|
||||
* **/
|
||||
SenderPubbmxxEntity updateSenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询部门信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderPubbmxxEntity> queryPubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存部门信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 15:26
|
||||
* **/
|
||||
SenderPubbmxxEntity savePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新部门信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/26 15:26
|
||||
* **/
|
||||
SenderPubbmxxEntity updatePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity );
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除部门信息
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:27
|
||||
* **/
|
||||
Integer deletePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity );
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubbmxx.dao.impl;
|
||||
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubbmxx.dao.ISenderPubbmxxDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (Pubbmxx)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:48:44
|
||||
*/
|
||||
@Repository(value = "SenderPubbmxxDaoImpl")
|
||||
public class SenderPubbmxxDaoImpl extends MybatisGenericDao<SenderPubbmxxEntity, String> implements ISenderPubbmxxDao {
|
||||
|
||||
@Override
|
||||
@DS("#senderPubbmxxEntity.dataSourceCode")
|
||||
public List<SenderPubbmxxEntity> querySenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity) {
|
||||
return super.queryByLike(senderPubbmxxEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderPubbmxxEntity.dataSourceCode")
|
||||
public SenderPubbmxxEntity saveSenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity) {
|
||||
return super.save(senderPubbmxxEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderPubbmxxEntity.dataSourceCode")
|
||||
public SenderPubbmxxEntity updateSenderPubbmxxEntity(SenderPubbmxxEntity senderPubbmxxEntity) {
|
||||
return super.update(senderPubbmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubbmxxEntity.dataSourceCode")
|
||||
public List<SenderPubbmxxEntity> queryPubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) {
|
||||
return super.query(senderPubbmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubbmxxEntity.dataSourceCode")
|
||||
public SenderPubbmxxEntity savePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) {
|
||||
return super.save(senderPubbmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubbmxxEntity.dataSourceCode")
|
||||
public SenderPubbmxxEntity updatePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) {
|
||||
return super.update(senderPubbmxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubbmxxEntity.dataSourceCode")
|
||||
public Integer deletePubbmxxHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) {
|
||||
return super.delete("SenderPubbmxxEntity_delete_bmxx",senderPubbmxxEntity);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,196 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubbmxx.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* (Pubbmxx)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:48:44
|
||||
*/
|
||||
public class SenderPubbmxxEntity 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;
|
||||
private String sftck;
|
||||
|
||||
public String getSftck() {
|
||||
return sftck;
|
||||
}
|
||||
|
||||
public void setSftck(String sftck) {
|
||||
this.sftck = sftck;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,321 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.pubbmxx.dao.impl.SenderPubbmxxDaoImpl">
|
||||
|
||||
<resultMap id="get-SenderPubbmxxEntity-result" type="com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity" >
|
||||
<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"/>
|
||||
<result property="sftck" column="sftck" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "SenderPubbmxxEntity_Base_Column_List">
|
||||
gsdm
|
||||
,kjnd
|
||||
,bmdm
|
||||
,bmmc
|
||||
,bmlb
|
||||
,fzrdm
|
||||
,tel
|
||||
,xjbms
|
||||
,zgrs
|
||||
,syzt
|
||||
,Jlr_ID
|
||||
,Jl_RQ
|
||||
,Xgr_ID
|
||||
,Xg_RQ
|
||||
,Sjly
|
||||
,SFMX
|
||||
,zjm
|
||||
,fzrdm2
|
||||
,fzrdm3
|
||||
,sftck
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-SenderPubbmxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity">
|
||||
select
|
||||
<include refid="SenderPubbmxxEntity_Base_Column_List" />
|
||||
from pubbmxx
|
||||
<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="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>
|
||||
<if test="sftck != null and sftck != ''"> and sftck = #{sftck} </if>
|
||||
-- and gsdm in ('0101010201','0101010202')
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="SenderPubbmxxEntity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity">
|
||||
select count(1) from pubbmxx
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-SenderPubbmxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity">
|
||||
select
|
||||
<include refid="SenderPubbmxxEntity_Base_Column_List" />
|
||||
from pubbmxx
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SenderPubbmxxEntity_list_or" resultMap="get-SenderPubbmxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity">
|
||||
select
|
||||
<include refid="SenderPubbmxxEntity_Base_Column_List" />
|
||||
from pubbmxx
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity" keyProperty="" useGeneratedKeys="true">
|
||||
insert into pubbmxx(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<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="sftck != null and sftck != ''"> sftck , </if>
|
||||
<if test="gsdm != null and gsdm != ''"> gsdm </if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<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="sftck != null and sftck != ''"> #{sftck} ,</if>
|
||||
<if test="gsdm != null and gsdm != ''"> #{gsdm} </if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into pubbmxx(id,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.id},#{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>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into pubbmxx(id,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.id},#{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.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity" >
|
||||
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>
|
||||
<if test="sftck != null and sftck != ''"> sftck = #{sftck}</if>
|
||||
</trim>
|
||||
where kjnd= #{kjnd} and gsdm=#{gsdm} and bmdm=#{bmdm}
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="SenderPubbmxxEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity" >
|
||||
update pubbmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where id= #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="SenderPubbmxxEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity" >
|
||||
update pubbmxx 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="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>
|
||||
|
||||
<!--通过会计年度,公司代码,部门代码删除-->
|
||||
<delete id="SenderPubbmxxEntity_delete_bmxx">
|
||||
delete from pubbmxx where kjnd= #{kjnd} and gsdm=#{gsdm}
|
||||
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubbmxx.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (Pubbmxx)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:48:44
|
||||
*/
|
||||
public interface ISenderPubbmxxService extends IBaseService<SenderPubbmxxEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 同步部门信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:51
|
||||
* **/
|
||||
Object pubbmxxSynchronization(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询部门信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:57
|
||||
* **/
|
||||
Object queryEntityPage(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询部门信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 18:57
|
||||
* **/
|
||||
List<SenderPubbmxxEntity> queryEntityPageHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存部门信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:12
|
||||
* **/
|
||||
Object saveEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新部门信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:16
|
||||
* **/
|
||||
Object updateEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除部门信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:29
|
||||
* **/
|
||||
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
}
|
|
@ -0,0 +1,405 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubbmxx.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.pubbmxx.dao.ISenderPubbmxxDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.pubbmxx.service.ISenderPubbmxxService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (Pubbmxx)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:48:44
|
||||
*/
|
||||
@Service(value = "SenderPubbmxxServiceImpl")
|
||||
public class SenderPubbmxxServiceImpl extends BaseService<SenderPubbmxxEntity, String> implements ISenderPubbmxxService {
|
||||
|
||||
|
||||
|
||||
|
||||
private ISenderPubbmxxDao senderPubbmxxDao;
|
||||
|
||||
@Autowired
|
||||
public void setSenderPubbmxxDao(ISenderPubbmxxDao dao) {
|
||||
this.senderPubbmxxDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object pubbmxxSynchronization(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubbmxxEntity senderPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class);
|
||||
List<SenderPubbmxxEntity> senderPubbmxxEntities=new ArrayList<>();
|
||||
String result=null;
|
||||
try {
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderPubbmxxEntity.getKjnd()==null){
|
||||
senderPubbmxxEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
/*try {
|
||||
//同步南浔区人民医院001部门信息
|
||||
senderPubbmxxEntity.setGsdm("0101010101");
|
||||
logger.info("==========开始查询南浔区人民医院部门信息========");
|
||||
senderPubbmxxEntities = sqlSessionNxrm.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("南浔区人民医院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区人民医院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
try {
|
||||
//同步南浔区练市人民医院003部门信息
|
||||
senderPubbmxxEntity.setGsdm("0101010204");
|
||||
logger.info("==========开始查询南浔区练市人民医院部门信息========");
|
||||
senderPubbmxxEntities = senderPubbmxxDao.querySenderPubbmxxEntity(senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("南浔区练市人民医院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市人民医院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
/*try {
|
||||
//同步练市镇中心卫生院005部门信息
|
||||
senderPubbmxxEntity.setGsdm("0101010202");
|
||||
logger.info("==========开始查询南浔区练市镇中心卫生院部门信息========");
|
||||
senderPubbmxxEntities = sqlSessionNxrm.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步善琏镇卫生院007部门信息
|
||||
senderPubbmxxEntity.setGsdm("0101010204");
|
||||
logger.info("==========开始查询南浔区善琏镇卫生院部门信息========");
|
||||
senderPubbmxxEntities = sqlSessionNxrm.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("南浔区善琏镇卫生院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区善琏镇卫生院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步双林镇中心卫生院004部门信息
|
||||
SenderPubbmxxEntity.setGsdm("0101010201");
|
||||
senderPubbmxxEntities = sqlSessionSlz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("双林镇中心卫生院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("双林镇中心卫生院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步菱湖镇中心卫生院009部门信息
|
||||
SenderPubbmxxEntity.setGsdm("0101020201");
|
||||
senderPubbmxxEntities = sqlSessionLhz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("菱湖镇中心卫生院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("菱湖镇中心卫生院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步和孚镇卫生院010部门信息
|
||||
SenderPubbmxxEntity.setGsdm("0101020202");
|
||||
senderPubbmxxEntities = sqlSessionHfz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("和孚镇卫生院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("和孚镇卫生院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步千金镇卫生院011部门信息
|
||||
SenderPubbmxxEntity.setGsdm("0101020203");
|
||||
senderPubbmxxEntities = sqlSessionQjz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("千金镇卫生院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("千金镇卫生院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步石崇镇卫生院012部门信息
|
||||
SenderPubbmxxEntity.setGsdm("0101020204");
|
||||
senderPubbmxxEntities = sqlSessionScz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("石崇镇卫生院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("石崇镇卫生院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步南浔镇中心卫生院014部门信息
|
||||
SenderPubbmxxEntity.setGsdm("010202");
|
||||
senderPubbmxxEntities = sqlSessionNxz.selectList("SenderPubbmxxEntity_list_base",senderPubbmxxEntity);
|
||||
result =sendBmxxToHealthBureau(senderPubbmxxEntities);
|
||||
logger.info("南浔镇中心卫生院GRPU8部门信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔镇中心卫生院GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
}catch (Exception e){
|
||||
logger.info("GRPU8部门信息同步失败:{}",e.getMessage());
|
||||
throw new RuntimeException(e.getMessage());
|
||||
}
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("result",result);
|
||||
return jsonObject1;
|
||||
}
|
||||
|
||||
private String sendBmxxToHealthBureau(List<SenderPubbmxxEntity> senderPubbmxxEntities){
|
||||
//查询发送方得部门信息数据
|
||||
if (CollectionUtils.isEmpty(senderPubbmxxEntities)) {
|
||||
logger.info("GRPU8没有需要同步得部门信息");
|
||||
return "GRPU8没有需要同步得部门信息";
|
||||
} else {
|
||||
for (SenderPubbmxxEntity bmxxEntity : senderPubbmxxEntities) {
|
||||
//bmxxEntity.setKjnd("2021");
|
||||
//根据会计年度,公司代码,部门代码查询数据是否已经同步过
|
||||
SenderPubbmxxEntity receiverPubbmxxEntity = new SenderPubbmxxEntity();
|
||||
receiverPubbmxxEntity.setKjnd(bmxxEntity.getKjnd());
|
||||
receiverPubbmxxEntity.setGsdm(bmxxEntity.getGsdm());
|
||||
receiverPubbmxxEntity.setBmdm(bmxxEntity.getBmdm());
|
||||
try {
|
||||
List<SenderPubbmxxEntity> receiverPubbmxxEntities =queryEntityPageHealthBureau(receiverPubbmxxEntity);
|
||||
//设置id为会计年度,公司代码,部门代码拼接,测试时候这样,具体看情况
|
||||
bmxxEntity.setId(bmxxEntity.getGsdm() + '-' + bmxxEntity.getKjnd() + '-' + bmxxEntity.getBmdm());
|
||||
JsonResultEntity jsonResultEntity=null;
|
||||
if (CollectionUtils.isEmpty(receiverPubbmxxEntities)) {
|
||||
logger.info("===========开始将公司编码为:{}得GRPU8部门信息同步新增到卫生局GRPU8中=============",bmxxEntity.getGsdm());
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", bmxxEntity);
|
||||
Object o = saveEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if(json.getString("status").equalsIgnoreCase("200")){
|
||||
logger.info("公司编码{}得GROU8部门信息同步保存返回结果为:{}",bmxxEntity.getGsdm(),json.getString("bmxx"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方的GRPU8部门信息新增到部门日志中=============");
|
||||
//保存发送方得日志
|
||||
bmxxEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderPubbmxxDao.saveSenderPubbmxxEntity(bmxxEntity);
|
||||
}*/
|
||||
} else {
|
||||
logger.info("===========开始将公司编码为:{}得GRPU8部门信息同步更新到卫生局GRPU8中=============",bmxxEntity.getGsdm());
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", bmxxEntity);
|
||||
Object o = updateEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if(json.getString("status").equalsIgnoreCase("200")){
|
||||
//JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("公司编码{}得GROU8部门信息同步更新返回结果为:{}",bmxxEntity.getGsdm(),json.getString("bmxx"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方的GRPU8部门信息更新到部门日志中=============");
|
||||
//保存发送方得日志
|
||||
bmxxEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderPubbmxxDao.updateSenderPubbmxxEntity(bmxxEntity);
|
||||
}*/
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("公司编码{}得GRPU8部门信息同步失败:{}",bmxxEntity.getGsdm(), e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return "同步GROU8部门信息成功";
|
||||
}
|
||||
}
|
||||
|
||||
//查询部门信息
|
||||
@Override
|
||||
public Object queryEntityPage(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubbmxxEntity senderPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class);
|
||||
List<SenderPubbmxxEntity> senderPubbmxxEntities=new ArrayList<>();
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderPubbmxxEntity.getKjnd()==null){
|
||||
senderPubbmxxEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
if(StrUtil.isEmpty(senderPubbmxxEntity.getGsdm())){
|
||||
logger.info("======根据公司编码:{}查询部门信息为空",senderPubbmxxEntity.getGsdm());
|
||||
return BaseResult.getFailureMessageEntity("请传递公司编码");
|
||||
}
|
||||
try {
|
||||
/*switch (SenderPubbmxxEntity.getGsdm()){
|
||||
case "0101010103"://练市人民医院
|
||||
senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity);
|
||||
break;
|
||||
case "0101010201"://双林镇中心卫生院
|
||||
senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity);
|
||||
break;
|
||||
case "0101010202"://练市镇中心卫生院
|
||||
senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity);
|
||||
break;
|
||||
case "0101010204"://善琏镇卫生院
|
||||
senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity);
|
||||
break;
|
||||
case "0101020201":
|
||||
senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity);
|
||||
break;
|
||||
case "0101020202":
|
||||
senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity);
|
||||
break;
|
||||
case "0101020203":
|
||||
senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity);
|
||||
break;
|
||||
case "0101020204":
|
||||
senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity);
|
||||
break;
|
||||
case "0101010101"://南浔区人民医院
|
||||
senderPubbmxxEntities = senderPubbmxxDao.queryByLike(SenderPubbmxxEntity);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}*/
|
||||
senderPubbmxxEntities = senderPubbmxxDao.querySenderPubbmxxEntity(senderPubbmxxEntity);
|
||||
PageInfo pageInfo=new PageInfo(senderPubbmxxEntities);
|
||||
JSONObject jsonParasm=new JSONObject();
|
||||
jsonParasm.put("status","200");
|
||||
jsonParasm.put("pageInfo",pageInfo);
|
||||
return jsonParasm;
|
||||
}catch (Exception e){
|
||||
logger.info("查询公司编码为:{}得GROU8部门信息失败:{}",senderPubbmxxEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询GROU8部门信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//查询部门信息 卫生局
|
||||
@Override
|
||||
public List<SenderPubbmxxEntity> queryEntityPageHealthBureau(SenderPubbmxxEntity senderPubbmxxEntity) {
|
||||
try {
|
||||
logger.info("====开始根据公司代码:{}查询卫生局中得部门信息",senderPubbmxxEntity.getGsdm());
|
||||
List<SenderPubbmxxEntity> receiverPubbmxxEntities = senderPubbmxxDao.queryPubbmxxHealthBureau(senderPubbmxxEntity);
|
||||
return receiverPubbmxxEntities;
|
||||
}catch (Exception e){
|
||||
logger.info("根据公司编码:{}查询GROU8部门信息失败:{}",senderPubbmxxEntity.getGsdm(),e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
//保存部门信息 卫生局
|
||||
@Override
|
||||
public Object saveEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubbmxxEntity receiverPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("============保存部门信息时会计年度为空===========");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("============保存部门信息时公司代码为空===========");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("bmdm"))) {
|
||||
logger.info("============保存部门信息时部门编码为空===========");
|
||||
return BaseResult.getFailureMessageEntity("部门编码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("bmmc"))) {
|
||||
logger.info("============保存部门信息时部门名称为空===========");
|
||||
return BaseResult.getFailureMessageEntity("部门名称为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("jlrId"))) {
|
||||
logger.info("============保存部门信息时建立人id为空===========");
|
||||
return BaseResult.getFailureMessageEntity("建立人id为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("jlRq"))) {
|
||||
logger.info("============保存部门信息时建立日期为空===========");
|
||||
return BaseResult.getFailureMessageEntity("建立日期为空");
|
||||
}
|
||||
try {
|
||||
receiverPubbmxxEntity.setId(receiverPubbmxxEntity.getGsdm()+'-'+receiverPubbmxxEntity.getKjnd()+'-'+receiverPubbmxxEntity.getBmdm());
|
||||
logger.info("==========开始保存公司编码为:{}得部门信息,id为:{}=========",receiverPubbmxxEntity.getGsdm(),receiverPubbmxxEntity.getId());
|
||||
SenderPubbmxxEntity receiverPubbmxxEntity1 = senderPubbmxxDao.savePubbmxxHealthBureau(receiverPubbmxxEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("bmxx",receiverPubbmxxEntity1);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("保存公司编码为:{}得GROU8部门信息失败:{}",receiverPubbmxxEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("保存GROU8部门信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
//更新部门信息 卫生院
|
||||
@Override
|
||||
public Object updateEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubbmxxEntity receiverPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("============更新部门信息时会计年度为空===========");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("============更新部门信息时公司代码为空===========");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("bmdm"))) {
|
||||
logger.info("============更新部门信息时部门编码为空===========");
|
||||
return BaseResult.getFailureMessageEntity("部门编码为空");
|
||||
}
|
||||
try {
|
||||
receiverPubbmxxEntity.setId(receiverPubbmxxEntity.getGsdm()+'-'+receiverPubbmxxEntity.getKjnd()+'-'+receiverPubbmxxEntity.getBmdm());
|
||||
logger.info("==========开始更新公司编码为:{}得部门信息,代码为:{}=========",receiverPubbmxxEntity.getGsdm(),receiverPubbmxxEntity.getBmdm());
|
||||
SenderPubbmxxEntity receiverPubbmxxEntity1 = senderPubbmxxDao.updatePubbmxxHealthBureau(receiverPubbmxxEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("bmxx",receiverPubbmxxEntity1);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("更新公司编码为:{}得GROU8部门信息失败:{}",receiverPubbmxxEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("更新GROU8部门信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
//删除部门信息
|
||||
@Override
|
||||
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubbmxxEntity receiverPubbmxxEntity = jsonObject.toJavaObject(SenderPubbmxxEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("============删除部门信息时会计年度为空===========");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("============删除部门信息时公司代码为空===========");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
try {
|
||||
receiverPubbmxxEntity.setId(receiverPubbmxxEntity.getGsdm()+'-'+receiverPubbmxxEntity.getKjnd()+'-'+receiverPubbmxxEntity.getBmdm());
|
||||
logger.info("==========开始删除公司编码为:{}得部门信息,编码为:{}=========",receiverPubbmxxEntity.getGsdm(),receiverPubbmxxEntity.getBmdm());
|
||||
Integer integer = senderPubbmxxDao.deletePubbmxxHealthBureau(receiverPubbmxxEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("bmxx",integer);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("删除公司编码为:{}得GROU8部门信息:{}失败:{}",receiverPubbmxxEntity.getGsdm(),receiverPubbmxxEntity.getBmdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("删除GROU8部门信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubkjqj.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (pubkjqj: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:49:34
|
||||
*/
|
||||
public interface ISenderPubkjqjDao extends IBaseDao<SenderPubkjqjEntity, String> {
|
||||
/**
|
||||
*
|
||||
* @content 查询会计期间 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderPubkjqjEntity> querySenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存会计期间到会计期间日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 9:41
|
||||
* **/
|
||||
SenderPubkjqjEntity saveSenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新会计期间到会计期间日志表中 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 9:42
|
||||
* **/
|
||||
SenderPubkjqjEntity updateSenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询会计期间 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 10:11
|
||||
* **/
|
||||
List<SenderPubkjqjEntity> queryPubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存会计期间 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 9:41
|
||||
* **/
|
||||
SenderPubkjqjEntity savePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新会计期间 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/27 9:42
|
||||
* **/
|
||||
SenderPubkjqjEntity updatePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除会计期间 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:34
|
||||
* **/
|
||||
Integer deletePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubkjqj.dao.impl;
|
||||
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubkjqj.dao.ISenderPubkjqjDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (Pubkjqj)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:49:34
|
||||
*/
|
||||
@Repository(value = "SenderPubkjqjDaoImpl")
|
||||
public class SenderPubkjqjDaoImpl extends MybatisGenericDao<SenderPubkjqjEntity, String> implements ISenderPubkjqjDao {
|
||||
|
||||
|
||||
@Override
|
||||
@DS("#senderPubkjqjEntity.dataSourceCode")
|
||||
public List<SenderPubkjqjEntity> querySenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity) {
|
||||
return super.queryByLike(senderPubkjqjEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderPubkjqjEntity.dataSourceCode")
|
||||
public SenderPubkjqjEntity saveSenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity) {
|
||||
return super.save(senderPubkjqjEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderPubkjqjEntity.dataSourceCode")
|
||||
public SenderPubkjqjEntity updateSenderPubkjqjEntity(SenderPubkjqjEntity senderPubkjqjEntity) {
|
||||
return super.update(senderPubkjqjEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubkjqjEntity.dataSourceCode")
|
||||
public List<SenderPubkjqjEntity> queryPubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) {
|
||||
return super.query(senderPubkjqjEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubkjqjEntity.dataSourceCode")
|
||||
public SenderPubkjqjEntity savePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) {
|
||||
return super.save(senderPubkjqjEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubkjqjEntity.dataSourceCode")
|
||||
public SenderPubkjqjEntity updatePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) {
|
||||
return super.update(senderPubkjqjEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubkjqjEntity.dataSourceCode")
|
||||
public Integer deletePubkjqjHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) {
|
||||
return super.delete("SenderPubkjqjEntity_delete_kjqj",senderPubkjqjEntity);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,134 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubkjqj.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* (Pubkjqj)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:49:34
|
||||
*/
|
||||
public class SenderPubkjqjEntity 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,249 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.pubkjqj.dao.impl.SenderPubkjqjDaoImpl">
|
||||
|
||||
<resultMap id="get-SenderPubkjqjEntity-result" type="com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity" >
|
||||
<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 = "SenderPubkjqjEntity_Base_Column_List">
|
||||
gsdm
|
||||
,ZTH
|
||||
,kjnd
|
||||
,kjqjxh
|
||||
,qsrq
|
||||
,jsrq
|
||||
,jzbz
|
||||
,zzqmcl
|
||||
,qmpzpc
|
||||
,syzt
|
||||
,xgzt
|
||||
,chjzbz
|
||||
,jzzt
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-SenderPubkjqjEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity">
|
||||
select
|
||||
<include refid="SenderPubkjqjEntity_Base_Column_List" />
|
||||
from pubkjqj
|
||||
<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="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 zth in('004','005','009','010','011','012','014')
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="SenderPubkjqjEntity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity">
|
||||
select count(1) from pubkjqj
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-SenderPubkjqjEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity">
|
||||
select
|
||||
<include refid="SenderPubkjqjEntity_Base_Column_List" />
|
||||
from pubkjqj
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SenderPubkjqjEntity_list_or" resultMap="get-SenderPubkjqjEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity">
|
||||
select
|
||||
<include refid="SenderPubkjqjEntity_Base_Column_List" />
|
||||
from pubkjqj
|
||||
<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="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity" keyProperty="" useGeneratedKeys="true">
|
||||
insert into pubkjqj(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<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="gsdm != null and gsdm != ''"> gsdm </if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<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="gsdm != null and gsdm != ''"> #{gsdm} </if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into pubkjqj(id,gsdm, ZTH, kjnd, kjqjxh, qsrq, jsrq, jzbz, zzqmcl, qmpzpc, syzt, xgzt, chjzbz, jzzt)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{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>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into pubkjqj(id,gsdm, ZTH, kjnd, kjqjxh, qsrq, jsrq, jzbz, zzqmcl, qmpzpc, syzt, xgzt, chjzbz, jzzt)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{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.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity" >
|
||||
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 kjnd= #{kjnd} and gsdm=#{gsdm} and zth=#{zth} and kjqjxh=#{kjqjxh}
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="SenderPubkjqjEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity" >
|
||||
update pubkjqj set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where id= #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="SenderPubkjqjEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity" >
|
||||
update pubkjqj 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="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>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="SenderPubkjqjEntity_delete_kjqj">
|
||||
delete from pubkjqj where kjnd= #{kjnd} and gsdm=#{gsdm} and zth=#{zth} and kjqjxh=#{kjqjxh}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubkjqj.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (Pubkjqj)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:49:34
|
||||
*/
|
||||
public interface ISenderPubkjqjService extends IBaseService<SenderPubkjqjEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 同步会计期间 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 11:10
|
||||
* **/
|
||||
Object pubkjqjSynchronization(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询会计期间 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 19:00
|
||||
* **/
|
||||
Object queryEntityPage(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询会计期间 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/20 19:00
|
||||
* **/
|
||||
List<SenderPubkjqjEntity> queryEntityPageHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存会计期间 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:19
|
||||
* **/
|
||||
Object saveEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新会计期间 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/21 14:23
|
||||
* **/
|
||||
Object updateEntityHealthBureau(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除会计期间 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:35
|
||||
* **/
|
||||
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||
}
|
|
@ -0,0 +1,419 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubkjqj.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.pubkjqj.dao.ISenderPubkjqjDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubkjqj.entity.SenderPubkjqjEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.pubkjqj.service.ISenderPubkjqjService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (Pubkjqj)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-20 09:49:34
|
||||
*/
|
||||
@Service(value = "SenderPubkjqjServiceImpl")
|
||||
public class SenderPubkjqjServiceImpl extends BaseService<SenderPubkjqjEntity, String> implements ISenderPubkjqjService {
|
||||
|
||||
|
||||
private ISenderPubkjqjDao senderPubkjqjDao;
|
||||
|
||||
@Autowired
|
||||
public void setSenderPubkjqjDao(ISenderPubkjqjDao dao) {
|
||||
this.senderPubkjqjDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object pubkjqjSynchronization(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubkjqjEntity senderPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class);
|
||||
List<SenderPubkjqjEntity> senderPubkjqjEntities=new ArrayList<>();
|
||||
String result=null;
|
||||
try {
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderPubkjqjEntity.getKjnd()==null){
|
||||
senderPubkjqjEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
/*try {
|
||||
//同步南浔区人民医院001会计期间信息
|
||||
senderPubkjqjEntity.setZth("001");
|
||||
senderPubkjqjEntity.setGsdm("0101010101");
|
||||
logger.info("===========开始查询南浔区人民医院会计期间信息=============");
|
||||
senderPubkjqjEntities = sqlSessionNxrm.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("南浔区人民医院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区人民医院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
try {
|
||||
//同步南浔区练市人民医院003会计期间信息
|
||||
senderPubkjqjEntity.setZth("003");
|
||||
senderPubkjqjEntity.setGsdm("0101010103");
|
||||
logger.info("===========开始查询南浔区练市人民医院会计期间信息=============");
|
||||
senderPubkjqjEntities =senderPubkjqjDao.querySenderPubkjqjEntity(senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("南浔区练市人民医院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市人民医院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
/*try {
|
||||
//同步练市镇中心卫生院005会计期间信息
|
||||
senderPubkjqjEntity.setZth("005");
|
||||
senderPubkjqjEntity.setGsdm("0101010202");
|
||||
logger.info("===========开始查询南浔区练市镇中心卫生院会计期间信息=============");
|
||||
senderPubkjqjEntities = sqlSessionNxrm.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步善琏镇卫生院007会计期间信息
|
||||
senderPubkjqjEntity.setZth("007");
|
||||
senderPubkjqjEntity.setGsdm("0101010204");
|
||||
logger.info("===========开始查询南浔区善琏镇卫生院会计期间信息=============");
|
||||
senderPubkjqjEntities = sqlSessionNxrm.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("南浔区善琏镇卫生院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区善琏镇卫生院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步双林镇中心卫生院004会计期间信息
|
||||
senderPubkjqjEntity.setZth("004");
|
||||
senderPubkjqjEntity.setGsdm("0101010201");
|
||||
senderPubkjqjEntities = sqlSessionSlz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("双林镇中心卫生院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("双林镇中心卫生院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步菱湖镇中心卫生院009会计期间信息
|
||||
senderPubkjqjEntity.setZth("009");
|
||||
senderPubkjqjEntity.setGsdm("0101020201");
|
||||
senderPubkjqjEntities = sqlSessionLhz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("菱湖镇中心卫生院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("菱湖镇中心卫生院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步和孚镇卫生院010会计期间信息
|
||||
senderPubkjqjEntity.setZth("010");
|
||||
senderPubkjqjEntity.setGsdm("0101020202");
|
||||
senderPubkjqjEntities = sqlSessionHfz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("和孚镇卫生院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("和孚镇卫生院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步千金镇卫生院011会计期间信息
|
||||
senderPubkjqjEntity.setZth("011");
|
||||
senderPubkjqjEntity.setGsdm("0101020203");
|
||||
senderPubkjqjEntities = sqlSessionQjz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("千金镇卫生院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("千金镇卫生院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步石崇镇卫生院012会计期间信息
|
||||
senderPubkjqjEntity.setZth("012");
|
||||
senderPubkjqjEntity.setGsdm("0101020204");
|
||||
senderPubkjqjEntities = sqlSessionScz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("石崇镇卫生院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("石崇镇卫生院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步南浔镇中心卫生院014会计期间信息
|
||||
senderPubkjqjEntity.setZth("014");
|
||||
senderPubkjqjEntity.setGsdm("010202");
|
||||
senderPubkjqjEntities = sqlSessionNxz.selectList("SenderPubkjqjEntity_list_base",senderPubkjqjEntity);
|
||||
result =sendKjqjToHealthBureau(senderPubkjqjEntities);
|
||||
logger.info("南浔镇中心卫生院GRPU8会计期间同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔镇中心卫生院GRPU8会计期间同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
}catch (Exception e){
|
||||
logger.info("GRPU8会计期间信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("result",result);
|
||||
return jsonObject1;
|
||||
}
|
||||
|
||||
private String sendKjqjToHealthBureau(List<SenderPubkjqjEntity> senderPubkjqjEntities){
|
||||
if (CollectionUtils.isEmpty(senderPubkjqjEntities)) {
|
||||
logger.info("GRPU8没有需要同步得会计期间信息");
|
||||
return "GRPU8没有需要同步得会计期间信息";
|
||||
} else {
|
||||
for (SenderPubkjqjEntity kjqjEntity : senderPubkjqjEntities) {
|
||||
//kjqjEntity.setKjnd("2021");
|
||||
//kjqjEntity.setQsrq(kjqjEntity.getQsrq().replace("2024", "2021"));
|
||||
//kjqjEntity.setJsrq(kjqjEntity.getJsrq().replace("2024", "2021"));
|
||||
//根据会计年度,公司代码,账套号查询数据是否已经同步过
|
||||
SenderPubkjqjEntity receiverPubkjqjEntity = new SenderPubkjqjEntity();
|
||||
receiverPubkjqjEntity.setKjnd(kjqjEntity.getKjnd());
|
||||
receiverPubkjqjEntity.setGsdm(kjqjEntity.getGsdm());
|
||||
receiverPubkjqjEntity.setZth(kjqjEntity.getZth());
|
||||
receiverPubkjqjEntity.setKjqjxh(kjqjEntity.getKjqjxh());
|
||||
try {
|
||||
//查询接收方的数据是否存在
|
||||
List<SenderPubkjqjEntity> receiverPubkjqjEntities = queryEntityPageHealthBureau(receiverPubkjqjEntity);
|
||||
//设置id为会计年度,公司代码,账套号,会计期间序号拼接,测试时候这样,具体看情况
|
||||
kjqjEntity.setId(kjqjEntity.getGsdm() + '-' + kjqjEntity.getKjnd() + '-' + kjqjEntity.getZth() + '-' + kjqjEntity.getKjqjxh());
|
||||
JsonResultEntity jsonResultEntity=null;
|
||||
if (CollectionUtils.isEmpty(receiverPubkjqjEntities)) {
|
||||
logger.info("===========开始将账套号为:{}得GRPU8会计期间数据同步新增到卫生局GRPU8中=============",kjqjEntity.getZth());
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", kjqjEntity);
|
||||
Object o = saveEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if(json.getString("status").equalsIgnoreCase("200")){
|
||||
//JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("账套号{}得GROU8会计期间数据同步保存得返回结果为:{}",kjqjEntity.getZth(),json.getString("kjqj"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方的GRPU8会计期间新增到会计期间日志中=============");
|
||||
//保存发送方得日志
|
||||
kjqjEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderPubkjqjDao.saveSenderPubkjqjEntity(kjqjEntity);
|
||||
}*/
|
||||
} else {
|
||||
logger.info("===========开始将账套号为:{}得GRPU8会计期间数据同步更新到卫生局GRPU8中=============",kjqjEntity.getZth());
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", kjqjEntity);
|
||||
Object o = updateEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if(json.getString("status").equalsIgnoreCase("200")){
|
||||
//JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("账套号{}得GROU8会计期间数据同步更新得返回结果为:{}",kjqjEntity.getZth(),json.getString("kjqj"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方的GRPU8会计期间更新到会计期间日志中=============");
|
||||
//保存发送方得日志
|
||||
kjqjEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderPubkjqjDao.updateSenderPubkjqjEntity(kjqjEntity);
|
||||
}*/
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("账套号{}得GRPU8会计期间信息同步失败:{}", kjqjEntity.getZth(),e.getMessage());
|
||||
}
|
||||
}
|
||||
return "同步GROU8会计期间信息成功";
|
||||
}
|
||||
}
|
||||
|
||||
//查询会计期间
|
||||
@Override
|
||||
public Object queryEntityPage(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubkjqjEntity senderPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class);
|
||||
List<SenderPubkjqjEntity> senderPubkjqjEntities=new ArrayList<>();
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderPubkjqjEntity.getKjnd()==null){
|
||||
senderPubkjqjEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
if(StrUtil.isEmpty(senderPubkjqjEntity.getZth())){
|
||||
logger.info("======根据账套号:{}查询会计期间为空",senderPubkjqjEntity.getZth());
|
||||
return BaseResult.getFailureMessageEntity("请传递账套号");
|
||||
}
|
||||
try {
|
||||
/* switch (senderPubkjqjEntity.getZth()){
|
||||
case "003"://练市人民医院
|
||||
senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity);
|
||||
break;
|
||||
case "004"://双林镇中心卫生院
|
||||
senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity);
|
||||
break;
|
||||
case "005"://练市镇中心卫生院
|
||||
senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity);
|
||||
break;
|
||||
case "007"://善琏镇卫生院
|
||||
senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity);
|
||||
break;
|
||||
case "009":
|
||||
senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity);
|
||||
break;
|
||||
case "010":
|
||||
senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity);
|
||||
break;
|
||||
case "011":
|
||||
senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity);
|
||||
break;
|
||||
case "012":
|
||||
senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity);
|
||||
break;
|
||||
case "001"://南浔区人民医院
|
||||
senderPubkjqjEntities = senderPubkjqjDao.queryByLike(senderPubkjqjEntity);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}*/
|
||||
senderPubkjqjEntities = senderPubkjqjDao.querySenderPubkjqjEntity(senderPubkjqjEntity);
|
||||
PageInfo pageInfo=new PageInfo(senderPubkjqjEntities);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("pageInfo",pageInfo);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("查询账套号为:{}得GROU8会计期间失败:{}",senderPubkjqjEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询GROU8会计期间失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//查询会计期间
|
||||
@Override
|
||||
public List<SenderPubkjqjEntity> queryEntityPageHealthBureau(SenderPubkjqjEntity senderPubkjqjEntity) {
|
||||
try {
|
||||
logger.info("====开始根据账套号为:{}查询卫生局中得会计期间数据======",senderPubkjqjEntity.getZth());
|
||||
List<SenderPubkjqjEntity> receiverPubkjqjEntities = senderPubkjqjDao.queryPubkjqjHealthBureau(senderPubkjqjEntity);
|
||||
return receiverPubkjqjEntities;
|
||||
}catch (Exception e){
|
||||
logger.info("查询账套号为:{}得GROU8会计期间失败:{}",senderPubkjqjEntity.getZth(),e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//保存会计期间
|
||||
@Override
|
||||
public Object saveEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubkjqjEntity receiverPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("==========保存会计期间时会计年度为空============");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("==========保存会计期间时公司代码为空============");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
logger.info("==========保存会计期间时账套编码为空============");
|
||||
return BaseResult.getFailureMessageEntity("账套编码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("kjqjxh"))) {
|
||||
logger.info("==========保存会计期间时会计期间序号为空============");
|
||||
return BaseResult.getFailureMessageEntity("会计期间序号为空");
|
||||
}
|
||||
try {
|
||||
receiverPubkjqjEntity.setId(receiverPubkjqjEntity.getGsdm()+'-'+receiverPubkjqjEntity.getKjnd()+'-'+receiverPubkjqjEntity.getZth()+'-'+receiverPubkjqjEntity.getKjqjxh());
|
||||
logger.info("==========开始保存账套号为:{}得会计期间,id为:{}=========",receiverPubkjqjEntity.getZth(),receiverPubkjqjEntity.getId());
|
||||
SenderPubkjqjEntity pubkjqjEntity = senderPubkjqjDao.savePubkjqjHealthBureau(receiverPubkjqjEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("kjqj",pubkjqjEntity);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("保存账套号为:{}得GROU8会计期间失败:{}",receiverPubkjqjEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("保存GROU8会计期间失败");
|
||||
}
|
||||
}
|
||||
|
||||
//更新会计期间
|
||||
@Override
|
||||
public Object updateEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubkjqjEntity receiverPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("==========更新会计期间时会计年度为空============");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("==========更新会计期间时公司代码为空============");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
logger.info("==========更新会计期间时账套编码为空============");
|
||||
return BaseResult.getFailureMessageEntity("账套编码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("kjqjxh"))) {
|
||||
logger.info("==========更新会计期间时会计期间序号为空============");
|
||||
return BaseResult.getFailureMessageEntity("会计期间序号为空");
|
||||
}
|
||||
try {
|
||||
receiverPubkjqjEntity.setId(receiverPubkjqjEntity.getGsdm()+'-'+receiverPubkjqjEntity.getKjnd()+'-'+receiverPubkjqjEntity.getZth()+'-'+receiverPubkjqjEntity.getKjqjxh());
|
||||
logger.info("==========开始更新账套号为:{}得会计期间,id为:{}=========",receiverPubkjqjEntity.getZth(),receiverPubkjqjEntity.getId());
|
||||
SenderPubkjqjEntity pubkjqjEntity = senderPubkjqjDao.updatePubkjqjHealthBureau(receiverPubkjqjEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("kjqj",pubkjqjEntity);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("更新账套号为:{}得GROU8会计期间失败:{}",receiverPubkjqjEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("更新GROU8会计期间失败");
|
||||
}
|
||||
}
|
||||
|
||||
//删除会计期间
|
||||
@Override
|
||||
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubkjqjEntity receiverPubkjqjEntity = jsonObject.toJavaObject(SenderPubkjqjEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("==========删除会计期间时会计年度为空============");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("==========删除会计期间时公司代码为空============");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zth"))) {
|
||||
logger.info("==========删除会计期间时账套编码为空============");
|
||||
return BaseResult.getFailureMessageEntity("账套编码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("kjqjxh"))) {
|
||||
logger.info("==========删除会计期间时会计期间序号为空============");
|
||||
return BaseResult.getFailureMessageEntity("会计期间序号为空");
|
||||
}
|
||||
try {
|
||||
receiverPubkjqjEntity.setId(receiverPubkjqjEntity.getGsdm()+'-'+receiverPubkjqjEntity.getKjnd()+'-'+receiverPubkjqjEntity.getZth()+'-'+receiverPubkjqjEntity.getKjqjxh());
|
||||
logger.info("==========开始删除账套号为:{}得会计期间,id为:{}=========",receiverPubkjqjEntity.getZth(),receiverPubkjqjEntity.getId());
|
||||
Integer integer = senderPubkjqjDao.deletePubkjqjHealthBureau(receiverPubkjqjEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("kjqj",integer);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("删除账套号为:{}得GROU8会计期间失败:{}",receiverPubkjqjEntity.getZth(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("删除GROU8会计期间失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubobjflow.dao;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:59
|
||||
*/
|
||||
public interface IPubObjFlowDao extends IBaseDao<PubObjFlowEntity,String> {
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubobjflow.dao.impl;
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubobjflow.dao.IPubObjFlowDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:59
|
||||
*/
|
||||
@Repository(value = "pubObjFlowDao")
|
||||
public class PubObjFlowDaoImpl extends MybatisGenericDao<PubObjFlowEntity,String> implements IPubObjFlowDao {
|
||||
}
|
|
@ -0,0 +1,132 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubobjflow.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/16 22:02
|
||||
*/
|
||||
|
||||
public class PubObjFlowEntity extends BaseEntity {
|
||||
private String modCode;
|
||||
private String djlx;
|
||||
private String gsdm;//公司代码
|
||||
private String kjnd;//会计年度
|
||||
private String djh;
|
||||
private String flowcode;
|
||||
private String auditFlag;
|
||||
private String auditAftFlag;
|
||||
private String isaudit;
|
||||
private String pofId;
|
||||
private String shrs;
|
||||
private String shrmc;
|
||||
private String role;
|
||||
|
||||
public String getModCode() {
|
||||
return modCode;
|
||||
}
|
||||
|
||||
public void setModCode(String modCode) {
|
||||
this.modCode = modCode;
|
||||
}
|
||||
|
||||
public String getDjlx() {
|
||||
return djlx;
|
||||
}
|
||||
|
||||
public void setDjlx(String djlx) {
|
||||
this.djlx = djlx;
|
||||
}
|
||||
|
||||
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 getDjh() {
|
||||
return djh;
|
||||
}
|
||||
|
||||
public void setDjh(String djh) {
|
||||
this.djh = djh;
|
||||
}
|
||||
|
||||
public String getFlowcode() {
|
||||
return flowcode;
|
||||
}
|
||||
|
||||
public void setFlowcode(String flowcode) {
|
||||
this.flowcode = flowcode;
|
||||
}
|
||||
|
||||
public String getAuditFlag() {
|
||||
return auditFlag;
|
||||
}
|
||||
|
||||
public void setAuditFlag(String auditFlag) {
|
||||
this.auditFlag = auditFlag;
|
||||
}
|
||||
|
||||
public String getAuditAftFlag() {
|
||||
return auditAftFlag;
|
||||
}
|
||||
|
||||
public void setAuditAftFlag(String auditAftFlag) {
|
||||
this.auditAftFlag = auditAftFlag;
|
||||
}
|
||||
|
||||
public String getIsaudit() {
|
||||
return isaudit;
|
||||
}
|
||||
|
||||
public void setIsaudit(String isaudit) {
|
||||
this.isaudit = isaudit;
|
||||
}
|
||||
|
||||
public String getPofId() {
|
||||
return pofId;
|
||||
}
|
||||
|
||||
public void setPofId(String pofId) {
|
||||
this.pofId = pofId;
|
||||
}
|
||||
|
||||
public String getShrs() {
|
||||
return shrs;
|
||||
}
|
||||
|
||||
public void setShrs(String shrs) {
|
||||
this.shrs = shrs;
|
||||
}
|
||||
|
||||
public String getShrmc() {
|
||||
return shrmc;
|
||||
}
|
||||
|
||||
public void setShrmc(String shrmc) {
|
||||
this.shrmc = shrmc;
|
||||
}
|
||||
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.pubobjflow.dao.impl.PubObjFlowDaoImpl">
|
||||
<resultMap id="get-PubObjFlowEntity-result" type="com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity">
|
||||
<result property="modCode" column="modCode" />
|
||||
<result property="djlx" column="djlx" />
|
||||
<result property="gsdm" column="gsdm" />
|
||||
<result property="kjnd" column="kjnd" />
|
||||
<result property="djh" column="djh" />
|
||||
<result property="flowcode" column="flowcode" />
|
||||
<result property="shrs" column="shrs" />
|
||||
<result property="shrmc" column="shrmc" />
|
||||
<result property="auditFlag" column="auditFlag" />
|
||||
<result property="auditAftFlag" column="auditAftFlag" />
|
||||
<result property="isaudit" column="isaudit" />
|
||||
<result property="pofId" column="pofId" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="PubObjFlowEntity_Base_Column_List">
|
||||
GSDM,KJND
|
||||
</sql>
|
||||
|
||||
<!--获取POF_ID-->
|
||||
<select id="PubObjFlowEntity_list_base" resultMap="get-PubObjFlowEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity">
|
||||
select NEWID() as pofId
|
||||
</select>
|
||||
<!--保存 单据保存时使用 直接从未审核变为已审核-->
|
||||
<insert id="PubObjFlowEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity">
|
||||
insert into pub_obj_flow(
|
||||
<if test="pofId != null and pofId !='' "> POF_ID, </if>
|
||||
<if test="modCode != null and modCode !='' "> ModCode, </if>
|
||||
<if test="djlx != null and djlx !='' "> DJLX, </if>
|
||||
<if test="gsdm != null and gsdm !='' "> GSDM, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> KJND, </if>
|
||||
<if test="shrs != null and shrs !='' "> shr, </if>
|
||||
<if test="shrmc != null and shrmc !='' "> shrmc, </if>
|
||||
<if test="role != null and role !='' "> role, </if>
|
||||
<if test="flowcode != null and flowcode !='' "> flowcode, </if>
|
||||
<if test="auditFlag != null and auditFlag !='' "> AUDIT_FLAG, </if>
|
||||
<if test="auditAftFlag != null and auditAftFlag !='' "> AUDIT_AFT_FLAG, </if>
|
||||
<if test="isaudit != null and isaudit !='' "> ISAUDIT, </if>
|
||||
<if test="djh != null and djh !='' "> djh </if>
|
||||
)
|
||||
values (
|
||||
<if test="pofId != null and pofId !='' "> #{pofId}, </if>
|
||||
<if test="modCode != null and modCode !='' "> #{modCode}, </if>
|
||||
<if test="djlx != null and djlx !='' "> #{djlx}, </if>
|
||||
<if test="gsdm != null and gsdm !='' "> #{gsdm}, </if>
|
||||
<if test="kjnd != null and kjnd !='' "> #{kjnd}, </if>
|
||||
<if test="shrs != null and shrs !='' "> #{shrs}, </if>
|
||||
<if test="shrmc != null and shrmc !='' "> #{shrmc}, </if>
|
||||
<if test="role != null and role !='' "> #{role}, </if>
|
||||
<if test="flowcode != null and flowcode !='' "> #{flowcode}, </if>
|
||||
<if test="auditFlag != null and auditFlag !='' "> #{auditFlag}, </if>
|
||||
<if test="auditAftFlag != null and auditAftFlag !='' "> #{auditAftFlag}, </if>
|
||||
<if test="isaudit != null and isaudit !='' "> #{isaudit}, </if>
|
||||
<if test="djh != null and djh !='' "> #{djh} </if>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!--删除 单据删除时使用-->
|
||||
<delete id="PubObjFlowEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity">
|
||||
DELETE
|
||||
FROM
|
||||
pub_obj_flow
|
||||
WHERE
|
||||
GSDM = #{gsdm}
|
||||
AND KJND = #{kjnd}
|
||||
AND ModCode = #{modCode}
|
||||
AND DJLX = #{djlx}
|
||||
AND DJH = #{djh}
|
||||
</delete>
|
||||
|
||||
<!--更新 单据审核时使用-->
|
||||
<update id="PubObjFlowEntity_update" parameterType="com.hzya.frame.grpU8.nxproof.pubobjflow.entity.PubObjFlowEntity">
|
||||
UPDATE pub_obj_flow
|
||||
SET IsAudit = '1'
|
||||
WHERE
|
||||
GSDM = #{gsdm}
|
||||
AND KJND = #{kjnd}
|
||||
AND ModCode = #{modCode}
|
||||
AND DJLX = #{djlx}
|
||||
AND DJH = #{djh}
|
||||
AND FLOWCODE = #{flowcode}
|
||||
AND AUDIT_FLAG = #{auditFlag}
|
||||
</update>
|
||||
</mapper>
|
|
@ -0,0 +1,11 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubobjflow.service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:28
|
||||
*/
|
||||
public interface IPubObjFlowService {
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubobjflow.service.impl;
|
||||
|
||||
import com.hzya.frame.grpU8.nxproof.pubobjflow.service.IPubObjFlowService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Author:hecan
|
||||
* @Description:
|
||||
* @params:
|
||||
* @return:
|
||||
* @Date: 2023/6/19 14:32
|
||||
*/
|
||||
@Service(value = "pubObjFlowService")
|
||||
public class PubObjFlowServiceImpl implements IPubObjFlowService {
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubzyxx.dao;
|
||||
|
||||
|
||||
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (pubzyxx: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-28 17:11:01
|
||||
*/
|
||||
public interface ISenderPubzyxxDao extends IBaseDao<SenderPubzyxxEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询人员信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:17
|
||||
* **/
|
||||
List<SenderPubzyxxEntity> querySenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存人员信息日志 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:18
|
||||
* **/
|
||||
SenderPubzyxxEntity saveSenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新人员信息日志 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:18
|
||||
* **/
|
||||
SenderPubzyxxEntity updateSenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询人员信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:24
|
||||
* **/
|
||||
List<SenderPubzyxxEntity> queryPubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存人员信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:25
|
||||
* **/
|
||||
SenderPubzyxxEntity savePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新人员信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:25
|
||||
* **/
|
||||
SenderPubzyxxEntity updatePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除人员信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:39
|
||||
* **/
|
||||
Integer deletePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubzyxx.dao.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubzyxx.dao.ISenderPubzyxxDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (Pubzyxx)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-28 17:11:01
|
||||
*/
|
||||
@Repository(value = "SenderPubzyxxDaoImpl")
|
||||
public class SenderPubzyxxDaoImpl extends MybatisGenericDao<SenderPubzyxxEntity, String> implements ISenderPubzyxxDao {
|
||||
|
||||
|
||||
@Override
|
||||
@DS("#senderPubzyxxEntity.dataSourceCode")
|
||||
public List<SenderPubzyxxEntity> querySenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity) {
|
||||
return super.queryByLike(senderPubzyxxEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderPubzyxxEntity.dataSourceCode")
|
||||
public SenderPubzyxxEntity saveSenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity) {
|
||||
return super.save(senderPubzyxxEntity);
|
||||
}
|
||||
@Override
|
||||
@DS("#senderPubzyxxEntity.dataSourceCode")
|
||||
public SenderPubzyxxEntity updateSenderPubzyxxEntity(SenderPubzyxxEntity senderPubzyxxEntity) {
|
||||
return super.update(senderPubzyxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubzyxxEntity.dataSourceCode")
|
||||
public List<SenderPubzyxxEntity> queryPubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) {
|
||||
return super.query(senderPubzyxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubzyxxEntity.dataSourceCode")
|
||||
public SenderPubzyxxEntity savePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) {
|
||||
return super.save(senderPubzyxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubzyxxEntity.dataSourceCode")
|
||||
public SenderPubzyxxEntity updatePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) {
|
||||
return super.update(senderPubzyxxEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#senderPubzyxxEntity.dataSourceCode")
|
||||
public Integer deletePubzyxxHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) {
|
||||
return super.delete("SenderPubzyxxEntity_delete_zyxx",senderPubzyxxEntity);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,395 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubzyxx.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* (Pubzyxx)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-28 17:11:01
|
||||
*/
|
||||
public class SenderPubzyxxEntity 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;
|
||||
|
||||
private String mmxgrq;
|
||||
private String xh;
|
||||
private String deviceid;
|
||||
|
||||
public String getMmxgrq() {
|
||||
return mmxgrq;
|
||||
}
|
||||
|
||||
public void setMmxgrq(String mmxgrq) {
|
||||
this.mmxgrq = mmxgrq;
|
||||
}
|
||||
|
||||
public String getXh() {
|
||||
return xh;
|
||||
}
|
||||
|
||||
public void setXh(String xh) {
|
||||
this.xh = xh;
|
||||
}
|
||||
|
||||
public String getDeviceid() {
|
||||
return deviceid;
|
||||
}
|
||||
|
||||
public void setDeviceid(String deviceid) {
|
||||
this.deviceid = deviceid;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,549 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.grpU8.nxproof.pubzyxx.dao.impl.SenderPubzyxxDaoImpl">
|
||||
|
||||
<resultMap id="get-SenderPubzyxxEntity-result" type="com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" >
|
||||
<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"/>
|
||||
<result property="mmxgrq" column="mmxgrq" jdbcType="VARCHAR"/>
|
||||
<result property="xh" column="xh" jdbcType="VARCHAR"/>
|
||||
<result property="deviceid" column="deviceid" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "SenderPubzyxxEntity_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
|
||||
,mmxgrq
|
||||
,xh
|
||||
,deviceid
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-SenderPubzyxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity">
|
||||
select
|
||||
<include refid="SenderPubzyxxEntity_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>
|
||||
<if test="mmxgrq != null and mmxgrq != ''"> and mmxgrq = #{mmxgrq} </if>
|
||||
<if test="xh != null and xh != ''"> and xh = #{xh} </if>
|
||||
<if test="deviceid != null and deviceid != ''"> and deviceid = #{deviceid} </if>
|
||||
-- and gsdm in ('0101010201','0101010202') ;
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="SenderPubzyxxEntity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity">
|
||||
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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-SenderPubzyxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity">
|
||||
select
|
||||
<include refid="SenderPubzyxxEntity_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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SenderPubzyxxEntity_list_or" resultMap="get-SenderPubzyxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity">
|
||||
select
|
||||
<include refid="SenderPubzyxxEntity_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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" keyProperty="" useGeneratedKeys="true">
|
||||
insert into pubzyxx(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="gsdm != null and gsdm != ''"> gsdm , </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="mmxgrq != null and mmxgrq != ''"> mmxgrq, </if>
|
||||
<if test="xh != null and xh != ''"> xh, </if>
|
||||
<if test="deviceid != null and deviceid != ''"> deviceid, </if>
|
||||
<if test="kjnd != null and kjnd != ''"> kjnd </if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</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="mmxgrq != null and mmxgrq != ''"> #{mmxgrq} ,</if>
|
||||
<if test="xh != null and xh != ''"> #{xh} ,</if>
|
||||
<if test="deviceid != null and deviceid != ''"> #{deviceid} ,</if>
|
||||
<if test="kjnd != null and kjnd != ''"> #{kjnd} </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)
|
||||
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>
|
||||
</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.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" >
|
||||
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>
|
||||
<if test="mmxgrq != null and mmxgrq != ''"> mmxgrq = #{mmxgrq},</if>
|
||||
<if test="xh != null and xh != ''"> xh = #{xh},</if>
|
||||
<if test="deviceid != null and deviceid != ''"> deviceid = #{deviceid}</if>
|
||||
</trim>
|
||||
where kjnd= #{kjnd} and gsdm=#{gsdm} and zydm=#{zydm}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="SenderPubzyxxEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" >
|
||||
update pubzyxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where id= #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="SenderPubzyxxEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" >
|
||||
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>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="SenderPubzyxxEntity_delete_zyxx">
|
||||
delete from pubzyxx where kjnd = #{kjnd} and gsdm=#{gsdm}
|
||||
<if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubzyxx.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* (Pubzyxx)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-28 17:11:01
|
||||
*/
|
||||
public interface ISenderPubzyxxService extends IBaseService<SenderPubzyxxEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 同步人员信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:15
|
||||
* **/
|
||||
Object pubzyxxSynchronization(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询人员信息 卫生院
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:15
|
||||
* **/
|
||||
Object queryEntityPage(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 查询人员信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:20
|
||||
* **/
|
||||
List<SenderPubzyxxEntity> queryEntityPageHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 保存人员信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:21
|
||||
* **/
|
||||
Object saveEntityHealthBureau(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 更新人员信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/28 17:22
|
||||
* **/
|
||||
Object updateEntityHealthBureau(JSONObject json);
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 删除人员信息 卫生局
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/9 17:40
|
||||
* **/
|
||||
Object deleteEntityHealthBureau(JSONObject json);
|
||||
}
|
|
@ -0,0 +1,394 @@
|
|||
package com.hzya.frame.grpU8.nxproof.pubzyxx.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.grpU8.nxproof.pubzyxx.dao.ISenderPubzyxxDao;
|
||||
import com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.pubzyxx.service.ISenderPubzyxxService;
|
||||
import com.hzya.frame.uuid.UUIDLong;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (Pubzyxx)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-28 17:11:01
|
||||
*/
|
||||
@Service(value = "SenderPubzyxxServiceImpl")
|
||||
public class SenderPubzyxxServiceImpl extends BaseService<SenderPubzyxxEntity, String> implements ISenderPubzyxxService {
|
||||
|
||||
|
||||
|
||||
private ISenderPubzyxxDao senderPubzyxxDao;
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
public void setPubzyxxDao(ISenderPubzyxxDao dao) {
|
||||
this.senderPubzyxxDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
//同步人员信息
|
||||
@Override
|
||||
public Object pubzyxxSynchronization(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubzyxxEntity senderPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class);
|
||||
List<SenderPubzyxxEntity> senderPubzyxxEntities=new ArrayList<>();
|
||||
String result=null;
|
||||
try {
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderPubzyxxEntity.getKjnd()==null){
|
||||
senderPubzyxxEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
/*try {
|
||||
//同步南浔区人民医院001人员信息
|
||||
senderPubzyxxEntity.setGsdm("0101010101");
|
||||
logger.info("======开始查询南浔区人民医院人员信息=====");
|
||||
senderPubzyxxEntities = sqlSessionNxrm.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("南浔区人民医院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区人民医院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
try {
|
||||
//同步南浔区练市人民医院003人员信息
|
||||
senderPubzyxxEntity.setGsdm("0101010103");
|
||||
logger.info("======开始查询南浔区练市人民医院人员信息=====");
|
||||
senderPubzyxxEntities = senderPubzyxxDao.querySenderPubzyxxEntity(senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("南浔区练市人民医院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市人民医院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
/*try {
|
||||
//同步练市镇中心卫生院005人员信息
|
||||
senderPubzyxxEntity.setGsdm("0101010202");
|
||||
logger.info("======开始查询南浔区练市镇中心卫生院人员信息=====");
|
||||
senderPubzyxxEntities = sqlSessionNxrm.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区练市镇中心卫生院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步善琏镇卫生院007人员信息
|
||||
senderPubzyxxEntity.setGsdm("0101010204");
|
||||
logger.info("======开始查询南浔区善琏镇卫生院人员信息=====");
|
||||
senderPubzyxxEntities = sqlSessionNxrm.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("南浔区善琏镇卫生院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔区善琏镇卫生院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
/*try {
|
||||
//同步双林镇中心卫生院004人员信息
|
||||
senderPubzyxxEntity.setGsdm("0101010201");
|
||||
senderPubzyxxEntities = sqlSessionSlz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("双林镇中心卫生院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("双林镇中心卫生院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步菱湖镇中心卫生院009人员信息
|
||||
senderPubzyxxEntity.setGsdm("0101020201");
|
||||
senderPubzyxxEntities = sqlSessionLhz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("菱湖镇中心卫生院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("菱湖镇中心卫生院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步和孚镇卫生院010人员信息
|
||||
senderPubzyxxEntity.setGsdm("0101020202");
|
||||
senderPubzyxxEntities = sqlSessionHfz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("和孚镇卫生院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("和孚镇卫生院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步千金镇卫生院011人员信息
|
||||
senderPubzyxxEntity.setGsdm("0101020203");
|
||||
senderPubzyxxEntities = sqlSessionQjz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("千金镇卫生院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("千金镇卫生院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步石崇镇卫生院012人员信息
|
||||
senderPubzyxxEntity.setGsdm("0101020204");
|
||||
senderPubzyxxEntities = sqlSessionScz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("石崇镇卫生院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("石崇镇卫生院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
//同步南浔镇中心卫生院014人员信息
|
||||
senderPubzyxxEntity.setGsdm("010202");
|
||||
senderPubzyxxEntities = sqlSessionNxz.selectList("SenderPubzyxxEntity_list_base",senderPubzyxxEntity);
|
||||
result = sendZyxxToHealthBureau(senderPubzyxxEntities);
|
||||
logger.info("南浔镇中心卫生院GRPU8人员信息同步结果为:{}",result);
|
||||
}catch (Exception e){
|
||||
logger.info("南浔镇中心卫生院GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
}catch (Exception e){
|
||||
logger.info("GRPU8人员信息同步失败:{}",e.getMessage());
|
||||
throw new RuntimeException(e.getMessage());
|
||||
}
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("result",result);
|
||||
return jsonObject1;
|
||||
}
|
||||
|
||||
private String sendZyxxToHealthBureau(List<SenderPubzyxxEntity> senderPubzyxxEntities){
|
||||
if (CollectionUtils.isEmpty(senderPubzyxxEntities)) {
|
||||
logger.info("GRPU8没有需要同步得人员信息");
|
||||
return "GRPU8没有需要同步得人员信息";
|
||||
} else {
|
||||
for (SenderPubzyxxEntity pubzyxxEntity : senderPubzyxxEntities) {
|
||||
// pubzyxxEntity.setKjnd("2021");
|
||||
//根据会计年度,公司代码,账套号查询数据是否已经同步过
|
||||
SenderPubzyxxEntity receiverPubzyxxEntity = new SenderPubzyxxEntity();
|
||||
receiverPubzyxxEntity.setKjnd(pubzyxxEntity.getKjnd());
|
||||
receiverPubzyxxEntity.setGsdm(pubzyxxEntity.getGsdm());
|
||||
receiverPubzyxxEntity.setZydm(pubzyxxEntity.getZydm());
|
||||
try {
|
||||
//查询接收方的数据是否存在
|
||||
List<SenderPubzyxxEntity> receiverPubzyxxEntities = queryEntityPageHealthBureau(receiverPubzyxxEntity);
|
||||
//设置id为会计年度,公司代码,账套号,会计期间序号拼接,测试时候这样,具体看情况
|
||||
pubzyxxEntity.setId(pubzyxxEntity.getGsdm() + '-' + pubzyxxEntity.getKjnd() + '-' + pubzyxxEntity.getZydm());
|
||||
JsonResultEntity jsonResultEntity=null;
|
||||
if (CollectionUtils.isEmpty(receiverPubzyxxEntities)) {
|
||||
logger.info("===========开始将公司代码为:{}得GRPU8人员信息同步新增到卫生局GRPU8中=============",pubzyxxEntity.getGsdm());
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", pubzyxxEntity);
|
||||
Object o = saveEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if(json.getString("status").equalsIgnoreCase("200")){
|
||||
//JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("公司代码{}得GROU8人员信息同步保存返回结果为:{}",pubzyxxEntity.getGsdm(),json.getString("zyxx"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方的GRPU8人员信息新增到人员信息日志中=============");
|
||||
//保存发送方得日志
|
||||
pubzyxxEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderPubzyxxDao.saveSenderPubzyxxEntity(pubzyxxEntity);
|
||||
}*/
|
||||
} else {
|
||||
logger.info("===========开始将公司代码为:{}得GRPU8人员信息同步更新到卫生局GRPU8中=============",pubzyxxEntity.getGsdm());
|
||||
JSONObject jsonObjectStr = new JSONObject();
|
||||
jsonObjectStr.put("jsonStr", pubzyxxEntity);
|
||||
Object o = updateEntityHealthBureau(jsonObjectStr);
|
||||
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||
if (json.getString("status").equalsIgnoreCase("200")){
|
||||
//JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||
logger.info("公司代码{}得GROU8人员信息同步更新返回结果为:{}",pubzyxxEntity.getGsdm(),json.getString("zyxx"));
|
||||
}
|
||||
/*if (jsonObjectAttribute != null) {
|
||||
logger.info("===========开始将发送方的GRPU8人员信息更新到人员信息日志中=============");
|
||||
//保存发送方得日志
|
||||
pubzyxxEntity.setDataSourceCode(grp_data_source_code);
|
||||
senderPubzyxxDao.updateSenderPubzyxxEntity(pubzyxxEntity);
|
||||
}*/
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("公司代码{}得GRPU8人员信息同步失败:{}",pubzyxxEntity.getGsdm(), e.getMessage());
|
||||
throw new RuntimeException(e.getMessage());
|
||||
}
|
||||
}
|
||||
return "同步GROU8人员信息成功";
|
||||
}
|
||||
}
|
||||
|
||||
//查询人员信息
|
||||
@Override
|
||||
public Object queryEntityPage(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubzyxxEntity senderPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class);
|
||||
List<SenderPubzyxxEntity> senderPubzyxxEntities=new ArrayList<>();
|
||||
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||
if(senderPubzyxxEntity.getKjnd()==null){
|
||||
senderPubzyxxEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||
}
|
||||
if(StrUtil.isEmpty(senderPubzyxxEntity.getGsdm())){
|
||||
logger.info("======根据公司编码:{}查询人员信息为空",senderPubzyxxEntity.getGsdm());
|
||||
return BaseResult.getFailureMessageEntity("请传递公司编码");
|
||||
}
|
||||
try {
|
||||
/*switch (senderPubzyxxEntity.getGsdm()){
|
||||
case "0101010103"://练市人民医院
|
||||
senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity);
|
||||
break;
|
||||
case "0101010201"://双林镇中心卫生院
|
||||
senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity);
|
||||
break;
|
||||
case "0101010202"://练市镇中心卫生院
|
||||
senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity);
|
||||
break;
|
||||
case "0101010204"://善琏镇卫生院
|
||||
senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity);
|
||||
break;
|
||||
case "0101020201":
|
||||
senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity);
|
||||
break;
|
||||
case "0101020202":
|
||||
senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity);
|
||||
break;
|
||||
case "0101020203":
|
||||
senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity);
|
||||
break;
|
||||
case "0101020204":
|
||||
senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity);
|
||||
break;
|
||||
case "0101010101"://南浔区人民医院
|
||||
senderPubzyxxEntities = senderPubzyxxDao.queryByLike(senderPubzyxxEntity);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}*/
|
||||
senderPubzyxxEntities = senderPubzyxxDao.querySenderPubzyxxEntity(senderPubzyxxEntity);
|
||||
PageInfo pageInfo=new PageInfo(senderPubzyxxEntities);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("pageInfo",pageInfo);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("查询公司代码为:{}得GROU8人员信息失败:{}",senderPubzyxxEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询GROU8人员信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SenderPubzyxxEntity> queryEntityPageHealthBureau(SenderPubzyxxEntity senderPubzyxxEntity) {
|
||||
try {
|
||||
logger.info("======开始根据公司代码为:{}查询卫生局中得人员信息",senderPubzyxxEntity.getGsdm());
|
||||
List<SenderPubzyxxEntity> receiverPubzyxxEntities = senderPubzyxxDao.queryPubzyxxHealthBureau(senderPubzyxxEntity);
|
||||
return receiverPubzyxxEntities;
|
||||
}catch (Exception e){
|
||||
logger.info("查询公司代码为:{}的GROU8人员信息失败:{}",senderPubzyxxEntity.getGsdm(),e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object saveEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubzyxxEntity receiverPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("============保存人员信息时会计年度为空============");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("============保存人员信息时公司代码为空============");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zydm"))) {
|
||||
logger.info("============保存人员信息时人员代码为空============");
|
||||
return BaseResult.getFailureMessageEntity("人员代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zyxm"))) {
|
||||
logger.info("============保存人员信息时人员姓名为空============");
|
||||
return BaseResult.getFailureMessageEntity("人员姓名为空");
|
||||
}
|
||||
try {
|
||||
receiverPubzyxxEntity.setId(receiverPubzyxxEntity.getGsdm()+'-'+receiverPubzyxxEntity.getKjnd()+'-'+receiverPubzyxxEntity.getZydm());
|
||||
logger.info("==========开始保存公司编码为:{}得人员信息,id为:{}=========",receiverPubzyxxEntity.getGsdm(),receiverPubzyxxEntity.getId());
|
||||
SenderPubzyxxEntity receiverPubzyxxEntity1 = senderPubzyxxDao.savePubzyxxHealthBureau(receiverPubzyxxEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("zyxx",receiverPubzyxxEntity1);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("保存公司编码为:{}得GROU8人员信息失败:{}",receiverPubzyxxEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("保存GROU8人员信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object updateEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubzyxxEntity receiverPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("============更新人员信息时会计年度为空============");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("============更新人员信息时公司代码为空============");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("zydm"))) {
|
||||
logger.info("============更新人员信息时人员代码为空============");
|
||||
return BaseResult.getFailureMessageEntity("人员代码为空");
|
||||
}
|
||||
|
||||
try {
|
||||
receiverPubzyxxEntity.setId(receiverPubzyxxEntity.getGsdm()+'-'+receiverPubzyxxEntity.getKjnd()+'-'+receiverPubzyxxEntity.getZydm());
|
||||
logger.info("==========开始更新公司编码为:{}得人员信息,id为:{}=========",receiverPubzyxxEntity.getGsdm(),receiverPubzyxxEntity.getId());
|
||||
SenderPubzyxxEntity receiverPubzyxxEntity1 = senderPubzyxxDao.updatePubzyxxHealthBureau(receiverPubzyxxEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("zyxx",receiverPubzyxxEntity1);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("更新公司代码为:{}得GROU8人员信息失败:{}",receiverPubzyxxEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("更新GROU8人员信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
SenderPubzyxxEntity receiverPubzyxxEntity = jsonObject.toJavaObject(SenderPubzyxxEntity.class);
|
||||
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||
logger.info("============删除人员信息时会计年度为空============");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||
logger.info("============删除人员信息时公司代码为空============");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
try {
|
||||
receiverPubzyxxEntity.setId(receiverPubzyxxEntity.getGsdm()+'-'+receiverPubzyxxEntity.getKjnd()+'-'+receiverPubzyxxEntity.getZydm());
|
||||
logger.info("==========开始删除公司编码为:{}得人员信息,id为:{}=========",receiverPubzyxxEntity.getGsdm(),receiverPubzyxxEntity.getId());
|
||||
Integer integer = senderPubzyxxDao.deletePubzyxxHealthBureau(receiverPubzyxxEntity);
|
||||
JSONObject jsonObject1=new JSONObject();
|
||||
jsonObject1.put("status","200");
|
||||
jsonObject1.put("zyxx",integer);
|
||||
return jsonObject1;
|
||||
}catch (Exception e){
|
||||
logger.info("删除公司代码为:{}得GROU8人员信息失败:{}",receiverPubzyxxEntity.getGsdm(),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("删除GROU8人员信息失败");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue