GrpU8查询

This commit is contained in:
lvleigang 2024-08-08 17:53:03 +08:00
parent 86193cadba
commit f5a9fe7077
21 changed files with 2067 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package com.hzya.frame.grpU8.acctVouchInfo.dao;
import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.grpU8.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);
}

View File

@ -0,0 +1,29 @@
package com.hzya.frame.grpU8.acctVouchInfo.dao.impl;
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.grpU8.acctVouchInfo.dao.IAcctVouchInfoDao;
import com.hzya.frame.grpU8.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;
}
}

View File

@ -0,0 +1,194 @@
package com.hzya.frame.grpU8.acctVouchInfo.entity;
import java.util.Date;
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;
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,198 @@
<?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.acctVouchInfo.dao.impl.AcctVouchInfoDaoImpl">
<resultMap id="get-AcctVouchInfoEntity-result" type="com.hzya.frame.grpU8.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.grpU8.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.grpU8.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.grpU8.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.grpU8.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.grpU8.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.grpU8.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 '%${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_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,194 @@
package com.hzya.frame.grpU8.acctVouchInfo.entity;
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 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;
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.grpU8.acctVouchInfo.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.hzya.frame.grpU8.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,61 @@
package com.hzya.frame.grpU8.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.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.grpU8.acctVouchInfo.dao.IAcctVouchInfoDao;
import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntityVo;
import com.hzya.frame.grpU8.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);
return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo);
}else {
List<AcctVouchInfoEntityVo> list = acctVouchInfoDao.queryData(entity);
return BaseResult.getSuccessMessageEntity("查询数据成功", list);
}
}
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.grpU8.dictAcctSubj.dao;
import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.grpU8.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.grpU8.dictAcctSubj.dao.impl;
import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntityVo;
import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.grpU8.dictAcctSubj.dao.IDictAcctSubjDao;
import com.hzya.frame.grpU8.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.grpU8.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,270 @@
<?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.dictAcctSubj.dao.impl.DictAcctSubjDaoImpl">
<resultMap id="get-DictAcctSubjEntity-result" type="com.hzya.frame.grpU8.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.grpU8.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.grpU8.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.grpU8.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.grpU8.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.grpU8.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.grpU8.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 '%${acct_year}%' </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="supper_code != null and supper_code != ''"> and supper_code like '%${supper_code}%' </if>
<if test="subj_level != null and subj_level != ''"> and subj_level like '%${subj_level}%' </if>
<if test="is_last != null and is_last != ''"> and is_last like '%${is_last}%' </if>
<if test="subj_type_code != null and subj_type_code != ''"> and subj_type_code like '%${subj_type_code}%' </if>
<if test="subj_type_name != null and subj_type_name != ''"> and subj_type_name like '%${subj_type_name}%' </if>
<if test="direction != null and direction != ''"> and direction like '%${direction}%' </if>
<if test="is_cash != null and is_cash != ''"> and is_cash like '%${is_cash}%' </if>
<if test="subj_nature_code != null and subj_nature_code != ''"> and subj_nature_code like '%${subj_nature_code}%' </if>
<if test="is_check != null and is_check != ''"> and is_check like '%${is_check}%' </if>
<if test="is_stop != null and is_stop != ''"> and is_stop like '%${is_stop}%' </if>
<if test="budg_subj_code != null and budg_subj_code != ''"> and budg_subj_code like '%${budg_subj_code}%' </if>
<if test="budg_subj_name != null and budg_subj_name != ''"> and budg_subj_name like '%${budg_subj_name}%' </if>
<if test="check_type_name1 != null and check_type_name1 != ''"> and check_type_name1 like '%${check_type_name1}%' </if>
<if test="check_type_name2 != null and check_type_name2 != ''"> and check_type_name2 like '%${check_type_name2}%' </if>
<if test="check_type_name3 != null and check_type_name3 != ''"> and check_type_name3 like '%${check_type_name3}%' </if>
<if test="check_type_name4 != null and check_type_name4 != ''"> and check_type_name4 like '%${check_type_name4}%' </if>
<if test="check_type_name5 != null and check_type_name5 != ''"> and check_type_name5 like '%${check_type_name5}%' </if>
<if test="check_type_name6 != null and check_type_name6 != ''"> and check_type_name6 like '%${check_type_name6}%' </if>
<if test="check_type_name7 != null and check_type_name7 != ''"> and check_type_name7 like '%${check_type_name7}%' </if>
<if test="check_type_name8 != null and check_type_name8 != ''"> and check_type_name8 like '%${check_type_name8}%' </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,284 @@
package com.hzya.frame.grpU8.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.grpU8.dictAcctSubj.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.hzya.frame.grpU8.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.grpU8.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.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntityVo;
import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.grpU8.dictAcctSubj.dao.IDictAcctSubjDao;
import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntityVo;
import com.hzya.frame.grpU8.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.grpU8.dictCheckType.dao;
import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.grpU8.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.grpU8.dictCheckType.dao.impl;
import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntityVo;
import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntity;
import com.hzya.frame.grpU8.dictCheckType.dao.IDictCheckTypeDao;
import com.hzya.frame.grpU8.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,74 @@
package com.hzya.frame.grpU8.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;
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;
}
}

View File

@ -0,0 +1,103 @@
<?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.dictCheckType.dao.impl.DictCheckTypeDaoImpl">
<resultMap id="get-DictCheckTypeEntity-result" type="com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntity" >
<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">
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.grpU8.dictCheckType.entity.DictCheckTypeEntity">
select
<include refid="DictCheckTypeEntity_Base_Column_List" />
from dict_check_type
<trim prefix="where" prefixOverrides="and">
<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.grpU8.dictCheckType.entity.DictCheckTypeEntity">
select count(1) from dict_check_type
<trim prefix="where" prefixOverrides="and">
<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.grpU8.dictCheckType.entity.DictCheckTypeEntity">
select
<include refid="DictCheckTypeEntity_Base_Column_List" />
from dict_check_type
<trim prefix="where" prefixOverrides="and">
<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.grpU8.dictCheckType.entity.DictCheckTypeEntity">
select
<include refid="DictCheckTypeEntity_Base_Column_List" />
from dict_check_type
<trim prefix="where" prefixOverrides="and">
<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.grpU8.dictCheckType.entity.DictCheckTypeEntityVo" >
<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.grpU8.dictCheckType.entity.DictCheckTypeEntity">
select
<include refid="DictCheckTypeEntity_Base_Column_List" />
from dict_check_type
<trim prefix="where" prefixOverrides="and">
<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,74 @@
package com.hzya.frame.grpU8.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;
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;
}
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.grpU8.dictCheckType.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.hzya.frame.grpU8.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.grpU8.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.grpU8.dictAcctSubj.entity.DictAcctSubjEntity;
import com.hzya.frame.grpU8.dictAcctSubj.entity.DictAcctSubjEntityVo;
import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntity;
import com.hzya.frame.grpU8.dictCheckType.dao.IDictCheckTypeDao;
import com.hzya.frame.grpU8.dictCheckType.entity.DictCheckTypeEntityVo;
import com.hzya.frame.grpU8.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);
}
}
}