Compare commits

...

8 Commits
master ... xs

23 changed files with 2291 additions and 0 deletions

View File

@ -93,6 +93,12 @@
<profile.active>yc</profile.active>
</properties>
</profile>
<profile>
<id>xs</id> <!--象山-->
<properties>
<profile.active>xs</profile.active>
</properties>
</profile>
</profiles>
<build>
<finalName>kangarooDataCenterV3</finalName>

View File

@ -0,0 +1,49 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: D:\yongansystem\xslog
spring:
flyway:
# 启动flyway migration, 默认为true
enabled: false
datasource:
dynamic:
druid:
filters: stat,log4j2
validationQuery: SELECT 1 # 验证数据库服务可用性的sql.用来检测连接是否有效的sql 因数据库方言而差, 例如 oracle 应该写成 SELECT 1 FROM DUAL
datasource:
master:
# url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=Xs;encrypt=false;trustServerCertificate=true
# username: sa
# password: bbb49cbeb8244231fce4870a117ce7ae
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://115.238.48.210:9083;DatabaseName=test;encrypt=false;trustServerCertificate=true
username: sa
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
savefile:
# 文件保存路径
path: D:\yongansystem\xslog
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
data:
use: false

View File

@ -0,0 +1,21 @@
package com.hzya.frame.xsFinance.acctVouchInfo.dao;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntityVo;
import java.util.List;
/**
* 子表(acct_vouch_info: table)表数据库访问层
*
* @author makejava
* @since 2024-07-09 11:25:15
*/
public interface IAcctVouchInfoDao extends IBaseDao<AcctVouchInfoEntity, String> {
List<AcctVouchInfoEntityVo> queryData(AcctVouchInfoEntity entity);
List<AcctVouchInfoEntityVo> queryDataFzxzl(AcctVouchInfoEntity entity);
}

View File

@ -0,0 +1,35 @@
package com.hzya.frame.xsFinance.acctVouchInfo.dao.impl;
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.xsFinance.acctVouchInfo.dao.IAcctVouchInfoDao;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntityVo;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import java.util.List;
/**
* 子表(AcctVouchInfo)表数据库访问层
*
* @author makejava
* @since 2024-07-09 11:25:15
*/
@Repository(value = "AcctVouchInfoDaoImpl")
public class AcctVouchInfoDaoImpl extends MybatisGenericDao<AcctVouchInfoEntity, String> implements IAcctVouchInfoDao {
@Override
public List<AcctVouchInfoEntityVo> queryData(AcctVouchInfoEntity entity) {
List<AcctVouchInfoEntityVo> o = (List<AcctVouchInfoEntityVo>) super.selectList(getSqlIdPrifx() + "queryData", entity);
return o;
}
@Override
public List<AcctVouchInfoEntityVo> queryDataFzxzl(AcctVouchInfoEntity entity) {
List<AcctVouchInfoEntityVo> o = (List<AcctVouchInfoEntityVo>) super.selectList(getSqlIdPrifx() + "queryDataFzxzl", entity);
return o;
}
}

View File

@ -0,0 +1,225 @@
package com.hzya.frame.xsFinance.acctVouchInfo.entity;
import java.util.Date;
import java.util.List;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 子表(AcctVouchInfo)实体类
*
* @author makejava
* @since 2024-07-09 11:25:15
*/
public class AcctVouchInfoEntity extends BaseEntity {
/** 年度 */
private String acct_year;
/** 月份 */
private String acct_month;
/** 科室编码 */
private String dept_code;
/** 科室名称 */
private String dept_name;
/** 会计科目编码 */
private String acct_subj_code;
/** 会计科目名称 */
private String acct_subj_name;
/** 辅助核算项编码 */
private String check_type_code;
/** 辅助核算项名称 */
private String check_type_name;
/** 借贷方向 */
private String direction;
/** 金额 */
private Double amount;
/** 资金来源编码 */
private String fund_source_code;
/** 凭证号 */
private String vouch_no;
/** 摘要 */
private String summary;
/** 记账人 */
private String bookkeeper;
/** 单位编码 */
private String org_code;
/** 单位名称 */
private String org_name;
/** 院区编码 */
private String branch_code;
/** 院区名称 */
private String branch_name;
/** gsdm */
private String gsdm;
/** zdyfzhs */
private String zdyfzhs;
private List<AcctVouchInfoEntityVo> acctVouchInfoEntities;
public String getAcct_year() {
return acct_year;
}
public void setAcct_year(String acct_year) {
this.acct_year = acct_year;
}
public String getAcct_month() {
return acct_month;
}
public void setAcct_month(String acct_month) {
this.acct_month = acct_month;
}
public String getDept_code() {
return dept_code;
}
public void setDept_code(String dept_code) {
this.dept_code = dept_code;
}
public String getDept_name() {
return dept_name;
}
public void setDept_name(String dept_name) {
this.dept_name = dept_name;
}
public String getAcct_subj_code() {
return acct_subj_code;
}
public void setAcct_subj_code(String acct_subj_code) {
this.acct_subj_code = acct_subj_code;
}
public String getAcct_subj_name() {
return acct_subj_name;
}
public void setAcct_subj_name(String acct_subj_name) {
this.acct_subj_name = acct_subj_name;
}
public String getCheck_type_code() {
return check_type_code;
}
public void setCheck_type_code(String check_type_code) {
this.check_type_code = check_type_code;
}
public String getCheck_type_name() {
return check_type_name;
}
public void setCheck_type_name(String check_type_name) {
this.check_type_name = check_type_name;
}
public String getDirection() {
return direction;
}
public void setDirection(String direction) {
this.direction = direction;
}
public Double getAmount() {
return amount;
}
public void setAmount(Double amount) {
this.amount = amount;
}
public String getFund_source_code() {
return fund_source_code;
}
public void setFund_source_code(String fund_source_code) {
this.fund_source_code = fund_source_code;
}
public String getVouch_no() {
return vouch_no;
}
public void setVouch_no(String vouch_no) {
this.vouch_no = vouch_no;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public String getBookkeeper() {
return bookkeeper;
}
public void setBookkeeper(String bookkeeper) {
this.bookkeeper = bookkeeper;
}
public String getOrg_code() {
return org_code;
}
public void setOrg_code(String org_code) {
this.org_code = org_code;
}
public String getOrg_name() {
return org_name;
}
public void setOrg_name(String org_name) {
this.org_name = org_name;
}
public String getBranch_code() {
return branch_code;
}
public void setBranch_code(String branch_code) {
this.branch_code = branch_code;
}
public String getBranch_name() {
return branch_name;
}
public void setBranch_name(String branch_name) {
this.branch_name = branch_name;
}
public String getGsdm() {
return gsdm;
}
public void setGsdm(String gsdm) {
this.gsdm = gsdm;
}
public String getZdyfzhs() {
return zdyfzhs;
}
public void setZdyfzhs(String zdyfzhs) {
this.zdyfzhs = zdyfzhs;
}
public List<AcctVouchInfoEntityVo> getAcctVouchInfoEntities() {
return acctVouchInfoEntities;
}
public void setAcctVouchInfoEntities(List<AcctVouchInfoEntityVo> acctVouchInfoEntities) {
this.acctVouchInfoEntities = acctVouchInfoEntities;
}
}

View File

@ -0,0 +1,216 @@
<?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.xsFinance.acctVouchInfo.dao.impl.AcctVouchInfoDaoImpl">
<resultMap id="get-AcctVouchInfoEntity-result" type="com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity" >
<result property="acct_year" column="acct_year" jdbcType="VARCHAR"/>
<result property="acct_month" column="acct_month" jdbcType="VARCHAR"/>
<result property="dept_code" column="dept_code" jdbcType="VARCHAR"/>
<result property="dept_name" column="dept_name" jdbcType="VARCHAR"/>
<result property="acct_subj_code" column="acct_subj_code" jdbcType="VARCHAR"/>
<result property="acct_subj_name" column="acct_subj_name" jdbcType="VARCHAR"/>
<result property="check_type_code" column="check_type_code" jdbcType="VARCHAR"/>
<result property="check_type_name" column="check_type_name" jdbcType="VARCHAR"/>
<result property="direction" column="direction" jdbcType="VARCHAR"/>
<result property="amount" column="amount" jdbcType="NUMERIC"/>
<result property="fund_source_code" column="fund_source_code" jdbcType="VARCHAR"/>
<result property="vouch_no" column="vouch_no" jdbcType="VARCHAR"/>
<result property="summary" column="summary" jdbcType="VARCHAR"/>
<result property="bookkeeper" column="bookkeeper" jdbcType="VARCHAR"/>
<result property="org_code" column="org_code" jdbcType="VARCHAR"/>
<result property="org_name" column="org_name" jdbcType="VARCHAR"/>
<result property="branch_code" column="branch_code" jdbcType="VARCHAR"/>
<result property="branch_name" column="branch_name" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "AcctVouchInfoEntity_Base_Column_List">
acct_year
,acct_month
,dept_code
,dept_name
,acct_subj_code
,acct_subj_name
,check_type_code
,check_type_name
,direction
,amount
,fund_source_code
,vouch_no
,summary
,bookkeeper
,org_code
,org_name
,branch_code
,branch_name
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-AcctVouchInfoEntity-result" parameterType = "com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity">
select
<include refid="AcctVouchInfoEntity_Base_Column_List" />
from acct_vouch_info
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> and acct_year = #{acct_year} </if>
<if test="acct_month != null and acct_month != ''"> and acct_month = #{acct_month} </if>
<if test="dept_code != null and dept_code != ''"> and dept_code = #{dept_code} </if>
<if test="dept_name != null and dept_name != ''"> and dept_name = #{dept_name} </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code = #{acct_subj_code} </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name = #{acct_subj_name} </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code = #{check_type_code} </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name = #{check_type_name} </if>
<if test="direction != null and direction != ''"> and direction = #{direction} </if>
<if test="amount != null"> and amount = #{amount} </if>
<if test="fund_source_code != null and fund_source_code != ''"> and fund_source_code = #{fund_source_code} </if>
<if test="vouch_no != null"> and vouch_no = #{vouch_no} </if>
<if test="summary != null and summary != ''"> and summary = #{summary} </if>
<if test="bookkeeper != null and bookkeeper != ''"> and bookkeeper = #{bookkeeper} </if>
<if test="org_code != null and org_code != ''"> and org_code = #{org_code} </if>
<if test="org_name != null and org_name != ''"> and org_name = #{org_name} </if>
<if test="branch_code != null and branch_code != ''"> and branch_code = #{branch_code} </if>
<if test="branch_name != null and branch_name != ''"> and branch_name = #{branch_name} </if>
</trim>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity">
select count(1) from acct_vouch_info
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> and acct_year = #{acct_year} </if>
<if test="acct_month != null and acct_month != ''"> and acct_month = #{acct_month} </if>
<if test="dept_code != null and dept_code != ''"> and dept_code = #{dept_code} </if>
<if test="dept_name != null and dept_name != ''"> and dept_name = #{dept_name} </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code = #{acct_subj_code} </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name = #{acct_subj_name} </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code = #{check_type_code} </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name = #{check_type_name} </if>
<if test="direction != null and direction != ''"> and direction = #{direction} </if>
<if test="amount != null"> and amount = #{amount} </if>
<if test="fund_source_code != null and fund_source_code != ''"> and fund_source_code = #{fund_source_code} </if>
<if test="vouch_no != null"> and vouch_no = #{vouch_no} </if>
<if test="summary != null and summary != ''"> and summary = #{summary} </if>
<if test="bookkeeper != null and bookkeeper != ''"> and bookkeeper = #{bookkeeper} </if>
<if test="org_code != null and org_code != ''"> and org_code = #{org_code} </if>
<if test="org_name != null and org_name != ''"> and org_name = #{org_name} </if>
<if test="branch_code != null and branch_code != ''"> and branch_code = #{branch_code} </if>
<if test="branch_name != null and branch_name != ''"> and branch_name = #{branch_name} </if>
</trim>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-AcctVouchInfoEntity-result" parameterType = "com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity">
select
<include refid="AcctVouchInfoEntity_Base_Column_List" />
from acct_vouch_info
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> and acct_year like concat('%',#{acct_year},'%') </if>
<if test="acct_month != null and acct_month != ''"> and acct_month like concat('%',#{acct_month},'%') </if>
<if test="dept_code != null and dept_code != ''"> and dept_code like concat('%',#{dept_code},'%') </if>
<if test="dept_name != null and dept_name != ''"> and dept_name like concat('%',#{dept_name},'%') </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code like concat('%',#{acct_subj_code},'%') </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name like concat('%',#{acct_subj_name},'%') </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code like concat('%',#{check_type_code},'%') </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name like concat('%',#{check_type_name},'%') </if>
<if test="direction != null and direction != ''"> and direction like concat('%',#{direction},'%') </if>
<if test="amount != null"> and amount like concat('%',#{amount},'%') </if>
<if test="fund_source_code != null and fund_source_code != ''"> and fund_source_code like concat('%',#{fund_source_code},'%') </if>
<if test="vouch_no != null"> and vouch_no like concat('%',#{vouch_no},'%') </if>
<if test="summary != null and summary != ''"> and summary like concat('%',#{summary},'%') </if>
<if test="bookkeeper != null and bookkeeper != ''"> and bookkeeper like concat('%',#{bookkeeper},'%') </if>
<if test="org_code != null and org_code != ''"> and org_code like concat('%',#{org_code},'%') </if>
<if test="org_name != null and org_name != ''"> and org_name like concat('%',#{org_name},'%') </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like concat('%',#{branch_code},'%') </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like concat('%',#{branch_name},'%') </if>
</trim>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="AcctVouchInfoentity_list_or" resultMap="get-AcctVouchInfoEntity-result" parameterType = "com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity">
select
<include refid="AcctVouchInfoEntity_Base_Column_List" />
from acct_vouch_info
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> or acct_year = #{acct_year} </if>
<if test="acct_month != null and acct_month != ''"> or acct_month = #{acct_month} </if>
<if test="dept_code != null and dept_code != ''"> or dept_code = #{dept_code} </if>
<if test="dept_name != null and dept_name != ''"> or dept_name = #{dept_name} </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> or acct_subj_code = #{acct_subj_code} </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> or acct_subj_name = #{acct_subj_name} </if>
<if test="check_type_code != null and check_type_code != ''"> or check_type_code = #{check_type_code} </if>
<if test="check_type_name != null and check_type_name != ''"> or check_type_name = #{check_type_name} </if>
<if test="direction != null and direction != ''"> or direction = #{direction} </if>
<if test="amount != null"> or amount = #{amount} </if>
<if test="fund_source_code != null and fund_source_code != ''"> or fund_source_code = #{fund_source_code} </if>
<if test="vouch_no != null"> or vouch_no = #{vouch_no} </if>
<if test="summary != null and summary != ''"> or summary = #{summary} </if>
<if test="bookkeeper != null and bookkeeper != ''"> or bookkeeper = #{bookkeeper} </if>
<if test="org_code != null and org_code != ''"> or org_code = #{org_code} </if>
<if test="org_name != null and org_name != ''"> or org_name = #{org_name} </if>
<if test="branch_code != null and branch_code != ''"> or branch_code = #{branch_code} </if>
<if test="branch_name != null and branch_name != ''"> or branch_name = #{branch_name} </if>
</trim>
</select>
<resultMap id="get-AcctVouchInfoEntityVo-result" type="com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntityVo" >
<result property="acct_year" column="acct_year" jdbcType="VARCHAR"/>
<result property="acct_month" column="acct_month" jdbcType="VARCHAR"/>
<result property="dept_code" column="dept_code" jdbcType="VARCHAR"/>
<result property="dept_name" column="dept_name" jdbcType="VARCHAR"/>
<result property="acct_subj_code" column="acct_subj_code" jdbcType="VARCHAR"/>
<result property="acct_subj_name" column="acct_subj_name" jdbcType="VARCHAR"/>
<result property="check_type_code" column="check_type_code" jdbcType="VARCHAR"/>
<result property="check_type_name" column="check_type_name" jdbcType="VARCHAR"/>
<result property="direction" column="direction" jdbcType="VARCHAR"/>
<result property="amount" column="amount" jdbcType="NUMERIC"/>
<result property="fund_source_code" column="fund_source_code" jdbcType="VARCHAR"/>
<result property="vouch_no" column="vouch_no" jdbcType="VARCHAR"/>
<result property="summary" column="summary" jdbcType="VARCHAR"/>
<result property="bookkeeper" column="bookkeeper" jdbcType="VARCHAR"/>
<result property="org_code" column="org_code" jdbcType="VARCHAR"/>
<result property="org_name" column="org_name" jdbcType="VARCHAR"/>
<result property="branch_code" column="branch_code" jdbcType="VARCHAR"/>
<result property="branch_name" column="branch_name" jdbcType="VARCHAR"/>
</resultMap>
<select id="queryData" resultMap="get-AcctVouchInfoEntityVo-result" parameterType = "com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity">
select
<include refid="AcctVouchInfoEntity_Base_Column_List" />
from acct_vouch_info
<trim prefix="where" prefixOverrides="and">
<if test="org_code != null and org_code != ''"> and org_code = '${org_code}' </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = '${gsdm}' </if>
<if test="acct_year != null and acct_year != ''"> and acct_year like '${acct_year}%' </if>
<if test="acct_month != null and acct_month != ''"> and acct_month like '%${acct_month}' </if>
<if test="dept_code != null and dept_code != ''"> and dept_code like '%${dept_code}%' </if>
<if test="dept_name != null and dept_name != ''"> and dept_name like '%${dept_name}%' </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code like '%${acct_subj_code}%' </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name like '%${acct_subj_name}%' </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code like '%${check_type_code}%' </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name like '%${check_type_name}%' </if>
<if test="direction != null and direction != ''"> and direction like '%${direction}%' </if>
<if test="amount != null"> and amount like '%${amount}%' </if>
<if test="fund_source_code != null and fund_source_code != ''"> and fund_source_code like '%${fund_source_code}%' </if>
<if test="vouch_no != null"> and vouch_no like '%${vouch_no}%' </if>
<if test="summary != null and summary != ''"> and summary like '%${summary}%' </if>
<if test="bookkeeper != null and bookkeeper != ''"> and bookkeeper like '%${bookkeeper}%' </if>
<if test="org_name != null and org_name != ''"> and org_name like '%${org_name}%' </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like '%${branch_code}%' </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like '%${branch_name}%' </if>
</trim>
</select>
<select id="queryDataFzxzl" resultMap="get-AcctVouchInfoEntityVo-result" parameterType = "com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity">
select
fzdm as check_type_code,
fzmc as check_type_name,
lbdm as zdyfzhs,
kjnd as acct_year
from GL_Fzxzl
<trim prefix="where" prefixOverrides="and">
<if test="acctVouchInfoEntities != null and acctVouchInfoEntities.size() > 0 ">
and
<foreach collection="acctVouchInfoEntities" index="index" item="item" open="(" separator="or" close=")">
lbdm=#{item.zdyfzhs} and kjnd = #{item.acct_year}
</foreach>
</if>
</trim>
</select>
</mapper>

View File

@ -0,0 +1,205 @@
package com.hzya.frame.xsFinance.acctVouchInfo.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 子表(AcctVouchInfo)实体类
*
* @author makejava
* @since 2024-07-09 11:25:15
*/
public class AcctVouchInfoEntityVo {
/** 年度 */
private String acct_year;
/** 月份 */
private String acct_month;
/** 金额 */
private Double amount;
/** 资金来源编码 */
private String fund_source_code;
/** 凭证号 */
private String vouch_no;
/** 摘要 */
private String summary;
/** 记账人 */
private String bookkeeper;
/** 单位编码 */
private String org_code;
/** 单位名称 */
private String org_name;
/** 院区编码 */
private String branch_code;
/** 院区名称 */
private String branch_name;
/** 科室编码 */
private String dept_code;
/** 科室名称 */
private String dept_name;
/** 会计科目编码 */
private String acct_subj_code;
/** 会计科目名称 */
private String acct_subj_name;
/** 辅助核算项编码 */
private String check_type_code;
/** 辅助核算项名称 */
private String check_type_name;
/** 借贷方向 */
private String direction;
public String getAcct_year() {
return acct_year;
}
public void setAcct_year(String acct_year) {
this.acct_year = acct_year;
}
public String getAcct_month() {
return acct_month;
}
public void setAcct_month(String acct_month) {
this.acct_month = acct_month;
}
public String getDept_code() {
return dept_code;
}
public void setDept_code(String dept_code) {
this.dept_code = dept_code;
}
public String getDept_name() {
return dept_name;
}
public void setDept_name(String dept_name) {
this.dept_name = dept_name;
}
public String getAcct_subj_code() {
return acct_subj_code;
}
public void setAcct_subj_code(String acct_subj_code) {
this.acct_subj_code = acct_subj_code;
}
public String getAcct_subj_name() {
return acct_subj_name;
}
public void setAcct_subj_name(String acct_subj_name) {
this.acct_subj_name = acct_subj_name;
}
public String getCheck_type_code() {
return check_type_code;
}
public void setCheck_type_code(String check_type_code) {
this.check_type_code = check_type_code;
}
public String getCheck_type_name() {
return check_type_name;
}
public void setCheck_type_name(String check_type_name) {
this.check_type_name = check_type_name;
}
public String getDirection() {
return direction;
}
public void setDirection(String direction) {
this.direction = direction;
}
public Double getAmount() {
return amount;
}
public void setAmount(Double amount) {
this.amount = amount;
}
public String getFund_source_code() {
return fund_source_code;
}
public void setFund_source_code(String fund_source_code) {
this.fund_source_code = fund_source_code;
}
public String getVouch_no() {
return vouch_no;
}
public void setVouch_no(String vouch_no) {
this.vouch_no = vouch_no;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public String getBookkeeper() {
return bookkeeper;
}
public void setBookkeeper(String bookkeeper) {
this.bookkeeper = bookkeeper;
}
public String getOrg_code() {
return org_code;
}
public void setOrg_code(String org_code) {
this.org_code = org_code;
}
public String getOrg_name() {
return org_name;
}
public void setOrg_name(String org_name) {
this.org_name = org_name;
}
public String getBranch_code() {
return branch_code;
}
public void setBranch_code(String branch_code) {
this.branch_code = branch_code;
}
public String getBranch_name() {
return branch_name;
}
public void setBranch_name(String branch_name) {
this.branch_name = branch_name;
}
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.xsFinance.acctVouchInfo.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* 子表(AcctVouchInfo)表服务接口
*
* @author makejava
* @since 2024-07-09 11:25:15
*/
public interface IAcctVouchInfoService extends IBaseService<AcctVouchInfoEntity, String>{
/**
* @param jsonObject
* @return com.hzya.frame.web.entity.JsonResultEntity
* @Author lvleigang
* @Description 数据表
* @Date 11:52 上午 2024/3/27
**/
JsonResultEntity queryData(JSONObject jsonObject);
}

View File

@ -0,0 +1,96 @@
package com.hzya.frame.xsFinance.acctVouchInfo.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.sysnew.user.entity.SysUserEntity;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.xsFinance.acctVouchInfo.dao.IAcctVouchInfoDao;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntityVo;
import com.hzya.frame.xsFinance.acctVouchInfo.service.IAcctVouchInfoService;
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;
/**
* 子表(AcctVouchInfo)表服务实现类
*
* @author makejava
* @since 2024-07-09 11:25:15
*/
@Service(value = "acctVouchInfoService")
public class AcctVouchInfoServiceImpl extends BaseService<AcctVouchInfoEntity, String> implements IAcctVouchInfoService {
private IAcctVouchInfoDao acctVouchInfoDao;
@Autowired
public void setAcctVouchInfoDao(IAcctVouchInfoDao dao) {
this.acctVouchInfoDao = dao;
this.dao = dao;
}
/**
* @param jsonObject
* @return com.hzya.frame.web.entity.JsonResultEntity
* @Author lvleigang
* @Description 数据表
* @Date 11:52 上午 2024/3/27
**/
@Override
public JsonResultEntity queryData(JSONObject jsonObject) {
AcctVouchInfoEntity entity = getData("jsonStr", jsonObject, AcctVouchInfoEntity.class);
if(entity == null ){
entity = new AcctVouchInfoEntity();
}
//判断分页
if (entity.getPageNum() != null && entity.getPageSize() != null) {
PageHelper.startPage(entity.getPageNum(), entity.getPageSize());
List<AcctVouchInfoEntityVo> list = acctVouchInfoDao.queryData(entity);
PageInfo pageInfo = new PageInfo(list);
if(list != null && list.size() > 0){
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getAcct_year() != null && list.get(i).getAcct_year().length() >= 6 ){
list.get(i).setAcct_year(list.get(i).getAcct_year().substring(0,4));
}
if(list.get(i).getAcct_month() != null && list.get(i).getAcct_month().length() >= 6 ){
list.get(i).setAcct_month(list.get(i).getAcct_month().substring(list.get(i).getAcct_month().length()-2));
}
}
}
//if(list != null && list.size() > 0){
// entity.setAcctVouchInfoEntities(list);
// List<AcctVouchInfoEntityVo> listnr = acctVouchInfoDao.queryDataFzxzl(entity);
// if(listnr != null && listnr.size() > 0){
// for (int i = 0; i < list.size(); i++) {
// for (int i1 = 0; i1 < listnr.size(); i1++) {
// if(list.get(i).getZdyfzhs().equals(listnr.get(i1).getZdyfzhs()) &&
// list.get(i).getAcct_year().equals(listnr.get(i1).getAcct_year())){
// list.get(i).setCheck_type_code(listnr.get(i1).getCheck_type_code());
// list.get(i).setCheck_type_name(listnr.get(i1).getCheck_type_name());
// }
// }
// }
// }
//}
return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo);
}else {
List<AcctVouchInfoEntityVo> list = acctVouchInfoDao.queryData(entity);
if(list != null && list.size() > 0){
for (int i = 0; i < list.size(); i++) {
if(list.get(i).getAcct_year() != null && list.get(i).getAcct_year().length() >= 6 ){
list.get(i).setAcct_year(list.get(i).getAcct_year().substring(0,4));
}
if(list.get(i).getAcct_month() != null && list.get(i).getAcct_month().length() >= 6 ){
list.get(i).setAcct_month(list.get(i).getAcct_month().substring(list.get(i).getAcct_month().length()-2));
}
}
}
return BaseResult.getSuccessMessageEntity("查询数据成功", list);
}
}
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.xsFinance.dictAcctSubj.dao;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntityVo;
import java.util.List;
/**
* 子表(dict_acct_subj: table)表数据库访问层
*
* @author makejava
* @since 2024-07-09 11:23:36
*/
public interface IDictAcctSubjDao extends IBaseDao<DictAcctSubjEntity, String> {
List<DictAcctSubjEntityVo> queryData(DictAcctSubjEntity entity);
}

View File

@ -0,0 +1,29 @@
package com.hzya.frame.xsFinance.dictAcctSubj.dao.impl;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntityVo;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.xsFinance.dictAcctSubj.dao.IDictAcctSubjDao;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntityVo;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import java.util.List;
/**
* 子表(DictAcctSubj)表数据库访问层
*
* @author makejava
* @since 2024-07-09 11:23:36
*/
@Repository(value = "DictAcctSubjDaoImpl")
public class DictAcctSubjDaoImpl extends MybatisGenericDao<DictAcctSubjEntity, String> implements IDictAcctSubjDao{
@Override
public List<DictAcctSubjEntityVo> queryData(DictAcctSubjEntity entity) {
List<DictAcctSubjEntityVo> o = (List<DictAcctSubjEntityVo>) super.selectList(getSqlIdPrifx() + "queryData", entity);
return o;
}
}

View File

@ -0,0 +1,284 @@
package com.hzya.frame.xsFinance.dictAcctSubj.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 子表(DictAcctSubj)实体类
*
* @author makejava
* @since 2024-07-09 11:23:36
*/
public class DictAcctSubjEntity extends BaseEntity {
/** 年度 */
private String acct_year;
/** 会计科目编码 */
private String acct_subj_code;
/** 会计科目名称 */
private String acct_subj_name;
/** 上级编码 */
private String supper_code;
/** 科目级次 */
private String subj_level;
/** 是否末级 */
private String is_last;
/** 科目类型编码 */
private String subj_type_code;
/** 科目类型名称 */
private String subj_type_name;
/** 借贷方向 */
private String direction;
/** 是否现金 */
private String is_cash;
/** 科目性质 */
private String subj_nature_code;
/** 是否辅助核算 */
private String is_check;
/** 是否停用 */
private String is_stop;
/** 预算会计科目编码 */
private String budg_subj_code;
/** 预算会计科目名称 */
private String budg_subj_name;
/** 辅助核算项1 */
private String check_type_name1;
/** 辅助核算项2 */
private String check_type_name2;
/** 辅助核算项3 */
private String check_type_name3;
/** 辅助核算项4 */
private String check_type_name4;
/** 辅助核算项5 */
private String check_type_name5;
/** 辅助核算项6 */
private String check_type_name6;
/** 辅助核算项7 */
private String check_type_name7;
/** 辅助核算项8 */
private String check_type_name8;
/** 单位编码 */
private String org_code;
/** 单位名称 */
private String org_name;
/** 院区编码 */
private String branch_code;
/** 院区名称 */
private String branch_name;
public String getAcct_year() {
return acct_year;
}
public void setAcct_year(String acct_year) {
this.acct_year = acct_year;
}
public String getAcct_subj_code() {
return acct_subj_code;
}
public void setAcct_subj_code(String acct_subj_code) {
this.acct_subj_code = acct_subj_code;
}
public String getAcct_subj_name() {
return acct_subj_name;
}
public void setAcct_subj_name(String acct_subj_name) {
this.acct_subj_name = acct_subj_name;
}
public String getSupper_code() {
return supper_code;
}
public void setSupper_code(String supper_code) {
this.supper_code = supper_code;
}
public String getSubj_level() {
return subj_level;
}
public void setSubj_level(String subj_level) {
this.subj_level = subj_level;
}
public String getIs_last() {
return is_last;
}
public void setIs_last(String is_last) {
this.is_last = is_last;
}
public String getSubj_type_code() {
return subj_type_code;
}
public void setSubj_type_code(String subj_type_code) {
this.subj_type_code = subj_type_code;
}
public String getSubj_type_name() {
return subj_type_name;
}
public void setSubj_type_name(String subj_type_name) {
this.subj_type_name = subj_type_name;
}
public String getDirection() {
return direction;
}
public void setDirection(String direction) {
this.direction = direction;
}
public String getIs_cash() {
return is_cash;
}
public void setIs_cash(String is_cash) {
this.is_cash = is_cash;
}
public String getSubj_nature_code() {
return subj_nature_code;
}
public void setSubj_nature_code(String subj_nature_code) {
this.subj_nature_code = subj_nature_code;
}
public String getIs_check() {
return is_check;
}
public void setIs_check(String is_check) {
this.is_check = is_check;
}
public String getIs_stop() {
return is_stop;
}
public void setIs_stop(String is_stop) {
this.is_stop = is_stop;
}
public String getBudg_subj_code() {
return budg_subj_code;
}
public void setBudg_subj_code(String budg_subj_code) {
this.budg_subj_code = budg_subj_code;
}
public String getBudg_subj_name() {
return budg_subj_name;
}
public void setBudg_subj_name(String budg_subj_name) {
this.budg_subj_name = budg_subj_name;
}
public String getCheck_type_name1() {
return check_type_name1;
}
public void setCheck_type_name1(String check_type_name1) {
this.check_type_name1 = check_type_name1;
}
public String getCheck_type_name2() {
return check_type_name2;
}
public void setCheck_type_name2(String check_type_name2) {
this.check_type_name2 = check_type_name2;
}
public String getCheck_type_name3() {
return check_type_name3;
}
public void setCheck_type_name3(String check_type_name3) {
this.check_type_name3 = check_type_name3;
}
public String getCheck_type_name4() {
return check_type_name4;
}
public void setCheck_type_name4(String check_type_name4) {
this.check_type_name4 = check_type_name4;
}
public String getCheck_type_name5() {
return check_type_name5;
}
public void setCheck_type_name5(String check_type_name5) {
this.check_type_name5 = check_type_name5;
}
public String getCheck_type_name6() {
return check_type_name6;
}
public void setCheck_type_name6(String check_type_name6) {
this.check_type_name6 = check_type_name6;
}
public String getCheck_type_name7() {
return check_type_name7;
}
public void setCheck_type_name7(String check_type_name7) {
this.check_type_name7 = check_type_name7;
}
public String getCheck_type_name8() {
return check_type_name8;
}
public void setCheck_type_name8(String check_type_name8) {
this.check_type_name8 = check_type_name8;
}
public String getOrg_code() {
return org_code;
}
public void setOrg_code(String org_code) {
this.org_code = org_code;
}
public String getOrg_name() {
return org_name;
}
public void setOrg_name(String org_name) {
this.org_name = org_name;
}
public String getBranch_code() {
return branch_code;
}
public void setBranch_code(String branch_code) {
this.branch_code = branch_code;
}
public String getBranch_name() {
return branch_name;
}
public void setBranch_name(String branch_name) {
this.branch_name = branch_name;
}
}

View File

@ -0,0 +1,280 @@
<?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.xsFinance.dictAcctSubj.dao.impl.DictAcctSubjDaoImpl">
<resultMap id="get-DictAcctSubjEntity-result" type="com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity" >
<result property="acct_year" column="acct_year" jdbcType="VARCHAR"/>
<result property="acct_subj_code" column="acct_subj_code" jdbcType="VARCHAR"/>
<result property="acct_subj_name" column="acct_subj_name" jdbcType="VARCHAR"/>
<result property="supper_code" column="supper_code" jdbcType="VARCHAR"/>
<result property="subj_level" column="subj_level" jdbcType="VARCHAR"/>
<result property="is_last" column="is_last" jdbcType="VARCHAR"/>
<result property="subj_type_code" column="subj_type_code" jdbcType="VARCHAR"/>
<result property="subj_type_name" column="subj_type_name" jdbcType="VARCHAR"/>
<result property="direction" column="direction" jdbcType="VARCHAR"/>
<result property="is_cash" column="is_cash" jdbcType="VARCHAR"/>
<result property="subj_nature_code" column="subj_nature_code" jdbcType="VARCHAR"/>
<result property="is_check" column="is_check" jdbcType="VARCHAR"/>
<result property="is_stop" column="is_stop" jdbcType="VARCHAR"/>
<result property="budg_subj_code" column="budg_subj_code" jdbcType="VARCHAR"/>
<result property="budg_subj_name" column="budg_subj_name" jdbcType="VARCHAR"/>
<result property="check_type_name1" column="check_type_name1" jdbcType="VARCHAR"/>
<result property="check_type_name2" column="check_type_name2" jdbcType="VARCHAR"/>
<result property="check_type_name3" column="check_type_name3" jdbcType="VARCHAR"/>
<result property="check_type_name4" column="check_type_name4" jdbcType="VARCHAR"/>
<result property="check_type_name5" column="check_type_name5" jdbcType="VARCHAR"/>
<result property="check_type_name6" column="check_type_name6" jdbcType="VARCHAR"/>
<result property="check_type_name7" column="check_type_name7" jdbcType="VARCHAR"/>
<result property="check_type_name8" column="check_type_name8" jdbcType="VARCHAR"/>
<result property="org_code" column="org_code" jdbcType="VARCHAR"/>
<result property="org_name" column="org_name" jdbcType="VARCHAR"/>
<result property="branch_code" column="branch_code" jdbcType="VARCHAR"/>
<result property="branch_name" column="branch_name" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "DictAcctSubjEntity_Base_Column_List">
acct_year
,acct_subj_code
,acct_subj_name
,supper_code
,subj_level
,is_last
,subj_type_code
,subj_type_name
,direction
,is_cash
,subj_nature_code
,is_check
,is_stop
,budg_subj_code
,budg_subj_name
,check_type_name1
,check_type_name2
,check_type_name3
,check_type_name4
,check_type_name5
,check_type_name6
,check_type_name7
,check_type_name8
,org_code
,org_name
,branch_code
,branch_name
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-DictAcctSubjEntity-result" parameterType = "com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity">
select
<include refid="DictAcctSubjEntity_Base_Column_List" />
from dict_acct_subj
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> and acct_year = #{acct_year} </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code = #{acct_subj_code} </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name = #{acct_subj_name} </if>
<if test="supper_code != null and supper_code != ''"> and supper_code = #{supper_code} </if>
<if test="subj_level != null and subj_level != ''"> and subj_level = #{subj_level} </if>
<if test="is_last != null and is_last != ''"> and is_last = #{is_last} </if>
<if test="subj_type_code != null and subj_type_code != ''"> and subj_type_code = #{subj_type_code} </if>
<if test="subj_type_name != null and subj_type_name != ''"> and subj_type_name = #{subj_type_name} </if>
<if test="direction != null and direction != ''"> and direction = #{direction} </if>
<if test="is_cash != null and is_cash != ''"> and is_cash = #{is_cash} </if>
<if test="subj_nature_code != null and subj_nature_code != ''"> and subj_nature_code = #{subj_nature_code} </if>
<if test="is_check != null and is_check != ''"> and is_check = #{is_check} </if>
<if test="is_stop != null and is_stop != ''"> and is_stop = #{is_stop} </if>
<if test="budg_subj_code != null and budg_subj_code != ''"> and budg_subj_code = #{budg_subj_code} </if>
<if test="budg_subj_name != null and budg_subj_name != ''"> and budg_subj_name = #{budg_subj_name} </if>
<if test="check_type_name1 != null and check_type_name1 != ''"> and check_type_name1 = #{check_type_name1} </if>
<if test="check_type_name2 != null and check_type_name2 != ''"> and check_type_name2 = #{check_type_name2} </if>
<if test="check_type_name3 != null and check_type_name3 != ''"> and check_type_name3 = #{check_type_name3} </if>
<if test="check_type_name4 != null and check_type_name4 != ''"> and check_type_name4 = #{check_type_name4} </if>
<if test="check_type_name5 != null and check_type_name5 != ''"> and check_type_name5 = #{check_type_name5} </if>
<if test="check_type_name6 != null and check_type_name6 != ''"> and check_type_name6 = #{check_type_name6} </if>
<if test="check_type_name7 != null and check_type_name7 != ''"> and check_type_name7 = #{check_type_name7} </if>
<if test="check_type_name8 != null and check_type_name8 != ''"> and check_type_name8 = #{check_type_name8} </if>
<if test="org_code != null and org_code != ''"> and org_code = #{org_code} </if>
<if test="org_name != null and org_name != ''"> and org_name = #{org_name} </if>
<if test="branch_code != null and branch_code != ''"> and branch_code = #{branch_code} </if>
<if test="branch_name != null and branch_name != ''"> and branch_name = #{branch_name} </if>
</trim>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity">
select count(1) from dict_acct_subj
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> and acct_year = #{acct_year} </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code = #{acct_subj_code} </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name = #{acct_subj_name} </if>
<if test="supper_code != null and supper_code != ''"> and supper_code = #{supper_code} </if>
<if test="subj_level != null and subj_level != ''"> and subj_level = #{subj_level} </if>
<if test="is_last != null and is_last != ''"> and is_last = #{is_last} </if>
<if test="subj_type_code != null and subj_type_code != ''"> and subj_type_code = #{subj_type_code} </if>
<if test="subj_type_name != null and subj_type_name != ''"> and subj_type_name = #{subj_type_name} </if>
<if test="direction != null and direction != ''"> and direction = #{direction} </if>
<if test="is_cash != null and is_cash != ''"> and is_cash = #{is_cash} </if>
<if test="subj_nature_code != null and subj_nature_code != ''"> and subj_nature_code = #{subj_nature_code} </if>
<if test="is_check != null and is_check != ''"> and is_check = #{is_check} </if>
<if test="is_stop != null and is_stop != ''"> and is_stop = #{is_stop} </if>
<if test="budg_subj_code != null and budg_subj_code != ''"> and budg_subj_code = #{budg_subj_code} </if>
<if test="budg_subj_name != null and budg_subj_name != ''"> and budg_subj_name = #{budg_subj_name} </if>
<if test="check_type_name1 != null and check_type_name1 != ''"> and check_type_name1 = #{check_type_name1} </if>
<if test="check_type_name2 != null and check_type_name2 != ''"> and check_type_name2 = #{check_type_name2} </if>
<if test="check_type_name3 != null and check_type_name3 != ''"> and check_type_name3 = #{check_type_name3} </if>
<if test="check_type_name4 != null and check_type_name4 != ''"> and check_type_name4 = #{check_type_name4} </if>
<if test="check_type_name5 != null and check_type_name5 != ''"> and check_type_name5 = #{check_type_name5} </if>
<if test="check_type_name6 != null and check_type_name6 != ''"> and check_type_name6 = #{check_type_name6} </if>
<if test="check_type_name7 != null and check_type_name7 != ''"> and check_type_name7 = #{check_type_name7} </if>
<if test="check_type_name8 != null and check_type_name8 != ''"> and check_type_name8 = #{check_type_name8} </if>
<if test="org_code != null and org_code != ''"> and org_code = #{org_code} </if>
<if test="org_name != null and org_name != ''"> and org_name = #{org_name} </if>
<if test="branch_code != null and branch_code != ''"> and branch_code = #{branch_code} </if>
<if test="branch_name != null and branch_name != ''"> and branch_name = #{branch_name} </if>
</trim>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-DictAcctSubjEntity-result" parameterType = "com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity">
select
<include refid="DictAcctSubjEntity_Base_Column_List" />
from dict_acct_subj
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> and acct_year like concat('%',#{acct_year},'%') </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code like concat('%',#{acct_subj_code},'%') </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name like concat('%',#{acct_subj_name},'%') </if>
<if test="supper_code != null and supper_code != ''"> and supper_code like concat('%',#{supper_code},'%') </if>
<if test="subj_level != null and subj_level != ''"> and subj_level like concat('%',#{subj_level},'%') </if>
<if test="is_last != null and is_last != ''"> and is_last like concat('%',#{is_last},'%') </if>
<if test="subj_type_code != null and subj_type_code != ''"> and subj_type_code like concat('%',#{subj_type_code},'%') </if>
<if test="subj_type_name != null and subj_type_name != ''"> and subj_type_name like concat('%',#{subj_type_name},'%') </if>
<if test="direction != null and direction != ''"> and direction like concat('%',#{direction},'%') </if>
<if test="is_cash != null and is_cash != ''"> and is_cash like concat('%',#{is_cash},'%') </if>
<if test="subj_nature_code != null and subj_nature_code != ''"> and subj_nature_code like concat('%',#{subj_nature_code},'%') </if>
<if test="is_check != null and is_check != ''"> and is_check like concat('%',#{is_check},'%') </if>
<if test="is_stop != null and is_stop != ''"> and is_stop like concat('%',#{is_stop},'%') </if>
<if test="budg_subj_code != null and budg_subj_code != ''"> and budg_subj_code like concat('%',#{budg_subj_code},'%') </if>
<if test="budg_subj_name != null and budg_subj_name != ''"> and budg_subj_name like concat('%',#{budg_subj_name},'%') </if>
<if test="check_type_name1 != null and check_type_name1 != ''"> and check_type_name1 like concat('%',#{check_type_name1},'%') </if>
<if test="check_type_name2 != null and check_type_name2 != ''"> and check_type_name2 like concat('%',#{check_type_name2},'%') </if>
<if test="check_type_name3 != null and check_type_name3 != ''"> and check_type_name3 like concat('%',#{check_type_name3},'%') </if>
<if test="check_type_name4 != null and check_type_name4 != ''"> and check_type_name4 like concat('%',#{check_type_name4},'%') </if>
<if test="check_type_name5 != null and check_type_name5 != ''"> and check_type_name5 like concat('%',#{check_type_name5},'%') </if>
<if test="check_type_name6 != null and check_type_name6 != ''"> and check_type_name6 like concat('%',#{check_type_name6},'%') </if>
<if test="check_type_name7 != null and check_type_name7 != ''"> and check_type_name7 like concat('%',#{check_type_name7},'%') </if>
<if test="check_type_name8 != null and check_type_name8 != ''"> and check_type_name8 like concat('%',#{check_type_name8},'%') </if>
<if test="org_code != null and org_code != ''"> and org_code like concat('%',#{org_code},'%') </if>
<if test="org_name != null and org_name != ''"> and org_name like concat('%',#{org_name},'%') </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like concat('%',#{branch_code},'%') </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like concat('%',#{branch_name},'%') </if>
</trim>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="DictAcctSubjentity_list_or" resultMap="get-DictAcctSubjEntity-result" parameterType = "com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity">
select
<include refid="DictAcctSubjEntity_Base_Column_List" />
from dict_acct_subj
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> or acct_year = #{acct_year} </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> or acct_subj_code = #{acct_subj_code} </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> or acct_subj_name = #{acct_subj_name} </if>
<if test="supper_code != null and supper_code != ''"> or supper_code = #{supper_code} </if>
<if test="subj_level != null and subj_level != ''"> or subj_level = #{subj_level} </if>
<if test="is_last != null and is_last != ''"> or is_last = #{is_last} </if>
<if test="subj_type_code != null and subj_type_code != ''"> or subj_type_code = #{subj_type_code} </if>
<if test="subj_type_name != null and subj_type_name != ''"> or subj_type_name = #{subj_type_name} </if>
<if test="direction != null and direction != ''"> or direction = #{direction} </if>
<if test="is_cash != null and is_cash != ''"> or is_cash = #{is_cash} </if>
<if test="subj_nature_code != null and subj_nature_code != ''"> or subj_nature_code = #{subj_nature_code} </if>
<if test="is_check != null and is_check != ''"> or is_check = #{is_check} </if>
<if test="is_stop != null and is_stop != ''"> or is_stop = #{is_stop} </if>
<if test="budg_subj_code != null and budg_subj_code != ''"> or budg_subj_code = #{budg_subj_code} </if>
<if test="budg_subj_name != null and budg_subj_name != ''"> or budg_subj_name = #{budg_subj_name} </if>
<if test="check_type_name1 != null and check_type_name1 != ''"> or check_type_name1 = #{check_type_name1} </if>
<if test="check_type_name2 != null and check_type_name2 != ''"> or check_type_name2 = #{check_type_name2} </if>
<if test="check_type_name3 != null and check_type_name3 != ''"> or check_type_name3 = #{check_type_name3} </if>
<if test="check_type_name4 != null and check_type_name4 != ''"> or check_type_name4 = #{check_type_name4} </if>
<if test="check_type_name5 != null and check_type_name5 != ''"> or check_type_name5 = #{check_type_name5} </if>
<if test="check_type_name6 != null and check_type_name6 != ''"> or check_type_name6 = #{check_type_name6} </if>
<if test="check_type_name7 != null and check_type_name7 != ''"> or check_type_name7 = #{check_type_name7} </if>
<if test="check_type_name8 != null and check_type_name8 != ''"> or check_type_name8 = #{check_type_name8} </if>
<if test="org_code != null and org_code != ''"> or org_code = #{org_code} </if>
<if test="org_name != null and org_name != ''"> or org_name = #{org_name} </if>
<if test="branch_code != null and branch_code != ''"> or branch_code = #{branch_code} </if>
<if test="branch_name != null and branch_name != ''"> or branch_name = #{branch_name} </if>
</trim>
</select>
<resultMap id="get-DictAcctSubjEntityVo-result" type="com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntityVo" >
<result property="acct_year" column="acct_year" jdbcType="VARCHAR"/>
<result property="acct_subj_code" column="acct_subj_code" jdbcType="VARCHAR"/>
<result property="acct_subj_name" column="acct_subj_name" jdbcType="VARCHAR"/>
<result property="supper_code" column="supper_code" jdbcType="VARCHAR"/>
<result property="subj_level" column="subj_level" jdbcType="VARCHAR"/>
<result property="is_last" column="is_last" jdbcType="VARCHAR"/>
<result property="subj_type_code" column="subj_type_code" jdbcType="VARCHAR"/>
<result property="subj_type_name" column="subj_type_name" jdbcType="VARCHAR"/>
<result property="direction" column="direction" jdbcType="VARCHAR"/>
<result property="is_cash" column="is_cash" jdbcType="VARCHAR"/>
<result property="subj_nature_code" column="subj_nature_code" jdbcType="VARCHAR"/>
<result property="is_check" column="is_check" jdbcType="VARCHAR"/>
<result property="is_stop" column="is_stop" jdbcType="VARCHAR"/>
<result property="budg_subj_code" column="budg_subj_code" jdbcType="VARCHAR"/>
<result property="budg_subj_name" column="budg_subj_name" jdbcType="VARCHAR"/>
<result property="check_type_name1" column="check_type_name1" jdbcType="VARCHAR"/>
<result property="check_type_name2" column="check_type_name2" jdbcType="VARCHAR"/>
<result property="check_type_name3" column="check_type_name3" jdbcType="VARCHAR"/>
<result property="check_type_name4" column="check_type_name4" jdbcType="VARCHAR"/>
<result property="check_type_name5" column="check_type_name5" jdbcType="VARCHAR"/>
<result property="check_type_name6" column="check_type_name6" jdbcType="VARCHAR"/>
<result property="check_type_name7" column="check_type_name7" jdbcType="VARCHAR"/>
<result property="check_type_name8" column="check_type_name8" jdbcType="VARCHAR"/>
<result property="org_code" column="org_code" jdbcType="VARCHAR"/>
<result property="org_name" column="org_name" jdbcType="VARCHAR"/>
<result property="branch_code" column="branch_code" jdbcType="VARCHAR"/>
<result property="branch_name" column="branch_name" jdbcType="VARCHAR"/>
</resultMap>
<!-- 分页查询列表 采用like格式 -->
<select id="queryData" resultMap="get-DictAcctSubjEntityVo-result" parameterType = "com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity">
select
kmxx.kjnd as acct_year, -- 年度
kmxx.kmdm as acct_subj_code, -- 会计科目编码
kmxx.kmmc as acct_subj_name, -- 会计科目名称
convert(varchar(200),(case when LEN(kmxx.kmdm) = 4 THEN kmxx.kmdm else left(kmxx.kmdm,len(kmxx.kmdm)-2)end )) as supper_code, -- 上级编码
CASE WHEN LEN(kmxx.kmdm) = 4 THEN 1 else LEN(kmxx.kmdm)/2-1 end as subj_level, -- 科目级次
kmxx.kmmx as is_last, -- 是否末级
isnull(kmxx.kmqx,3) as subj_type_code, -- 科目类型编码
CASE
WHEN kmxx.kmqx = '1' THEN
'收入类'
WHEN kmxx.kmqx = '2' THEN
'支出类'
ELSE
'未定义类'
END as subj_type_name, -- 科目类型名称
case when kmxx.yefx='J' then '借' when kmxx.yefx='D' then '贷' end as direction, -- 借贷方向
case when kmxx.kmmc='现金' then 1 else 0 end as is_cash, -- 是否现金
kmxx.kmxz as subj_nature_code, -- 科目性质
case when kmxx.fzhs is not null and kmxx.fzhs !='' then 1 else 0 end as is_check, -- 是否辅助核算
kmxx.syzt as Is_stop, -- 是否停用
'' as budg_subj_code, -- 预算会计科目编码
'' as budg_subj_name, -- 预算会计科目名称
'' as check_type_name1, -- 辅助核算项目1
'' as check_type_name2, -- 辅助核算项目2
'' as check_type_name3, -- 辅助核算项目3
'' as check_type_name4, -- 辅助核算项目4
'' as check_type_name5, -- 辅助核算项目5
'' as check_type_name6, -- 辅助核算项目6
'' as check_type_name7, -- 辅助核算项目7
'' as check_type_name8, -- 辅助核算项目8
kmxx.gsdm as org_code, -- 单位编码
ztcs.gsmc as org_name, -- 单位名称
'' as branch_code, -- 院区编码
'' as branch_name -- 院区名称
from GL_KMXX kmxx
LEFT JOIN PubGszl ztcs on kmxx.kjnd = ztcs.kjnd and kmxx.gsdm = ztcs.gsdm
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> and kmxx.kjnd like '%${acct_year}%' </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and kmxx.kmdm like '%${acct_subj_code}%' </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and kmxx.kmmc like '%${acct_subj_name}%' </if>
</trim>
</select>
</mapper>

View File

@ -0,0 +1,284 @@
package com.hzya.frame.xsFinance.dictAcctSubj.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 子表(DictAcctSubj)实体类
*
* @author makejava
* @since 2024-07-09 11:23:36
*/
public class DictAcctSubjEntityVo {
/** 年度 */
private String acct_year;
/** 会计科目编码 */
private String acct_subj_code;
/** 会计科目名称 */
private String acct_subj_name;
/** 上级编码 */
private String supper_code;
/** 科目级次 */
private String subj_level;
/** 是否末级 */
private String is_last;
/** 科目类型编码 */
private String subj_type_code;
/** 科目类型名称 */
private String subj_type_name;
/** 借贷方向 */
private String direction;
/** 是否现金 */
private String is_cash;
/** 科目性质 */
private String subj_nature_code;
/** 是否辅助核算 */
private String is_check;
/** 是否停用 */
private String is_stop;
/** 预算会计科目编码 */
private String budg_subj_code;
/** 预算会计科目名称 */
private String budg_subj_name;
/** 辅助核算项1 */
private String check_type_name1;
/** 辅助核算项2 */
private String check_type_name2;
/** 辅助核算项3 */
private String check_type_name3;
/** 辅助核算项4 */
private String check_type_name4;
/** 辅助核算项5 */
private String check_type_name5;
/** 辅助核算项6 */
private String check_type_name6;
/** 辅助核算项7 */
private String check_type_name7;
/** 辅助核算项8 */
private String check_type_name8;
/** 单位编码 */
private String org_code;
/** 单位名称 */
private String org_name;
/** 院区编码 */
private String branch_code;
/** 院区名称 */
private String branch_name;
public String getAcct_year() {
return acct_year;
}
public void setAcct_year(String acct_year) {
this.acct_year = acct_year;
}
public String getAcct_subj_code() {
return acct_subj_code;
}
public void setAcct_subj_code(String acct_subj_code) {
this.acct_subj_code = acct_subj_code;
}
public String getAcct_subj_name() {
return acct_subj_name;
}
public void setAcct_subj_name(String acct_subj_name) {
this.acct_subj_name = acct_subj_name;
}
public String getSupper_code() {
return supper_code;
}
public void setSupper_code(String supper_code) {
this.supper_code = supper_code;
}
public String getSubj_level() {
return subj_level;
}
public void setSubj_level(String subj_level) {
this.subj_level = subj_level;
}
public String getIs_last() {
return is_last;
}
public void setIs_last(String is_last) {
this.is_last = is_last;
}
public String getSubj_type_code() {
return subj_type_code;
}
public void setSubj_type_code(String subj_type_code) {
this.subj_type_code = subj_type_code;
}
public String getSubj_type_name() {
return subj_type_name;
}
public void setSubj_type_name(String subj_type_name) {
this.subj_type_name = subj_type_name;
}
public String getDirection() {
return direction;
}
public void setDirection(String direction) {
this.direction = direction;
}
public String getIs_cash() {
return is_cash;
}
public void setIs_cash(String is_cash) {
this.is_cash = is_cash;
}
public String getSubj_nature_code() {
return subj_nature_code;
}
public void setSubj_nature_code(String subj_nature_code) {
this.subj_nature_code = subj_nature_code;
}
public String getIs_check() {
return is_check;
}
public void setIs_check(String is_check) {
this.is_check = is_check;
}
public String getIs_stop() {
return is_stop;
}
public void setIs_stop(String is_stop) {
this.is_stop = is_stop;
}
public String getBudg_subj_code() {
return budg_subj_code;
}
public void setBudg_subj_code(String budg_subj_code) {
this.budg_subj_code = budg_subj_code;
}
public String getBudg_subj_name() {
return budg_subj_name;
}
public void setBudg_subj_name(String budg_subj_name) {
this.budg_subj_name = budg_subj_name;
}
public String getCheck_type_name1() {
return check_type_name1;
}
public void setCheck_type_name1(String check_type_name1) {
this.check_type_name1 = check_type_name1;
}
public String getCheck_type_name2() {
return check_type_name2;
}
public void setCheck_type_name2(String check_type_name2) {
this.check_type_name2 = check_type_name2;
}
public String getCheck_type_name3() {
return check_type_name3;
}
public void setCheck_type_name3(String check_type_name3) {
this.check_type_name3 = check_type_name3;
}
public String getCheck_type_name4() {
return check_type_name4;
}
public void setCheck_type_name4(String check_type_name4) {
this.check_type_name4 = check_type_name4;
}
public String getCheck_type_name5() {
return check_type_name5;
}
public void setCheck_type_name5(String check_type_name5) {
this.check_type_name5 = check_type_name5;
}
public String getCheck_type_name6() {
return check_type_name6;
}
public void setCheck_type_name6(String check_type_name6) {
this.check_type_name6 = check_type_name6;
}
public String getCheck_type_name7() {
return check_type_name7;
}
public void setCheck_type_name7(String check_type_name7) {
this.check_type_name7 = check_type_name7;
}
public String getCheck_type_name8() {
return check_type_name8;
}
public void setCheck_type_name8(String check_type_name8) {
this.check_type_name8 = check_type_name8;
}
public String getOrg_code() {
return org_code;
}
public void setOrg_code(String org_code) {
this.org_code = org_code;
}
public String getOrg_name() {
return org_name;
}
public void setOrg_name(String org_name) {
this.org_name = org_name;
}
public String getBranch_code() {
return branch_code;
}
public void setBranch_code(String branch_code) {
this.branch_code = branch_code;
}
public String getBranch_name() {
return branch_name;
}
public void setBranch_name(String branch_name) {
this.branch_name = branch_name;
}
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.xsFinance.dictAcctSubj.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* 子表(DictAcctSubj)表服务接口
*
* @author makejava
* @since 2024-07-09 11:23:36
*/
public interface IDictAcctSubjService extends IBaseService<DictAcctSubjEntity, String>{
/**
* @param jsonObject
* @return com.hzya.frame.web.entity.JsonResultEntity
* @Author lvleigang
* @Description 数据表
* @Date 11:52 上午 2024/3/27
**/
JsonResultEntity queryData(JSONObject jsonObject);
}

View File

@ -0,0 +1,61 @@
package com.hzya.frame.xsFinance.dictAcctSubj.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.xsFinance.acctVouchInfo.entity.AcctVouchInfoEntityVo;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.xsFinance.dictAcctSubj.dao.IDictAcctSubjDao;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntityVo;
import com.hzya.frame.xsFinance.dictAcctSubj.service.IDictAcctSubjService;
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;
/**
* 子表(DictAcctSubj)表服务实现类
*
* @author makejava
* @since 2024-07-09 11:23:36
*/
@Service(value = "dictAcctSubjService")
public class DictAcctSubjServiceImpl extends BaseService<DictAcctSubjEntity, String> implements IDictAcctSubjService {
private IDictAcctSubjDao dictAcctSubjDao;
@Autowired
public void setDictAcctSubjDao(IDictAcctSubjDao dao) {
this.dictAcctSubjDao = dao;
this.dao = dao;
}
/**
* @param jsonObject
* @return com.hzya.frame.web.entity.JsonResultEntity
* @Author lvleigang
* @Description 数据表
* @Date 11:52 上午 2024/3/27
**/
@Override
public JsonResultEntity queryData(JSONObject jsonObject) {
DictAcctSubjEntity entity = getData("jsonStr", jsonObject, DictAcctSubjEntity.class);
if(entity == null ){
entity = new DictAcctSubjEntity();
}
//判断分页
if (entity.getPageNum() != null && entity.getPageSize() != null) {
PageHelper.startPage(entity.getPageNum(), entity.getPageSize());
List<DictAcctSubjEntityVo> list = dictAcctSubjDao.queryData(entity);
PageInfo pageInfo = new PageInfo(list);
return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo);
}else {
List<DictAcctSubjEntityVo> list = dictAcctSubjDao.queryData(entity);
return BaseResult.getSuccessMessageEntity("查询数据成功", list);
}
}
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.xsFinance.dictCheckType.dao;
import com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntityVo;
import java.util.List;
/**
* 子表(dict_check_type: table)表数据库访问层
*
* @author makejava
* @since 2024-07-09 11:24:25
*/
public interface IDictCheckTypeDao extends IBaseDao<DictCheckTypeEntity, String> {
List<DictCheckTypeEntityVo> queryData(DictCheckTypeEntity entity);
}

View File

@ -0,0 +1,28 @@
package com.hzya.frame.xsFinance.dictCheckType.dao.impl;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntityVo;
import com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity;
import com.hzya.frame.xsFinance.dictCheckType.dao.IDictCheckTypeDao;
import com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntityVo;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import java.util.List;
/**
* 子表(DictCheckType)表数据库访问层
*
* @author makejava
* @since 2024-07-09 11:24:25
*/
@Repository(value = "DictCheckTypeDaoImpl")
public class DictCheckTypeDaoImpl extends MybatisGenericDao<DictCheckTypeEntity, String> implements IDictCheckTypeDao{
@Override
public List<DictCheckTypeEntityVo> queryData(DictCheckTypeEntity entity) {
List<DictCheckTypeEntityVo> o = (List<DictCheckTypeEntityVo>) super.selectList(getSqlIdPrifx() + "queryData", entity);
return o;
}
}

View File

@ -0,0 +1,95 @@
package com.hzya.frame.xsFinance.dictCheckType.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 子表(DictCheckType)实体类
*
* @author makejava
* @since 2024-07-09 11:24:25
*/
public class DictCheckTypeEntity extends BaseEntity {
/** 辅助核算项编码 */
private String check_type_code;
/** 辅助核算项名称 */
private String check_type_name;
/** 单位编码 */
private String org_code;
/** 单位名称 */
private String org_name;
/** 院区编码 */
private String branch_code;
/** 院区名称 */
private String branch_name;
/** 会计年度 */
private String kjnd;
/** gsdm */
private String gsdm;
public String getCheck_type_code() {
return check_type_code;
}
public void setCheck_type_code(String check_type_code) {
this.check_type_code = check_type_code;
}
public String getCheck_type_name() {
return check_type_name;
}
public void setCheck_type_name(String check_type_name) {
this.check_type_name = check_type_name;
}
public String getOrg_code() {
return org_code;
}
public void setOrg_code(String org_code) {
this.org_code = org_code;
}
public String getOrg_name() {
return org_name;
}
public void setOrg_name(String org_name) {
this.org_name = org_name;
}
public String getBranch_code() {
return branch_code;
}
public void setBranch_code(String branch_code) {
this.branch_code = branch_code;
}
public String getBranch_name() {
return branch_name;
}
public void setBranch_name(String branch_name) {
this.branch_name = branch_name;
}
public String getKjnd() {
return kjnd;
}
public void setKjnd(String kjnd) {
this.kjnd = kjnd;
}
public String getGsdm() {
return gsdm;
}
public void setGsdm(String gsdm) {
this.gsdm = gsdm;
}
}

View File

@ -0,0 +1,119 @@
<?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.xsFinance.dictCheckType.dao.impl.DictCheckTypeDaoImpl">
<resultMap id="get-DictCheckTypeEntity-result" type="com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity" >
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
<result property="check_type_code" column="check_type_code" jdbcType="VARCHAR"/>
<result property="check_type_name" column="check_type_name" jdbcType="VARCHAR"/>
<result property="org_code" column="org_code" jdbcType="VARCHAR"/>
<result property="org_name" column="org_name" jdbcType="VARCHAR"/>
<result property="branch_code" column="branch_code" jdbcType="VARCHAR"/>
<result property="branch_name" column="branch_name" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "DictCheckTypeEntity_Base_Column_List">
kjnd
,gsdm
,check_type_code
,check_type_name
,org_code
,org_name
,branch_code
,branch_name
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-DictCheckTypeEntity-result" parameterType = "com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity">
select
<include refid="DictCheckTypeEntity_Base_Column_List" />
from dict_check_type
<trim prefix="where" prefixOverrides="and">
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code = #{check_type_code} </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name = #{check_type_name} </if>
<if test="org_code != null and org_code != ''"> and org_code = #{org_code} </if>
<if test="org_name != null and org_name != ''"> and org_name = #{org_name} </if>
<if test="branch_code != null and branch_code != ''"> and branch_code = #{branch_code} </if>
<if test="branch_name != null and branch_name != ''"> and branch_name = #{branch_name} </if>
</trim>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity">
select count(1) from dict_check_type
<trim prefix="where" prefixOverrides="and">
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code = #{check_type_code} </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name = #{check_type_name} </if>
<if test="org_code != null and org_code != ''"> and org_code = #{org_code} </if>
<if test="org_name != null and org_name != ''"> and org_name = #{org_name} </if>
<if test="branch_code != null and branch_code != ''"> and branch_code = #{branch_code} </if>
<if test="branch_name != null and branch_name != ''"> and branch_name = #{branch_name} </if>
</trim>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-DictCheckTypeEntity-result" parameterType = "com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity">
select
<include refid="DictCheckTypeEntity_Base_Column_List" />
from dict_check_type
<trim prefix="where" prefixOverrides="and">
<if test="kjnd != null and kjnd != ''"> and kjnd like concat('%',#{kjnd},'%') </if>
<if test="gsdm != null and gsdm != ''"> and gsdm like concat('%',#{gsdm},'%') </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code like concat('%',#{check_type_code},'%') </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name like concat('%',#{check_type_name},'%') </if>
<if test="org_code != null and org_code != ''"> and org_code like concat('%',#{org_code},'%') </if>
<if test="org_name != null and org_name != ''"> and org_name like concat('%',#{org_name},'%') </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like concat('%',#{branch_code},'%') </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like concat('%',#{branch_name},'%') </if>
</trim>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="DictCheckTypeentity_list_or" resultMap="get-DictCheckTypeEntity-result" parameterType = "com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity">
select
<include refid="DictCheckTypeEntity_Base_Column_List" />
from dict_check_type
<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="check_type_code != null and check_type_code != ''"> or check_type_code = #{check_type_code} </if>
<if test="check_type_name != null and check_type_name != ''"> or check_type_name = #{check_type_name} </if>
<if test="org_code != null and org_code != ''"> or org_code = #{org_code} </if>
<if test="org_name != null and org_name != ''"> or org_name = #{org_name} </if>
<if test="branch_code != null and branch_code != ''"> or branch_code = #{branch_code} </if>
<if test="branch_name != null and branch_name != ''"> or branch_name = #{branch_name} </if>
</trim>
</select>
<resultMap id="get-DictCheckTypeEntityVo-result" type="com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntityVo" >
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
<result property="check_type_code" column="check_type_code" jdbcType="VARCHAR"/>
<result property="check_type_name" column="check_type_name" jdbcType="VARCHAR"/>
<result property="org_code" column="org_code" jdbcType="VARCHAR"/>
<result property="org_name" column="org_name" jdbcType="VARCHAR"/>
<result property="branch_code" column="branch_code" jdbcType="VARCHAR"/>
<result property="branch_name" column="branch_name" jdbcType="VARCHAR"/>
</resultMap>
<!-- 分页查询列表 采用like格式 -->
<select id="queryData" resultMap="get-DictCheckTypeEntityVo-result" parameterType = "com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity">
select
<include refid="DictCheckTypeEntity_Base_Column_List" />
from dict_check_type
<trim prefix="where" prefixOverrides="and">
<if test="kjnd != null and kjnd != ''"> and kjnd = '${kjnd}' </if>
<if test="gsdm != null and gsdm != ''"> and gsdm = '${gsdm}' </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code like '%${check_type_code}%' </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name like '%${check_type_name}%' </if>
<if test="org_code != null and org_code != ''"> and org_code like '%${org_code}%' </if>
<if test="org_name != null and org_name != ''"> and org_name like '%${org_name}%' </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like '%${branch_code}%' </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like '%${branch_name}%' </if>
</trim>
</select>
</mapper>

View File

@ -0,0 +1,93 @@
package com.hzya.frame.xsFinance.dictCheckType.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 子表(DictCheckType)实体类
*
* @author makejava
* @since 2024-07-09 11:24:25
*/
public class DictCheckTypeEntityVo {
/** 辅助核算项编码 */
private String check_type_code;
/** 辅助核算项名称 */
private String check_type_name;
/** 单位编码 */
private String org_code;
/** 单位名称 */
private String org_name;
/** 院区编码 */
private String branch_code;
/** 院区名称 */
private String branch_name;
private String kjnd;
private String gsdm;
public String getCheck_type_code() {
return check_type_code;
}
public void setCheck_type_code(String check_type_code) {
this.check_type_code = check_type_code;
}
public String getCheck_type_name() {
return check_type_name;
}
public void setCheck_type_name(String check_type_name) {
this.check_type_name = check_type_name;
}
public String getOrg_code() {
return org_code;
}
public void setOrg_code(String org_code) {
this.org_code = org_code;
}
public String getOrg_name() {
return org_name;
}
public void setOrg_name(String org_name) {
this.org_name = org_name;
}
public String getBranch_code() {
return branch_code;
}
public void setBranch_code(String branch_code) {
this.branch_code = branch_code;
}
public String getBranch_name() {
return branch_name;
}
public void setBranch_name(String branch_name) {
this.branch_name = branch_name;
}
public String getKjnd() {
return kjnd;
}
public void setKjnd(String kjnd) {
this.kjnd = kjnd;
}
public String getGsdm() {
return gsdm;
}
public void setGsdm(String gsdm) {
this.gsdm = gsdm;
}
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.xsFinance.dictCheckType.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* 子表(DictCheckType)表服务接口
*
* @author makejava
* @since 2024-07-09 11:24:25
*/
public interface IDictCheckTypeService extends IBaseService<DictCheckTypeEntity, String>{
/**
* @param jsonObject
* @return com.hzya.frame.web.entity.JsonResultEntity
* @Author lvleigang
* @Description 数据表
* @Date 11:52 上午 2024/3/27
**/
JsonResultEntity queryData(JSONObject jsonObject);
}

View File

@ -0,0 +1,61 @@
package com.hzya.frame.xsFinance.dictCheckType.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.xsFinance.dictAcctSubj.entity.DictAcctSubjEntityVo;
import com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntity;
import com.hzya.frame.xsFinance.dictCheckType.dao.IDictCheckTypeDao;
import com.hzya.frame.xsFinance.dictCheckType.entity.DictCheckTypeEntityVo;
import com.hzya.frame.xsFinance.dictCheckType.service.IDictCheckTypeService;
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;
/**
* 子表(DictCheckType)表服务实现类
*
* @author makejava
* @since 2024-07-09 11:24:25
*/
@Service(value = "dictCheckTypeService")
public class DictCheckTypeServiceImpl extends BaseService<DictCheckTypeEntity, String> implements IDictCheckTypeService {
private IDictCheckTypeDao dictCheckTypeDao;
@Autowired
public void setDictCheckTypeDao(IDictCheckTypeDao dao) {
this.dictCheckTypeDao = dao;
this.dao = dao;
}
/**
* @param jsonObject
* @return com.hzya.frame.web.entity.JsonResultEntity
* @Author lvleigang
* @Description 数据表
* @Date 11:52 上午 2024/3/27
**/
@Override
public JsonResultEntity queryData(JSONObject jsonObject) {
DictCheckTypeEntity entity = getData("jsonStr", jsonObject, DictCheckTypeEntity.class);
if(entity == null ){
entity = new DictCheckTypeEntity();
}
//判断分页
if (entity.getPageNum() != null && entity.getPageSize() != null) {
PageHelper.startPage(entity.getPageNum(), entity.getPageSize());
List<DictCheckTypeEntityVo> list = dictCheckTypeDao.queryData(entity);
PageInfo pageInfo = new PageInfo(list);
return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo);
}else {
List<DictCheckTypeEntityVo> list = dictCheckTypeDao.queryData(entity);
return BaseResult.getSuccessMessageEntity("查询数据成功", list);
}
}
}