现金流量项目
This commit is contained in:
parent
57e6eeda10
commit
d4aa1d9351
|
@ -0,0 +1,19 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxjllxm.dao;
|
||||
|
||||
import com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GL_Xjllxm: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-08-27 15:58:37
|
||||
*/
|
||||
public interface IGlXjllxmDao extends IBaseDao<GlXjllxmEntity, String> {
|
||||
//查询现金流量数据
|
||||
List<GlXjllxmEntity> queryGlXjllxmEntity(GlXjllxmEntity glXjllxmEntity);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxjllxm.dao.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.glxjllxm.dao.IGlXjllxmDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlXjllxm)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-08-27 15:58:37
|
||||
*/
|
||||
@Repository(value = "GlXjllxmDaoImpl")
|
||||
public class GlXjllxmDaoImpl extends MybatisGenericDao<GlXjllxmEntity, String> implements IGlXjllxmDao{
|
||||
|
||||
@DS("#glXjllxmEntity.dataSourceCode")
|
||||
@Override
|
||||
public List<GlXjllxmEntity> queryGlXjllxmEntity(GlXjllxmEntity glXjllxmEntity) {
|
||||
return super.queryByLike(glXjllxmEntity);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxjllxm.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* (GlXjllxm)实体类
|
||||
*现金流量项目表
|
||||
* @author makejava
|
||||
* @since 2024-08-27 15:58:37
|
||||
*/
|
||||
public class GlXjllxmEntity extends BaseEntity {
|
||||
|
||||
private String gsdm;
|
||||
private String zth;
|
||||
private String kjnd;
|
||||
private String xjdm;
|
||||
private String xjmc;
|
||||
private String zjm;
|
||||
private String xjlx;
|
||||
private String syzt;
|
||||
private String bz;
|
||||
private Integer jlrId;
|
||||
private String jlRq;
|
||||
private Integer xgrId;
|
||||
private String xgRq;
|
||||
private String sjly;
|
||||
private String sfmx;
|
||||
|
||||
|
||||
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 getXjdm() {
|
||||
return xjdm;
|
||||
}
|
||||
|
||||
public void setXjdm(String xjdm) {
|
||||
this.xjdm = xjdm;
|
||||
}
|
||||
|
||||
public String getXjmc() {
|
||||
return xjmc;
|
||||
}
|
||||
|
||||
public void setXjmc(String xjmc) {
|
||||
this.xjmc = xjmc;
|
||||
}
|
||||
|
||||
public String getZjm() {
|
||||
return zjm;
|
||||
}
|
||||
|
||||
public void setZjm(String zjm) {
|
||||
this.zjm = zjm;
|
||||
}
|
||||
|
||||
public String getXjlx() {
|
||||
return xjlx;
|
||||
}
|
||||
|
||||
public void setXjlx(String xjlx) {
|
||||
this.xjlx = xjlx;
|
||||
}
|
||||
|
||||
public String getSyzt() {
|
||||
return syzt;
|
||||
}
|
||||
|
||||
public void setSyzt(String syzt) {
|
||||
this.syzt = syzt;
|
||||
}
|
||||
|
||||
public String getBz() {
|
||||
return bz;
|
||||
}
|
||||
|
||||
public void setBz(String bz) {
|
||||
this.bz = bz;
|
||||
}
|
||||
|
||||
public 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,252 @@
|
|||
<?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.glxjllxm.dao.impl.GlXjllxmDaoImpl">
|
||||
|
||||
<resultMap id="get-GlXjllxmEntity-result" type="com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity" >
|
||||
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
|
||||
<result property="zth" column="ZTH" jdbcType="VARCHAR"/>
|
||||
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
|
||||
<result property="xjdm" column="xjdm" jdbcType="VARCHAR"/>
|
||||
<result property="xjmc" column="xjmc" jdbcType="VARCHAR"/>
|
||||
<result property="zjm" column="zjm" jdbcType="VARCHAR"/>
|
||||
<result property="xjlx" column="xjlx" jdbcType="VARCHAR"/>
|
||||
<result property="syzt" column="syzt" jdbcType="VARCHAR"/>
|
||||
<result property="bz" column="bz" 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"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "GlXjllxmEntity_Base_Column_List">
|
||||
gsdm
|
||||
,ZTH
|
||||
,kjnd
|
||||
,xjdm
|
||||
,xjmc
|
||||
,zjm
|
||||
,xjlx
|
||||
,syzt
|
||||
,bz
|
||||
,Jlr_ID
|
||||
,Jl_RQ
|
||||
,Xgr_ID
|
||||
,Xg_RQ
|
||||
,Sjly
|
||||
,sfmx
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-GlXjllxmEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity">
|
||||
select
|
||||
<include refid="GlXjllxmEntity_Base_Column_List" />
|
||||
from GL_Xjllxm
|
||||
<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="xjdm != null and xjdm != ''"> and xjdm = #{xjdm} </if>
|
||||
<if test="xjmc != null and xjmc != ''"> and xjmc = #{xjmc} </if>
|
||||
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
|
||||
<if test="xjlx != null and xjlx != ''"> and xjlx = #{xjlx} </if>
|
||||
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
|
||||
<if test="bz != null and bz != ''"> and bz = #{bz} </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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity">
|
||||
select count(1) from GL_Xjllxm
|
||||
<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="xjdm != null and xjdm != ''"> and xjdm = #{xjdm} </if>
|
||||
<if test="xjmc != null and xjmc != ''"> and xjmc = #{xjmc} </if>
|
||||
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
|
||||
<if test="xjlx != null and xjlx != ''"> and xjlx = #{xjlx} </if>
|
||||
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
|
||||
<if test="bz != null and bz != ''"> and bz = #{bz} </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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-GlXjllxmEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity">
|
||||
select
|
||||
<include refid="GlXjllxmEntity_Base_Column_List" />
|
||||
from GL_Xjllxm
|
||||
<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="xjdm != null and xjdm != ''"> and xjdm like concat('%',#{xjdm},'%') </if>
|
||||
<if test="xjmc != null and xjmc != ''"> and xjmc like concat('%',#{xjmc},'%') </if>
|
||||
<if test="zjm != null and zjm != ''"> and zjm like concat('%',#{zjm},'%') </if>
|
||||
<if test="xjlx != null and xjlx != ''"> and xjlx like concat('%',#{xjlx},'%') </if>
|
||||
<if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </if>
|
||||
<if test="bz != null and bz != ''"> and bz like concat('%',#{bz},'%') </if>
|
||||
<if test="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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="GlXjllxmentity_list_or" resultMap="get-GlXjllxmEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity">
|
||||
select
|
||||
<include refid="GlXjllxmEntity_Base_Column_List" />
|
||||
from GL_Xjllxm
|
||||
<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="xjdm != null and xjdm != ''"> or xjdm = #{xjdm} </if>
|
||||
<if test="xjmc != null and xjmc != ''"> or xjmc = #{xjmc} </if>
|
||||
<if test="zjm != null and zjm != ''"> or zjm = #{zjm} </if>
|
||||
<if test="xjlx != null and xjlx != ''"> or xjlx = #{xjlx} </if>
|
||||
<if test="syzt != null and syzt != ''"> or syzt = #{syzt} </if>
|
||||
<if test="bz != null and bz != ''"> or bz = #{bz} </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>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity" keyProperty="gsdm" useGeneratedKeys="true">
|
||||
insert into GL_Xjllxm(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
|
||||
<if test="zth != null and zth != ''"> ZTH , </if>
|
||||
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
|
||||
<if test="xjdm != null and xjdm != ''"> xjdm , </if>
|
||||
<if test="xjmc != null and xjmc != ''"> xjmc , </if>
|
||||
<if test="zjm != null and zjm != ''"> zjm , </if>
|
||||
<if test="xjlx != null and xjlx != ''"> xjlx , </if>
|
||||
<if test="syzt != null and syzt != ''"> syzt , </if>
|
||||
<if test="bz != null and bz != ''"> bz , </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>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
|
||||
<if test="zth != null and zth != ''"> #{zth} ,</if>
|
||||
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
|
||||
<if test="xjdm != null and xjdm != ''"> #{xjdm} ,</if>
|
||||
<if test="xjmc != null and xjmc != ''"> #{xjmc} ,</if>
|
||||
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
|
||||
<if test="xjlx != null and xjlx != ''"> #{xjlx} ,</if>
|
||||
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
|
||||
<if test="bz != null and bz != ''"> #{bz} ,</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>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="gsdm" useGeneratedKeys="true">
|
||||
insert into GL_Xjllxm(xjmc, zjm, xjlx, syzt, bz, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, Sjly, sfmx, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.xjmc},#{entity.zjm},#{entity.xjlx},#{entity.syzt},#{entity.bz},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="gsdm" useGeneratedKeys="true">
|
||||
insert into GL_Xjllxm(xjmc, zjm, xjlx, syzt, bz, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, Sjly, sfmx)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.xjmc},#{entity.zjm},#{entity.xjlx},#{entity.syzt},#{entity.bz},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
xjmc = values(xjmc),
|
||||
zjm = values(zjm),
|
||||
xjlx = values(xjlx),
|
||||
syzt = values(syzt),
|
||||
bz = values(bz),
|
||||
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)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity" >
|
||||
update GL_Xjllxm set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="xjmc != null and xjmc != ''"> xjmc = #{xjmc},</if>
|
||||
<if test="zjm != null and zjm != ''"> zjm = #{zjm},</if>
|
||||
<if test="xjlx != null and xjlx != ''"> xjlx = #{xjlx},</if>
|
||||
<if test="syzt != null and syzt != ''"> syzt = #{syzt},</if>
|
||||
<if test="bz != null and bz != ''"> bz = #{bz},</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>
|
||||
</trim>
|
||||
where gsdm = #{gsdm}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity" >
|
||||
update GL_Xjllxm set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where gsdm = #{gsdm}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity" >
|
||||
update GL_Xjllxm 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="xjdm != null and xjdm != ''"> and xjdm = #{xjdm} </if>
|
||||
<if test="xjmc != null and xjmc != ''"> and xjmc = #{xjmc} </if>
|
||||
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
|
||||
<if test="xjlx != null and xjlx != ''"> and xjlx = #{xjlx} </if>
|
||||
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
|
||||
<if test="bz != null and bz != ''"> and bz = #{bz} </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>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from GL_Xjllxm where gsdm = #{gsdm}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxjllxm.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
/**
|
||||
* (GlXjllxm)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-08-27 15:58:38
|
||||
*/
|
||||
public interface IGlXjllxmService extends IBaseService<GlXjllxmEntity, String>{
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 分页查询现金流量项目数据
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/8/27 16:07
|
||||
* **/
|
||||
Object queryEntityPage(JSONObject json);
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
package com.hzya.frame.grpU8.nxproof.glxjllxm.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.grpU8.nxproof.glxjllxm.entity.GlXjllxmEntity;
|
||||
import com.hzya.frame.grpU8.nxproof.glxjllxm.dao.IGlXjllxmDao;
|
||||
import com.hzya.frame.grpU8.nxproof.glxjllxm.service.IGlXjllxmService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import javax.annotation.Resource;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (GlXjllxm)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-08-27 15:58:38
|
||||
*/
|
||||
@Service(value = "GlXjllxmServiceImpl")
|
||||
public class GlXjllxmServiceImpl extends BaseService<GlXjllxmEntity, String> implements IGlXjllxmService {
|
||||
|
||||
private IGlXjllxmDao glXjllxmDao;
|
||||
|
||||
@Autowired
|
||||
public void setGlXjllxmDao(IGlXjllxmDao dao) {
|
||||
this.glXjllxmDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
//分页查询现金流量项目数据
|
||||
@Override
|
||||
public Object queryEntityPage(JSONObject json) {
|
||||
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||
GlXjllxmEntity glXjllxmEntity = jsonObject.toJavaObject(GlXjllxmEntity.class);
|
||||
if(!checkStr(jsonObject.getString("kjnd"))){
|
||||
logger.info("========查询现金流量项目数据传递得会计年度为空==========");
|
||||
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||
}
|
||||
if(!checkStr(jsonObject.getString("gsdm"))){
|
||||
logger.info("========查询现金流量项目数据传递得公司代码为空==========");
|
||||
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||
}
|
||||
try {
|
||||
List<GlXjllxmEntity> glXjllxmEntities = glXjllxmDao.queryGlXjllxmEntity(glXjllxmEntity);
|
||||
PageInfo pageInfo=new PageInfo(glXjllxmEntities);
|
||||
JSONObject object=new JSONObject();
|
||||
object.put("pageInfo",pageInfo);
|
||||
object.put("status","200");
|
||||
return object;
|
||||
}catch (Exception e){
|
||||
logger.info("=======根据会计年度:{},公司代码:{}查询现金流量项目失败======",jsonObject.getString("kjnd"),jsonObject.getString("gsdm"),e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("查询现金流量项目失败");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue