fw-grpU8分支结构上传
This commit is contained in:
parent
f0db5772a2
commit
0fbc2b3679
|
@ -34,11 +34,11 @@
|
||||||
<!-- <version>${revision}</version>-->
|
<!-- <version>${revision}</version>-->
|
||||||
<!-- </dependency>-->
|
<!-- </dependency>-->
|
||||||
|
|
||||||
<!-- <dependency>-->
|
<dependency>
|
||||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
<groupId>com.hzya.frame</groupId>
|
||||||
<!-- <artifactId>fw-grpU8</artifactId>-->
|
<artifactId>fw-grpU8</artifactId>
|
||||||
<!-- <version>${revision}</version>-->
|
<version>${revision}</version>
|
||||||
<!-- </dependency>-->
|
</dependency>
|
||||||
<!-- <dependency>-->
|
<!-- <dependency>-->
|
||||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||||
<!-- <artifactId>fw-nc</artifactId>-->
|
<!-- <artifactId>fw-nc</artifactId>-->
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<parent>
|
||||||
|
<artifactId>kangarooDataCenterV3</artifactId>
|
||||||
|
<groupId>com.hzya.frame</groupId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>fw-grpU8</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<version>${revision}</version>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hzya.frame</groupId>
|
||||||
|
<artifactId>base-service</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<version>${mysql-connector-java}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<mainClass>none</mainClass> <!-- 取消查找本项目下的Main方法:为了解决Unable to find main class的问题 -->
|
||||||
|
<classifier>execute</classifier> <!-- 为了解决依赖模块找不到此模块中的类或属性 -->
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
|
@ -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);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.hzya.frame.grpU8.acctVouchInfo.dao.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
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 {
|
||||||
|
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<AcctVouchInfoEntityVo> queryData(AcctVouchInfoEntity entity) {
|
||||||
|
List<AcctVouchInfoEntityVo> o = (List<AcctVouchInfoEntityVo>) super.selectList(getSqlIdPrifx() + "queryData", entity);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -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 = '${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 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>
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
package com.hzya.frame.grpU8.acctVouchInfo.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
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
|
||||||
|
**/
|
||||||
|
Object queryData(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param jsonObject
|
||||||
|
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 数据表
|
||||||
|
* @Date 11:52 上午 2024/3/27
|
||||||
|
**/
|
||||||
|
SysExtensionApiEntity addDataSourceCode(SysExtensionApiEntity jsonObject);
|
||||||
|
}
|
|
@ -0,0 +1,105 @@
|
||||||
|
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.application.database.dao.ISysApplicationDatabaseDao;
|
||||||
|
import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysApplicationEntity;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
import com.hzya.frame.sysnew.user.entity.SysUserEntity;
|
||||||
|
import com.hzya.frame.util.bipV3.SHA256Util;
|
||||||
|
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.apache.commons.lang3.StringUtils;
|
||||||
|
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;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 子表(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;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ISysApplicationDatabaseDao sysApplicationDatabaseDao;
|
||||||
|
|
||||||
|
@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 Object 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);
|
||||||
|
JSONObject object = new JSONObject();
|
||||||
|
object.put("status","success");
|
||||||
|
object.put("data",pageInfo);
|
||||||
|
return object;
|
||||||
|
}else {
|
||||||
|
List<AcctVouchInfoEntityVo> list = acctVouchInfoDao.queryData(entity);
|
||||||
|
JSONObject object = new JSONObject();
|
||||||
|
object.put("status","success");
|
||||||
|
object.put("data",list);
|
||||||
|
return object; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param entity
|
||||||
|
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 数据表
|
||||||
|
* @Date 11:52 上午 2024/3/27
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity addDataSourceCode(SysExtensionApiEntity entity) {
|
||||||
|
try {
|
||||||
|
SysApplicationEntity applicationEntity = entity.getReceiveApp();
|
||||||
|
SysApplicationDatabaseEntity sysApplicationDatabaseEntity = new SysApplicationDatabaseEntity();
|
||||||
|
sysApplicationDatabaseEntity.setSts("Y");
|
||||||
|
sysApplicationDatabaseEntity.setDbStatus("1");
|
||||||
|
sysApplicationDatabaseEntity.setAppId(applicationEntity.getId());
|
||||||
|
sysApplicationDatabaseEntity.setDataSourceCode("master");
|
||||||
|
List<SysApplicationDatabaseEntity> sysDataSourceEntities = sysApplicationDatabaseDao.queryDSBase(sysApplicationDatabaseEntity);
|
||||||
|
if(sysDataSourceEntities != null && sysDataSourceEntities.size() > 0){
|
||||||
|
String parm = entity.getBodys();
|
||||||
|
JSONObject jsonObject = JSONObject.parseObject(parm);
|
||||||
|
jsonObject.put("dataSourceCode",sysDataSourceEntities.get(0).getSourceCode());
|
||||||
|
entity.setBodys(jsonObject.toJSONString());
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,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);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.hzya.frame.grpU8.dictAcctSubj.dao.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
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{
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<DictAcctSubjEntityVo> queryData(DictAcctSubjEntity entity) {
|
||||||
|
List<DictAcctSubjEntityVo> o = (List<DictAcctSubjEntityVo>) super.selectList(getSqlIdPrifx() + "queryData", entity);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
**/
|
||||||
|
Object queryData(JSONObject jsonObject);
|
||||||
|
}
|
|
@ -0,0 +1,66 @@
|
||||||
|
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 Object 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);
|
||||||
|
JSONObject object = new JSONObject();
|
||||||
|
object.put("status","success");
|
||||||
|
object.put("data",pageInfo);
|
||||||
|
return object;
|
||||||
|
}else {
|
||||||
|
List<DictAcctSubjEntityVo> list = dictAcctSubjDao.queryData(entity);
|
||||||
|
JSONObject object = new JSONObject();
|
||||||
|
object.put("status","success");
|
||||||
|
object.put("data",list);
|
||||||
|
return object; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -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);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.hzya.frame.grpU8.dictCheckType.dao.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
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{
|
||||||
|
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<DictCheckTypeEntityVo> queryData(DictCheckTypeEntity entity) {
|
||||||
|
List<DictCheckTypeEntityVo> o = (List<DictCheckTypeEntityVo>) super.selectList(getSqlIdPrifx() + "queryData", entity);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
**/
|
||||||
|
Object queryData(JSONObject jsonObject);
|
||||||
|
}
|
|
@ -0,0 +1,67 @@
|
||||||
|
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 Object 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);
|
||||||
|
JSONObject object = new JSONObject();
|
||||||
|
object.put("status","success");
|
||||||
|
object.put("data",pageInfo);
|
||||||
|
return object;
|
||||||
|
}else {
|
||||||
|
List<DictCheckTypeEntityVo> list = dictCheckTypeDao.queryData(entity);
|
||||||
|
JSONObject object = new JSONObject();
|
||||||
|
object.put("status","success");
|
||||||
|
object.put("data",list);
|
||||||
|
return object;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.attachment.dao;/*
|
||||||
|
* @Description 附件
|
||||||
|
* @Author xiangerlin
|
||||||
|
@Date 2022-10-26 11:17
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity;
|
||||||
|
|
||||||
|
public interface IAttachmentFileDao extends IBaseDao<AttachmentFileEntity, String> {
|
||||||
|
Integer saveData(AttachmentFileEntity entity);
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.attachment.dao.impl;/*
|
||||||
|
* @Description 附件
|
||||||
|
* @Author xiangerlin
|
||||||
|
@Date 2022-10-26 11:18
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.attachment.dao.IAttachmentFileDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public class AttachmentFileDaoImpl extends MybatisGenericDao<AttachmentFileEntity, String> implements IAttachmentFileDao {
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public Integer saveData(AttachmentFileEntity entity) {
|
||||||
|
Integer o = super.insert("com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity.AttachmentFileEntity_insert", entity);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,120 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.attachment.entity;/*
|
||||||
|
* @Description 附件表
|
||||||
|
* @Author xiangerlin
|
||||||
|
@Date 2022-10-26 10:40
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
public class AttachmentFileEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String aTGuid;//主键id
|
||||||
|
private String createDate;//创建日期
|
||||||
|
private String createID;//创建人id
|
||||||
|
private String updateDate;//更新日期
|
||||||
|
private String updateID;//更新人id
|
||||||
|
private String deleteDate;//删除日期
|
||||||
|
private String deleteID;//删除人
|
||||||
|
private String aTFileName;//附件名
|
||||||
|
private String aTExtName;//附件后缀名
|
||||||
|
private byte[] aTFile;//附件 二进制文件
|
||||||
|
private String relationApp;//固定传 OER
|
||||||
|
private String isDELETE;//删除标记 0是未删除
|
||||||
|
|
||||||
|
public String getaTGuid() {
|
||||||
|
return aTGuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setaTGuid(String aTGuid) {
|
||||||
|
this.aTGuid = aTGuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateDate() {
|
||||||
|
return createDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateDate(String createDate) {
|
||||||
|
this.createDate = createDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateID() {
|
||||||
|
return createID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateID(String createID) {
|
||||||
|
this.createID = createID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateDate() {
|
||||||
|
return updateDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateDate(String updateDate) {
|
||||||
|
this.updateDate = updateDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateID() {
|
||||||
|
return updateID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateID(String updateID) {
|
||||||
|
this.updateID = updateID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeleteDate() {
|
||||||
|
return deleteDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeleteDate(String deleteDate) {
|
||||||
|
this.deleteDate = deleteDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeleteID() {
|
||||||
|
return deleteID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeleteID(String deleteID) {
|
||||||
|
this.deleteID = deleteID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getaTFileName() {
|
||||||
|
return aTFileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setaTFileName(String aTFileName) {
|
||||||
|
this.aTFileName = aTFileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getaTExtName() {
|
||||||
|
return aTExtName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setaTExtName(String aTExtName) {
|
||||||
|
this.aTExtName = aTExtName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] getaTFile() {
|
||||||
|
return aTFile;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setaTFile(byte[] aTFile) {
|
||||||
|
this.aTFile = aTFile;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRelationApp() {
|
||||||
|
return relationApp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRelationApp(String relationApp) {
|
||||||
|
this.relationApp = relationApp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIsDELETE() {
|
||||||
|
return isDELETE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsDELETE(String isDELETE) {
|
||||||
|
this.isDELETE = isDELETE;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,86 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity">
|
||||||
|
<resultMap id="get-AttachmentFileEntity-result" type="com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity">
|
||||||
|
|
||||||
|
<result property="aTGuid" column="aTGuid" />
|
||||||
|
<result property="createDate" column="createDate" />
|
||||||
|
<result property="createID" column="createID" />
|
||||||
|
<result property="updateDate" column="updateDate" />
|
||||||
|
<result property="updateID" column="updateID" />
|
||||||
|
<result property="deleteDate" column="deleteDate" />
|
||||||
|
<result property="deleteID" column="deleteID" />
|
||||||
|
<result property="aTFileName" column="aTFileName" />
|
||||||
|
<result property="aTExtName" column="aTExtName" />
|
||||||
|
<result column="aTFile" property="aTFile" jdbcType="BLOB" typeHandler="org.apache.ibatis.type.BlobTypeHandler" />
|
||||||
|
<result property="relationApp" column="relationApp" />
|
||||||
|
<result property="isDELETE" column="isDELETE" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
<sql id="AttachmentFileEntity_Base_Column_List">
|
||||||
|
ATGuid,
|
||||||
|
CreateDate,
|
||||||
|
CreateID,
|
||||||
|
UpdateDate,
|
||||||
|
UpdateID,
|
||||||
|
DeleteDate,
|
||||||
|
DeleteID,
|
||||||
|
ATFileName,
|
||||||
|
ATExtName,
|
||||||
|
ATFile,
|
||||||
|
RelationApp,
|
||||||
|
ISDELETE
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="AttachmentFileEntity_list_base" resultMap="get-AttachmentFileEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity">
|
||||||
|
select
|
||||||
|
<include refid="AttachmentFileEntity_Base_Column_List" />
|
||||||
|
FROM
|
||||||
|
AT_AttachmentFile
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="aTGuid != null and aTGuid !='' "> aTGuid = #{aTGuid} </if>
|
||||||
|
<if test="aTFileName != null and aTFileName !='' ">and aTFileName = #{aTFileName} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<insert id="AttachmentFileEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity">
|
||||||
|
insert into AT_AttachmentFile(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="aTGuid != null and aTGuid !='' ">aTGuid,</if>
|
||||||
|
<if test="createDate != null and createDate !='' "> createDate, </if>
|
||||||
|
<if test="createID != null and createID !='' "> createID, </if>
|
||||||
|
<if test="updateDate != null and updateDate !='' "> updateDate ,</if>
|
||||||
|
<if test="updateID != null and updateID !='' ">updateID,</if>
|
||||||
|
<if test="deleteDate != null and deleteDate !='' ">deleteDate,</if>
|
||||||
|
<if test="deleteID != null and deleteID !='' ">deleteID,</if>
|
||||||
|
<if test="aTFileName != null and aTFileName !='' ">aTFileName,</if>
|
||||||
|
<if test="aTExtName != null and aTExtName !='' ">aTExtName,</if>
|
||||||
|
<if test="aTFile != null and aTFile !='' ">aTFile,</if>
|
||||||
|
relationApp,
|
||||||
|
isDELETE
|
||||||
|
</trim>
|
||||||
|
)values
|
||||||
|
(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="aTGuid != null and aTGuid !='' ">#{aTGuid},</if>
|
||||||
|
<if test="createDate != null and createDate !='' "> #{createDate}, </if>
|
||||||
|
<if test="createID != null and createID !='' "> #{createID}, </if>
|
||||||
|
<if test="updateDate != null and updateDate !='' "> #{updateDate} ,</if>
|
||||||
|
<if test="updateID != null and updateID !='' ">#{updateID},</if>
|
||||||
|
<if test="deleteDate != null and deleteDate !='' ">#{deleteDate},</if>
|
||||||
|
<if test="deleteID != null and deleteID !='' ">#{deleteID},</if>
|
||||||
|
<if test="aTFileName != null and aTFileName !='' ">#{aTFileName},</if>
|
||||||
|
<if test="aTExtName != null and aTExtName !='' ">#{aTExtName},</if>
|
||||||
|
<if test="aTFile != null and aTFile !='' ">#{aTFile,typeHandler=org.apache.ibatis.type.BlobTypeHandler},</if>
|
||||||
|
'OER',
|
||||||
|
0
|
||||||
|
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
|
@ -0,0 +1,37 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.attachment.service;/*
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
@Date 2022-10-26 11:19
|
||||||
|
*/
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface IAttachmentFileService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存附件
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
void saveAttachment(AttachmentFileEntity entity);
|
||||||
|
|
||||||
|
List<AttachmentFileEntity> queryFile(AttachmentFileEntity entity)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 调用http接口查询单据附件
|
||||||
|
* @param billCode
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<JSONObject> queryFileByCode(String billCode)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 附件上传
|
||||||
|
* @param fileList
|
||||||
|
* @param mlid
|
||||||
|
* @param kjnd
|
||||||
|
*/
|
||||||
|
void uploadAttachment(List<JSONObject> fileList, String mlid, String kjnd);
|
||||||
|
}
|
|
@ -0,0 +1,229 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.attachment.service.impl;/*
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
@Date 2022-10-26 11:20
|
||||||
|
*/
|
||||||
|
|
||||||
|
import cn.hutool.core.convert.Convert;
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.util.IdUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
|
import cn.hutool.http.HttpUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.attachment.dao.IAttachmentFileDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.attachment.entity.AttachmentFileEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.attachment.service.IAttachmentFileService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerannex.service.IOerAnnexService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerdjml.dto.FileInfoDTO;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.io.*;
|
||||||
|
import java.net.URLDecoder;
|
||||||
|
import java.nio.charset.Charset;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.zip.ZipEntry;
|
||||||
|
import java.util.zip.ZipOutputStream;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class AttachmentFileServiceImpl extends BaseService<AttachmentFileEntity,String> implements IAttachmentFileService {
|
||||||
|
|
||||||
|
Logger logger = LogManager.getLogger(getClass());
|
||||||
|
|
||||||
|
protected IAttachmentFileDao attachmentFileDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setBillLogDao(IAttachmentFileDao dao) {
|
||||||
|
this.attachmentFileDao = dao;
|
||||||
|
this.dao=dao;
|
||||||
|
}
|
||||||
|
@Autowired
|
||||||
|
private IOerAnnexService oerAnnexService;
|
||||||
|
/**
|
||||||
|
* 保存附件
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void saveAttachment(AttachmentFileEntity entity) {
|
||||||
|
entity.setaTGuid("A1:"+IdUtil.fastUUID());
|
||||||
|
String date = DateUtil.format(new Date(), "yyyyMMdd HH:mm:ss");
|
||||||
|
entity.setCreateDate(date);
|
||||||
|
entity.setUpdateDate(date);
|
||||||
|
String fileName = entity.getaTFileName();
|
||||||
|
if (StrUtil.isNotEmpty(fileName)){
|
||||||
|
int index = fileName.lastIndexOf(".");
|
||||||
|
if (index > 0){
|
||||||
|
String suffix = fileName.substring(index);
|
||||||
|
entity.setaTExtName(suffix);
|
||||||
|
String prefix = fileName.substring(0,index);
|
||||||
|
entity.setaTFileName(prefix);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
attachmentFileDao.save("AttachmentFileEntity_insert",entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<AttachmentFileEntity> queryFile(AttachmentFileEntity entity) throws Exception {
|
||||||
|
List<AttachmentFileEntity> list = attachmentFileDao.query(entity);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 调用http接口查询单据附件
|
||||||
|
*
|
||||||
|
* @param billCode 单据号
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<JSONObject> queryFileByCode(String billCode) throws Exception {
|
||||||
|
List<JSONObject> list = new ArrayList<>();
|
||||||
|
if (StrUtil.isNotEmpty(billCode)){
|
||||||
|
JSONObject params = new JSONObject();
|
||||||
|
params.put("billNo",billCode);
|
||||||
|
String res = HttpRequest.post("/grp/af/findFilesBB").body(params.toString()).execute().body();
|
||||||
|
logger.info("根据单号:{},查询到到附件列表为:{}",billCode,res);
|
||||||
|
if (StrUtil.isNotEmpty(res)){
|
||||||
|
JSONObject resJson = JSONObject.parseObject(res);
|
||||||
|
int pageCount = resJson.getIntValue("pageCount");
|
||||||
|
boolean success = resJson.getBoolean("success");
|
||||||
|
if (success){
|
||||||
|
String dataStr = resJson.getString("data");
|
||||||
|
list = JSONObject.parseArray(dataStr,JSONObject.class);
|
||||||
|
if (null != list && list.size() >0){
|
||||||
|
for (JSONObject jsonObject : list) {
|
||||||
|
String fileName = jsonObject.getString("fileName");
|
||||||
|
if (StrUtil.isNotEmpty(fileName)){
|
||||||
|
// 使用indexOf找到"."的位置
|
||||||
|
int dotIndex = fileName.lastIndexOf('.');
|
||||||
|
// 确保找到了".",防止indexOf返回-1的情况
|
||||||
|
if (dotIndex != -1){
|
||||||
|
String ext_name = fileName.substring(dotIndex);
|
||||||
|
jsonObject.put("Ext",ext_name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 附件上传
|
||||||
|
*
|
||||||
|
* @param fileList
|
||||||
|
* @param mlid
|
||||||
|
* @param kjnd
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void uploadAttachment(List<JSONObject> fileList, String mlid, String kjnd) {
|
||||||
|
if (CollectionUtils.isNotEmpty(fileList) && StrUtil.isNotEmpty(mlid) && StrUtil.isNotEmpty(kjnd)){
|
||||||
|
try {
|
||||||
|
//附件下载
|
||||||
|
List<FileInfoDTO> fileInfoList = fileDownload(fileList);
|
||||||
|
//附件保存到grp库里
|
||||||
|
if (CollectionUtils.isNotEmpty(fileInfoList)){
|
||||||
|
//保存前先删一下历史附件
|
||||||
|
OerAnnexEntity delete = new OerAnnexEntity();
|
||||||
|
//delete.setGsdm(Constant.CONFIGMAP.get("gsdm"));
|
||||||
|
delete.setKjnd(kjnd);
|
||||||
|
delete.setMlid(mlid);
|
||||||
|
//oerAnnexService.deleteAnnex(delete);
|
||||||
|
int no = 1;
|
||||||
|
for (FileInfoDTO fileInfo : fileInfoList) {
|
||||||
|
try {
|
||||||
|
AttachmentFileEntity fileEntity = new AttachmentFileEntity();
|
||||||
|
String fileName = URLDecoder.decode(fileInfo.getFile_name(), "UTF-8");
|
||||||
|
fileEntity.setaTFileName(fileName);
|
||||||
|
fileEntity.setaTFile(fileInfo.getData());
|
||||||
|
this.saveAttachment(fileEntity);
|
||||||
|
//保存附件关系
|
||||||
|
OerAnnexEntity annexEntity = new OerAnnexEntity();
|
||||||
|
annexEntity.setMlid(mlid);
|
||||||
|
annexEntity.setKjnd(kjnd);
|
||||||
|
annexEntity.setAnnexName(fileName);
|
||||||
|
annexEntity.setAnnexSize(Convert.toLong(fileInfo.getFile_size()));
|
||||||
|
annexEntity.setOnlyid(fileEntity.getaTGuid());
|
||||||
|
annexEntity.setXh(String.valueOf(no));
|
||||||
|
oerAnnexService.saveAnnex(annexEntity);
|
||||||
|
no++;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.error("保存附件到grp出错:{}",e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.error("保存附件到grp出错:{}",e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<FileInfoDTO> fileDownload(List<JSONObject> fileList){
|
||||||
|
String dir = "1";
|
||||||
|
List<FileInfoDTO> files = new ArrayList<>();
|
||||||
|
//1、下载附件
|
||||||
|
for (JSONObject fileObj : fileList) {
|
||||||
|
try {
|
||||||
|
FileInfoDTO fileInfoDTO = new FileInfoDTO();
|
||||||
|
String url = fileObj.getString("url");
|
||||||
|
String fileName = URLDecoder.decode(fileObj.getString("fileName"));
|
||||||
|
File file = HttpUtil.downloadFileFromUrl(url, dir);
|
||||||
|
if (null != file){
|
||||||
|
String zipPath = dir + File.separator + fileName.split("\\.")[0] + ".zip";
|
||||||
|
ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipPath), Charset.forName("GBK"));
|
||||||
|
writeZipFile(file, zos,fileName);
|
||||||
|
zos.close();
|
||||||
|
// 获取压缩文件的字节数组
|
||||||
|
File zipFile = new File(zipPath);
|
||||||
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream((int) zipFile.length());
|
||||||
|
BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(zipFile));
|
||||||
|
int buf_size = 1024;
|
||||||
|
byte[] buffer = new byte[buf_size];
|
||||||
|
int len = 0;
|
||||||
|
while (-1 != (len = bufferedInputStream.read(buffer, 0, buf_size))) {
|
||||||
|
byteArrayOutputStream.write(buffer, 0, len);
|
||||||
|
}
|
||||||
|
byte[] fileByte = byteArrayOutputStream.toByteArray();
|
||||||
|
fileInfoDTO.setData(fileByte);
|
||||||
|
fileInfoDTO.setFile_size(fileObj.getString("size"));
|
||||||
|
fileInfoDTO.setFile_name(fileName);
|
||||||
|
files.add(fileInfoDTO);
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.error("上传附件出错:{}",e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return files;
|
||||||
|
}
|
||||||
|
private void writeZipFile(File file,ZipOutputStream zos,String fileName){
|
||||||
|
if (null != file && null !=zos){
|
||||||
|
try {
|
||||||
|
logger.info("=====压缩文件=====");
|
||||||
|
zos.putNextEntry(new ZipEntry(fileName));
|
||||||
|
FileInputStream fos = new FileInputStream(file);
|
||||||
|
BufferedInputStream bis = new BufferedInputStream(fos);
|
||||||
|
int len;
|
||||||
|
byte[] buf = new byte[1024];
|
||||||
|
while ((len = bis.read(buf, 0, 1024)) != -1) {
|
||||||
|
zos.write(buf, 0, len);
|
||||||
|
}
|
||||||
|
bis.close();
|
||||||
|
fos.close();
|
||||||
|
logger.info("=====压缩完成=====");
|
||||||
|
}catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.error("=====压缩文件出错=====");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.controlindex.dao;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface IControlIndexDao extends IBaseDao<ControlIndexEntity,String> {
|
||||||
|
|
||||||
|
//根据状态查询数据
|
||||||
|
List<ControlIndexEntity> queryControlIndexByStatus(ControlIndexEntity controlIndexEntity);
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.controlindex.dao.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.controlindex.dao.IControlIndexDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository(value = "controlIndexDaoImpl")
|
||||||
|
public class ControlIndexDaoImpl extends MybatisGenericDao<ControlIndexEntity,String> implements IControlIndexDao {
|
||||||
|
@Override
|
||||||
|
public List<ControlIndexEntity> queryControlIndexByStatus(ControlIndexEntity controlIndexEntity) {
|
||||||
|
List<ControlIndexEntity> list =(List<ControlIndexEntity>) super.selectList("ControlIndexEntity_list_base", controlIndexEntity);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,71 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.controlindex.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
public class ControlIndexEntity extends BaseEntity {
|
||||||
|
private String YSDH;
|
||||||
|
private String ZBID;
|
||||||
|
private int JE;
|
||||||
|
private String KJND;
|
||||||
|
private String ZT;
|
||||||
|
private String ZCMC;
|
||||||
|
|
||||||
|
private String ZBTBZT;
|
||||||
|
|
||||||
|
public String getZBTBZT() {
|
||||||
|
return ZBTBZT;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZBTBZT(String ZBTBZT) {
|
||||||
|
this.ZBTBZT = ZBTBZT;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYSDH() {
|
||||||
|
return YSDH;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYSDH(String YSDH) {
|
||||||
|
this.YSDH = YSDH;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZBID() {
|
||||||
|
return ZBID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZBID(String ZBID) {
|
||||||
|
this.ZBID = ZBID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getJE() {
|
||||||
|
return JE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJE(int JE) {
|
||||||
|
this.JE = JE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKJND() {
|
||||||
|
return KJND;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKJND(String KJND) {
|
||||||
|
this.KJND = KJND;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZT() {
|
||||||
|
return ZT;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZT(String ZT) {
|
||||||
|
this.ZT = ZT;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZCMC() {
|
||||||
|
return ZCMC;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZCMC(String ZCMC) {
|
||||||
|
this.ZCMC = ZCMC;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,158 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.controlindex.dao.impl.ControlIndexDaoImpl">
|
||||||
|
<resultMap id="get-ControlIndexEntity-result" type="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
|
<result property="YSDH" column="YSDH" />
|
||||||
|
<result property="ZBID" column="ZBID" />
|
||||||
|
<result property="JE" column="JE" />
|
||||||
|
<result property="KJND" column="KJND" />
|
||||||
|
<result property="ZT" column="ZT" />
|
||||||
|
<result property="ZCMC" column="ZCMC"/>
|
||||||
|
<result property="ZBTBZT" column="ZBTBZT"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="ControlIndexEntity_Base_Column_List">
|
||||||
|
YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<!--根据状态查询数据-->
|
||||||
|
<select id="ControlIndexEntity_list_base" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
|
select
|
||||||
|
YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
||||||
|
from T_ZCCW_CONTROLINDEX where ZT= #{ZT}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 查询最大单据编号+1-->
|
||||||
|
<select id="ControlIndexEntity_list_base_djbhMax" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
|
select
|
||||||
|
case when
|
||||||
|
len(isnull(max(right(DJBH,'4')), '0')+1)=2 then
|
||||||
|
concat(#{fph}+'BXD'+#{djdate}+'00',isnull(max(right(DJBH,'4')), '0')+1)
|
||||||
|
when len(isnull(max(right(DJBH,'4')), '0')+1)=1 then
|
||||||
|
concat(#{fph}+'BXD'+#{djdate}+'000',isnull(max(right(DJBH,'4')), '0')+1)
|
||||||
|
when len(isnull(max(right(DJBH,'4')), '0')+1)=3 then
|
||||||
|
concat(#{fph}+'BXD'+#{djdate}+'0',isnull(max(right(DJBH,'4')), '0')+1)
|
||||||
|
else concat(#{fph}+'BXD'+#{djdate}+'',isnull(max(right(DJBH,'4')), '0')+1) end
|
||||||
|
as djbh from T_ZCCW_CONTROLINDEX where GSDM=#{gsdm} and DJBH like '%BXD'+#{djdate}+'%';
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询最大mlid+1-->
|
||||||
|
<!--<select id="ControlIndexEntity_list_base_mlidMax" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
|
select
|
||||||
|
case when
|
||||||
|
length(ifnull(max(right(mlid,'4')), '0')+1)=2 then
|
||||||
|
concat(concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'00'),ifnull(max(right(mlid,'4')), '0')+1)
|
||||||
|
when length(ifnull(max(right(mlid,'4')), '0')+1)=1 then
|
||||||
|
concat(concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'000'),ifnull(max(right(mlid,'4')), '0')+1)
|
||||||
|
when length(ifnull(max(right(mlid,'4')), '0')+1)=3 then
|
||||||
|
concat(concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'0'),ifnull(max(right(mlid,'4')), '0')+1)
|
||||||
|
else concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),ifnull(max(right(mlid,'4')), '0')+1) end
|
||||||
|
as mlId from T_ZCCW_CONTROLINDEX where GSDM=#{gsdm} and mlid like concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'%')
|
||||||
|
</select>-->
|
||||||
|
<select id="ControlIndexEntity_list_base_mlidMax" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
|
select (isnull(max(MLID),concat(substring(#{djdate},0,7),0000)) + 1) as mlId
|
||||||
|
from T_ZCCW_CONTROLINDEX where 1=1 and GSDM=#{gsdm} and MLID like concat(substring(#{djdate},0,7),'%')
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<insert id="ControlIndexEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
|
insert into T_ZCCW_CONTROLINDEX(
|
||||||
|
<if test="gsdm != null and gsdm !='' "> GSDM, </if>
|
||||||
|
<if test="kjnd != null and kjnd !='' "> KJND, </if>
|
||||||
|
<if test="djlxId != null and djlxId !='' "> DJLXID, </if>
|
||||||
|
<if test="mlId != null and mlId !='' "> MLID, </if>
|
||||||
|
<if test="zt != null and zt !='' "> ZT, </if>
|
||||||
|
<if test="crerdm != null and crerdm !=''"> CRerDM, </if>
|
||||||
|
<if test="crermc != null and crermc !='' "> CRerMC, </if>
|
||||||
|
<if test="crerdate != null and crerdate !='' "> CRerDate, </if>
|
||||||
|
<if test="flowcode != null and flowcode !='' "> FlowCode,</if>
|
||||||
|
<if test="curshjd != null and curshjd !='' "> CurSHJD, </if>
|
||||||
|
<if test="nextshjd != null and nextshjd !='' "> NextSHJD,</if>
|
||||||
|
<if test="shrs != null and shrs !='' "> SHR,</if>
|
||||||
|
<if test="shrId != null and shrId !=''"> SHRID, </if>
|
||||||
|
<if test="shrq != null and shrq !='' "> SHRQ, </if>
|
||||||
|
<if test="jsfs != null and jsfs !='' "> JSFS, </if>
|
||||||
|
<if test="djbh != null and djbh !='' "> DJBH, </if>
|
||||||
|
<if test="djdate != null and djdate !='' "> DJDate, </if>
|
||||||
|
<if test="fjs != null and fjs !='' "> FJS,</if>
|
||||||
|
<if test="bmdm != null and bmdm !='' "> BMDM, </if>
|
||||||
|
<if test="bmmc != null and bmmc !='' "> BMMC,</if>
|
||||||
|
<if test="grdm != null and grdm !='' ">GRDM, </if>
|
||||||
|
<if test="grmc != null and grmc !='' ">GRMC,</if>
|
||||||
|
<if test="tel != null and tel !='' "> TEL, </if>
|
||||||
|
<if test="yjje != null and yjje !='' "> YJJE, </if>
|
||||||
|
<if test="thje != null and thje !='' "> THJE,</if>
|
||||||
|
<if test="blje != null and blje !='' "> BLJE, </if>
|
||||||
|
<if test="je != null and je !='' "> JE, </if>
|
||||||
|
<if test="whje != null and whje !='' "> WHJE,</if>
|
||||||
|
<if test="jedx != null and jedx !='' "> JEDX </if>
|
||||||
|
)
|
||||||
|
values (
|
||||||
|
<if test="gsdm != null and gsdm !='' "> #{gsdm}, </if>
|
||||||
|
<if test="kjnd != null and kjnd !='' "> #{kjnd}, </if>
|
||||||
|
<if test="djlxId != null and djlxId !='' "> ${djlxId}, </if>
|
||||||
|
<if test="mlId != null and mlId !='' "> ${mlId}, </if>
|
||||||
|
<if test="zt != null and zt !='' "> #{zt}, </if>
|
||||||
|
<if test="crerdm != null and crerdm !=''"> #{crerdm}, </if>
|
||||||
|
<if test="crermc != null and crermc !='' "> #{crermc}, </if>
|
||||||
|
<if test="crerdate != null and crerdate !='' "> #{crerdate}, </if>
|
||||||
|
<if test="flowcode != null and flowcode !='' "> #{flowcode},</if>
|
||||||
|
<if test="curshjd != null and curshjd !='' "> ${curshjd}, </if>
|
||||||
|
<if test="nextshjd != null and nextshjd !='' "> ${nextshjd},</if>
|
||||||
|
<if test="shrs != null and shrs !='' "> #{shrs}, </if>
|
||||||
|
<if test="shrId != null and shrId !='' "> #{shrId}, </if>
|
||||||
|
<if test="shrq != null and shrq !='' "> #{shrq}, </if>
|
||||||
|
<if test="jsfs != null and jsfs !='' "> #{jsfs}, </if>
|
||||||
|
<if test="djbh != null and djbh !='' "> #{djbh}, </if>
|
||||||
|
<if test="djdate != null and djdate !='' "> #{djdate}, </if>
|
||||||
|
<if test="fjs != null and fjs !='' "> ${fjs},</if>
|
||||||
|
<if test="bmdm != null and bmdm !='' "> #{bmdm}, </if>
|
||||||
|
<if test="bmmc != null and bmmc !='' "> #{bmmc},</if>
|
||||||
|
<if test="grdm != null and grdm !='' "> #{grdm}, </if>
|
||||||
|
<if test="grmc != null and grmc !='' "> #{grmc},</if>
|
||||||
|
<if test="tel != null and tel !='' "> #{tel}, </if>
|
||||||
|
<if test="yjje != null and yjje !='' "> #{yjje}, </if>
|
||||||
|
<if test="thje != null and thje !='' "> #{thje},</if>
|
||||||
|
<if test="blje != null and blje !='' "> #{blje}, </if>
|
||||||
|
<if test="je != null and je !='' "> #{je}, </if>
|
||||||
|
<if test="whje != null and whje !='' "> #{whje},</if>
|
||||||
|
<if test="jedx != null and jedx !='' "> #{jedx} </if>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="ControlIndexEntity_update" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
|
update T_ZCCW_CONTROLINDEX set ZBTBZT= #{ZBTBZT}
|
||||||
|
where KJND = #{KJND} and YSDH=#{YSDH} and ZBID=${ZBID}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!--删除,用于单据删除时使用-->
|
||||||
|
<delete id="ControlIndexEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
|
DELETE
|
||||||
|
FROM
|
||||||
|
T_ZCCW_CONTROLINDEX
|
||||||
|
WHERE
|
||||||
|
GSDM = #{gsdm}
|
||||||
|
AND KJND = #{kjnd}
|
||||||
|
AND DJLXID = #{djlxId}
|
||||||
|
AND MLID = #{mlId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<!--修改 用于单据送审和审批时使用-->
|
||||||
|
<update id="ControlIndexEntity_update_songs" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
|
UPDATE T_ZCCW_CONTROLINDEX
|
||||||
|
SET ZT = #{zt},
|
||||||
|
FlowCode = #{flowcode},
|
||||||
|
CurSHJD =#{curshjd},
|
||||||
|
NextSHJD = #{nextshjd},
|
||||||
|
SHRID =#{shrId},
|
||||||
|
SHR = #{shrs},
|
||||||
|
SHRQ = #{shrq}
|
||||||
|
WHERE
|
||||||
|
gsdm = #{gsdm}
|
||||||
|
AND kjnd = #{kjnd}
|
||||||
|
AND djlxid = #{djlxId}
|
||||||
|
AND mlid = #{mlId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,7 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.controlindex.service;
|
||||||
|
|
||||||
|
public interface IControlIndexService {
|
||||||
|
|
||||||
|
//查询数据库表状态为1的数据,写入指标执行表
|
||||||
|
String queryControlIndexByStatus(String status);
|
||||||
|
}
|
|
@ -0,0 +1,158 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.controlindex.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.controlindex.service.IControlIndexService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.IGbiZbsyrecDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerdjml.dao.IOerDjmlDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity;
|
||||||
|
import com.hzya.frame.web.exception.BaseSystemException;
|
||||||
|
import org.apache.ibatis.session.SqlSession;
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service(value = "controlIndexServiceImpl")
|
||||||
|
public class ControlIndexServiceImpl implements IControlIndexService {
|
||||||
|
|
||||||
|
private static Logger logger= LogManager.getLogger(ControlIndexServiceImpl.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IGbiZbsyrecDao gbiZbsyrecDao;
|
||||||
|
@Autowired
|
||||||
|
private IOerDjmlDao oerDjmlDao;
|
||||||
|
/*@Autowired
|
||||||
|
@Qualifier("sqlSessionMaster")
|
||||||
|
private SqlSession sqlSession;*/
|
||||||
|
//查询数据库表状态为1的数据,写入指标执行表
|
||||||
|
@Override
|
||||||
|
public String queryControlIndexByStatus(String stauts) {
|
||||||
|
ControlIndexEntity controlIndexEntity=new ControlIndexEntity();
|
||||||
|
List<ControlIndexEntity> controlIndexEntities=null;
|
||||||
|
OerDjmlEntity oerDjmlEntity=new OerDjmlEntity();
|
||||||
|
oerDjmlEntity.setGsdm("001");
|
||||||
|
oerDjmlEntity.setDjlxId("102");
|
||||||
|
switch (stauts){
|
||||||
|
case "1":
|
||||||
|
logger.info("========开始查询数据库表状态为1的数据========");
|
||||||
|
controlIndexEntity.setZT("1");
|
||||||
|
// controlIndexEntities= sqlSession.selectList("ControlIndexEntity_list_base", controlIndexEntity);
|
||||||
|
logger.info("根据状态为1查询出来的数据有{}条",controlIndexEntities.size());
|
||||||
|
if(CollUtil.isNotEmpty(controlIndexEntities) && controlIndexEntities.size()>0){
|
||||||
|
for (ControlIndexEntity indexEntity : controlIndexEntities) {
|
||||||
|
logger.info("循环遍历中得验收单号为:{}",indexEntity.getYSDH());
|
||||||
|
if(null == indexEntity.getYSDH() || null ==indexEntity.getZBID()){
|
||||||
|
throw new BaseSystemException("验收单号或者指标id不能为空");
|
||||||
|
}
|
||||||
|
//将查询出来的状态为1的数据写入到指标占用表中
|
||||||
|
GbiZbsyrecEntity gbiZbsyrecEntity=new GbiZbsyrecEntity();
|
||||||
|
gbiZbsyrecEntity.setDjId(indexEntity.getYSDH());//单据id
|
||||||
|
logger.info("开始根据编号查询指标占用表的数据");
|
||||||
|
//根据编号查询指标占用表里面是否存在数据,如果存在,则不新增
|
||||||
|
GbiZbsyrecEntity gbiZbsyrecEntityOne =(GbiZbsyrecEntity) gbiZbsyrecDao.selectOne("GbiZbsyrecEntity_list_base_one", gbiZbsyrecEntity);
|
||||||
|
if(null ==gbiZbsyrecEntityOne || !indexEntity.getYSDH().equals(gbiZbsyrecEntityOne.getDjId())) {
|
||||||
|
logger.info("验收单号:{}在指标占用表中不存在,开始保存到占用表中",indexEntity.getYSDH());
|
||||||
|
try {
|
||||||
|
gbiZbsyrecEntity.setJhId(indexEntity.getZBID());//指标id
|
||||||
|
gbiZbsyrecEntity.setDjje(String.valueOf(indexEntity.getJE()));//金额
|
||||||
|
gbiZbsyrecEntity.setKjnd(indexEntity.getKJND());
|
||||||
|
gbiZbsyrecEntity.setGsdm("001");//公司代码
|
||||||
|
gbiZbsyrecEntity.setModule("OER");//模块
|
||||||
|
gbiZbsyrecEntity.setDjlx("102");//单据类型
|
||||||
|
gbiZbsyrecEntity.setDjflh("148001");//单据分录数
|
||||||
|
gbiZbsyrecEntity.setDjzt(indexEntity.getZT());
|
||||||
|
gbiZbsyrecEntity.setSzfx("1");
|
||||||
|
gbiZbsyrecEntity.setJdzb("0");
|
||||||
|
gbiZbsyrecEntity.setCzlx("0");
|
||||||
|
gbiZbsyrecEntity.setDjflmx(indexEntity.getYSDH());
|
||||||
|
gbiZbsyrecDao.save(gbiZbsyrecEntity);
|
||||||
|
//保存报销单
|
||||||
|
oerDjmlEntity.setDjdate(DateUtil.formatDate(new Date()).replace("-",""));
|
||||||
|
String djbh = oerDjmlDao.getMaxDjbgByGsdmZy(oerDjmlEntity);
|
||||||
|
oerDjmlEntity.setDjbh(djbh);
|
||||||
|
oerDjmlEntity.setMlId(indexEntity.getYSDH());
|
||||||
|
oerDjmlEntity.setKjnd(indexEntity.getKJND());
|
||||||
|
oerDjmlEntity.setZt("1");
|
||||||
|
oerDjmlEntity.setJe(String.valueOf(indexEntity.getJE()));
|
||||||
|
oerDjmlEntity.setGrdm("123456");
|
||||||
|
oerDjmlEntity.setGrmc("占用测试");
|
||||||
|
//oerDjmlEntity.setJedx(AmountConvert.toChinese(String.valueOf(indexEntity.getJE())));
|
||||||
|
OerDjmlEntity save = oerDjmlDao.save(oerDjmlEntity);
|
||||||
|
logger.info("验收单号:{}在指标占用表中占用成功",indexEntity.getYSDH());
|
||||||
|
if(save!=null){
|
||||||
|
//修改T_ZCCW_CONTROLINDEX的指标同步状态为1
|
||||||
|
indexEntity.setZBTBZT("1");
|
||||||
|
logger.info("保存中开始根据验收单号:{},会计年度:{},指标id:{}更新指标同步状态",indexEntity.getYSDH(),indexEntity.getKJND(),indexEntity.getZBID());
|
||||||
|
// sqlSession.update("ControlIndexEntity_update",indexEntity);
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("指标占用失败:{}",e.getMessage());
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
logger.info("验收单号:{}在指标占用表中已经存在,不再保存到占用表中",indexEntity.getYSDH());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
logger.info("========没有查询到状态为1,需要写入指标占用表的数据========");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "3":
|
||||||
|
logger.info("========开始查询数据库表状态为3的数据========");
|
||||||
|
controlIndexEntity.setZT("3");
|
||||||
|
// controlIndexEntities= sqlSession.selectList("ControlIndexEntity_list_base", controlIndexEntity);
|
||||||
|
logger.info("根据状态为3查询出来的数据有{}条",controlIndexEntities.size());
|
||||||
|
if(CollUtil.isNotEmpty(controlIndexEntities) && controlIndexEntities.size()>0){
|
||||||
|
for (ControlIndexEntity indexEntity : controlIndexEntities) {
|
||||||
|
if(null == indexEntity.getYSDH() || null ==indexEntity.getZBID()){
|
||||||
|
throw new BaseSystemException("验收单号或者指标id不能为空");
|
||||||
|
}
|
||||||
|
GbiZbsyrecEntity gbiZbsyrecEntity=new GbiZbsyrecEntity();
|
||||||
|
gbiZbsyrecEntity.setDjId(indexEntity.getYSDH());
|
||||||
|
//根据编号查询指标占用表中是否存在,存在就删除
|
||||||
|
GbiZbsyrecEntity gbiZbsyrecEntityOne =(GbiZbsyrecEntity) gbiZbsyrecDao.selectOne("GbiZbsyrecEntity_list_base_one", gbiZbsyrecEntity);
|
||||||
|
if(null !=gbiZbsyrecEntityOne && indexEntity.getYSDH().equals(gbiZbsyrecEntityOne.getDjId())) {
|
||||||
|
logger.info("验收单号:{}在指标占用表中存在,开始删除指标占用表",indexEntity.getYSDH());
|
||||||
|
try {
|
||||||
|
//根据编号删除指标占用表
|
||||||
|
gbiZbsyrecEntity.setKjnd(indexEntity.getKJND());
|
||||||
|
logger.info("指标占用表中的djid为:{},会计年度为:{}",gbiZbsyrecEntity.getDjId(),gbiZbsyrecEntity.getKjnd());
|
||||||
|
gbiZbsyrecDao.delete("GbiZbsyrecEntity_delete",gbiZbsyrecEntity);
|
||||||
|
//根据编号删除报销单
|
||||||
|
oerDjmlEntity.setKjnd(indexEntity.getKJND());
|
||||||
|
oerDjmlEntity.setMlId(indexEntity.getYSDH());
|
||||||
|
logger.info("报销单中的mlid为:{},会计年度为:{},公司代码为:{},单据类型id为:{}",oerDjmlEntity.getMlId(),oerDjmlEntity.getKjnd(),oerDjmlEntity.getGsdm(),oerDjmlEntity.getDjlxId());
|
||||||
|
int delete = oerDjmlDao.delete("OerDjmlEntity_delete", oerDjmlEntity);
|
||||||
|
logger.info("根据验收单号:{}在指标占用表中已删除",indexEntity.getYSDH());
|
||||||
|
if(delete>0){
|
||||||
|
//修改T_ZCCW_CONTROLINDEX的指标同步状态为1
|
||||||
|
indexEntity.setZBTBZT("1");
|
||||||
|
logger.info("删除中开始根据验收单号:{},会计年度:{},指标id:{}更新指标同步状态",indexEntity.getYSDH(),indexEntity.getKJND(),indexEntity.getZBID());
|
||||||
|
// sqlSession.update("ControlIndexEntity_update",indexEntity);
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("指标删除失败:{}",e.getMessage());
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
logger.info("验收单号:{}在指标占用表中不存在",indexEntity.getYSDH());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
logger.info("========没有查询到状态为3,需要删除指标占用表的数据========");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:hecan
|
||||||
|
* @Description:
|
||||||
|
* @params:
|
||||||
|
* @return:
|
||||||
|
* @Date: 2023/6/19 14:47
|
||||||
|
*/
|
||||||
|
public interface IGbiZbsyrecDao extends IBaseDao<GbiZbsyrecEntity,String> {
|
||||||
|
Integer deleteData(GbiZbsyrecEntity oeryszb);
|
||||||
|
|
||||||
|
Integer saveData(GbiZbsyrecEntity oeryszb);
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.IGbiZbsyrecDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:hecan
|
||||||
|
* @Description:
|
||||||
|
* @params:
|
||||||
|
* @return:
|
||||||
|
* @Date: 2023/6/19 14:48
|
||||||
|
*/
|
||||||
|
@Repository(value = "gbiZbsyrecDao")
|
||||||
|
public class GbiZbsyrecDaoImpl extends MybatisGenericDao<GbiZbsyrecEntity,String> implements IGbiZbsyrecDao {
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public Integer deleteData( GbiZbsyrecEntity entity) {
|
||||||
|
Integer o = super.delete(getSqlIdPrifx() + "GbiZbsyrecEntity_delete_mlid", entity);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public Integer saveData( GbiZbsyrecEntity entity) {
|
||||||
|
Integer o = super.insert(getSqlIdPrifx() + "GbiZbsyrecEntity_insert", entity);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,186 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:hecan
|
||||||
|
* @Description:指标使用记录表
|
||||||
|
* @params:
|
||||||
|
* @return:
|
||||||
|
* @Date: 2023/6/16 22:04
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class GbiZbsyrecEntity extends BaseEntity {
|
||||||
|
private String gsdm;//公司代码
|
||||||
|
private String kjnd;//会计年度
|
||||||
|
private String module;
|
||||||
|
private String djlx;
|
||||||
|
private String djId;
|
||||||
|
private String djflh;
|
||||||
|
private String djflmx;
|
||||||
|
private String djywrq;//单据日期
|
||||||
|
private String djzt;
|
||||||
|
private String jhId;//计划id
|
||||||
|
private String djje;//金额
|
||||||
|
private String sl;
|
||||||
|
private String djzy;//摘要
|
||||||
|
private String szfx;
|
||||||
|
private String zblb;
|
||||||
|
private String jdzb;
|
||||||
|
private String czlx;
|
||||||
|
private String zzbz;
|
||||||
|
private String ywdjId;
|
||||||
|
|
||||||
|
public String getGsdm() {
|
||||||
|
return gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGsdm(String gsdm) {
|
||||||
|
this.gsdm = gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjnd() {
|
||||||
|
return kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjnd(String kjnd) {
|
||||||
|
this.kjnd = kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getModule() {
|
||||||
|
return module;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setModule(String module) {
|
||||||
|
this.module = module;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjlx() {
|
||||||
|
return djlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjlx(String djlx) {
|
||||||
|
this.djlx = djlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjId() {
|
||||||
|
return djId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjId(String djId) {
|
||||||
|
this.djId = djId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjflh() {
|
||||||
|
return djflh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjflh(String djflh) {
|
||||||
|
this.djflh = djflh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjflmx() {
|
||||||
|
return djflmx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjflmx(String djflmx) {
|
||||||
|
this.djflmx = djflmx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjywrq() {
|
||||||
|
return djywrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjywrq(String djywrq) {
|
||||||
|
this.djywrq = djywrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjzt() {
|
||||||
|
return djzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjzt(String djzt) {
|
||||||
|
this.djzt = djzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJhId() {
|
||||||
|
return jhId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJhId(String jhId) {
|
||||||
|
this.jhId = jhId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjje() {
|
||||||
|
return djje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjje(String djje) {
|
||||||
|
this.djje = djje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSl() {
|
||||||
|
return sl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSl(String sl) {
|
||||||
|
this.sl = sl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjzy() {
|
||||||
|
return djzy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjzy(String djzy) {
|
||||||
|
this.djzy = djzy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSzfx() {
|
||||||
|
return szfx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSzfx(String szfx) {
|
||||||
|
this.szfx = szfx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZblb() {
|
||||||
|
return zblb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZblb(String zblb) {
|
||||||
|
this.zblb = zblb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJdzb() {
|
||||||
|
return jdzb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJdzb(String jdzb) {
|
||||||
|
this.jdzb = jdzb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCzlx() {
|
||||||
|
return czlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCzlx(String czlx) {
|
||||||
|
this.czlx = czlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZzbz() {
|
||||||
|
return zzbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZzbz(String zzbz) {
|
||||||
|
this.zzbz = zzbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYwdjId() {
|
||||||
|
return ywdjId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYwdjId(String ywdjId) {
|
||||||
|
this.ywdjId = ywdjId;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,173 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.impl.GbiZbsyrecDaoImpl">
|
||||||
|
<resultMap id="get-GbiZbsyrecEntity-result" type="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
<result property="module" column="module" jdbcType="VARCHAR"/>
|
||||||
|
<result property="djlx" column="djlx" />
|
||||||
|
<result property="gsdm" column="gsdm" />
|
||||||
|
<result property="kjnd" column="kjnd" />
|
||||||
|
<result property="djId" column="djId" />
|
||||||
|
<result property="djflh" column="djflh"/>
|
||||||
|
<result property="djflmx" column="djflmx" />
|
||||||
|
<result property="djywrq" column="djywrq" />
|
||||||
|
<result property="djzt" column="djzt" />
|
||||||
|
<result property="jhId" column="jhId" />
|
||||||
|
<result property="djje" column="djje" />
|
||||||
|
<result property="sl" column="sl" />
|
||||||
|
<result property="djzy" column="djzy" />
|
||||||
|
<result property="szfx" column="szfx" />
|
||||||
|
<result property="zblb" column="zblb" />
|
||||||
|
<result property="jdzb" column="jdzb" />
|
||||||
|
<result property="czlx" column="czlx" />
|
||||||
|
<result property="zzbz" column="zzbz" />
|
||||||
|
<result property="ywdjId" column="ywdjId" />
|
||||||
|
|
||||||
|
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="gbiZbsyrecEntity_Base_Column_List">
|
||||||
|
GSDM,KJND
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="GbiZbsyrecEntity_list_base" resultMap="get-GbiZbsyrecEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
select
|
||||||
|
*
|
||||||
|
from
|
||||||
|
GBI_ZBSYREC
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm !='' "> GSDM = #{gsdm} </if>
|
||||||
|
<if test="kjnd != null and kjnd !='' "> and KJND = #{kjnd} </if>
|
||||||
|
<if test="module != null and module !='' "> and MODULE = #{module} </if>
|
||||||
|
<if test="djlx != null and djlx !='' "> and DJLX = #{djlx} </if>
|
||||||
|
<if test="djId != null and djId !='' ">and DJID =#{djId} </if>
|
||||||
|
<if test="djflh != null and djflh !=''"> and DJFLH =#{djflh} </if>
|
||||||
|
<if test="djflmx != null and djflmx !='' ">and DJFLMX =#{djflmx}</if>
|
||||||
|
<if test="djywrq != null and djywrq !='' ">and DJYWRQ =#{djywrq} </if>
|
||||||
|
<if test="djzt != null and djzt !='' ">and DJZT =#{djzt}</if>
|
||||||
|
<if test="jhId != null and jhId !='' ">and JHID =#{jhId} </if>
|
||||||
|
<if test="djje != null and djje !='' ">and DJJE =#{djje}</if>
|
||||||
|
<if test="sl != null and sl !=''">and SL =#{sl} </if>
|
||||||
|
<if test="djzy != null and djzy !='' ">and DJZY =#{djzy} </if>
|
||||||
|
<if test="szfx != null and szfx !='' ">and SZFX =#{szfx} </if>
|
||||||
|
<if test="zblb != null and zblb !='' ">and ZBLB =#{zblb} </if>
|
||||||
|
<if test="jdzb != null and jdzb !='' ">and JDBZ =#{jdzb} </if>
|
||||||
|
<if test="czlx != null and czlx !='' ">and CZLX =#{czlx} </if>
|
||||||
|
<if test="zzbz != null and zzbz !='' ">and ZZBZ =#{zzbz}</if>
|
||||||
|
<if test="ywdjId != null and ywdjId !='' ">and YWDJID =#{ywdjId} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--根据业务参考号查询单个数据-->
|
||||||
|
<select id="GbiZbsyrecEntity_list_base_one" resultMap="get-GbiZbsyrecEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
select
|
||||||
|
*
|
||||||
|
from
|
||||||
|
GBI_ZBSYREC
|
||||||
|
where DJID= #{djId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="GbiZbsyrecEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
insert into GBI_ZBSYREC(
|
||||||
|
<if test="ywdjId != null and ywdjId !='' "> YWDJID,</if>
|
||||||
|
<if test="kjnd != null and kjnd !='' "> KJND, </if>
|
||||||
|
<if test="module != null and module !='' "> MODULE, </if>
|
||||||
|
<if test="djlx != null and djlx !='' "> DJLX, </if>
|
||||||
|
<if test="djId != null and djId !='' "> DJID, </if>
|
||||||
|
<if test="djflh != null and djflh !=''"> DJFLH, </if>
|
||||||
|
<if test="djflmx != null and djflmx !='' "> DJFLMX, </if>
|
||||||
|
<if test="djywrq != null and djywrq !='' "> DJYWRQ, </if>
|
||||||
|
<if test="djzt != null and djzt !='' "> DJZT,</if>
|
||||||
|
<if test="jhId != null and jhId !='' "> JHID, </if>
|
||||||
|
<if test="djje != null and djje !='' "> DJJE ,</if>
|
||||||
|
<if test="sl != null and sl !=''"> SL, </if>
|
||||||
|
<if test="djzy != null and djzy !='' "> DJZY, </if>
|
||||||
|
<if test="szfx != null and szfx !='' "> SZFX, </if>
|
||||||
|
<if test="zblb != null and zblb !='' "> ZBLB, </if>
|
||||||
|
<if test="jdzb != null and jdzb !='' "> JDBZ, </if>
|
||||||
|
<if test="czlx != null and czlx !='' "> CZLX, </if>
|
||||||
|
<if test="zzbz != null and zzbz !='' "> ZZBZ,</if>
|
||||||
|
<if test="gsdm != null and gsdm !='' "> GSDM</if>
|
||||||
|
)
|
||||||
|
values (
|
||||||
|
<if test="ywdjId != null and ywdjId !='' "> #{ywdjId},</if>
|
||||||
|
<if test="kjnd != null and kjnd !='' "> #{kjnd}, </if>
|
||||||
|
<if test="module != null and module !='' "> #{module}, </if>
|
||||||
|
<if test="djlx != null and djlx !='' "> #{djlx}, </if>
|
||||||
|
<if test="djId != null and djId !='' "> #{djId}, </if>
|
||||||
|
<if test="djflh != null and djflh !=''"> #{djflh}, </if>
|
||||||
|
<if test="djflmx != null and djflmx !='' "> #{djflmx}, </if>
|
||||||
|
<if test="djywrq != null and djywrq !='' "> #{djywrq}, </if>
|
||||||
|
<if test="djzt != null and djzt !='' "> #{djzt},</if>
|
||||||
|
<if test="jhId != null and jhId !='' "> #{jhId}, </if>
|
||||||
|
<if test="djje != null and djje !='' "> #{djje},</if>
|
||||||
|
<if test="sl != null and sl !=''"> #{sl}, </if>
|
||||||
|
<if test="djzy != null and djzy !='' "> #{djzy}, </if>
|
||||||
|
<if test="szfx != null and szfx !='' "> #{szfx}, </if>
|
||||||
|
<if test="zblb != null and zblb !='' "> #{zblb}, </if>
|
||||||
|
<if test="jdzb != null and jdzb !='' "> #{jdzb}, </if>
|
||||||
|
<if test="czlx != null and czlx !='' "> #{czlx}, </if>
|
||||||
|
<if test="zzbz != null and zzbz !='' "> #{zzbz},</if>
|
||||||
|
<if test="gsdm != null and gsdm !='' "> #{gsdm}</if>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<delete id="GbiZbsyrecEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
delete from GBI_ZBSYREC where KJND=#{kjnd} and DJID= #{djId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="GbiZbsyrecEntity_delete_gsp" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
delete FROM gbi_zbsyrec where GSDM =#{gsdm} and KJND=#{kjnd} and MODULE='GSP' and abs(DJFLMX)=${djflmx} AND DJJE > 0
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="GbiZbsyrecEntity_delete_oer" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
delete FROM gbi_zbsyrec where GSDM =#{gsdm} and KJND=#{kjnd} and MODULE='OER' and djlx=#{djlx} and djid=#{djId} AND DJFLMX=#{djflmx}
|
||||||
|
</delete>
|
||||||
|
<delete id="GbiZbsyrecEntity_delete_mlid" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
delete FROM gbi_zbsyrec where GSDM =#{gsdm} and KJND=#{kjnd} and djid=#{djId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<!--删除 单据删除时使用-->
|
||||||
|
<delete id="GbiZbsyrecEntity_delete_del" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
DELETE
|
||||||
|
FROM
|
||||||
|
gbi_zbsyrec
|
||||||
|
WHERE
|
||||||
|
GSDM = #{gsdm}
|
||||||
|
AND KJND = #{kjnd}
|
||||||
|
AND (
|
||||||
|
(
|
||||||
|
MODULE = #{module}
|
||||||
|
AND DJFLMX = #{djflmx}
|
||||||
|
)
|
||||||
|
OR (
|
||||||
|
MODULE = #{module}
|
||||||
|
AND DJFLMX =#{djflmx}
|
||||||
|
)
|
||||||
|
);
|
||||||
|
</delete>
|
||||||
|
<!--删除 单据删除时使用-->
|
||||||
|
<delete id="GbiZbsyrecEntity_delete_dels" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
DELETE
|
||||||
|
FROM
|
||||||
|
gbi_zbsyrec
|
||||||
|
WHERE
|
||||||
|
GSDM = #{gsdm}
|
||||||
|
AND KJND = #{kjnd}
|
||||||
|
AND (MODULE = #{module} OR MODULE = #{module})
|
||||||
|
AND abs(DJFLMX) = #{djflmx}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<!-- 修改 单据送审时使用 -->
|
||||||
|
<update id="GbiZbsyrecEntity_update" parameterType="com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity">
|
||||||
|
UPDATE GBI_ZBSYREC
|
||||||
|
SET DJZT = '1'
|
||||||
|
WHERE
|
||||||
|
GSDM = #{gsdm}
|
||||||
|
AND KJND = #{kjnd}
|
||||||
|
AND MODULE = #{module}
|
||||||
|
AND DJLX = #{djlx}
|
||||||
|
AND DJID = #{djId}
|
||||||
|
AND (DJFLMX = #{djflmx})
|
||||||
|
</update>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:hecan
|
||||||
|
* @Description:指标使用记录
|
||||||
|
* @params:
|
||||||
|
* @return:
|
||||||
|
* @Date: 2023/6/19 14:27
|
||||||
|
*/
|
||||||
|
public interface IGbiZbsyrecService {
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.gbizbsyrec.service.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.service.IGbiZbsyrecService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:hecan
|
||||||
|
* @Description:指标使用记录
|
||||||
|
* @params:
|
||||||
|
* @return:
|
||||||
|
* @Date: 2023/6/19 14:30
|
||||||
|
*/
|
||||||
|
@Service(value = "gbiZbsyrecService")
|
||||||
|
public class GbiZbsyrecServiceImpl implements IGbiZbsyrecService {
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.gbizbxmb.dao;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface IGbiZbxmbDao extends IBaseDao<GbiZbxmbEntity, String> {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询指标id最大值加一和取指标代码 长度为8位,不够用0补
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/6 11:52
|
||||||
|
* **/
|
||||||
|
GbiZbxmbEntity queryZbidAndZbdm(GbiZbxmbEntity gbiZbxmbEntity);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 部门修改时候修改指标项目表的部门名称
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/8 16:59
|
||||||
|
* **/
|
||||||
|
Integer updateZbmxBmmc(GbiZbxmbEntity gbiZbxmbEntity);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 根据idpzh查询指标id和指标金额
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/14 17:15
|
||||||
|
* **/
|
||||||
|
List<GbiZbxmbEntity> queryZbxmbByIdpzh(GbiZbxmbEntity gbiZbxmbEntity);
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.gbizbxmb.dao.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbxmb.dao.IGbiZbxmbDao;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GbiZbxmb)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-14 16:58:43
|
||||||
|
*/
|
||||||
|
@Repository(value = "GbiZbxmbDaoImpl")
|
||||||
|
public class GbiZbxmbDaoImpl extends MybatisGenericDao<GbiZbxmbEntity, String> implements IGbiZbxmbDao{
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#gbiZbxmbEntity.dataSourceCode")
|
||||||
|
public GbiZbxmbEntity queryZbidAndZbdm(GbiZbxmbEntity gbiZbxmbEntity) {
|
||||||
|
return (GbiZbxmbEntity) super.selectOne("queryZbidAndZbdm", gbiZbxmbEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#gbiZbxmbEntity.dataSourceCode")
|
||||||
|
public Integer updateZbmxBmmc(GbiZbxmbEntity gbiZbxmbEntity) {
|
||||||
|
int update = super.update("updateZbmxBmmc", gbiZbxmbEntity);
|
||||||
|
return update;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#gbiZbxmbEntity.dataSourceCode")
|
||||||
|
public List<GbiZbxmbEntity> queryZbxmbByIdpzh(GbiZbxmbEntity gbiZbxmbEntity) {
|
||||||
|
return (List<GbiZbxmbEntity>)super.selectList("queryZbxmbByIdpzh",gbiZbxmbEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,42 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.gbizbxmb.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity;
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
/**
|
||||||
|
* (GbiZbxmb)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-14 16:58:44
|
||||||
|
*/
|
||||||
|
public interface IGbiZbxmbService extends IBaseService<GbiZbxmbEntity, String>{
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 项目指标新增
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/6 11:39
|
||||||
|
* **/
|
||||||
|
Object saveGbiZbxmb(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 项目指标更新
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/7 11:37
|
||||||
|
* **/
|
||||||
|
Object updateGbiZbxmb(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 项目指标删除
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/7 14:50
|
||||||
|
* **/
|
||||||
|
Object deleteGbiZbxmb(JSONObject jsonObject);
|
||||||
|
}
|
|
@ -0,0 +1,339 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.gbizbxmb.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbxmb.dao.IGbiZbxmbDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbxmb.service.IGbiZbxmbService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glczrz.dao.IGlCzrzDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glfzxzl.dao.IGlFzxzlDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.dao.ISenderGlXmzlDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.pubbmxx.dao.ISenderPubbmxxDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.pubbmxx.entity.SenderPubbmxxEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.zbwhsz.dao.IZbWhszDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.zbwhsz.entity.ZbWhszEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.zbzbly.dao.IZbZblyDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.zbzbly.entity.ZbZblyEntity;
|
||||||
|
import com.hzya.frame.web.entity.BaseResult;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
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.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GbiZbxmb)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-14 16:58:44
|
||||||
|
*/
|
||||||
|
@Service(value = "gbiZbxmbService")
|
||||||
|
public class GbiZbxmbServiceImpl extends BaseService<GbiZbxmbEntity, String> implements IGbiZbxmbService {
|
||||||
|
|
||||||
|
private IGbiZbxmbDao gbiZbxmbDao;
|
||||||
|
@Autowired
|
||||||
|
private ISenderPubbmxxDao pubbmxxDao;
|
||||||
|
@Autowired
|
||||||
|
private ISenderGlXmzlDao glXmzlDao;
|
||||||
|
@Autowired
|
||||||
|
private IZbWhszDao zbWhszDao;
|
||||||
|
@Autowired
|
||||||
|
private IZbZblyDao zbZblyDao;
|
||||||
|
@Autowired
|
||||||
|
private IGlFzxzlDao glFzxzlDao;
|
||||||
|
@Autowired
|
||||||
|
private IGlCzrzDao glCzrzDao;
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setGbiZbxmbDao(IGbiZbxmbDao dao) {
|
||||||
|
this.gbiZbxmbDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
|
||||||
|
//保存项目指标
|
||||||
|
@Override
|
||||||
|
public Object saveGbiZbxmb(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
if(!checkStr(jsonObject.getString("gsdm"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递公司代码");
|
||||||
|
}
|
||||||
|
if(!checkStr(jsonObject.getString("kjnd"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递会计年度");
|
||||||
|
}
|
||||||
|
if(!checkStr(jsonObject.getString("zblb"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递指标类别");
|
||||||
|
}
|
||||||
|
GbiZbxmbEntity gbiZbxmbEntity = jsonObject.toJavaObject(GbiZbxmbEntity.class);
|
||||||
|
try {
|
||||||
|
//查询指标id最大值和指标代码最大值
|
||||||
|
GbiZbxmbEntity gbiZbxmbEntityZbid = gbiZbxmbDao.queryZbidAndZbdm(gbiZbxmbEntity);
|
||||||
|
gbiZbxmbEntity.setZbid(gbiZbxmbEntityZbid.getZbid());
|
||||||
|
gbiZbxmbEntity.setZbdm(gbiZbxmbEntityZbid.getZbdm());
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据会计年度:{},公司代码:{},指标类别:{}获取指标id和指标代码失败:{}",
|
||||||
|
jsonObject.getString("kjnd"),jsonObject.getString("gsdm"),jsonObject.getString("zblb"),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("获取指标id和指标代码失败");
|
||||||
|
}
|
||||||
|
//更新其他表得使用状态
|
||||||
|
JsonResultEntity jsonResultEntity = updateOtherTable(gbiZbxmbEntity);
|
||||||
|
//保存指标项目表
|
||||||
|
try {
|
||||||
|
gbiZbxmbEntity.setZt("1");//状态为1为保存
|
||||||
|
gbiZbxmbEntity.setIdzbbh(String.valueOf(UUID.randomUUID()));//IDZBBH
|
||||||
|
gbiZbxmbEntity.setSfjz("0");//是否结转
|
||||||
|
gbiZbxmbEntity.setCyskzfs("0");//超预算控制方式
|
||||||
|
gbiZbxmbEntity.setYjbfb(100.00);//预警百分比
|
||||||
|
gbiZbxmbEntity.setPfrid(-1);//批复人id
|
||||||
|
gbiZbxmbEntity.setShrid(-1);//审核人id
|
||||||
|
gbiZbxmbEntity.setSjly(1);//数据来源
|
||||||
|
gbiZbxmbEntity.setXfzt("0");//下发状态
|
||||||
|
gbiZbxmbEntity.setNcysy(0.00);//年初已使用
|
||||||
|
gbiZbxmbEntity.setSjzbid(0);//上级指标id
|
||||||
|
|
||||||
|
logger.info("=========开始保存指标项目表=========");
|
||||||
|
GbiZbxmbEntity save = gbiZbxmbDao.save(gbiZbxmbEntity);
|
||||||
|
logger.info("==========指标项目表保存完毕======");
|
||||||
|
GlCzrzEntity glCzrzEntity=new GlCzrzEntity();
|
||||||
|
glCzrzEntity.setStation("yusuanzhibiaobaocun");
|
||||||
|
logger.info("==========开始查询操作日志的最大值no======");
|
||||||
|
GlCzrzEntity glCzrzEntityNo = glCzrzDao.queryCzrzNo(glCzrzEntity);
|
||||||
|
logger.info("根据station为:{}查询出来的no值为:{}",glCzrzEntity.getStation(),glCzrzEntityNo.getNo());
|
||||||
|
glCzrzEntity.setNo(glCzrzEntityNo.getNo());
|
||||||
|
glCzrzEntity.setName("0.指标保存");
|
||||||
|
glCzrzEntity.setCznr("增加指标"+gbiZbxmbEntity.getZbid()+"(MXZB)");
|
||||||
|
logger.info("==========开始保存操作日志======");
|
||||||
|
glCzrzDao.save(glCzrzEntity);
|
||||||
|
logger.info("==========操作日志保存完毕======");
|
||||||
|
JSONObject jsonObjectSave=new JSONObject();
|
||||||
|
jsonObjectSave.put("status","200");
|
||||||
|
jsonObjectSave.put("zbxm",save);
|
||||||
|
return jsonObjectSave;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("保存预算指标失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("保存指标失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object updateGbiZbxmb(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
if(!checkStr(jsonObject.getString("gsdm"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递公司代码");
|
||||||
|
}
|
||||||
|
if(!checkStr(jsonObject.getString("kjnd"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递会计年度");
|
||||||
|
}
|
||||||
|
if(!checkStr(jsonObject.getString("zblb"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递指标类别");
|
||||||
|
}
|
||||||
|
if(!checkStr(jsonObject.getString("zbid"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递指标id");
|
||||||
|
}
|
||||||
|
GbiZbxmbEntity gbiZbxmbEntity = jsonObject.toJavaObject(GbiZbxmbEntity.class);
|
||||||
|
try {
|
||||||
|
JsonResultEntity jsonResultEntity = updateOtherTable(gbiZbxmbEntity);
|
||||||
|
gbiZbxmbEntity.setZt("1");
|
||||||
|
gbiZbxmbEntity.setNcysy(0.00);//年初已使用
|
||||||
|
logger.info("=========开始更新指标项目表=========");
|
||||||
|
GbiZbxmbEntity save = gbiZbxmbDao.update(gbiZbxmbEntity);
|
||||||
|
logger.info("==========指标项目表更新完毕======");
|
||||||
|
GlCzrzEntity glCzrzEntity=new GlCzrzEntity();
|
||||||
|
glCzrzEntity.setStation("yusuanzhibiaobaocun");
|
||||||
|
logger.info("==========开始查询操作日志的最大值no======");
|
||||||
|
GlCzrzEntity glCzrzEntityNo = glCzrzDao.queryCzrzNo(glCzrzEntity);
|
||||||
|
logger.info("根据station为:{}查询出来的no值为:{}",glCzrzEntity.getStation(),glCzrzEntityNo.getNo());
|
||||||
|
glCzrzEntity.setNo(glCzrzEntityNo.getNo());
|
||||||
|
glCzrzEntity.setName("0.指标修改");
|
||||||
|
glCzrzEntity.setCznr("修改指标"+gbiZbxmbEntity.getZbid()+"(MXZB)");
|
||||||
|
logger.info("==========开始保存操作日志======");
|
||||||
|
glCzrzDao.save(glCzrzEntity);
|
||||||
|
logger.info("==========操作日志保存完毕======");
|
||||||
|
JSONObject jsonObjectUpdate =new JSONObject();
|
||||||
|
jsonObjectUpdate.put("status","200");
|
||||||
|
jsonObjectUpdate.put("zbxm",save);
|
||||||
|
return jsonObjectUpdate;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新预算指标失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("修改指标失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object deleteGbiZbxmb(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
if(!checkStr(jsonObject.getString("gsdm"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递公司代码");
|
||||||
|
}
|
||||||
|
if(!checkStr(jsonObject.getString("kjnd"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递会计年度");
|
||||||
|
}
|
||||||
|
if(!checkStr(jsonObject.getString("zblb"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递指标类别");
|
||||||
|
}
|
||||||
|
if(!checkStr(jsonObject.getString("zbid"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递指标id");
|
||||||
|
}
|
||||||
|
GbiZbxmbEntity gbiZbxmbEntity = jsonObject.toJavaObject(GbiZbxmbEntity.class);
|
||||||
|
try {
|
||||||
|
gbiZbxmbEntity.setZt("1");
|
||||||
|
logger.info("=========开始删除指标项目表=========");
|
||||||
|
int delete = gbiZbxmbDao.delete("entity_delete", gbiZbxmbEntity);
|
||||||
|
logger.info("==========指标项目表删除完毕======");
|
||||||
|
GlCzrzEntity glCzrzEntity=new GlCzrzEntity();
|
||||||
|
glCzrzEntity.setStation("yusuanzhibiaobaocun");
|
||||||
|
logger.info("==========开始查询操作日志的最大值no======");
|
||||||
|
GlCzrzEntity glCzrzEntityNo = glCzrzDao.queryCzrzNo(glCzrzEntity);
|
||||||
|
logger.info("根据station为:{}查询出来的no值为:{}",glCzrzEntity.getStation(),glCzrzEntityNo.getNo());
|
||||||
|
glCzrzEntity.setNo(glCzrzEntityNo.getNo());
|
||||||
|
glCzrzEntity.setName("0.指标删除");
|
||||||
|
glCzrzEntity.setCznr("删除指标"+gbiZbxmbEntity.getZbid()+"(MXZB)");
|
||||||
|
logger.info("==========开始保存操作日志======");
|
||||||
|
glCzrzDao.save(glCzrzEntity);
|
||||||
|
logger.info("==========操作日志保存完毕======");
|
||||||
|
JSONObject jsonObjectDelete =new JSONObject();
|
||||||
|
jsonObjectDelete.put("status","200");
|
||||||
|
jsonObjectDelete.put("zbxm",delete);
|
||||||
|
return jsonObjectDelete;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("删除指标项目失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("删除指标失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private JsonResultEntity updateOtherTable(GbiZbxmbEntity gbiZbxmbEntity){
|
||||||
|
try {
|
||||||
|
if(StrUtil.isNotEmpty(gbiZbxmbEntity.getBmdm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getBmmc()) ){
|
||||||
|
logger.info("===========开始更新部门信息得使用状态=========");
|
||||||
|
//根据部门代码,会计年度,公司代码更新部门使用状态为1
|
||||||
|
SenderPubbmxxEntity pubbmxxEntity=new SenderPubbmxxEntity();
|
||||||
|
pubbmxxEntity.setGsdm(gbiZbxmbEntity.getGsdm());
|
||||||
|
pubbmxxEntity.setKjnd(gbiZbxmbEntity.getKjnd());
|
||||||
|
pubbmxxEntity.setBmdm(gbiZbxmbEntity.getBmdm());
|
||||||
|
pubbmxxEntity.setSyzt("1");
|
||||||
|
pubbmxxDao.update(pubbmxxEntity);
|
||||||
|
logger.info("===========更新部门信息得使用状态完毕=========");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新部门信息得使用状态失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新部门信息得使用状态失败");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if(StrUtil.isNotEmpty(gbiZbxmbEntity.getXmdm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getXmmc())) {
|
||||||
|
//根据部门代码,会计年度,公司代码更新项目使用状态为1
|
||||||
|
SenderGlXmzlEntity glXmzlEntity = new SenderGlXmzlEntity();
|
||||||
|
glXmzlEntity.setGsdm(gbiZbxmbEntity.getGsdm());
|
||||||
|
glXmzlEntity.setKjnd(gbiZbxmbEntity.getKjnd());
|
||||||
|
glXmzlEntity.setXmdm(gbiZbxmbEntity.getXmdm());
|
||||||
|
glXmzlEntity.setSyzt("1");
|
||||||
|
logger.info("===========开始更新项目资料得使用状态=========");
|
||||||
|
glXmzlDao.update(glXmzlEntity);
|
||||||
|
logger.info("===========更新项目资料得使用状态完毕=========");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新项目资料得使用状态失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新项目资料得使用状态失败");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if(StrUtil.isNotEmpty(gbiZbxmbEntity.getWhdm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getWhmc())){
|
||||||
|
//根据部门代码,会计年度,公司代码更新文号使用状态为1
|
||||||
|
ZbWhszEntity zbWhszEntity=new ZbWhszEntity();
|
||||||
|
zbWhszEntity.setGsdm(gbiZbxmbEntity.getGsdm());
|
||||||
|
zbWhszEntity.setKjnd(gbiZbxmbEntity.getKjnd());
|
||||||
|
zbWhszEntity.setWhdm(gbiZbxmbEntity.getWhdm());
|
||||||
|
zbWhszEntity.setSyzt("1");
|
||||||
|
logger.info("===========开始更新文号得使用状态=========");
|
||||||
|
zbWhszDao.update(zbWhszEntity);
|
||||||
|
logger.info("===========更新文号得使用状态完毕=========");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新文号得使用状态失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新文号得使用状态失败");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if(StrUtil.isNotEmpty(gbiZbxmbEntity.getZblydm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getZblymc())) {
|
||||||
|
//根据部门代码,会计年度,公司代码更新指标来源使用状态为1
|
||||||
|
ZbZblyEntity zblyEntity = new ZbZblyEntity();
|
||||||
|
zblyEntity.setGsdm(gbiZbxmbEntity.getGsdm());
|
||||||
|
zblyEntity.setKjnd(gbiZbxmbEntity.getKjnd());
|
||||||
|
zblyEntity.setZblydm(gbiZbxmbEntity.getZblydm());
|
||||||
|
zblyEntity.setSyzt("1");
|
||||||
|
logger.info("===========开始更新指标来源得使用状态=========");
|
||||||
|
zbZblyDao.update(zblyEntity);
|
||||||
|
logger.info("===========更新指标来源得使用状态完毕=========");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新指标来源得使用状态失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新指标来源得使用状态失败");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//根据类别代码,会计年度,公司代码,辅助代码更新使用状态
|
||||||
|
//部门经济科目
|
||||||
|
GlFzxzlEntity glFzxzlEntity=new GlFzxzlEntity();
|
||||||
|
glFzxzlEntity.setGsdm(gbiZbxmbEntity.getGsdm());
|
||||||
|
glFzxzlEntity.setKjnd(gbiZbxmbEntity.getKjnd());
|
||||||
|
glFzxzlEntity.setSyzt("1");
|
||||||
|
try {
|
||||||
|
if(StrUtil.isNotEmpty(gbiZbxmbEntity.getJjkmdm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getJjkmmc())) {
|
||||||
|
logger.info("===========开始更新辅助项资料(部门经济科目)得使用状态=========");
|
||||||
|
glFzxzlEntity.setFzdm(gbiZbxmbEntity.getJjkmdm());
|
||||||
|
glFzxzlEntity.setLbdm("5");
|
||||||
|
glFzxzlDao.update(glFzxzlEntity);
|
||||||
|
logger.info("===========更新辅助项资料(部门经济科目)得使用状态完毕=========");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新辅助项资料(部门经济科目)得使用状态失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新辅助项资料(部门经济科目)得使用状态");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if(StrUtil.isNotEmpty(gbiZbxmbEntity.getFz6dm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getFz6mc())){
|
||||||
|
//资金性质
|
||||||
|
glFzxzlEntity.setLbdm("6");
|
||||||
|
glFzxzlEntity.setFzdm(gbiZbxmbEntity.getFz6dm());
|
||||||
|
logger.info("===========开始更新辅助项资料(资金性质)得使用状态=========");
|
||||||
|
glFzxzlDao.update(glFzxzlEntity);
|
||||||
|
logger.info("===========更新辅助项资料(资金性质)得使用状态完毕=========");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新辅助项资料(资金性质)得使用状态失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新辅助项资料(资金性质)得使用状态失败");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if(StrUtil.isNotEmpty(gbiZbxmbEntity.getFz8dm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getFz8mc())) {
|
||||||
|
//国库项目
|
||||||
|
glFzxzlEntity.setLbdm("8");
|
||||||
|
glFzxzlEntity.setFzdm(gbiZbxmbEntity.getFz8dm());
|
||||||
|
logger.info("===========开始更新辅助项资料(国库项目)得使用状态=========");
|
||||||
|
glFzxzlDao.update(glFzxzlEntity);
|
||||||
|
logger.info("===========更新辅助项资料(国库项目)得使用状态完毕=========");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新辅助项资料(国库项目)得使用状态失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新辅助项资料(国库项目)得使用状态失败");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if(StrUtil.isNotEmpty(gbiZbxmbEntity.getFz9dm()) && StrUtil.isNotEmpty(gbiZbxmbEntity.getFz9mc())){
|
||||||
|
//经费类型I
|
||||||
|
glFzxzlEntity.setLbdm("9");
|
||||||
|
glFzxzlEntity.setFzdm(gbiZbxmbEntity.getFz9dm());
|
||||||
|
logger.info("===========开始更新辅助项资料(经费类型I)得使用状态=========");
|
||||||
|
glFzxzlDao.update(glFzxzlEntity);
|
||||||
|
logger.info("===========更新辅助项资料(经费类型I)得使用状态完毕=========");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新辅助项资料(经费类型I)得使用状态失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新辅助项资料(经费类型I)得使用状态失败");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新辅助项资料得使用状态失败:{}",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新辅助项资料得使用状态失败");
|
||||||
|
}
|
||||||
|
return BaseResult.getSuccessMessageEntity("相关得表状态都已修改");
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,100 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPzml.dao;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (gl_pzml: table)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:06
|
||||||
|
*/
|
||||||
|
public interface ISenderGlPzmlDao extends IBaseDao<SenderGlPzmlEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询凭证目录 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlPzmlEntity> querySenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存凭证目录到凭证目录日志表中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/27 16:29
|
||||||
|
* **/
|
||||||
|
SenderGlPzmlEntity saveSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新凭证目录到凭证目录日志表中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/27 16:30
|
||||||
|
* **/
|
||||||
|
SenderGlPzmlEntity updateSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询凭证目录 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlPzmlEntity> queryGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存凭证目录 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/27 16:29
|
||||||
|
* **/
|
||||||
|
SenderGlPzmlEntity saveGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新凭证目录 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/27 16:30
|
||||||
|
* **/
|
||||||
|
SenderGlPzmlEntity updateGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除凭证目录 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/9 17:44
|
||||||
|
* **/
|
||||||
|
Integer deleteGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询凭证 商学院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/14 16:25
|
||||||
|
* **/
|
||||||
|
List<SenderGlPzmlEntity> queryGlPzmlSxy(SenderGlPzmlEntity senderGlPzmlEntity);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,71 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPzml.dao.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPzml.dao.ISenderGlPzmlDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlPzml)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:06
|
||||||
|
*/
|
||||||
|
@Repository(value = "SenderGlPzmlDaoImpl")
|
||||||
|
public class SenderGlPzmlDaoImpl extends MybatisGenericDao<SenderGlPzmlEntity, String> implements ISenderGlPzmlDao {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||||
|
public List<SenderGlPzmlEntity> querySenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||||
|
return super.queryByLike(senderGlPzmlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||||
|
public SenderGlPzmlEntity saveSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||||
|
return super.save(senderGlPzmlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||||
|
public SenderGlPzmlEntity updateSenderGlPzmlEntity(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||||
|
return super.update(senderGlPzmlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||||
|
public List<SenderGlPzmlEntity> queryGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||||
|
return super.query(senderGlPzmlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||||
|
public SenderGlPzmlEntity saveGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||||
|
return super.save(senderGlPzmlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||||
|
public SenderGlPzmlEntity updateGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||||
|
return super.update(senderGlPzmlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||||
|
public Integer deleteGlPzmlHealthBureau(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||||
|
return super.delete("SenderGlPzmlEntity_delete_pzml",senderGlPzmlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPzmlEntity.dataSourceCode")
|
||||||
|
public List<SenderGlPzmlEntity> queryGlPzmlSxy(SenderGlPzmlEntity senderGlPzmlEntity) {
|
||||||
|
return (List<SenderGlPzmlEntity>) super.selectList("queryGlPzmlSxy",senderGlPzmlEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,381 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPzml.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlPzml)实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:06
|
||||||
|
*/
|
||||||
|
public class SenderGlPzmlEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String gsdm;
|
||||||
|
private String zth;
|
||||||
|
private String kjqj;
|
||||||
|
private String pzly;
|
||||||
|
private String pzh;
|
||||||
|
private String pzrq;
|
||||||
|
private Integer fjzs;
|
||||||
|
private Integer srid;
|
||||||
|
private String sr;
|
||||||
|
private Integer shid;
|
||||||
|
private String sh;
|
||||||
|
private String jsr;
|
||||||
|
private Integer jzrid;
|
||||||
|
private String jzr;
|
||||||
|
private String srrq;
|
||||||
|
private String shrq;
|
||||||
|
private String jzrq;
|
||||||
|
private String pzhzkmdy;
|
||||||
|
private String pzhzbz;
|
||||||
|
private Integer zt;
|
||||||
|
private String pzzy;
|
||||||
|
private String pzje;
|
||||||
|
private String cn;
|
||||||
|
private String bz;
|
||||||
|
private String kjzg;
|
||||||
|
private String idpzh;
|
||||||
|
private String dyzt;
|
||||||
|
private String qzrq;
|
||||||
|
private Integer gdid;
|
||||||
|
private String gdname;
|
||||||
|
private String gdrqsj;
|
||||||
|
private Integer gdcs;
|
||||||
|
private String gdbz;
|
||||||
|
private Integer yspzzs;
|
||||||
|
|
||||||
|
private String kjtxdm;
|
||||||
|
|
||||||
|
private String pzlxdm;
|
||||||
|
|
||||||
|
private String pzsbm;
|
||||||
|
private String stamp;
|
||||||
|
private String yspzje;
|
||||||
|
|
||||||
|
private String bmdm;
|
||||||
|
|
||||||
|
public String getBmdm() {
|
||||||
|
return bmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBmdm(String bmdm) {
|
||||||
|
this.bmdm = bmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzsbm() {
|
||||||
|
return pzsbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzsbm(String pzsbm) {
|
||||||
|
this.pzsbm = pzsbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStamp() {
|
||||||
|
return stamp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStamp(String stamp) {
|
||||||
|
this.stamp = stamp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYspzje() {
|
||||||
|
return yspzje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYspzje(String yspzje) {
|
||||||
|
this.yspzje = yspzje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjtxdm() {
|
||||||
|
return kjtxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjtxdm(String kjtxdm) {
|
||||||
|
this.kjtxdm = kjtxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzlxdm() {
|
||||||
|
return pzlxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzlxdm(String pzlxdm) {
|
||||||
|
this.pzlxdm = pzlxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGsdm() {
|
||||||
|
return gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGsdm(String gsdm) {
|
||||||
|
this.gsdm = gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZth() {
|
||||||
|
return zth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZth(String zth) {
|
||||||
|
this.zth = zth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjqj() {
|
||||||
|
return kjqj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjqj(String kjqj) {
|
||||||
|
this.kjqj = kjqj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzly() {
|
||||||
|
return pzly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzly(String pzly) {
|
||||||
|
this.pzly = pzly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzh() {
|
||||||
|
return pzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzh(String pzh) {
|
||||||
|
this.pzh = pzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzrq() {
|
||||||
|
return pzrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzrq(String pzrq) {
|
||||||
|
this.pzrq = pzrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFjzs() {
|
||||||
|
return fjzs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFjzs(Integer fjzs) {
|
||||||
|
this.fjzs = fjzs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSrid() {
|
||||||
|
return srid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSrid(Integer srid) {
|
||||||
|
this.srid = srid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSr() {
|
||||||
|
return sr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSr(String sr) {
|
||||||
|
this.sr = sr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getShid() {
|
||||||
|
return shid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShid(Integer shid) {
|
||||||
|
this.shid = shid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSh() {
|
||||||
|
return sh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSh(String sh) {
|
||||||
|
this.sh = sh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJsr() {
|
||||||
|
return jsr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJsr(String jsr) {
|
||||||
|
this.jsr = jsr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getJzrid() {
|
||||||
|
return jzrid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJzrid(Integer jzrid) {
|
||||||
|
this.jzrid = jzrid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJzr() {
|
||||||
|
return jzr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJzr(String jzr) {
|
||||||
|
this.jzr = jzr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSrrq() {
|
||||||
|
return srrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSrrq(String srrq) {
|
||||||
|
this.srrq = srrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShrq() {
|
||||||
|
return shrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShrq(String shrq) {
|
||||||
|
this.shrq = shrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJzrq() {
|
||||||
|
return jzrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJzrq(String jzrq) {
|
||||||
|
this.jzrq = jzrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzhzkmdy() {
|
||||||
|
return pzhzkmdy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzhzkmdy(String pzhzkmdy) {
|
||||||
|
this.pzhzkmdy = pzhzkmdy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzhzbz() {
|
||||||
|
return pzhzbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzhzbz(String pzhzbz) {
|
||||||
|
this.pzhzbz = pzhzbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getZt() {
|
||||||
|
return zt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZt(Integer zt) {
|
||||||
|
this.zt = zt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzzy() {
|
||||||
|
return pzzy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzzy(String pzzy) {
|
||||||
|
this.pzzy = pzzy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzje() {
|
||||||
|
return pzje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzje(String pzje) {
|
||||||
|
this.pzje = pzje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCn() {
|
||||||
|
return cn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCn(String cn) {
|
||||||
|
this.cn = cn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBz() {
|
||||||
|
return bz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBz(String bz) {
|
||||||
|
this.bz = bz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjzg() {
|
||||||
|
return kjzg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjzg(String kjzg) {
|
||||||
|
this.kjzg = kjzg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdpzh() {
|
||||||
|
return idpzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdpzh(String idpzh) {
|
||||||
|
this.idpzh = idpzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDyzt() {
|
||||||
|
return dyzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDyzt(String dyzt) {
|
||||||
|
this.dyzt = dyzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQzrq() {
|
||||||
|
return qzrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQzrq(String qzrq) {
|
||||||
|
this.qzrq = qzrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getGdid() {
|
||||||
|
return gdid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGdid(Integer gdid) {
|
||||||
|
this.gdid = gdid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGdname() {
|
||||||
|
return gdname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGdname(String gdname) {
|
||||||
|
this.gdname = gdname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGdrqsj() {
|
||||||
|
return gdrqsj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGdrqsj(String gdrqsj) {
|
||||||
|
this.gdrqsj = gdrqsj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getGdcs() {
|
||||||
|
return gdcs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGdcs(Integer gdcs) {
|
||||||
|
this.gdcs = gdcs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGdbz() {
|
||||||
|
return gdbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGdbz(String gdbz) {
|
||||||
|
this.gdbz = gdbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getYspzzs() {
|
||||||
|
return yspzzs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYspzzs(Integer yspzzs) {
|
||||||
|
this.yspzzs = yspzzs;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,536 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.glPzml.dao.impl.SenderGlPzmlDaoImpl">
|
||||||
|
|
||||||
|
<resultMap id="get-SenderGlPzmlEntity-result" type="com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" >
|
||||||
|
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zth" column="ZTH" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kjqj" column="kjqj" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzly" column="pzly" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzh" column="pzh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzrq" column="pzrq" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fjzs" column="fjzs" jdbcType="INTEGER"/>
|
||||||
|
<result property="srid" column="srID" jdbcType="INTEGER"/>
|
||||||
|
<result property="sr" column="sr" jdbcType="VARCHAR"/>
|
||||||
|
<result property="shid" column="shID" jdbcType="INTEGER"/>
|
||||||
|
<result property="sh" column="sh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="jsr" column="jsr" jdbcType="VARCHAR"/>
|
||||||
|
<result property="jzrid" column="jzrID" jdbcType="INTEGER"/>
|
||||||
|
<result property="jzr" column="jzr" jdbcType="VARCHAR"/>
|
||||||
|
<result property="srrq" column="srrq" jdbcType="VARCHAR"/>
|
||||||
|
<result property="shrq" column="shrq" jdbcType="VARCHAR"/>
|
||||||
|
<result property="jzrq" column="jzrq" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzhzkmdy" column="pzhzkmdy" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzhzbz" column="pzhzbz" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zt" column="zt" jdbcType="INTEGER"/>
|
||||||
|
<result property="pzzy" column="pzzy" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzje" column="pzje" jdbcType="VARCHAR"/>
|
||||||
|
<result property="cn" column="CN" jdbcType="VARCHAR"/>
|
||||||
|
<result property="bz" column="BZ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kjzg" column="kjzg" jdbcType="VARCHAR"/>
|
||||||
|
<result property="idpzh" column="idpzh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="dyzt" column="dyzt" jdbcType="VARCHAR"/>
|
||||||
|
<result property="qzrq" column="QZRQ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="gdid" column="GDID" jdbcType="INTEGER"/>
|
||||||
|
<result property="gdname" column="GDName" jdbcType="VARCHAR"/>
|
||||||
|
<result property="gdrqsj" column="GDRQSJ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="gdcs" column="GDCS" jdbcType="INTEGER"/>
|
||||||
|
<result property="gdbz" column="GDBZ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yspzzs" column="yspzzs" jdbcType="INTEGER"/>
|
||||||
|
<result property="kjtxdm" column="kjtxdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzlxdm" column="pzlxdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzsbm" column="pzsbm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="stamp" column="stamp" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yspzje" column="yspzje" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
<!-- 查询的字段-->
|
||||||
|
<sql id = "SenderGlPzmlEntity_Base_Column_List">
|
||||||
|
gsdm
|
||||||
|
, ZTH
|
||||||
|
, kjqj
|
||||||
|
, pzly
|
||||||
|
,pzlxdm
|
||||||
|
,kjtxdm
|
||||||
|
, pzh
|
||||||
|
, pzrq
|
||||||
|
, fjzs
|
||||||
|
, srID
|
||||||
|
, sr
|
||||||
|
, shID
|
||||||
|
, sh
|
||||||
|
, jsr
|
||||||
|
, jzrID
|
||||||
|
, jzr
|
||||||
|
, srrq
|
||||||
|
, shrq
|
||||||
|
, jzrq
|
||||||
|
, pzhzkmdy
|
||||||
|
, pzhzbz
|
||||||
|
, zt
|
||||||
|
, pzzy
|
||||||
|
, pzje
|
||||||
|
, CN
|
||||||
|
, BZ
|
||||||
|
, kjzg
|
||||||
|
, idpzh
|
||||||
|
, dyzt
|
||||||
|
, QZRQ
|
||||||
|
, GDID
|
||||||
|
, GDName
|
||||||
|
, GDRQSJ
|
||||||
|
, GDCS
|
||||||
|
, GDBZ
|
||||||
|
, yspzzs
|
||||||
|
, pzsbm
|
||||||
|
, stamp
|
||||||
|
, yspzje
|
||||||
|
</sql>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="entity_list_base" resultMap="get-SenderGlPzmlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlPzmlEntity_Base_Column_List" />
|
||||||
|
from gl_pzml
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
|
||||||
|
<if test="pzrq != null and pzrq != ''"> and pzrq >= #{pzrq} </if>
|
||||||
|
<if test="fjzs != null"> and fjzs = #{fjzs} </if>
|
||||||
|
<if test="srid != null"> and srID = #{srid} </if>
|
||||||
|
<if test="sr != null and sr != ''"> and sr = #{sr} </if>
|
||||||
|
<if test="shid != null"> and shID = #{shid} </if>
|
||||||
|
<if test="sh != null and sh != ''"> and sh = #{sh} </if>
|
||||||
|
<if test="jsr != null and jsr != ''"> and jsr = #{jsr} </if>
|
||||||
|
<if test="jzrid != null"> and jzrID = #{jzrid} </if>
|
||||||
|
<if test="jzr != null and jzr != ''"> and jzr = #{jzr} </if>
|
||||||
|
<if test="srrq != null and srrq != ''"> and srrq = #{srrq} </if>
|
||||||
|
<if test="shrq != null and shrq != ''"> and shrq = #{shrq} </if>
|
||||||
|
<if test="jzrq != null and jzrq != ''"> and jzrq = #{jzrq} </if>
|
||||||
|
<if test="pzhzkmdy != null and pzhzkmdy != ''"> and pzhzkmdy = #{pzhzkmdy} </if>
|
||||||
|
<if test="pzhzbz != null and pzhzbz != ''"> and pzhzbz = #{pzhzbz} </if>
|
||||||
|
<if test="zt != null"> and zt = #{zt} </if>
|
||||||
|
<if test="pzzy != null and pzzy != ''"> and pzzy = #{pzzy} </if>
|
||||||
|
<if test="pzje != null"> and pzje = #{pzje} </if>
|
||||||
|
<if test="cn != null and cn != ''"> and CN = #{cn} </if>
|
||||||
|
<if test="bz != null and bz != ''"> and BZ = #{bz} </if>
|
||||||
|
<if test="kjzg != null and kjzg != ''"> and kjzg = #{kjzg} </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> and idpzh = #{idpzh} </if>
|
||||||
|
<if test="dyzt != null and dyzt != ''"> and dyzt = #{dyzt} </if>
|
||||||
|
<if test="qzrq != null and qzrq != ''"> and QZRQ = #{qzrq} </if>
|
||||||
|
<if test="gdid != null"> and GDID = #{gdid} </if>
|
||||||
|
<if test="gdname != null and gdname != ''"> and GDName = #{gdname} </if>
|
||||||
|
<if test="gdrqsj != null and gdrqsj != ''"> and GDRQSJ = #{gdrqsj} </if>
|
||||||
|
<if test="gdcs != null"> and GDCS = #{gdcs} </if>
|
||||||
|
<if test="gdbz != null and gdbz != ''"> and GDBZ = #{gdbz} </if>
|
||||||
|
<if test="yspzzs != null"> and yspzzs = #{yspzzs} </if>
|
||||||
|
<if test="pzsbm != null and pzsbm!=''"> and pzsbm = #{pzsbm} </if>
|
||||||
|
<if test="stamp != null and stamp!=''"> and stamp = #{stamp} </if>
|
||||||
|
<if test="yspzje != null and yspzje!=''"> and yspzje = #{yspzje} </if>
|
||||||
|
-- and zth in('004','005','009','010','011','012','014')
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询符合条件的数量 -->
|
||||||
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity">
|
||||||
|
select count(1) from gl_pzml
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
|
||||||
|
<if test="pzrq != null and pzrq != ''"> and pzrq = #{pzrq} </if>
|
||||||
|
<if test="fjzs != null"> and fjzs = #{fjzs} </if>
|
||||||
|
<if test="srid != null"> and srID = #{srid} </if>
|
||||||
|
<if test="sr != null and sr != ''"> and sr = #{sr} </if>
|
||||||
|
<if test="shid != null"> and shID = #{shid} </if>
|
||||||
|
<if test="sh != null and sh != ''"> and sh = #{sh} </if>
|
||||||
|
<if test="jsr != null and jsr != ''"> and jsr = #{jsr} </if>
|
||||||
|
<if test="jzrid != null"> and jzrID = #{jzrid} </if>
|
||||||
|
<if test="jzr != null and jzr != ''"> and jzr = #{jzr} </if>
|
||||||
|
<if test="srrq != null and srrq != ''"> and srrq = #{srrq} </if>
|
||||||
|
<if test="shrq != null and shrq != ''"> and shrq = #{shrq} </if>
|
||||||
|
<if test="jzrq != null and jzrq != ''"> and jzrq = #{jzrq} </if>
|
||||||
|
<if test="pzhzkmdy != null and pzhzkmdy != ''"> and pzhzkmdy = #{pzhzkmdy} </if>
|
||||||
|
<if test="pzhzbz != null and pzhzbz != ''"> and pzhzbz = #{pzhzbz} </if>
|
||||||
|
<if test="zt != null"> and zt = #{zt} </if>
|
||||||
|
<if test="pzzy != null and pzzy != ''"> and pzzy = #{pzzy} </if>
|
||||||
|
<if test="pzje != null"> and pzje = #{pzje} </if>
|
||||||
|
<if test="cn != null and cn != ''"> and CN = #{cn} </if>
|
||||||
|
<if test="bz != null and bz != ''"> and BZ = #{bz} </if>
|
||||||
|
<if test="kjzg != null and kjzg != ''"> and kjzg = #{kjzg} </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> and idpzh = #{idpzh} </if>
|
||||||
|
<if test="dyzt != null and dyzt != ''"> and dyzt = #{dyzt} </if>
|
||||||
|
<if test="qzrq != null and qzrq != ''"> and QZRQ = #{qzrq} </if>
|
||||||
|
<if test="gdid != null"> and GDID = #{gdid} </if>
|
||||||
|
<if test="gdname != null and gdname != ''"> and GDName = #{gdname} </if>
|
||||||
|
<if test="gdrqsj != null and gdrqsj != ''"> and GDRQSJ = #{gdrqsj} </if>
|
||||||
|
<if test="gdcs != null"> and GDCS = #{gdcs} </if>
|
||||||
|
<if test="gdbz != null and gdbz != ''"> and GDBZ = #{gdbz} </if>
|
||||||
|
<if test="yspzzs != null"> and yspzzs = #{yspzzs} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
|
<select id="entity_list_like" resultMap="get-SenderGlPzmlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlPzmlEntity_Base_Column_List" />
|
||||||
|
from gl_pzml
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm like concat('%',#{gsdm},'%') </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH like concat('%',#{zth},'%') </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> and kjqj like concat('%',#{kjqj},'%') </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> and pzly like concat('%',#{pzly},'%') </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> and pzh like concat('%',#{pzh},'%') </if>
|
||||||
|
<if test="pzrq != null and pzrq != ''"> and pzrq like concat('%',#{pzrq},'%') </if>
|
||||||
|
<if test="fjzs != null"> and fjzs like concat('%',#{fjzs},'%') </if>
|
||||||
|
<if test="srid != null"> and srID like concat('%',#{srid},'%') </if>
|
||||||
|
<if test="sr != null and sr != ''"> and sr like concat('%',#{sr},'%') </if>
|
||||||
|
<if test="shid != null"> and shID like concat('%',#{shid},'%') </if>
|
||||||
|
<if test="sh != null and sh != ''"> and sh like concat('%',#{sh},'%') </if>
|
||||||
|
<if test="jsr != null and jsr != ''"> and jsr like concat('%',#{jsr},'%') </if>
|
||||||
|
<if test="jzrid != null"> and jzrID like concat('%',#{jzrid},'%') </if>
|
||||||
|
<if test="jzr != null and jzr != ''"> and jzr like concat('%',#{jzr},'%') </if>
|
||||||
|
<if test="srrq != null and srrq != ''"> and srrq like concat('%',#{srrq},'%') </if>
|
||||||
|
<if test="shrq != null and shrq != ''"> and shrq like concat('%',#{shrq},'%') </if>
|
||||||
|
<if test="jzrq != null and jzrq != ''"> and jzrq like concat('%',#{jzrq},'%') </if>
|
||||||
|
<if test="pzhzkmdy != null and pzhzkmdy != ''"> and pzhzkmdy like concat('%',#{pzhzkmdy},'%') </if>
|
||||||
|
<if test="pzhzbz != null and pzhzbz != ''"> and pzhzbz like concat('%',#{pzhzbz},'%') </if>
|
||||||
|
<if test="zt != null"> and zt like concat('%',#{zt},'%') </if>
|
||||||
|
<if test="pzzy != null and pzzy != ''"> and pzzy like concat('%',#{pzzy},'%') </if>
|
||||||
|
<if test="pzje != null"> and pzje like concat('%',#{pzje},'%') </if>
|
||||||
|
<if test="cn != null and cn != ''"> and CN like concat('%',#{cn},'%') </if>
|
||||||
|
<if test="bz != null and bz != ''"> and BZ like concat('%',#{bz},'%') </if>
|
||||||
|
<if test="kjzg != null and kjzg != ''"> and kjzg like concat('%',#{kjzg},'%') </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> and idpzh like concat('%',#{idpzh},'%') </if>
|
||||||
|
<if test="dyzt != null and dyzt != ''"> and dyzt like concat('%',#{dyzt},'%') </if>
|
||||||
|
<if test="qzrq != null and qzrq != ''"> and QZRQ like concat('%',#{qzrq},'%') </if>
|
||||||
|
<if test="gdid != null"> and GDID like concat('%',#{gdid},'%') </if>
|
||||||
|
<if test="gdname != null and gdname != ''"> and GDName like concat('%',#{gdname},'%') </if>
|
||||||
|
<if test="gdrqsj != null and gdrqsj != ''"> and GDRQSJ like concat('%',#{gdrqsj},'%') </if>
|
||||||
|
<if test="gdcs != null"> and GDCS like concat('%',#{gdcs},'%') </if>
|
||||||
|
<if test="gdbz != null and gdbz != ''"> and GDBZ like concat('%',#{gdbz},'%') </if>
|
||||||
|
<if test="yspzzs != null"> and yspzzs like concat('%',#{yspzzs},'%') </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
|
<select id="SenderGlPzmlEntity_list_or" resultMap="get-SenderGlPzmlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlPzmlEntity_Base_Column_List" />
|
||||||
|
from gl_pzml
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> or ZTH = #{zth} </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> or kjqj = #{kjqj} </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> or pzly = #{pzly} </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> or pzh = #{pzh} </if>
|
||||||
|
<if test="pzrq != null and pzrq != ''"> or pzrq = #{pzrq} </if>
|
||||||
|
<if test="fjzs != null"> or fjzs = #{fjzs} </if>
|
||||||
|
<if test="srid != null"> or srID = #{srid} </if>
|
||||||
|
<if test="sr != null and sr != ''"> or sr = #{sr} </if>
|
||||||
|
<if test="shid != null"> or shID = #{shid} </if>
|
||||||
|
<if test="sh != null and sh != ''"> or sh = #{sh} </if>
|
||||||
|
<if test="jsr != null and jsr != ''"> or jsr = #{jsr} </if>
|
||||||
|
<if test="jzrid != null"> or jzrID = #{jzrid} </if>
|
||||||
|
<if test="jzr != null and jzr != ''"> or jzr = #{jzr} </if>
|
||||||
|
<if test="srrq != null and srrq != ''"> or srrq = #{srrq} </if>
|
||||||
|
<if test="shrq != null and shrq != ''"> or shrq = #{shrq} </if>
|
||||||
|
<if test="jzrq != null and jzrq != ''"> or jzrq = #{jzrq} </if>
|
||||||
|
<if test="pzhzkmdy != null and pzhzkmdy != ''"> or pzhzkmdy = #{pzhzkmdy} </if>
|
||||||
|
<if test="pzhzbz != null and pzhzbz != ''"> or pzhzbz = #{pzhzbz} </if>
|
||||||
|
<if test="zt != null"> or zt = #{zt} </if>
|
||||||
|
<if test="pzzy != null and pzzy != ''"> or pzzy = #{pzzy} </if>
|
||||||
|
<if test="pzje != null"> or pzje = #{pzje} </if>
|
||||||
|
<if test="cn != null and cn != ''"> or CN = #{cn} </if>
|
||||||
|
<if test="bz != null and bz != ''"> or BZ = #{bz} </if>
|
||||||
|
<if test="kjzg != null and kjzg != ''"> or kjzg = #{kjzg} </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> or idpzh = #{idpzh} </if>
|
||||||
|
<if test="dyzt != null and dyzt != ''"> or dyzt = #{dyzt} </if>
|
||||||
|
<if test="qzrq != null and qzrq != ''"> or QZRQ = #{qzrq} </if>
|
||||||
|
<if test="gdid != null"> or GDID = #{gdid} </if>
|
||||||
|
<if test="gdname != null and gdname != ''"> or GDName = #{gdname} </if>
|
||||||
|
<if test="gdrqsj != null and gdrqsj != ''"> or GDRQSJ = #{gdrqsj} </if>
|
||||||
|
<if test="gdcs != null"> or GDCS = #{gdcs} </if>
|
||||||
|
<if test="gdbz != null and gdbz != ''"> or GDBZ = #{gdbz} </if>
|
||||||
|
<if test="yspzzs != null"> or yspzzs = #{yspzzs} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询列表 商学院所需要的凭证数据-->
|
||||||
|
<select id="queryGlPzmlSxy" resultMap="get-SenderGlPzmlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity">
|
||||||
|
select
|
||||||
|
pzml.idpzh as idpzh,
|
||||||
|
pzml.kjqj as kjqj,
|
||||||
|
pzml.srrq as srrq,
|
||||||
|
pzml.srID as srID,
|
||||||
|
pznr.bmdm as bmdm,
|
||||||
|
pzml.pzzy as pzzy,
|
||||||
|
sum(pznr.je) as pzje,
|
||||||
|
pzml.gsdm,pzml.zth,pzml.kjqj,pzml.pzh
|
||||||
|
from GL_Pzml pzml
|
||||||
|
left join gl_pznr pznr on pznr.idpzh=pzml.idpzh and pzml.kjqj=pznr.kjqj
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="idpzh !=null and idpzh!='' "> and pzml.idpzh = #{idpzh} </if>
|
||||||
|
and pzml.kjqj =#{kjqj} and pznr.kjqj =#{kjqj} and pznr.zbid!=0
|
||||||
|
</trim>
|
||||||
|
group by pzml.idpzh,
|
||||||
|
pzml.kjqj,
|
||||||
|
pzml.srrq,
|
||||||
|
pzml.pzzy,
|
||||||
|
pzml.gsdm,pzml.zth,pzml.kjqj,pzml.pzh,pzml.srID,pznr.bmdm
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--新增所有列-->
|
||||||
|
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_pzml(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> kjqj , </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> pzly , </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> pzh , </if>
|
||||||
|
<if test="kjtxdm != null "> kjtxdm , </if>
|
||||||
|
<if test="pzlxdm != null and pzlxdm != ''"> pzlxdm , </if>
|
||||||
|
<if test="pzrq != null and pzrq != ''"> pzrq , </if>
|
||||||
|
<if test="fjzs != null"> fjzs , </if>
|
||||||
|
<if test="srid != null"> srID , </if>
|
||||||
|
<if test="sr != null and sr != ''"> sr , </if>
|
||||||
|
<if test="shid != null"> shID , </if>
|
||||||
|
<if test="sh != null and sh != ''"> sh , </if>
|
||||||
|
<if test="jsr != null and jsr != ''"> jsr , </if>
|
||||||
|
<if test="jzrid != null"> jzrID , </if>
|
||||||
|
<if test="jzr != null and jzr != ''"> jzr , </if>
|
||||||
|
<if test="srrq != null and srrq != ''"> srrq , </if>
|
||||||
|
<if test="shrq != null "> shrq , </if>
|
||||||
|
<if test="jzrq != null "> jzrq , </if>
|
||||||
|
<if test="pzhzkmdy != null and pzhzkmdy != ''"> pzhzkmdy , </if>
|
||||||
|
<if test="pzhzbz != null and pzhzbz != ''"> pzhzbz , </if>
|
||||||
|
<if test="zt != null"> zt , </if>
|
||||||
|
<if test="pzzy != null and pzzy != ''"> pzzy , </if>
|
||||||
|
<if test="pzje != null"> pzje , </if>
|
||||||
|
<if test="cn != null and cn != ''"> CN , </if>
|
||||||
|
<if test="bz != null and bz != ''"> BZ , </if>
|
||||||
|
<if test="kjzg != null and kjzg != ''"> kjzg , </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> idpzh , </if>
|
||||||
|
<if test="dyzt != null and dyzt != ''"> dyzt , </if>
|
||||||
|
<if test="qzrq != null and qzrq != ''"> QZRQ , </if>
|
||||||
|
<if test="gdid != null"> GDID , </if>
|
||||||
|
<if test="gdname != null and gdname != ''"> GDName , </if>
|
||||||
|
<if test="gdrqsj != null and gdrqsj != ''"> GDRQSJ , </if>
|
||||||
|
<if test="gdcs != null"> GDCS , </if>
|
||||||
|
<if test="gdbz != null and gdbz != ''"> GDBZ , </if>
|
||||||
|
<if test="yspzzs != null"> yspzzs , </if>
|
||||||
|
<if test="pzsbm != null and pzsbm != ''"> pzsbm, </if>
|
||||||
|
<if test="stamp != null and stamp != ''"> stamp, </if>
|
||||||
|
<if test="yspzje != null and yspzje != ''"> yspzje, </if>
|
||||||
|
<if test="zth != null and zth != ''"> ZTH </if>
|
||||||
|
</trim>
|
||||||
|
)values(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> #{kjqj} ,</if>
|
||||||
|
<if test="pzly != null and pzly != ''"> #{pzly} ,</if>
|
||||||
|
<if test="pzh != null and pzh != ''"> #{pzh} ,</if>
|
||||||
|
<if test="kjtxdm != null "> #{kjtxdm} , </if>
|
||||||
|
<if test="pzlxdm != null and pzlxdm != ''"> #{pzlxdm} , </if>
|
||||||
|
<if test="pzrq != null and pzrq != ''"> #{pzrq} ,</if>
|
||||||
|
<if test="fjzs != null"> #{fjzs} ,</if>
|
||||||
|
<if test="srid != null"> #{srid} ,</if>
|
||||||
|
<if test="sr != null and sr != ''"> #{sr} ,</if>
|
||||||
|
<if test="shid != null"> #{shid} ,</if>
|
||||||
|
<if test="sh != null and sh != ''"> #{sh} ,</if>
|
||||||
|
<if test="jsr != null and jsr != ''"> #{jsr} ,</if>
|
||||||
|
<if test="jzrid != null"> #{jzrid} ,</if>
|
||||||
|
<if test="jzr != null and jzr != ''"> #{jzr} ,</if>
|
||||||
|
<if test="srrq != null and srrq != ''"> #{srrq} ,</if>
|
||||||
|
<if test="shrq != null "> #{shrq} ,</if>
|
||||||
|
<if test="jzrq != null "> #{jzrq} ,</if>
|
||||||
|
<if test="pzhzkmdy != null and pzhzkmdy != ''"> #{pzhzkmdy} ,</if>
|
||||||
|
<if test="pzhzbz != null and pzhzbz != ''"> #{pzhzbz} ,</if>
|
||||||
|
<if test="zt != null"> #{zt} ,</if>
|
||||||
|
<if test="pzzy != null and pzzy != ''"> #{pzzy} ,</if>
|
||||||
|
<if test="pzje != null"> #{pzje} ,</if>
|
||||||
|
<if test="cn != null and cn != ''"> #{cn} ,</if>
|
||||||
|
<if test="bz != null and bz != ''"> #{bz} ,</if>
|
||||||
|
<if test="kjzg != null and kjzg != ''"> #{kjzg} ,</if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> #{idpzh} ,</if>
|
||||||
|
<if test="dyzt != null and dyzt != ''"> #{dyzt} ,</if>
|
||||||
|
<if test="qzrq != null and qzrq != ''"> #{qzrq} ,</if>
|
||||||
|
<if test="gdid != null"> #{gdid} ,</if>
|
||||||
|
<if test="gdname != null and gdname != ''"> #{gdname} ,</if>
|
||||||
|
<if test="gdrqsj != null and gdrqsj != ''"> #{gdrqsj} ,</if>
|
||||||
|
<if test="gdcs != null"> #{gdcs} ,</if>
|
||||||
|
<if test="gdbz != null and gdbz != ''"> #{gdbz} ,</if>
|
||||||
|
<if test="yspzzs != null"> #{yspzzs} ,</if>
|
||||||
|
<if test="pzsbm != null and pzsbm != ''"> #{pzsbm}, </if>
|
||||||
|
<if test="stamp != null and stamp != ''"> #{stamp}, </if>
|
||||||
|
<if test="yspzje != null and yspzje != ''"> #{yspzje}, </if>
|
||||||
|
<if test="zth != null and zth != ''"> #{zth} </if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 批量新增 -->
|
||||||
|
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_pzml(gsdm, ZTH, kjqj, pzly, pzh, pzrq, fjzs, srID, sr, shID, sh, jsr, jzrID, jzr, srrq, shrq, jzrq, pzhzkmdy, pzhzbz, zt, pzzy, pzje, CN, BZ, kjzg, idpzh, dyzt, QZRQ, GDID, GDName, GDRQSJ, GDCS, GDBZ, yspzzs)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.pzrq},#{entity.fjzs},#{entity.srid},#{entity.sr},#{entity.shid},#{entity.sh},#{entity.jsr},#{entity.jzrid},#{entity.jzr},#{entity.srrq},#{entity.shrq},#{entity.jzrq},#{entity.pzhzkmdy},#{entity.pzhzbz},#{entity.zt},#{entity.pzzy},#{entity.pzje},#{entity.cn},#{entity.bz},#{entity.kjzg},#{entity.idpzh},#{entity.dyzt},#{entity.qzrq},#{entity.gdid},#{entity.gdname},#{entity.gdrqsj},#{entity.gdcs},#{entity.gdbz},#{entity.yspzzs})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增或者修改-->
|
||||||
|
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_pzml(gsdm, ZTH, kjqj, pzly, pzh, pzrq, fjzs, srID, sr, shID, sh, jsr, jzrID, jzr, srrq, shrq, jzrq, pzhzkmdy, pzhzbz, zt, pzzy, pzje, CN, BZ, kjzg, idpzh, dyzt, QZRQ, GDID, GDName, GDRQSJ, GDCS, GDBZ, yspzzs)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.pzrq},#{entity.fjzs},#{entity.srid},#{entity.sr},#{entity.shid},#{entity.sh},#{entity.jsr},#{entity.jzrid},#{entity.jzr},#{entity.srrq},#{entity.shrq},#{entity.jzrq},#{entity.pzhzkmdy},#{entity.pzhzbz},#{entity.zt},#{entity.pzzy},#{entity.pzje},#{entity.cn},#{entity.bz},#{entity.kjzg},#{entity.idpzh},#{entity.dyzt},#{entity.qzrq},#{entity.gdid},#{entity.gdname},#{entity.gdrqsj},#{entity.gdcs},#{entity.gdbz},#{entity.yspzzs})
|
||||||
|
</foreach>
|
||||||
|
on duplicate key update
|
||||||
|
gsdm = values(gsdm),
|
||||||
|
ZTH = values(ZTH),
|
||||||
|
kjqj = values(kjqj),
|
||||||
|
pzly = values(pzly),
|
||||||
|
pzh = values(pzh),
|
||||||
|
pzrq = values(pzrq),
|
||||||
|
fjzs = values(fjzs),
|
||||||
|
srID = values(srID),
|
||||||
|
sr = values(sr),
|
||||||
|
shID = values(shID),
|
||||||
|
sh = values(sh),
|
||||||
|
jsr = values(jsr),
|
||||||
|
jzrID = values(jzrID),
|
||||||
|
jzr = values(jzr),
|
||||||
|
srrq = values(srrq),
|
||||||
|
shrq = values(shrq),
|
||||||
|
jzrq = values(jzrq),
|
||||||
|
pzhzkmdy = values(pzhzkmdy),
|
||||||
|
pzhzbz = values(pzhzbz),
|
||||||
|
zt = values(zt),
|
||||||
|
pzzy = values(pzzy),
|
||||||
|
pzje = values(pzje),
|
||||||
|
CN = values(CN),
|
||||||
|
BZ = values(BZ),
|
||||||
|
kjzg = values(kjzg),
|
||||||
|
idpzh = values(idpzh),
|
||||||
|
dyzt = values(dyzt),
|
||||||
|
QZRQ = values(QZRQ),
|
||||||
|
GDID = values(GDID),
|
||||||
|
GDName = values(GDName),
|
||||||
|
GDRQSJ = values(GDRQSJ),
|
||||||
|
GDCS = values(GDCS),
|
||||||
|
GDBZ = values(GDBZ),
|
||||||
|
yspzzs = values(yspzzs)</insert>
|
||||||
|
<!--通过主键修改方法-->
|
||||||
|
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" >
|
||||||
|
update gl_pzml set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
|
||||||
|
<if test="zth != null and zth != ''"> ZTH = #{zth},</if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> kjqj = #{kjqj},</if>
|
||||||
|
<if test="pzly != null and pzly != ''"> pzly = #{pzly},</if>
|
||||||
|
<if test="pzh != null and pzh != ''"> pzh = #{pzh},</if>
|
||||||
|
<if test="kjtxdm != null "> kjtxdm = #{kjtxdm},</if>
|
||||||
|
<if test="pzlxdm != null and pzlxdm != ''"> pzlxdm = #{pzlxdm},</if>
|
||||||
|
<if test="pzrq != null and pzrq != ''"> pzrq = #{pzrq},</if>
|
||||||
|
<if test="fjzs != null"> fjzs = #{fjzs},</if>
|
||||||
|
<if test="srid != null"> srID = #{srid},</if>
|
||||||
|
<if test="sr != null and sr != ''"> sr = #{sr},</if>
|
||||||
|
<if test="shid != null"> shID = #{shid},</if>
|
||||||
|
<if test="sh != null and sh != ''"> sh = #{sh},</if>
|
||||||
|
<if test="jsr != null and jsr != ''"> jsr = #{jsr},</if>
|
||||||
|
<if test="jzrid != null"> jzrID = #{jzrid},</if>
|
||||||
|
<if test="jzr != null and jzr != ''"> jzr = #{jzr},</if>
|
||||||
|
<if test="srrq != null and srrq != ''"> srrq = #{srrq},</if>
|
||||||
|
<if test="shrq != null and shrq != ''"> shrq = #{shrq},</if>
|
||||||
|
<if test="jzrq != null and jzrq != ''"> jzrq = #{jzrq},</if>
|
||||||
|
<if test="pzhzkmdy != null and pzhzkmdy != ''"> pzhzkmdy = #{pzhzkmdy},</if>
|
||||||
|
<if test="pzhzbz != null and pzhzbz != ''"> pzhzbz = #{pzhzbz},</if>
|
||||||
|
<if test="zt != null"> zt = #{zt},</if>
|
||||||
|
<if test="pzzy != null and pzzy != ''"> pzzy = #{pzzy},</if>
|
||||||
|
<if test="pzje != null"> pzje = #{pzje},</if>
|
||||||
|
<if test="cn != null and cn != ''"> CN = #{cn},</if>
|
||||||
|
<if test="bz != null and bz != ''"> BZ = #{bz},</if>
|
||||||
|
<if test="kjzg != null and kjzg != ''"> kjzg = #{kjzg},</if>
|
||||||
|
<if test="dyzt != null and dyzt != ''"> dyzt = #{dyzt},</if>
|
||||||
|
<if test="qzrq != null and qzrq != ''"> QZRQ = #{qzrq},</if>
|
||||||
|
<if test="gdid != null"> GDID = #{gdid},</if>
|
||||||
|
<if test="gdname != null and gdname != ''"> GDName = #{gdname},</if>
|
||||||
|
<if test="gdrqsj != null and gdrqsj != ''"> GDRQSJ = #{gdrqsj},</if>
|
||||||
|
<if test="gdcs != null"> GDCS = #{gdcs},</if>
|
||||||
|
<if test="gdbz != null and gdbz != ''"> GDBZ = #{gdbz},</if>
|
||||||
|
<if test="yspzzs != null"> yspzzs = #{yspzzs},</if>
|
||||||
|
<if test="pzsbm != null and pzsbm!=''"> pzsbm = #{pzsbm},</if>
|
||||||
|
<if test="stamp != null and stamp!=''"> stamp = #{stamp},</if>
|
||||||
|
<if test="yspzje != null and yspzje !='' "> yspzje = #{yspzje}</if>
|
||||||
|
</trim>
|
||||||
|
where idpzh= #{idpzh}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 逻辑删除 -->
|
||||||
|
<update id="SenderGlPzmlEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" >
|
||||||
|
update gl_pzml set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
where idpzh= #{idpzh}
|
||||||
|
</update>
|
||||||
|
<!-- 多条件逻辑删除 -->
|
||||||
|
<update id="SenderGlPzmlEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity" >
|
||||||
|
update gl_pzml set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm != ''"> and kjtxdm = #{kjtxdm}</if>
|
||||||
|
<if test="pzlxdm != null and pzlxdm != ''"> and pzh = #{pzlxdm}</if>
|
||||||
|
<if test="pzrq != null and pzrq != ''"> and pzrq = #{pzrq} </if>
|
||||||
|
<if test="fjzs != null"> and fjzs = #{fjzs} </if>
|
||||||
|
<if test="srid != null"> and srID = #{srid} </if>
|
||||||
|
<if test="sr != null and sr != ''"> and sr = #{sr} </if>
|
||||||
|
<if test="shid != null"> and shID = #{shid} </if>
|
||||||
|
<if test="sh != null and sh != ''"> and sh = #{sh} </if>
|
||||||
|
<if test="jsr != null and jsr != ''"> and jsr = #{jsr} </if>
|
||||||
|
<if test="jzrid != null"> and jzrID = #{jzrid} </if>
|
||||||
|
<if test="jzr != null and jzr != ''"> and jzr = #{jzr} </if>
|
||||||
|
<if test="srrq != null and srrq != ''"> and srrq = #{srrq} </if>
|
||||||
|
<if test="shrq != null and shrq != ''"> and shrq = #{shrq} </if>
|
||||||
|
<if test="jzrq != null and jzrq != ''"> and jzrq = #{jzrq} </if>
|
||||||
|
<if test="pzhzkmdy != null and pzhzkmdy != ''"> and pzhzkmdy = #{pzhzkmdy} </if>
|
||||||
|
<if test="pzhzbz != null and pzhzbz != ''"> and pzhzbz = #{pzhzbz} </if>
|
||||||
|
<if test="zt != null"> and zt = #{zt} </if>
|
||||||
|
<if test="pzzy != null and pzzy != ''"> and pzzy = #{pzzy} </if>
|
||||||
|
<if test="pzje != null"> and pzje = #{pzje} </if>
|
||||||
|
<if test="cn != null and cn != ''"> and CN = #{cn} </if>
|
||||||
|
<if test="bz != null and bz != ''"> and BZ = #{bz} </if>
|
||||||
|
<if test="kjzg != null and kjzg != ''"> and kjzg = #{kjzg} </if>
|
||||||
|
<if test="dyzt != null and dyzt != ''"> and dyzt = #{dyzt} </if>
|
||||||
|
<if test="qzrq != null and qzrq != ''"> and QZRQ = #{qzrq} </if>
|
||||||
|
<if test="gdid != null"> and GDID = #{gdid} </if>
|
||||||
|
<if test="gdname != null and gdname != ''"> and GDName = #{gdname} </if>
|
||||||
|
<if test="gdrqsj != null and gdrqsj != ''"> and GDRQSJ = #{gdrqsj} </if>
|
||||||
|
<if test="gdcs != null"> and GDCS = #{gdcs} </if>
|
||||||
|
<if test="gdbz != null and gdbz != ''"> and GDBZ = #{gdbz} </if>
|
||||||
|
<if test="yspzzs != null"> and yspzzs = #{yspzzs} </if>
|
||||||
|
and sts='Y'
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="entity_delete">
|
||||||
|
delete from gl_pzml where idpzh= #{idpzh}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="SenderGlPzmlEntity_delete_pzml">
|
||||||
|
delete from gl_pzml where gsdm= #{gsdm} and zth=#{zth}
|
||||||
|
<if test="kjqj != null and kjqj!=''"> and kjqj=#{kjqj}</if>
|
||||||
|
<if test="pzh != null and pzh!=''"> and pzh = #{pzh} </if>
|
||||||
|
<if test="idpzh != null and idpzh!=''"> and idpzh = #{idpzh} </if>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,105 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPzml.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlPzml)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:06
|
||||||
|
*/
|
||||||
|
public interface ISenderGlPzmlService extends IBaseService<SenderGlPzmlEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 同步凭证 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 14:36
|
||||||
|
* **/
|
||||||
|
void glPzmlSynchronization(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询凭证 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 18:38
|
||||||
|
* **/
|
||||||
|
JsonResultEntity queryEntityPage(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存凭证到凭证日志表中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 14:33
|
||||||
|
* **/
|
||||||
|
JsonResultEntity saveEntity(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新凭证到凭证日志表中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 14:34
|
||||||
|
* **/
|
||||||
|
JsonResultEntity updateEntity(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询凭证 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 18:38
|
||||||
|
* **/
|
||||||
|
JsonResultEntity queryEntityPageHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存凭证 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 14:33
|
||||||
|
* **/
|
||||||
|
JsonResultEntity saveEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新凭证 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 14:34
|
||||||
|
* **/
|
||||||
|
JsonResultEntity updateEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除凭证 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/9 17:46
|
||||||
|
* **/
|
||||||
|
JsonResultEntity deleteEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询凭证 商学院 确定指标被哪些凭证使用
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/13 17:00
|
||||||
|
* **/
|
||||||
|
Object queryGlPzmlSxy(JSONObject jsonObject);
|
||||||
|
}
|
|
@ -0,0 +1,785 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPzml.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.dao.IGbiZbsyrecDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbsyrec.entity.GbiZbsyrecEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbxmb.dao.IGbiZbxmbDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPzml.dao.ISenderGlPzmlDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPzml.entity.SenderGlPzmlEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPzml.service.ISenderGlPzmlService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPznr.dao.ISenderGlPznrDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||||
|
import com.hzya.frame.web.entity.BaseResult;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.mybatis.spring.SqlSessionTemplate;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.RoundingMode;
|
||||||
|
import java.text.DecimalFormat;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
import static org.aspectj.runtime.internal.Conversions.doubleValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlPzml)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:06
|
||||||
|
*/
|
||||||
|
@Service(value = "SenderGlPzmlServiceImpl")
|
||||||
|
public class SenderGlPzmlServiceImpl extends BaseService<SenderGlPzmlEntity, String> implements ISenderGlPzmlService {
|
||||||
|
|
||||||
|
private static String URLTest="http://39.106.158.149/";//测试环境
|
||||||
|
private static String URL="http://192.168.42.22/";//正式环境
|
||||||
|
|
||||||
|
private ISenderGlPzmlDao senderGlPzmlDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IGbiZbxmbDao gbiZbxmbDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setSenderGlPzmlDao(ISenderGlPzmlDao dao) {
|
||||||
|
this.senderGlPzmlDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISenderGlPznrDao senderGlPznrDao;
|
||||||
|
|
||||||
|
|
||||||
|
//凭证同步
|
||||||
|
@Override
|
||||||
|
public void glPzmlSynchronization(JSONObject json) {
|
||||||
|
SenderGlPzmlEntity senderGlPzmlEntity = json.toJavaObject(SenderGlPzmlEntity.class);
|
||||||
|
String result=null;
|
||||||
|
try {
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if (senderGlPzmlEntity.getKjqj() == null) {
|
||||||
|
senderGlPzmlEntity.setKjqj(DateUtil.format(new Date(),"yyyy"));
|
||||||
|
//senderGlPzmlEntity.setKjqj("202105");
|
||||||
|
}
|
||||||
|
JSONObject jsonObjectStr=new JSONObject();
|
||||||
|
/*try {
|
||||||
|
//同步南浔区人民医院001凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("001");
|
||||||
|
senderGlPzmlEntity.setGsdm("0101010101");
|
||||||
|
logger.info("===========开始查询南浔区人民医院凭证目录信息=============");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("南浔区人民医院GRPU8凭证同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区人民医院GRPU8凭证同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
try {
|
||||||
|
//同步南浔区练市人民医院003凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("003");
|
||||||
|
senderGlPzmlEntity.setGsdm("0101010103");
|
||||||
|
logger.info("===========开始查询南浔区练市人民医院凭证目录信息=============");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("南浔区练市人民医院GRPU8凭证同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区练市人民医院GRPU8凭证同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
/*try {
|
||||||
|
//同步练市镇中心卫生院005凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("005");
|
||||||
|
senderGlPzmlEntity.setGsdm("0101010202");
|
||||||
|
logger.info("===========开始查询南浔区练市镇中心卫生院凭证目录信息=============");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("南浔区练市镇中心卫生院GRPU8凭证同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区练市镇中心卫生院GRPU8凭证同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步善琏镇卫生院007凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("007");
|
||||||
|
senderGlPzmlEntity.setGsdm("0101010204");
|
||||||
|
logger.info("===========开始查询南浔区善琏镇卫生院凭证目录信息=============");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8凭证同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8凭证同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*//同步双林镇中心卫生院004凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("004");
|
||||||
|
senderGlPzmlEntity.setGsdm("0101010201");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("双林镇中心卫生院GRPU8凭证同步结果为:{}",result);
|
||||||
|
//同步菱湖镇中心卫生院009凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("009");
|
||||||
|
senderGlPzmlEntity.setGsdm("0101020201");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("菱湖镇中心卫生院GRPU8凭证同步结果为:{}",result);
|
||||||
|
//同步和孚镇卫生院010凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("010");
|
||||||
|
senderGlPzmlEntity.setGsdm("0101020202");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("和孚镇卫生院GRPU8凭证同步结果为:{}",result);
|
||||||
|
//同步千金镇卫生院011凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("011");
|
||||||
|
senderGlPzmlEntity.setGsdm("0101020203");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("千金镇卫生院GRPU8凭证同步结果为:{}",result);
|
||||||
|
//同步石崇镇卫生院012凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("012");
|
||||||
|
senderGlPzmlEntity.setGsdm("0101020204");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("石崇镇卫生院GRPU8凭证同步结果为:{}");
|
||||||
|
//同步南浔镇中心卫生院014凭证信息
|
||||||
|
senderGlPzmlEntity.setZth("014");
|
||||||
|
senderGlPzmlEntity.setGsdm("010202");
|
||||||
|
jsonObjectStr.put("jsonStr",senderGlPzmlEntity);
|
||||||
|
result=sendPzmlToHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("南浔镇中心卫生院GRPU8凭证同步结果为:{}",result);*/
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("GRPU8凭证同步失败:{}", e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private String sendPzmlToHealthBureau(JSONObject jsonObjectStr){
|
||||||
|
JsonResultEntity jsonResultEntity = queryEntityPage(jsonObjectStr);
|
||||||
|
if (jsonResultEntity.getAttribute() == null) {
|
||||||
|
logger.info("GRPU8没有需要同步得凭证目录信息信息");
|
||||||
|
return "GRPU8没有需要同步的凭证目录信息";
|
||||||
|
}
|
||||||
|
JSONArray jsonArray = (JSONArray) JSON.toJSON(jsonResultEntity.getAttribute());
|
||||||
|
if (CollectionUtils.isEmpty(jsonArray)) {
|
||||||
|
logger.info("GRPU8没有需要同步得凭证目录信息信息");
|
||||||
|
return "GRPU8没有需要同步的凭证目录信息";
|
||||||
|
} else {
|
||||||
|
for (Object o : jsonArray) {
|
||||||
|
JSONObject jsonObjectPz = (JSONObject) JSON.toJSON(o);
|
||||||
|
//获取凭证目录信息
|
||||||
|
JSONObject jsonObjectPzml = jsonObjectPz.getJSONObject("gl_pzml");
|
||||||
|
JSONArray jsonArrayPznr = jsonObjectPz.getJSONArray("gl_pznr");
|
||||||
|
SenderGlPzmlEntity receiverGlPzmlEntity = new SenderGlPzmlEntity();
|
||||||
|
receiverGlPzmlEntity.setIdpzh(jsonObjectPzml.getString("idpzh"));
|
||||||
|
receiverGlPzmlEntity.setZth(jsonObjectPzml.getString("zth"));
|
||||||
|
JSONObject jsonObjectReceiver = new JSONObject();
|
||||||
|
jsonObjectReceiver.put("jsonStr", receiverGlPzmlEntity);
|
||||||
|
//根据发送方的idpzh查询接收方中是否存在数据
|
||||||
|
JsonResultEntity jsonResultEntityReceiver = queryEntityPageHealthBureau(jsonObjectReceiver);
|
||||||
|
JsonResultEntity jsonResultEntityRec=null;
|
||||||
|
//如果从接收方查询出的凭证没有,则新增,如果有,则更新凭证目录,之后再比较明细,如果接收方明细不存在,则新增明细,否则更新明细
|
||||||
|
if (jsonResultEntityReceiver.getAttribute() == null && jsonResultEntityReceiver.isFlag()) {
|
||||||
|
JSONObject jsonReceiverSave = new JSONObject();
|
||||||
|
jsonReceiverSave.put("main", jsonObjectPzml);
|
||||||
|
jsonReceiverSave.put("details", jsonArrayPznr);
|
||||||
|
jsonReceiverSave.put("kjqj", jsonObjectPzml.getString("kjqj"));
|
||||||
|
jsonReceiverSave.put("gsdm", jsonObjectPzml.getString("gsdm"));
|
||||||
|
jsonReceiverSave.put("zth", jsonObjectPzml.getString("zth"));
|
||||||
|
jsonReceiverSave.put("pzh", jsonObjectPzml.getString("pzh"));
|
||||||
|
JSONObject jsonObjectPznrStr = new JSONObject();
|
||||||
|
jsonObjectPznrStr.put("jsonStr", jsonReceiverSave);
|
||||||
|
jsonResultEntityRec= saveEntityHealthBureau(jsonObjectPznrStr);
|
||||||
|
if(jsonResultEntityRec.isFlag()){
|
||||||
|
JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntityRec.getAttribute());
|
||||||
|
logger.info("账套号:{}的GROU8得凭证同步保存卫生局的返回结果为:{}", jsonObjectPzml.getString("zth"),json.toJSONString());
|
||||||
|
}
|
||||||
|
/* if(jsonResultEntityReceiverSave.getStatus().equals("200")&&jsonResultEntityReceiverSave.getAttribute()!=null){
|
||||||
|
//保存日志
|
||||||
|
saveEntity(jsonObjectPznrStr);
|
||||||
|
}*/
|
||||||
|
} else {
|
||||||
|
JSONArray jsonArrayResult = (JSONArray) JSON.toJSON(jsonResultEntityReceiver.getAttribute());
|
||||||
|
//有值 将发送方的数据更新到接收方 更新凭证目录,更新凭证内容
|
||||||
|
for (Object object : jsonArrayResult) {
|
||||||
|
JSONObject jsonObjectReceiverPz = (JSONObject) JSON.toJSON(object);
|
||||||
|
//获取凭证目录信息
|
||||||
|
JSONObject jsonObjectReceiverPzml = jsonObjectReceiverPz.getJSONObject("main");
|
||||||
|
//JSONArray jsonArrayReceiverPznr = jsonObjectReceiverPz.getJSONArray("details");
|
||||||
|
if (jsonObjectPzml.getString("idpzh").equals(jsonObjectReceiverPzml.getString("idpzh"))) {
|
||||||
|
JSONObject jsonReceiverUpdate = new JSONObject();
|
||||||
|
jsonReceiverUpdate.put("main", jsonObjectPzml);
|
||||||
|
jsonReceiverUpdate.put("details", jsonArrayPznr);
|
||||||
|
jsonReceiverUpdate.put("kjqj", jsonObjectPzml.getString("kjqj"));
|
||||||
|
jsonReceiverUpdate.put("gsdm", jsonObjectPzml.getString("gsdm"));
|
||||||
|
jsonReceiverUpdate.put("zth", jsonObjectPzml.getString("zth"));
|
||||||
|
jsonReceiverUpdate.put("pzh", jsonObjectPzml.getString("pzh"));
|
||||||
|
JSONObject jsonObjectPznrStr = new JSONObject();
|
||||||
|
jsonObjectPznrStr.put("jsonStr", jsonReceiverUpdate);
|
||||||
|
jsonResultEntityRec=updateEntityHealthBureau(jsonObjectPznrStr);
|
||||||
|
if (jsonResultEntityRec.isFlag()){
|
||||||
|
JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntityRec.getAttribute());
|
||||||
|
logger.info("账套号:{}的GROU8得凭证同步更新卫生局的返回结果为:{}", jsonObjectPzml.getString("zth"),json.toJSONString());
|
||||||
|
}
|
||||||
|
/* if(jsonResultEntityReceiverUpdate.getStatus().equals("200")&&jsonResultEntityReceiverUpdate.getAttribute()!=null){
|
||||||
|
//更新日志
|
||||||
|
updateEntity(jsonObjectPznrStr);
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "同步GROU8凭证成功";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//查询凭证
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity queryEntityPage(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlPzmlEntity senderGlPzmlEntity = jsonObject.toJavaObject(SenderGlPzmlEntity.class);
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if (senderGlPzmlEntity.getKjqj() == null) {
|
||||||
|
senderGlPzmlEntity.setKjqj(DateUtil.format(new Date(),"yyyy"));
|
||||||
|
}
|
||||||
|
if(StrUtil.isEmpty(senderGlPzmlEntity.getZth())){
|
||||||
|
logger.info("======传递的账套号为:{}=========",senderGlPzmlEntity.getZth());
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递账套号");
|
||||||
|
}
|
||||||
|
List<JSONObject> list=new ArrayList<>();
|
||||||
|
List<SenderGlPzmlEntity> senderGlPzmlEntities=new ArrayList<>();
|
||||||
|
try {
|
||||||
|
/*switch (senderGlPzmlEntity.getZth()){
|
||||||
|
case "003"://练市人民医院
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
break;
|
||||||
|
case "004"://双林镇中心卫生院
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
break;
|
||||||
|
case "005"://练市镇中心卫生院
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
break;
|
||||||
|
case "007"://善琏镇卫生院
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
break;
|
||||||
|
case "009":
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
break;
|
||||||
|
case "010":
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
break;
|
||||||
|
case "011":
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
break;
|
||||||
|
case "012":
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
break;
|
||||||
|
case "001"://南浔区人民医院
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}*/
|
||||||
|
senderGlPzmlEntities=senderGlPzmlDao.querySenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
if (CollectionUtils.isEmpty(senderGlPzmlEntities)) {
|
||||||
|
logger.info("{}账套GRPU8没有凭证目录信息",senderGlPzmlEntity.getZth());
|
||||||
|
return BaseResult.getSuccessMessageEntity("GRPU8没有凭证目录信息",null);
|
||||||
|
} else {
|
||||||
|
for (SenderGlPzmlEntity pzmlEntity : senderGlPzmlEntities) {
|
||||||
|
JSONObject jsonObjectPz=new JSONObject();
|
||||||
|
jsonObjectPz.put("gl_pzml",pzmlEntity);
|
||||||
|
//根据凭证号,会计期间,账套号查询凭证内容信息
|
||||||
|
SenderGlPznrEntity senderGlPznrEntity = new SenderGlPznrEntity();
|
||||||
|
senderGlPznrEntity.setKjqj(pzmlEntity.getKjqj());
|
||||||
|
senderGlPznrEntity.setZth(pzmlEntity.getZth());
|
||||||
|
senderGlPznrEntity.setPzh(pzmlEntity.getPzh());
|
||||||
|
senderGlPznrEntity.setGsdm(pzmlEntity.getGsdm());
|
||||||
|
senderGlPznrEntity.setIdpzh(pzmlEntity.getIdpzh());
|
||||||
|
senderGlPznrEntity.setDataSourceCode(senderGlPzmlEntity.getDataSourceCode());
|
||||||
|
List<SenderGlPznrEntity> senderGlPznrEntities=new ArrayList<>();
|
||||||
|
/*switch (senderGlPzmlEntity.getZth()){
|
||||||
|
case "003"://练市人民医院
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
break;
|
||||||
|
case "004"://双林镇中心卫生院
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
break;
|
||||||
|
case "005"://练市镇中心卫生院
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
break;
|
||||||
|
case "007"://善琏镇卫生院
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
break;
|
||||||
|
case "009":
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
break;
|
||||||
|
case "010":
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
break;
|
||||||
|
case "011":
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
break;
|
||||||
|
case "012":
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
break;
|
||||||
|
case "001"://南浔区人民医院
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}*/
|
||||||
|
senderGlPznrEntities= senderGlPznrDao.querySenderGlPznrEntity(senderGlPznrEntity);
|
||||||
|
jsonObjectPz.put("gl_pznr",senderGlPznrEntities);
|
||||||
|
list.add(jsonObjectPz);
|
||||||
|
}
|
||||||
|
return BaseResult.getSuccessMessageEntity("查询凭证成功",list);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("{}账套查询GROU8凭证信息失败:{}", senderGlPzmlEntity.getZth(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("查询GROU8凭证信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//保存凭证到凭证日志表中 发送方
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity saveEntity(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录
|
||||||
|
JSONArray jsonArray = jsonObject.getJSONArray("details");
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("kjqj"))) {
|
||||||
|
throw new RuntimeException("会计期间为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||||
|
throw new RuntimeException("公司代码为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("zth"))) {
|
||||||
|
throw new RuntimeException("账套编号为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("pzh"))) {
|
||||||
|
throw new RuntimeException("凭证号为空");
|
||||||
|
}
|
||||||
|
//生成idpzh
|
||||||
|
String idpzh = jsonObjectMain.getString("idpzh")==null?String.valueOf(UUID.randomUUID()):jsonObjectMain.getString("idpzh");
|
||||||
|
jsonObjectMain.put("kjqj",jsonObject.getString("kjqj"));
|
||||||
|
jsonObjectMain.put("idpzh",idpzh);
|
||||||
|
jsonObjectMain.put("gsdm",jsonObject.getString("gsdm"));
|
||||||
|
jsonObjectMain.put("zth",jsonObject.getString("zth"));
|
||||||
|
jsonObjectMain.put("pzh",jsonObject.getString("pzh"));
|
||||||
|
SenderGlPzmlEntity senderGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||||
|
try {
|
||||||
|
logger.info("===========开始保存凭证日志,idpzh:{},pzh:{}=========",senderGlPzmlEntity.getIdpzh(),senderGlPzmlEntity.getPzh());
|
||||||
|
SenderGlPzmlEntity glPzmlEntity = senderGlPzmlDao.saveSenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
List<JSONObject> list=new ArrayList<JSONObject>();
|
||||||
|
JSONObject jsonObjectSend=new JSONObject();
|
||||||
|
jsonObjectSend.put("pzml",glPzmlEntity);
|
||||||
|
List<SenderGlPznrEntity> listPznr=new ArrayList<>();
|
||||||
|
//遍历数组,得到凭证内容
|
||||||
|
if(jsonArray.size()>0&&jsonArray!=null){
|
||||||
|
for (Object o : jsonArray) {
|
||||||
|
SenderGlPznrEntity glPznrEntity=(SenderGlPznrEntity)o;
|
||||||
|
glPznrEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||||
|
glPznrEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||||
|
glPznrEntity.setZth(jsonObject.getString("zth"));
|
||||||
|
glPznrEntity.setPzh(jsonObject.getString("pzh"));
|
||||||
|
glPznrEntity.setIdpznr(glPznrEntity.getIdpznr() == null ? String.valueOf(UUID.randomUUID()) : glPznrEntity.getIdpznr() );
|
||||||
|
SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.saveSenderGlPznrEntity(glPznrEntity);
|
||||||
|
listPznr.add(senderGlPznrEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jsonObjectSend.put("pznr",listPznr);
|
||||||
|
list.add(jsonObjectSend);
|
||||||
|
return BaseResult.getSuccessMessageEntity("保存凭证日志成功",list);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("保存GRPU8凭证日志失败:{}", e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("凭证日志保存失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//更新凭证到凭证日志表中 发送方
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity updateEntity(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录
|
||||||
|
JSONArray jsonArray = jsonObject.getJSONArray("details");
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("kjqj"))) {
|
||||||
|
throw new RuntimeException("会计期间为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||||
|
throw new RuntimeException("公司代码为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("zth"))) {
|
||||||
|
throw new RuntimeException("账套编号为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("pzh"))) {
|
||||||
|
throw new RuntimeException("凭证号为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObjectMain.getString("idpzh"))) {
|
||||||
|
throw new RuntimeException("idpzh为空");
|
||||||
|
}
|
||||||
|
SenderGlPzmlEntity senderGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||||
|
senderGlPzmlEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||||
|
senderGlPzmlEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||||
|
senderGlPzmlEntity.setZth(jsonObject.getString("zth"));
|
||||||
|
senderGlPzmlEntity.setPzh(jsonObject.getString("pzh"));
|
||||||
|
try {
|
||||||
|
logger.info("==========开始更新凭证日志,idpzh:{},pzh:{}",senderGlPzmlEntity.getIdpzh(),senderGlPzmlEntity.getPzh());
|
||||||
|
SenderGlPzmlEntity senderGlPzmlEntitySend = senderGlPzmlDao.updateSenderGlPzmlEntity(senderGlPzmlEntity);
|
||||||
|
List<JSONObject> list=new ArrayList<>();
|
||||||
|
JSONObject jsonObjectPz=new JSONObject();
|
||||||
|
jsonObjectPz.put("pzml",senderGlPzmlEntitySend);
|
||||||
|
List<SenderGlPznrEntity> listPznr=new ArrayList<>();
|
||||||
|
//遍历数组,得到凭证内容
|
||||||
|
if(jsonArray.size()>0&&jsonArray!=null){
|
||||||
|
for (Object o : jsonArray) {
|
||||||
|
SenderGlPznrEntity glPznrEntity=(SenderGlPznrEntity)o;
|
||||||
|
SenderGlPznrEntity senderGlPznr=new SenderGlPznrEntity();
|
||||||
|
senderGlPznr.setKjqj(jsonObject.getString("kjqj"));
|
||||||
|
senderGlPznr.setGsdm(jsonObject.getString("gsdm"));
|
||||||
|
senderGlPznr.setZth(jsonObject.getString("zth"));
|
||||||
|
senderGlPznr.setPzh(jsonObject.getString("pzh"));
|
||||||
|
senderGlPznr.setIdpznr(glPznrEntity.getIdpznr());
|
||||||
|
//根据凭证内容id等条件查询在凭证内容日志中是否存在,如果存在,则更新,如果不存在则新增
|
||||||
|
//比如 凭证内容8条,日志中只有7条,则多余的一条新增,剩下7条更新
|
||||||
|
SenderGlPznrEntity pznrEntity = senderGlPznrDao.querySenderGlPznrEntityOne(senderGlPznr);
|
||||||
|
if(pznrEntity==null){
|
||||||
|
SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.saveSenderGlPznrEntity(glPznrEntity);
|
||||||
|
listPznr.add(senderGlPznrEntity);
|
||||||
|
}else{
|
||||||
|
SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.updateSenderGlPznrEntity(glPznrEntity);
|
||||||
|
listPznr.add(senderGlPznrEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jsonObjectPz.put("pznr",listPznr);
|
||||||
|
list.add(jsonObjectPz);
|
||||||
|
return BaseResult.getSuccessMessageEntity("凭证日志更新成功",list);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("更新GRPU8凭证日志失败:{}", e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("凭证日志更新失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询凭证
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity queryEntityPageHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlPzmlEntity receiverGlPzmlEntity = jsonObject.toJavaObject(SenderGlPzmlEntity.class);
|
||||||
|
if(receiverGlPzmlEntity.getIdpzh()!=null) {
|
||||||
|
try {
|
||||||
|
List<JSONObject> list=new ArrayList<>();
|
||||||
|
logger.info("====开始根据账套号:{}和凭证号:{}查询卫生局里面得凭证数据",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh());
|
||||||
|
List<SenderGlPzmlEntity> receiverGlPzmlEntities = senderGlPzmlDao.queryGlPzmlHealthBureau(receiverGlPzmlEntity);
|
||||||
|
if(CollectionUtils.isNotEmpty(receiverGlPzmlEntities)){
|
||||||
|
for (SenderGlPzmlEntity glPzmlEntity : receiverGlPzmlEntities) {
|
||||||
|
JSONObject jsonObjectStr=new JSONObject();
|
||||||
|
jsonObjectStr.put("main",glPzmlEntity);
|
||||||
|
//根据凭证号,会计期间,账套号查询凭证内容信息
|
||||||
|
SenderGlPznrEntity receiverGlPznrEntity = new SenderGlPznrEntity();
|
||||||
|
receiverGlPznrEntity.setKjqj(glPzmlEntity.getKjqj());
|
||||||
|
receiverGlPznrEntity.setZth(glPzmlEntity.getZth());
|
||||||
|
receiverGlPznrEntity.setPzh(glPzmlEntity.getPzh());
|
||||||
|
receiverGlPznrEntity.setGsdm(glPzmlEntity.getGsdm());
|
||||||
|
List<SenderGlPznrEntity> receiverGlPznrEntities = senderGlPznrDao.queryGlPznrHealthBureau(receiverGlPznrEntity);
|
||||||
|
jsonObjectStr.put("details",receiverGlPznrEntities);
|
||||||
|
list.add(jsonObjectStr);
|
||||||
|
}
|
||||||
|
return BaseResult.getSuccessMessageEntity("查询凭证成功",list);
|
||||||
|
}else{
|
||||||
|
logger.info("根据idpzh:{}和账套号:{}查询接收方的凭证为空",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh());
|
||||||
|
return BaseResult.getSuccessMessageEntity("查询接收方的凭证为空");
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("根据账套号:{}查询卫生局得GROU8凭证信息失败:{}", receiverGlPzmlEntity.getZth(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("查询接收方得GROU8凭证信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
//保存凭证
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity saveEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//获取凭证目录
|
||||||
|
JSONArray jsonArray = jsonObject.getJSONArray("details");//获取凭证内容
|
||||||
|
if (!checkStr(jsonObject.getString("kjqj"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("会计期间为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("zth"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("pzh"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("凭证号为空");
|
||||||
|
}
|
||||||
|
//生成idpzh
|
||||||
|
String idpzh = jsonObjectMain.getString("idpzh")==null?String.valueOf(UUID.randomUUID()):jsonObjectMain.getString("idpzh");
|
||||||
|
jsonObjectMain.put("kjqj",jsonObject.getString("kjqj"));
|
||||||
|
jsonObjectMain.put("idpzh",idpzh);
|
||||||
|
jsonObjectMain.put("gsdm",jsonObject.getString("gsdm"));
|
||||||
|
jsonObjectMain.put("zth",jsonObject.getString("zth"));
|
||||||
|
jsonObjectMain.put("pzh",jsonObject.getString("pzh"));
|
||||||
|
SenderGlPzmlEntity glPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||||
|
try {
|
||||||
|
logger.info("===========根据账套号:{}开始保存凭证,idpzh:{},pzh:{}=========",glPzmlEntity.getZth(),glPzmlEntity.getIdpzh(),glPzmlEntity.getPzh());
|
||||||
|
SenderGlPzmlEntity receiverGlPzmlEntity = senderGlPzmlDao.saveGlPzmlHealthBureau(glPzmlEntity);
|
||||||
|
List<JSONObject> list=new ArrayList<>();
|
||||||
|
JSONObject jsonObjectReceiver =new JSONObject();
|
||||||
|
jsonObjectReceiver.put("gl_pzml",receiverGlPzmlEntity);
|
||||||
|
List<SenderGlPznrEntity> listGlPznr=new ArrayList<>();
|
||||||
|
//遍历数组,得到凭证内容
|
||||||
|
if(jsonArray.size()>0&&jsonArray!=null) {
|
||||||
|
for (Object o : jsonArray) {
|
||||||
|
SenderGlPznrEntity receiverGlPznrEntity=(SenderGlPznrEntity)o;
|
||||||
|
receiverGlPznrEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||||
|
receiverGlPznrEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||||
|
receiverGlPznrEntity.setZth(jsonObject.getString("zth"));
|
||||||
|
receiverGlPznrEntity.setPzh(jsonObject.getString("pzh"));
|
||||||
|
receiverGlPznrEntity.setDataSourceCode(glPzmlEntity.getDataSourceCode());
|
||||||
|
receiverGlPznrEntity.setIdpznr(receiverGlPznrEntity.getIdpznr()== null ? String.valueOf(UUID.randomUUID()) : receiverGlPznrEntity.getIdpznr());
|
||||||
|
SenderGlPznrEntity glPznrEntity = senderGlPznrDao.saveGlPznrHealthBureau(receiverGlPznrEntity);
|
||||||
|
listGlPznr.add(glPznrEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jsonObjectReceiver.put("gl_pznr",listGlPznr);
|
||||||
|
list.add(jsonObjectReceiver);
|
||||||
|
return BaseResult.getSuccessMessageEntity("保存凭证成功",jsonObjectReceiver);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套号:{}保存GRPU8凭证失败:{}",jsonObjectMain.getString("zth"),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("凭证保存失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//更新凭证
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity updateEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录
|
||||||
|
JSONArray jsonArray = jsonObject.getJSONArray("details");
|
||||||
|
if (!checkStr(jsonObject.getString("kjqj"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("会计期间为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("zth"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("pzh"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("凭证号为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObjectMain.getString("idpzh"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("idpzh为空");
|
||||||
|
}
|
||||||
|
if(jsonArray.size()>0&&jsonArray!=null){
|
||||||
|
for (Object o : jsonArray) {
|
||||||
|
SenderGlPznrEntity senderGlPznrEntity = (SenderGlPznrEntity)o;
|
||||||
|
if (StrUtil.isEmpty(senderGlPznrEntity.getIdpznr())) {
|
||||||
|
return BaseResult.getFailureMessageEntity("凭证内容得id为空");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
SenderGlPzmlEntity receiverGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||||
|
receiverGlPzmlEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||||
|
receiverGlPzmlEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||||
|
receiverGlPzmlEntity.setZth(jsonObject.getString("zth"));
|
||||||
|
receiverGlPzmlEntity.setPzh(jsonObject.getString("pzh"));
|
||||||
|
try {
|
||||||
|
logger.info("==========开始根据账套号:{}更新凭证,idpzh:{},pzh:{}",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh(),receiverGlPzmlEntity.getPzh());
|
||||||
|
SenderGlPzmlEntity glPzmlEntity = senderGlPzmlDao.updateGlPzmlHealthBureau(receiverGlPzmlEntity);
|
||||||
|
List<JSONObject> list=new ArrayList<>();
|
||||||
|
JSONObject jsonObjectPz=new JSONObject();
|
||||||
|
jsonObjectPz.put("gl_pzml",glPzmlEntity);
|
||||||
|
List<SenderGlPznrEntity> listPznr=new ArrayList<>();
|
||||||
|
//遍历数组,得到凭证内容
|
||||||
|
if(jsonArray.size()>0 && jsonArray!=null){
|
||||||
|
for (Object o : jsonArray) {
|
||||||
|
SenderGlPznrEntity receiverGlPznr=(SenderGlPznrEntity)o;
|
||||||
|
receiverGlPznr.setKjqj(jsonObject.getString("kjqj"));
|
||||||
|
receiverGlPznr.setGsdm(jsonObject.getString("gsdm"));
|
||||||
|
receiverGlPznr.setZth(jsonObject.getString("zth"));
|
||||||
|
receiverGlPznr.setPzh(jsonObject.getString("pzh"));
|
||||||
|
receiverGlPznr.setDataSourceCode(receiverGlPzmlEntity.getDataSourceCode());
|
||||||
|
//根据凭证内容id等条件查询在接收方凭证内容中是否存在,如果存在,则更新,如果不存在则新增
|
||||||
|
//比如 发送方的凭证内容8条,接收方只有7条,则多余的一条新增,剩下7条更新
|
||||||
|
SenderGlPznrEntity senderGlPznrEntity = senderGlPznrDao.querySenderGlPznrEntityOne(receiverGlPznr);
|
||||||
|
if(senderGlPznrEntity==null){
|
||||||
|
SenderGlPznrEntity glPznrEntity = senderGlPznrDao.saveGlPznrHealthBureau(receiverGlPznr);
|
||||||
|
listPznr.add(glPznrEntity);
|
||||||
|
}else {
|
||||||
|
SenderGlPznrEntity glPznrEntity = senderGlPznrDao.updateGlPznrHealthBureau(receiverGlPznr);
|
||||||
|
listPznr.add(glPznrEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jsonObjectPz.put("gl_pznr",listPznr);
|
||||||
|
list.add(jsonObjectPz);
|
||||||
|
return BaseResult.getSuccessMessageEntity("凭证更新成功",list);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套号:{}更新GRPU8凭证失败:{}", receiverGlPzmlEntity.getZth(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("凭证更新失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//删除凭证
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity deleteEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
JSONObject jsonObjectMain = jsonObject.getJSONObject("main");//或者凭证目录
|
||||||
|
JSONArray jsonArray = jsonObject.getJSONArray("details");
|
||||||
|
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("zth"))) {
|
||||||
|
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("kjqj"))) {
|
||||||
|
jsonObject.put("kjqj",DateUtil.format(new Date(),"yyyyMM"));
|
||||||
|
}
|
||||||
|
SenderGlPzmlEntity receiverGlPzmlEntity = jsonObjectMain.toJavaObject(SenderGlPzmlEntity.class);
|
||||||
|
receiverGlPzmlEntity.setKjqj(jsonObject.getString("kjqj"));
|
||||||
|
receiverGlPzmlEntity.setGsdm(jsonObject.getString("gsdm"));
|
||||||
|
receiverGlPzmlEntity.setZth(jsonObject.getString("zth"));
|
||||||
|
receiverGlPzmlEntity.setPzh(jsonObject.getString("pzh"));
|
||||||
|
try {
|
||||||
|
logger.info("==========开始根据账套号:{}删除凭证,idpzh:{},pzh:{}",receiverGlPzmlEntity.getZth(),receiverGlPzmlEntity.getIdpzh(),receiverGlPzmlEntity.getPzh());
|
||||||
|
Integer integer = senderGlPzmlDao.deleteGlPzmlHealthBureau(receiverGlPzmlEntity);
|
||||||
|
//遍历数组,得到凭证内容
|
||||||
|
if(jsonArray.size()>0 && jsonArray!=null){
|
||||||
|
for (Object o : jsonArray) {
|
||||||
|
SenderGlPznrEntity receiverGlPznr=(SenderGlPznrEntity)o;
|
||||||
|
receiverGlPznr.setKjqj(jsonObject.getString("kjqj"));
|
||||||
|
receiverGlPznr.setGsdm(jsonObject.getString("gsdm"));
|
||||||
|
receiverGlPznr.setZth(jsonObject.getString("zth"));
|
||||||
|
receiverGlPznr.setPzh(jsonObject.getString("pzh"));
|
||||||
|
receiverGlPznr.setDataSourceCode(receiverGlPzmlEntity.getDataSourceCode());
|
||||||
|
Integer i = senderGlPznrDao.deleteGlPznrHealthBureau(receiverGlPznr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return BaseResult.getSuccessMessageEntity("凭证删除成功",integer);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套号:{}删除GRPU8凭证失败:{}", receiverGlPzmlEntity.getZth(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("凭证删除失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//保存凭证 商学院,指标被哪些凭证使用
|
||||||
|
@Override
|
||||||
|
public Object queryGlPzmlSxy(JSONObject json){
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlPzmlEntity glPzmlEntity = jsonObject.toJavaObject(SenderGlPzmlEntity.class);
|
||||||
|
if(StrUtil.isEmpty(glPzmlEntity.getKjqj())){
|
||||||
|
glPzmlEntity.setKjqj(DateUtil.format(new Date(),"yyyyMM"));
|
||||||
|
}
|
||||||
|
//获取token
|
||||||
|
String token = getToken();
|
||||||
|
if(StrUtil.isEmpty(token)){
|
||||||
|
return BaseResult.getFailureMessageEntity("token为空,请先获取token");
|
||||||
|
}
|
||||||
|
//查询凭证数据
|
||||||
|
List<SenderGlPzmlEntity> list = senderGlPzmlDao.queryGlPzmlSxy(glPzmlEntity);
|
||||||
|
if(CollectionUtils.isEmpty(list)){
|
||||||
|
return BaseResult.getSuccessMessageEntity("没有需要同步得凭证",null);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
String result=null;
|
||||||
|
for (SenderGlPzmlEntity pzmlEntity : list) {
|
||||||
|
String pzNum = pzmlEntity.getGsdm() + "_" + pzmlEntity.getZth() + "_" + pzmlEntity.getKjqj() + "_" + pzmlEntity.getPzh();
|
||||||
|
//转换日期,如将20240514转为2024-05-14
|
||||||
|
SimpleDateFormat inputFormat = new SimpleDateFormat("yyyyMMdd");
|
||||||
|
SimpleDateFormat outputFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
Date date = inputFormat.parse(pzmlEntity.getSrrq());
|
||||||
|
String outputDateString = outputFormat.format(date);
|
||||||
|
//将金额四舍五入
|
||||||
|
BigDecimal bigDecimalValue = new BigDecimal(pzmlEntity.getPzje());
|
||||||
|
BigDecimal roundedValue = bigDecimalValue.setScale(2,
|
||||||
|
RoundingMode.HALF_UP);
|
||||||
|
JSONObject jsonObjectParams=new JSONObject();
|
||||||
|
jsonObjectParams.put("code",pzmlEntity.getIdpzh());//pzid
|
||||||
|
jsonObjectParams.put("budgetYear",pzmlEntity.getKjqj().substring(0,4));//预算年度
|
||||||
|
jsonObjectParams.put("applyDate",outputDateString);//日期
|
||||||
|
jsonObjectParams.put("userCode",pzmlEntity.getSrid());//用户编码
|
||||||
|
jsonObjectParams.put("depCode","A518");//部门编码
|
||||||
|
jsonObjectParams.put("description",pzmlEntity.getPzzy());//说明
|
||||||
|
jsonObjectParams.put("amount",roundedValue.doubleValue());//金额
|
||||||
|
jsonObjectParams.put("pzNum",pzNum);//凭证号 例如:公司代码+账套号+会计期间+凭证号:001_001_202408_付款_1
|
||||||
|
//根据idpzh查询指标id和指标金额
|
||||||
|
GbiZbxmbEntity gbiZbxmbEntity=new GbiZbxmbEntity();
|
||||||
|
gbiZbxmbEntity.setDjId(pzmlEntity.getIdpzh());
|
||||||
|
gbiZbxmbEntity.setKjnd(pzmlEntity.getKjqj().substring(0,4));
|
||||||
|
gbiZbxmbEntity.setDataSourceCode(glPzmlEntity.getDataSourceCode());
|
||||||
|
List<GbiZbxmbEntity> gbiZbsyrecEntities = gbiZbxmbDao.queryZbxmbByIdpzh(gbiZbxmbEntity);
|
||||||
|
logger.info("=======根据凭证idpzh:{}查询的指标金额和指标id数据有{}条",pzmlEntity.getIdpzh(),gbiZbsyrecEntities.size());
|
||||||
|
if(CollectionUtils.isEmpty(gbiZbsyrecEntities)){
|
||||||
|
jsonObjectParams.put("reimburseItems",new ArrayList<>());
|
||||||
|
}else{
|
||||||
|
JSONArray jsonArray=new JSONArray();
|
||||||
|
for (GbiZbxmbEntity zbxmbEntity : gbiZbsyrecEntities) {
|
||||||
|
BigDecimal bigDecimalValueZbxmb = new BigDecimal(zbxmbEntity.getJe());
|
||||||
|
BigDecimal roundedValueZbxmb = bigDecimalValueZbxmb.setScale(2, RoundingMode.HALF_UP);
|
||||||
|
JSONObject jsonObjectZbxm=new JSONObject();
|
||||||
|
jsonObjectZbxm.put("thirdProjectCode",zbxmbEntity.getZbid());
|
||||||
|
jsonObjectZbxm.put("amount",roundedValueZbxmb);
|
||||||
|
jsonObjectZbxm.put("financialCode",zbxmbEntity.getJjkmdm());
|
||||||
|
jsonArray.add(jsonObjectZbxm);
|
||||||
|
}
|
||||||
|
jsonObjectParams.put("reimburseItems",jsonArray);
|
||||||
|
}
|
||||||
|
JSONArray jsonArray=new JSONArray();
|
||||||
|
jsonArray.add(jsonObjectParams);
|
||||||
|
JSONObject jsonObjectData=new JSONObject();
|
||||||
|
jsonObjectData.put("data",jsonArray);
|
||||||
|
String params = jsonObjectData.toJSONString();
|
||||||
|
logger.info("调用商学院凭证保存接口请求参数:{}",params);
|
||||||
|
result = HttpRequest.post(URLTest + "/nky/service/zsApi/saveZJSYPZReimburse?accessToken="+token).header("Content-Type", "application/json;charset=UTF-8").timeout(30000).body(params).execute().body();
|
||||||
|
logger.info("调用商学院凭证保存接口返回参数:{}",result);
|
||||||
|
}
|
||||||
|
JSONObject jsonObjectResult=new JSONObject();
|
||||||
|
jsonObjectResult.put("status","200");
|
||||||
|
jsonObjectResult.put("pzml",result);
|
||||||
|
return jsonObjectResult;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据凭证idpzh:{}查询指标失败:{}",glPzmlEntity.getIdpzh(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("根据凭证查询指标失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//获取token
|
||||||
|
private String getToken(){
|
||||||
|
JSONObject jsonObject=new JSONObject();
|
||||||
|
jsonObject.put("appkey","9832-b00b-babf-4d6b-9e66-f6c1-3541-a0e6");
|
||||||
|
jsonObject.put("appsecret","fbab-16fc-348e-4151-4814-eb06-1526-5f22");
|
||||||
|
String params = jsonObject.toJSONString();
|
||||||
|
logger.info("=========获取凭证token请求参数:{}========",params);
|
||||||
|
String urlToken="nky/service/session/getAccessToken";
|
||||||
|
String result = HttpRequest.post(URLTest + urlToken).header("Content-Type", "application/json;charset=UTF-8").timeout(30000).body(params).execute().body();
|
||||||
|
logger.info("=========获取凭证token返回结果:{}========",result);
|
||||||
|
JSONObject jsonObjectResult=JSONObject.parseObject(result);
|
||||||
|
String value=jsonObjectResult.getString("value");
|
||||||
|
if(StrUtil.isNotEmpty(value)){
|
||||||
|
JSONObject jsonObjectValue = JSONObject.parseObject(value);
|
||||||
|
String accessToken = jsonObjectValue.getString("accessToken");
|
||||||
|
logger.info("=========获取得凭证token值为:{}=======",accessToken);
|
||||||
|
return accessToken;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,98 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPznr.dao;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (gl_pznr: table)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 14:14:30
|
||||||
|
*/
|
||||||
|
public interface ISenderGlPznrDao extends IBaseDao<SenderGlPznrEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询凭证内容 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlPznrEntity> querySenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存凭证内容到凭证内容日志中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/29 15:08
|
||||||
|
* **/
|
||||||
|
SenderGlPznrEntity saveSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新凭证内容到凭证内容表中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/29 15:09
|
||||||
|
* **/
|
||||||
|
SenderGlPznrEntity updateSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 根据凭证内容id等条件,查询在凭证日志中是否存在,如果不存在,则新增
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/1 9:20
|
||||||
|
* **/
|
||||||
|
SenderGlPznrEntity querySenderGlPznrEntityOne(SenderGlPznrEntity senderGlPznrEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询凭证内容 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlPznrEntity> queryGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存凭证内容 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/29 14:05
|
||||||
|
* **/
|
||||||
|
SenderGlPznrEntity saveGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新凭证内容 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/29 14:06
|
||||||
|
* **/
|
||||||
|
SenderGlPznrEntity updateGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除凭证内容 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/9 17:57
|
||||||
|
* **/
|
||||||
|
Integer deleteGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,74 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPznr.dao.impl;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPznr.dao.ISenderGlPznrDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlPznr)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 14:14:30
|
||||||
|
*/
|
||||||
|
@Repository(value = "SenderGlPznrDaoImpl")
|
||||||
|
public class SenderGlPznrDaoImpl extends MybatisGenericDao<SenderGlPznrEntity, String> implements ISenderGlPznrDao {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||||
|
public List<SenderGlPznrEntity> querySenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity) {
|
||||||
|
return super.queryByLike(senderGlPznrEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||||
|
public SenderGlPznrEntity saveSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity) {
|
||||||
|
return super.save(senderGlPznrEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||||
|
public SenderGlPznrEntity updateSenderGlPznrEntity(SenderGlPznrEntity senderGlPznrEntity) {
|
||||||
|
return super.update(senderGlPznrEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||||
|
public SenderGlPznrEntity querySenderGlPznrEntityOne(SenderGlPznrEntity senderGlPznrEntity) {
|
||||||
|
SenderGlPznrEntity glPznrEntity = (SenderGlPznrEntity)super.selectOne( "querySenderGlPznrEntityOne", senderGlPznrEntity);
|
||||||
|
return glPznrEntity;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||||
|
public List<SenderGlPznrEntity> queryGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) {
|
||||||
|
return super.query(senderGlPznrEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||||
|
public SenderGlPznrEntity saveGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) {
|
||||||
|
return super.save(senderGlPznrEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||||
|
public SenderGlPznrEntity updateGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) {
|
||||||
|
return super.update(senderGlPznrEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlPznrEntity.dataSourceCode")
|
||||||
|
public Integer deleteGlPznrHealthBureau(SenderGlPznrEntity senderGlPznrEntity) {
|
||||||
|
return super.delete("SenderGlPznrEntity_delete_pznr",senderGlPznrEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,818 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPznr.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlPznr)实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 14:14:30
|
||||||
|
*/
|
||||||
|
public class SenderGlPznrEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String gsdm;
|
||||||
|
private String zth;
|
||||||
|
private String kjqj;
|
||||||
|
private String pzly;
|
||||||
|
private String pzh;
|
||||||
|
private Integer flh;
|
||||||
|
private String zy;
|
||||||
|
private String kmdm;
|
||||||
|
private String wbdm;
|
||||||
|
private String hl;
|
||||||
|
private String jdbz;
|
||||||
|
private String wbje;
|
||||||
|
private String je;
|
||||||
|
private String spz;
|
||||||
|
private String wldrq;
|
||||||
|
private String sl;
|
||||||
|
private String dj;
|
||||||
|
private String bmdm;
|
||||||
|
|
||||||
|
private String wldm;
|
||||||
|
private String xmdm;
|
||||||
|
private String fzsm1;
|
||||||
|
private String fzsm2;
|
||||||
|
private String fzsm3;
|
||||||
|
private String fzsm4;
|
||||||
|
private String fzsm5;
|
||||||
|
private String fzsm6;
|
||||||
|
private String fzsm7;
|
||||||
|
private String fzsm8;
|
||||||
|
private String fzsm9;
|
||||||
|
private String cess;
|
||||||
|
private String fplx;
|
||||||
|
private String fprq;
|
||||||
|
private Integer fphfw1;
|
||||||
|
private Integer fphfw2;
|
||||||
|
private String jsfs;
|
||||||
|
private String zydm;
|
||||||
|
private String fzdm4;
|
||||||
|
private String fzdm5;
|
||||||
|
private String fzdm6;
|
||||||
|
private String fzdm7;
|
||||||
|
private String fzdm8;
|
||||||
|
private String fzdm9;
|
||||||
|
private String fzdm10;
|
||||||
|
private String fzdm11;
|
||||||
|
private String fzdm12;
|
||||||
|
private String fzdm13;
|
||||||
|
private String fzdm14;
|
||||||
|
private String fzdm15;
|
||||||
|
private String fzdm16;
|
||||||
|
private String fzdm17;
|
||||||
|
private String fzdm18;
|
||||||
|
private String fzdm19;
|
||||||
|
private String fzdm20;
|
||||||
|
private String fzdm21;
|
||||||
|
private String fzdm22;
|
||||||
|
private String fzdm23;
|
||||||
|
private String fzdm24;
|
||||||
|
private String fzdm25;
|
||||||
|
private String fzdm26;
|
||||||
|
private String fzdm27;
|
||||||
|
private String fzdm28;
|
||||||
|
private String fzdm29;
|
||||||
|
private String fzdm30;
|
||||||
|
private String idpznr;
|
||||||
|
private String wlh;
|
||||||
|
private Integer zbid;
|
||||||
|
private Integer edid;
|
||||||
|
private Integer jfsqid;
|
||||||
|
|
||||||
|
private String kjtxdm;
|
||||||
|
|
||||||
|
private String pzlxdm;
|
||||||
|
|
||||||
|
private String idpzh;
|
||||||
|
|
||||||
|
private String skrlx;
|
||||||
|
|
||||||
|
private String skrmc;
|
||||||
|
private String skrzh;
|
||||||
|
|
||||||
|
private String skryhdm;
|
||||||
|
private String skryhhh;
|
||||||
|
|
||||||
|
private String skryhmc;
|
||||||
|
private String yszccy;
|
||||||
|
|
||||||
|
private String xsflh;
|
||||||
|
|
||||||
|
private String bxdid;
|
||||||
|
private String htid;
|
||||||
|
private String zckpbh;
|
||||||
|
private String sflx;
|
||||||
|
private String djbh;
|
||||||
|
private String hzflh;
|
||||||
|
private String cyxfx;
|
||||||
|
private String dqrq;
|
||||||
|
private String glidpznr;
|
||||||
|
|
||||||
|
public String getBxdid() {
|
||||||
|
return bxdid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBxdid(String bxdid) {
|
||||||
|
this.bxdid = bxdid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHtid() {
|
||||||
|
return htid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHtid(String htid) {
|
||||||
|
this.htid = htid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZckpbh() {
|
||||||
|
return zckpbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZckpbh(String zckpbh) {
|
||||||
|
this.zckpbh = zckpbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSflx() {
|
||||||
|
return sflx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSflx(String sflx) {
|
||||||
|
this.sflx = sflx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjbh() {
|
||||||
|
return djbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjbh(String djbh) {
|
||||||
|
this.djbh = djbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHzflh() {
|
||||||
|
return hzflh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHzflh(String hzflh) {
|
||||||
|
this.hzflh = hzflh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCyxfx() {
|
||||||
|
return cyxfx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCyxfx(String cyxfx) {
|
||||||
|
this.cyxfx = cyxfx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDqrq() {
|
||||||
|
return dqrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDqrq(String dqrq) {
|
||||||
|
this.dqrq = dqrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGlidpznr() {
|
||||||
|
return glidpznr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGlidpznr(String glidpznr) {
|
||||||
|
this.glidpznr = glidpznr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm11() {
|
||||||
|
return fzdm11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm11(String fzdm11) {
|
||||||
|
this.fzdm11 = fzdm11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm12() {
|
||||||
|
return fzdm12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm12(String fzdm12) {
|
||||||
|
this.fzdm12 = fzdm12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm13() {
|
||||||
|
return fzdm13;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm13(String fzdm13) {
|
||||||
|
this.fzdm13 = fzdm13;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm14() {
|
||||||
|
return fzdm14;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm14(String fzdm14) {
|
||||||
|
this.fzdm14 = fzdm14;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm15() {
|
||||||
|
return fzdm15;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm15(String fzdm15) {
|
||||||
|
this.fzdm15 = fzdm15;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm16() {
|
||||||
|
return fzdm16;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm16(String fzdm16) {
|
||||||
|
this.fzdm16 = fzdm16;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm17() {
|
||||||
|
return fzdm17;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm17(String fzdm17) {
|
||||||
|
this.fzdm17 = fzdm17;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm18() {
|
||||||
|
return fzdm18;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm18(String fzdm18) {
|
||||||
|
this.fzdm18 = fzdm18;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm19() {
|
||||||
|
return fzdm19;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm19(String fzdm19) {
|
||||||
|
this.fzdm19 = fzdm19;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm20() {
|
||||||
|
return fzdm20;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm20(String fzdm20) {
|
||||||
|
this.fzdm20 = fzdm20;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm21() {
|
||||||
|
return fzdm21;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm21(String fzdm21) {
|
||||||
|
this.fzdm21 = fzdm21;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm22() {
|
||||||
|
return fzdm22;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm22(String fzdm22) {
|
||||||
|
this.fzdm22 = fzdm22;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm23() {
|
||||||
|
return fzdm23;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm23(String fzdm23) {
|
||||||
|
this.fzdm23 = fzdm23;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm24() {
|
||||||
|
return fzdm24;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm24(String fzdm24) {
|
||||||
|
this.fzdm24 = fzdm24;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm25() {
|
||||||
|
return fzdm25;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm25(String fzdm25) {
|
||||||
|
this.fzdm25 = fzdm25;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm26() {
|
||||||
|
return fzdm26;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm26(String fzdm26) {
|
||||||
|
this.fzdm26 = fzdm26;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm27() {
|
||||||
|
return fzdm27;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm27(String fzdm27) {
|
||||||
|
this.fzdm27 = fzdm27;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm28() {
|
||||||
|
return fzdm28;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm28(String fzdm28) {
|
||||||
|
this.fzdm28 = fzdm28;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm29() {
|
||||||
|
return fzdm29;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm29(String fzdm29) {
|
||||||
|
this.fzdm29 = fzdm29;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm30() {
|
||||||
|
return fzdm30;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm30(String fzdm30) {
|
||||||
|
this.fzdm30 = fzdm30;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjtxdm() {
|
||||||
|
return kjtxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjtxdm(String kjtxdm) {
|
||||||
|
this.kjtxdm = kjtxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzlxdm() {
|
||||||
|
return pzlxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzlxdm(String pzlxdm) {
|
||||||
|
this.pzlxdm = pzlxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdpzh() {
|
||||||
|
return idpzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdpzh(String idpzh) {
|
||||||
|
this.idpzh = idpzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSkrlx() {
|
||||||
|
return skrlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSkrlx(String skrlx) {
|
||||||
|
this.skrlx = skrlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSkrmc() {
|
||||||
|
return skrmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSkrmc(String skrmc) {
|
||||||
|
this.skrmc = skrmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSkrzh() {
|
||||||
|
return skrzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSkrzh(String skrzh) {
|
||||||
|
this.skrzh = skrzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSkryhdm() {
|
||||||
|
return skryhdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSkryhdm(String skryhdm) {
|
||||||
|
this.skryhdm = skryhdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSkryhhh() {
|
||||||
|
return skryhhh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSkryhhh(String skryhhh) {
|
||||||
|
this.skryhhh = skryhhh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSkryhmc() {
|
||||||
|
return skryhmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSkryhmc(String skryhmc) {
|
||||||
|
this.skryhmc = skryhmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYszccy() {
|
||||||
|
return yszccy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYszccy(String yszccy) {
|
||||||
|
this.yszccy = yszccy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXsflh() {
|
||||||
|
return xsflh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXsflh(String xsflh) {
|
||||||
|
this.xsflh = xsflh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGsdm() {
|
||||||
|
return gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGsdm(String gsdm) {
|
||||||
|
this.gsdm = gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZth() {
|
||||||
|
return zth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZth(String zth) {
|
||||||
|
this.zth = zth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjqj() {
|
||||||
|
return kjqj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjqj(String kjqj) {
|
||||||
|
this.kjqj = kjqj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzly() {
|
||||||
|
return pzly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzly(String pzly) {
|
||||||
|
this.pzly = pzly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzh() {
|
||||||
|
return pzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzh(String pzh) {
|
||||||
|
this.pzh = pzh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFlh() {
|
||||||
|
return flh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFlh(Integer flh) {
|
||||||
|
this.flh = flh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZy() {
|
||||||
|
return zy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZy(String zy) {
|
||||||
|
this.zy = zy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmdm() {
|
||||||
|
return kmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmdm(String kmdm) {
|
||||||
|
this.kmdm = kmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWbdm() {
|
||||||
|
return wbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWbdm(String wbdm) {
|
||||||
|
this.wbdm = wbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHl() {
|
||||||
|
return hl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHl(String hl) {
|
||||||
|
this.hl = hl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJdbz() {
|
||||||
|
return jdbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJdbz(String jdbz) {
|
||||||
|
this.jdbz = jdbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWbje() {
|
||||||
|
return wbje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWbje(String wbje) {
|
||||||
|
this.wbje = wbje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJe() {
|
||||||
|
return je;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJe(String je) {
|
||||||
|
this.je = je;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpz() {
|
||||||
|
return spz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpz(String spz) {
|
||||||
|
this.spz = spz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWldrq() {
|
||||||
|
return wldrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWldrq(String wldrq) {
|
||||||
|
this.wldrq = wldrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSl() {
|
||||||
|
return sl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSl(String sl) {
|
||||||
|
this.sl = sl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDj() {
|
||||||
|
return dj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDj(String dj) {
|
||||||
|
this.dj = dj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBmdm() {
|
||||||
|
return bmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBmdm(String bmdm) {
|
||||||
|
this.bmdm = bmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWldm() {
|
||||||
|
return wldm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWldm(String wldm) {
|
||||||
|
this.wldm = wldm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXmdm() {
|
||||||
|
return xmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXmdm(String xmdm) {
|
||||||
|
this.xmdm = xmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm1() {
|
||||||
|
return fzsm1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm1(String fzsm1) {
|
||||||
|
this.fzsm1 = fzsm1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm2() {
|
||||||
|
return fzsm2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm2(String fzsm2) {
|
||||||
|
this.fzsm2 = fzsm2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm3() {
|
||||||
|
return fzsm3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm3(String fzsm3) {
|
||||||
|
this.fzsm3 = fzsm3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm4() {
|
||||||
|
return fzsm4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm4(String fzsm4) {
|
||||||
|
this.fzsm4 = fzsm4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm5() {
|
||||||
|
return fzsm5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm5(String fzsm5) {
|
||||||
|
this.fzsm5 = fzsm5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm6() {
|
||||||
|
return fzsm6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm6(String fzsm6) {
|
||||||
|
this.fzsm6 = fzsm6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm7() {
|
||||||
|
return fzsm7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm7(String fzsm7) {
|
||||||
|
this.fzsm7 = fzsm7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm8() {
|
||||||
|
return fzsm8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm8(String fzsm8) {
|
||||||
|
this.fzsm8 = fzsm8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm9() {
|
||||||
|
return fzsm9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm9(String fzsm9) {
|
||||||
|
this.fzsm9 = fzsm9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCess() {
|
||||||
|
return cess;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCess(String cess) {
|
||||||
|
this.cess = cess;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFplx() {
|
||||||
|
return fplx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFplx(String fplx) {
|
||||||
|
this.fplx = fplx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFprq() {
|
||||||
|
return fprq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFprq(String fprq) {
|
||||||
|
this.fprq = fprq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFphfw1() {
|
||||||
|
return fphfw1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFphfw1(Integer fphfw1) {
|
||||||
|
this.fphfw1 = fphfw1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFphfw2() {
|
||||||
|
return fphfw2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFphfw2(Integer fphfw2) {
|
||||||
|
this.fphfw2 = fphfw2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJsfs() {
|
||||||
|
return jsfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJsfs(String jsfs) {
|
||||||
|
this.jsfs = jsfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZydm() {
|
||||||
|
return zydm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZydm(String zydm) {
|
||||||
|
this.zydm = zydm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm4() {
|
||||||
|
return fzdm4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm4(String fzdm4) {
|
||||||
|
this.fzdm4 = fzdm4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm5() {
|
||||||
|
return fzdm5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm5(String fzdm5) {
|
||||||
|
this.fzdm5 = fzdm5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm6() {
|
||||||
|
return fzdm6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm6(String fzdm6) {
|
||||||
|
this.fzdm6 = fzdm6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm7() {
|
||||||
|
return fzdm7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm7(String fzdm7) {
|
||||||
|
this.fzdm7 = fzdm7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm8() {
|
||||||
|
return fzdm8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm8(String fzdm8) {
|
||||||
|
this.fzdm8 = fzdm8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm9() {
|
||||||
|
return fzdm9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm9(String fzdm9) {
|
||||||
|
this.fzdm9 = fzdm9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm10() {
|
||||||
|
return fzdm10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm10(String fzdm10) {
|
||||||
|
this.fzdm10 = fzdm10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdpznr() {
|
||||||
|
return idpznr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdpznr(String idpznr) {
|
||||||
|
this.idpznr = idpznr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWlh() {
|
||||||
|
return wlh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWlh(String wlh) {
|
||||||
|
this.wlh = wlh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getZbid() {
|
||||||
|
return zbid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZbid(Integer zbid) {
|
||||||
|
this.zbid = zbid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEdid() {
|
||||||
|
return edid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEdid(Integer edid) {
|
||||||
|
this.edid = edid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getJfsqid() {
|
||||||
|
return jfsqid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJfsqid(Integer jfsqid) {
|
||||||
|
this.jfsqid = jfsqid;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,896 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.glPznr.dao.impl.SenderGlPznrDaoImpl">
|
||||||
|
|
||||||
|
<resultMap id="get-SenderGlPznrEntity-result" type="com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" >
|
||||||
|
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zth" column="ZTH" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kjqj" column="kjqj" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzly" column="pzly" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzh" column="pzh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="flh" column="flh" jdbcType="INTEGER"/>
|
||||||
|
<result property="zy" column="zy" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmdm" column="kmdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="wbdm" column="wbdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="hl" column="hl" jdbcType="VARCHAR"/>
|
||||||
|
<result property="jdbz" column="jdbz" jdbcType="VARCHAR"/>
|
||||||
|
<result property="wbje" column="wbje" jdbcType="VARCHAR"/>
|
||||||
|
<result property="je" column="je" jdbcType="VARCHAR"/>
|
||||||
|
<result property="spz" column="spz" jdbcType="VARCHAR"/>
|
||||||
|
<result property="wldrq" column="wldrq" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sl" column="sl" jdbcType="VARCHAR"/>
|
||||||
|
<result property="dj" column="dj" jdbcType="VARCHAR"/>
|
||||||
|
<result property="bmdm" column="bmdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="wldm" column="wldm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="xmdm" column="xmdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm1" column="fzsm1" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm2" column="fzsm2" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm3" column="fzsm3" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm4" column="fzsm4" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm5" column="fzsm5" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm6" column="fzsm6" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm7" column="fzsm7" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm8" column="fzsm8" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm9" column="fzsm9" jdbcType="VARCHAR"/>
|
||||||
|
<result property="cess" column="cess" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fplx" column="fplx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fprq" column="fprq" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fphfw1" column="fphfw1" jdbcType="INTEGER"/>
|
||||||
|
<result property="fphfw2" column="fphfw2" jdbcType="INTEGER"/>
|
||||||
|
<result property="jsfs" column="jsfs" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zydm" column="zydm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm4" column="fzdm4" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm5" column="fzdm5" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm6" column="fzdm6" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm7" column="fzdm7" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm8" column="fzdm8" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm9" column="fzdm9" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm10" column="fzdm10" jdbcType="VARCHAR"/>
|
||||||
|
<result property="idpznr" column="IDPZNR" jdbcType="VARCHAR"/>
|
||||||
|
<result property="wlh" column="wlh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zbid" column="ZBID" jdbcType="INTEGER"/>
|
||||||
|
<result property="edid" column="EDID" jdbcType="INTEGER"/>
|
||||||
|
<result property="jfsqid" column="JFSQID" jdbcType="INTEGER"/>
|
||||||
|
<result property="kjtxdm" column="kjtxdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="pzlxdm" column="pzlxdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm11" column="fzdm11" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm12" column="fzdm12" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm13" column="fzdm13" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm14" column="fzdm14" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm15" column="fzdm15" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm16" column="fzdm16" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm17" column="fzdm17" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm18" column="fzdm18" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm19" column="fzdm19" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm20" column="fzdm20" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm21" column="fzdm21" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm22" column="fzdm22" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm23" column="fzdm23" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm24" column="fzdm24" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm25" column="fzdm25" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm26" column="fzdm26" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm27" column="fzdm27" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm28" column="fzdm28" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm29" column="fzdm29" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm30" column="fzdm30" jdbcType="VARCHAR"/>
|
||||||
|
<result property="idpzh" column="idpzh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skrlx" column="skrlx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skrmc" column="skrmc" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skrzh" column="skrzh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skryhdm" column="skryhdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skryhhh" column="skryhhh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="skryhmc" column="skryhmc" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yszccy" column="yszccy" jdbcType="VARCHAR"/>
|
||||||
|
<result property="xsflh" column="xsflh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="bxdid" column="bxdid" jdbcType="VARCHAR"/>
|
||||||
|
<result property="htid" column="htid" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zckpbh" column="zckpbh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sflx" column="sflx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="djbh" column="djbh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="hzflh" column="hzflh" jdbcType="VARCHAR"/>
|
||||||
|
<result property="cyxfx" column="cyxfx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="dqrq" column="dqrq" jdbcType="VARCHAR"/>
|
||||||
|
<result property="glidpznr" column="glidpznr" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
<!-- 查询的字段-->
|
||||||
|
<sql id = "SenderGlPznrEntity_Base_Column_List">
|
||||||
|
gsdm
|
||||||
|
, ZTH
|
||||||
|
, kjqj
|
||||||
|
, pzly
|
||||||
|
, pzh
|
||||||
|
,pzlxdm
|
||||||
|
,kjtxdm
|
||||||
|
, flh
|
||||||
|
, zy
|
||||||
|
, kmdm
|
||||||
|
, wbdm
|
||||||
|
, hl
|
||||||
|
, jdbz
|
||||||
|
, wbje
|
||||||
|
, je
|
||||||
|
, spz
|
||||||
|
, wldrq
|
||||||
|
, sl
|
||||||
|
, dj
|
||||||
|
, bmdm
|
||||||
|
, wldm
|
||||||
|
, xmdm
|
||||||
|
, fzsm1
|
||||||
|
, fzsm2
|
||||||
|
, fzsm3
|
||||||
|
, fzsm4
|
||||||
|
, fzsm5
|
||||||
|
, fzsm6
|
||||||
|
, fzsm7
|
||||||
|
, fzsm8
|
||||||
|
, fzsm9
|
||||||
|
, cess
|
||||||
|
, fplx
|
||||||
|
, fprq
|
||||||
|
, fphfw1
|
||||||
|
, fphfw2
|
||||||
|
, jsfs
|
||||||
|
, zydm
|
||||||
|
, fzdm4
|
||||||
|
, fzdm5
|
||||||
|
, fzdm6
|
||||||
|
, fzdm7
|
||||||
|
, fzdm8
|
||||||
|
, fzdm9
|
||||||
|
, fzdm10
|
||||||
|
, IDPZNR
|
||||||
|
, wlh
|
||||||
|
, ZBID
|
||||||
|
, EDID
|
||||||
|
, JFSQID
|
||||||
|
, fzdm10
|
||||||
|
, fzdm11
|
||||||
|
, fzdm12
|
||||||
|
, fzdm13
|
||||||
|
, fzdm14
|
||||||
|
, fzdm15
|
||||||
|
, fzdm16
|
||||||
|
, fzdm17
|
||||||
|
, fzdm18
|
||||||
|
, fzdm19
|
||||||
|
, fzdm20
|
||||||
|
, fzdm21
|
||||||
|
, fzdm22
|
||||||
|
, fzdm23
|
||||||
|
, fzdm24
|
||||||
|
, fzdm25
|
||||||
|
, fzdm26
|
||||||
|
, fzdm27
|
||||||
|
, fzdm28
|
||||||
|
, fzdm29
|
||||||
|
, fzdm30
|
||||||
|
, idpzh
|
||||||
|
, skrlx
|
||||||
|
, skrmc
|
||||||
|
, skrzh
|
||||||
|
, skryhdm
|
||||||
|
, skryhhh
|
||||||
|
, skryhmc
|
||||||
|
, yszccy
|
||||||
|
, xsflh
|
||||||
|
, bxdid
|
||||||
|
, htid
|
||||||
|
, zckpbh
|
||||||
|
, sflx
|
||||||
|
, djbh
|
||||||
|
, hzflh
|
||||||
|
, cyxfx
|
||||||
|
, dqrq
|
||||||
|
, glidpznr
|
||||||
|
</sql>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="entity_list_base" resultMap="get-SenderGlPznrEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlPznrEntity_Base_Column_List" />
|
||||||
|
from gl_pznr
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
|
||||||
|
<if test="flh != null"> and flh = #{flh} </if>
|
||||||
|
<if test="zy != null and zy != ''"> and zy = #{zy} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||||
|
<if test="hl != null"> and hl = #{hl} </if>
|
||||||
|
<if test="jdbz != null and jdbz != ''"> and jdbz = #{jdbz} </if>
|
||||||
|
<if test="wbje != null"> and wbje = #{wbje} </if>
|
||||||
|
<if test="je != null"> and je = #{je} </if>
|
||||||
|
<if test="spz != null and spz != ''"> and spz = #{spz} </if>
|
||||||
|
<if test="wldrq != null and wldrq != ''"> and wldrq = #{wldrq} </if>
|
||||||
|
<if test="sl != null"> and sl = #{sl} </if>
|
||||||
|
<if test="dj != null"> and dj = #{dj} </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
|
||||||
|
<if test="wldm != null and wldm != ''"> and wldm = #{wldm} </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||||
|
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 = #{fzsm1} </if>
|
||||||
|
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 = #{fzsm2} </if>
|
||||||
|
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 = #{fzsm3} </if>
|
||||||
|
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 = #{fzsm4} </if>
|
||||||
|
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 = #{fzsm5} </if>
|
||||||
|
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 = #{fzsm6} </if>
|
||||||
|
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 = #{fzsm7} </if>
|
||||||
|
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 = #{fzsm8} </if>
|
||||||
|
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 = #{fzsm9} </if>
|
||||||
|
<if test="cess != null"> and cess = #{cess} </if>
|
||||||
|
<if test="fplx != null and fplx != ''"> and fplx = #{fplx} </if>
|
||||||
|
<if test="fprq != null and fprq != ''"> and fprq = #{fprq} </if>
|
||||||
|
<if test="fphfw1 != null"> and fphfw1 = #{fphfw1} </if>
|
||||||
|
<if test="fphfw2 != null"> and fphfw2 = #{fphfw2} </if>
|
||||||
|
<if test="jsfs != null and jsfs != ''"> and jsfs = #{jsfs} </if>
|
||||||
|
<if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||||
|
<if test="idpznr != null and idpznr != ''"> and IDPZNR = #{idpznr} </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> and idpzh = #{idpzh} </if>
|
||||||
|
<if test="wlh != null and wlh != ''"> and wlh = #{wlh} </if>
|
||||||
|
<if test="zbid != null"> and ZBID = #{zbid} </if>
|
||||||
|
<if test="edid != null"> and EDID = #{edid} </if>
|
||||||
|
<if test="jfsqid != null"> and JFSQID = #{jfsqid} </if>
|
||||||
|
<if test="idpzh != null"> and idpzh = #{idpzh} </if>
|
||||||
|
-- and zth in('004','005','009','010','011','012','014')
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询凭证内容日志 采用==查询 -->
|
||||||
|
<select id="querySenderGlPznrEntityOne" resultMap="get-SenderGlPznrEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlPznrEntity_Base_Column_List" />
|
||||||
|
from gl_pznr
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
|
||||||
|
<if test="flh != null"> and flh = #{flh} </if>
|
||||||
|
<if test="zy != null and zy != ''"> and zy = #{zy} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||||
|
<if test="hl != null"> and hl = #{hl} </if>
|
||||||
|
<if test="jdbz != null and jdbz != ''"> and jdbz = #{jdbz} </if>
|
||||||
|
<if test="wbje != null"> and wbje = #{wbje} </if>
|
||||||
|
<if test="je != null"> and je = #{je} </if>
|
||||||
|
<if test="spz != null and spz != ''"> and spz = #{spz} </if>
|
||||||
|
<if test="wldrq != null and wldrq != ''"> and wldrq = #{wldrq} </if>
|
||||||
|
<if test="sl != null"> and sl = #{sl} </if>
|
||||||
|
<if test="dj != null"> and dj = #{dj} </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
|
||||||
|
<if test="wldm != null and wldm != ''"> and wldm = #{wldm} </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||||
|
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 = #{fzsm1} </if>
|
||||||
|
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 = #{fzsm2} </if>
|
||||||
|
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 = #{fzsm3} </if>
|
||||||
|
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 = #{fzsm4} </if>
|
||||||
|
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 = #{fzsm5} </if>
|
||||||
|
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 = #{fzsm6} </if>
|
||||||
|
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 = #{fzsm7} </if>
|
||||||
|
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 = #{fzsm8} </if>
|
||||||
|
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 = #{fzsm9} </if>
|
||||||
|
<if test="cess != null"> and cess = #{cess} </if>
|
||||||
|
<if test="fplx != null and fplx != ''"> and fplx = #{fplx} </if>
|
||||||
|
<if test="fprq != null and fprq != ''"> and fprq = #{fprq} </if>
|
||||||
|
<if test="fphfw1 != null"> and fphfw1 = #{fphfw1} </if>
|
||||||
|
<if test="fphfw2 != null"> and fphfw2 = #{fphfw2} </if>
|
||||||
|
<if test="jsfs != null and jsfs != ''"> and jsfs = #{jsfs} </if>
|
||||||
|
<if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||||
|
<if test="idpznr != null and idpznr != ''"> and IDPZNR = #{idpznr} </if>
|
||||||
|
<if test="wlh != null and wlh != ''"> and wlh = #{wlh} </if>
|
||||||
|
<if test="zbid != null"> and ZBID = #{zbid} </if>
|
||||||
|
<if test="edid != null"> and EDID = #{edid} </if>
|
||||||
|
<if test="jfsqid != null"> and JFSQID = #{jfsqid} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 查询符合条件的数量 -->
|
||||||
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||||
|
select count(1) from gl_pznr
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
|
||||||
|
<if test="flh != null"> and flh = #{flh} </if>
|
||||||
|
<if test="zy != null and zy != ''"> and zy = #{zy} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||||
|
<if test="hl != null"> and hl = #{hl} </if>
|
||||||
|
<if test="jdbz != null and jdbz != ''"> and jdbz = #{jdbz} </if>
|
||||||
|
<if test="wbje != null"> and wbje = #{wbje} </if>
|
||||||
|
<if test="je != null"> and je = #{je} </if>
|
||||||
|
<if test="spz != null and spz != ''"> and spz = #{spz} </if>
|
||||||
|
<if test="wldrq != null and wldrq != ''"> and wldrq = #{wldrq} </if>
|
||||||
|
<if test="sl != null"> and sl = #{sl} </if>
|
||||||
|
<if test="dj != null"> and dj = #{dj} </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
|
||||||
|
<if test="wldm != null and wldm != ''"> and wldm = #{wldm} </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||||
|
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 = #{fzsm1} </if>
|
||||||
|
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 = #{fzsm2} </if>
|
||||||
|
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 = #{fzsm3} </if>
|
||||||
|
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 = #{fzsm4} </if>
|
||||||
|
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 = #{fzsm5} </if>
|
||||||
|
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 = #{fzsm6} </if>
|
||||||
|
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 = #{fzsm7} </if>
|
||||||
|
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 = #{fzsm8} </if>
|
||||||
|
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 = #{fzsm9} </if>
|
||||||
|
<if test="cess != null"> and cess = #{cess} </if>
|
||||||
|
<if test="fplx != null and fplx != ''"> and fplx = #{fplx} </if>
|
||||||
|
<if test="fprq != null and fprq != ''"> and fprq = #{fprq} </if>
|
||||||
|
<if test="fphfw1 != null"> and fphfw1 = #{fphfw1} </if>
|
||||||
|
<if test="fphfw2 != null"> and fphfw2 = #{fphfw2} </if>
|
||||||
|
<if test="jsfs != null and jsfs != ''"> and jsfs = #{jsfs} </if>
|
||||||
|
<if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||||
|
<if test="idpznr != null and idpznr != ''"> and IDPZNR = #{idpznr} </if>
|
||||||
|
<if test="wlh != null and wlh != ''"> and wlh = #{wlh} </if>
|
||||||
|
<if test="zbid != null"> and ZBID = #{zbid} </if>
|
||||||
|
<if test="edid != null"> and EDID = #{edid} </if>
|
||||||
|
<if test="jfsqid != null"> and JFSQID = #{jfsqid} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
|
<select id="entity_list_like" resultMap="get-SenderGlPznrEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlPznrEntity_Base_Column_List" />
|
||||||
|
from gl_pznr
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm like concat('%',#{gsdm},'%') </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH like concat('%',#{zth},'%') </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> and kjqj like concat('%',#{kjqj},'%') </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> and pzly like concat('%',#{pzly},'%') </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> and pzh like concat('%',#{pzh},'%') </if>
|
||||||
|
<if test="flh != null"> and flh like concat('%',#{flh},'%') </if>
|
||||||
|
<if test="zy != null and zy != ''"> and zy like concat('%',#{zy},'%') </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm like concat('%',#{kmdm},'%') </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> and wbdm like concat('%',#{wbdm},'%') </if>
|
||||||
|
<if test="hl != null"> and hl like concat('%',#{hl},'%') </if>
|
||||||
|
<if test="jdbz != null and jdbz != ''"> and jdbz like concat('%',#{jdbz},'%') </if>
|
||||||
|
<if test="wbje != null"> and wbje like concat('%',#{wbje},'%') </if>
|
||||||
|
<if test="je != null"> and je like concat('%',#{je},'%') </if>
|
||||||
|
<if test="spz != null and spz != ''"> and spz like concat('%',#{spz},'%') </if>
|
||||||
|
<if test="wldrq != null and wldrq != ''"> and wldrq like concat('%',#{wldrq},'%') </if>
|
||||||
|
<if test="sl != null"> and sl like concat('%',#{sl},'%') </if>
|
||||||
|
<if test="dj != null"> and dj like concat('%',#{dj},'%') </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> and bmdm like concat('%',#{bmdm},'%') </if>
|
||||||
|
<if test="wldm != null and wldm != ''"> and wldm like concat('%',#{wldm},'%') </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and xmdm like concat('%',#{xmdm},'%') </if>
|
||||||
|
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 like concat('%',#{fzsm1},'%') </if>
|
||||||
|
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 like concat('%',#{fzsm2},'%') </if>
|
||||||
|
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 like concat('%',#{fzsm3},'%') </if>
|
||||||
|
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 like concat('%',#{fzsm4},'%') </if>
|
||||||
|
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 like concat('%',#{fzsm5},'%') </if>
|
||||||
|
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 like concat('%',#{fzsm6},'%') </if>
|
||||||
|
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 like concat('%',#{fzsm7},'%') </if>
|
||||||
|
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 like concat('%',#{fzsm8},'%') </if>
|
||||||
|
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 like concat('%',#{fzsm9},'%') </if>
|
||||||
|
<if test="cess != null"> and cess like concat('%',#{cess},'%') </if>
|
||||||
|
<if test="fplx != null and fplx != ''"> and fplx like concat('%',#{fplx},'%') </if>
|
||||||
|
<if test="fprq != null and fprq != ''"> and fprq like concat('%',#{fprq},'%') </if>
|
||||||
|
<if test="fphfw1 != null"> and fphfw1 like concat('%',#{fphfw1},'%') </if>
|
||||||
|
<if test="fphfw2 != null"> and fphfw2 like concat('%',#{fphfw2},'%') </if>
|
||||||
|
<if test="jsfs != null and jsfs != ''"> and jsfs like concat('%',#{jsfs},'%') </if>
|
||||||
|
<if test="zydm != null and zydm != ''"> and zydm like concat('%',#{zydm},'%') </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 like concat('%',#{fzdm4},'%') </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 like concat('%',#{fzdm5},'%') </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 like concat('%',#{fzdm6},'%') </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 like concat('%',#{fzdm7},'%') </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 like concat('%',#{fzdm8},'%') </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 like concat('%',#{fzdm9},'%') </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 like concat('%',#{fzdm10},'%') </if>
|
||||||
|
<if test="idpznr != null and idpznr != ''"> and IDPZNR like concat('%',#{idpznr},'%') </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> and idpzh like concat('%',#{idpzh},'%') </if>
|
||||||
|
<if test="wlh != null and wlh != ''"> and wlh like concat('%',#{wlh},'%') </if>
|
||||||
|
<if test="zbid != null"> and ZBID like concat('%',#{zbid},'%') </if>
|
||||||
|
<if test="edid != null"> and EDID like concat('%',#{edid},'%') </if>
|
||||||
|
<if test="jfsqid != null"> and JFSQID like concat('%',#{jfsqid},'%') </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
|
<select id="SenderGlPznrEntity_list_or" resultMap="get-SenderGlPznrEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlPznrEntity_Base_Column_List" />
|
||||||
|
from gl_pznr
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> or ZTH = #{zth} </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> or kjqj = #{kjqj} </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> or pzly = #{pzly} </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> or pzh = #{pzh} </if>
|
||||||
|
<if test="flh != null"> or flh = #{flh} </if>
|
||||||
|
<if test="zy != null and zy != ''"> or zy = #{zy} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> or kmdm = #{kmdm} </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> or wbdm = #{wbdm} </if>
|
||||||
|
<if test="hl != null"> or hl = #{hl} </if>
|
||||||
|
<if test="jdbz != null and jdbz != ''"> or jdbz = #{jdbz} </if>
|
||||||
|
<if test="wbje != null"> or wbje = #{wbje} </if>
|
||||||
|
<if test="je != null"> or je = #{je} </if>
|
||||||
|
<if test="spz != null and spz != ''"> or spz = #{spz} </if>
|
||||||
|
<if test="wldrq != null and wldrq != ''"> or wldrq = #{wldrq} </if>
|
||||||
|
<if test="sl != null"> or sl = #{sl} </if>
|
||||||
|
<if test="dj != null"> or dj = #{dj} </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> or bmdm = #{bmdm} </if>
|
||||||
|
<if test="wldm != null and wldm != ''"> or wldm = #{wldm} </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> or xmdm = #{xmdm} </if>
|
||||||
|
<if test="fzsm1 != null and fzsm1 != ''"> or fzsm1 = #{fzsm1} </if>
|
||||||
|
<if test="fzsm2 != null and fzsm2 != ''"> or fzsm2 = #{fzsm2} </if>
|
||||||
|
<if test="fzsm3 != null and fzsm3 != ''"> or fzsm3 = #{fzsm3} </if>
|
||||||
|
<if test="fzsm4 != null and fzsm4 != ''"> or fzsm4 = #{fzsm4} </if>
|
||||||
|
<if test="fzsm5 != null and fzsm5 != ''"> or fzsm5 = #{fzsm5} </if>
|
||||||
|
<if test="fzsm6 != null and fzsm6 != ''"> or fzsm6 = #{fzsm6} </if>
|
||||||
|
<if test="fzsm7 != null and fzsm7 != ''"> or fzsm7 = #{fzsm7} </if>
|
||||||
|
<if test="fzsm8 != null and fzsm8 != ''"> or fzsm8 = #{fzsm8} </if>
|
||||||
|
<if test="fzsm9 != null and fzsm9 != ''"> or fzsm9 = #{fzsm9} </if>
|
||||||
|
<if test="cess != null"> or cess = #{cess} </if>
|
||||||
|
<if test="fplx != null and fplx != ''"> or fplx = #{fplx} </if>
|
||||||
|
<if test="fprq != null and fprq != ''"> or fprq = #{fprq} </if>
|
||||||
|
<if test="fphfw1 != null"> or fphfw1 = #{fphfw1} </if>
|
||||||
|
<if test="fphfw2 != null"> or fphfw2 = #{fphfw2} </if>
|
||||||
|
<if test="jsfs != null and jsfs != ''"> or jsfs = #{jsfs} </if>
|
||||||
|
<if test="zydm != null and zydm != ''"> or zydm = #{zydm} </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> or fzdm4 = #{fzdm4} </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> or fzdm5 = #{fzdm5} </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> or fzdm6 = #{fzdm6} </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> or fzdm7 = #{fzdm7} </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> or fzdm8 = #{fzdm8} </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> or fzdm9 = #{fzdm9} </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> or fzdm10 = #{fzdm10} </if>
|
||||||
|
<if test="idpznr != null and idpznr != ''"> or IDPZNR = #{idpznr} </if>
|
||||||
|
<if test="wlh != null and wlh != ''"> or wlh = #{wlh} </if>
|
||||||
|
<if test="zbid != null"> or ZBID = #{zbid} </if>
|
||||||
|
<if test="edid != null"> or EDID = #{edid} </if>
|
||||||
|
<if test="jfsqid != null"> or JFSQID = #{jfsqid} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--新增所有列-->
|
||||||
|
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_pznr(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> kjqj , </if>
|
||||||
|
<if test="pzly != null "> pzly , </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> pzh , </if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm != ''"> kjtxdm , </if>
|
||||||
|
<if test="pzlxdm != null and pzlxdm != ''"> pzlxdm , </if>
|
||||||
|
<if test="flh != null"> flh , </if>
|
||||||
|
<if test="zy != null and zy != ''"> zy , </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> kmdm , </if>
|
||||||
|
<if test="wbdm != null "> wbdm , </if>
|
||||||
|
<if test="hl != null"> hl , </if>
|
||||||
|
<if test="jdbz != null and jdbz != ''"> jdbz , </if>
|
||||||
|
<if test="wbje != null"> wbje , </if>
|
||||||
|
<if test="je != null"> je , </if>
|
||||||
|
<if test="spz != null and spz != ''"> spz , </if>
|
||||||
|
<if test="wldrq != null and wldrq != ''"> wldrq , </if>
|
||||||
|
<if test="sl != null"> sl , </if>
|
||||||
|
<if test="dj != null"> dj , </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> bmdm , </if>
|
||||||
|
<if test="wldm != null and wldm != ''"> wldm , </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> xmdm , </if>
|
||||||
|
<if test="fzsm1 != null and fzsm1 != ''"> fzsm1 , </if>
|
||||||
|
<if test="fzsm2 != null and fzsm2 != ''"> fzsm2 , </if>
|
||||||
|
<if test="fzsm3 != null and fzsm3 != ''"> fzsm3 , </if>
|
||||||
|
<if test="fzsm4 != null and fzsm4 != ''"> fzsm4 , </if>
|
||||||
|
<if test="fzsm5 != null and fzsm5 != ''"> fzsm5 , </if>
|
||||||
|
<if test="fzsm6 != null and fzsm6 != ''"> fzsm6 , </if>
|
||||||
|
<if test="fzsm7 != null and fzsm7 != ''"> fzsm7 , </if>
|
||||||
|
<if test="fzsm8 != null and fzsm8 != ''"> fzsm8 , </if>
|
||||||
|
<if test="fzsm9 != null and fzsm9 != ''"> fzsm9 , </if>
|
||||||
|
<if test="cess != null"> cess , </if>
|
||||||
|
<if test="fplx != null and fplx != ''"> fplx , </if>
|
||||||
|
<if test="fprq != null and fprq != ''"> fprq , </if>
|
||||||
|
<if test="fphfw1 != null"> fphfw1 , </if>
|
||||||
|
<if test="fphfw2 != null"> fphfw2 , </if>
|
||||||
|
<if test="jsfs != null and jsfs != ''"> jsfs , </if>
|
||||||
|
<if test="zydm != null and zydm != ''"> zydm , </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> fzdm4 , </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> fzdm5 , </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> fzdm6 , </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> fzdm7 , </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> fzdm8 , </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> fzdm9 , </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> fzdm10 , </if>
|
||||||
|
<if test="idpznr != null and idpznr != ''"> IDPZNR , </if>
|
||||||
|
<if test="wlh != null and wlh != ''"> wlh , </if>
|
||||||
|
<if test="zbid != null"> ZBID , </if>
|
||||||
|
<if test="edid != null"> EDID , </if>
|
||||||
|
<if test="jfsqid != null"> JFSQID , </if>
|
||||||
|
<if test="fzdm11 != null and fzdm11 != ''"> fzdm11 , </if>
|
||||||
|
<if test="fzdm12 != null and fzdm12 != ''"> fzdm12 , </if>
|
||||||
|
<if test="fzdm13 != null and fzdm13 != ''"> fzdm13 , </if>
|
||||||
|
<if test="fzdm14 != null and fzdm14 != ''"> fzdm14 , </if>
|
||||||
|
<if test="fzdm15 != null and fzdm15 != ''"> fzdm15 , </if>
|
||||||
|
<if test="fzdm16 != null and fzdm16 != ''"> fzdm16 , </if>
|
||||||
|
<if test="fzdm17 != null and fzdm17 != ''"> fzdm17 , </if>
|
||||||
|
<if test="fzdm18 != null and fzdm18 != ''"> fzdm18 , </if>
|
||||||
|
<if test="fzdm19 != null and fzdm19 != ''"> fzdm19 , </if>
|
||||||
|
<if test="fzdm20 != null and fzdm20 != ''"> fzdm20 , </if>
|
||||||
|
<if test="fzdm21 != null and fzdm21 != ''"> fzdm21 , </if>
|
||||||
|
<if test="fzdm22 != null and fzdm22 != ''"> fzdm22 , </if>
|
||||||
|
<if test="fzdm23 != null and fzdm23 != ''"> fzdm23 , </if>
|
||||||
|
<if test="fzdm24 != null and fzdm24 != ''"> fzdm24 , </if>
|
||||||
|
<if test="fzdm25 != null and fzdm25 != ''"> fzdm25 , </if>
|
||||||
|
<if test="fzdm26 != null and fzdm26 != ''"> fzdm26 , </if>
|
||||||
|
<if test="fzdm27 != null and fzdm27 != ''"> fzdm27 , </if>
|
||||||
|
<if test="fzdm28 != null and fzdm28 != ''"> fzdm28 , </if>
|
||||||
|
<if test="fzdm29 != null and fzdm29 != ''"> fzdm29 , </if>
|
||||||
|
<if test="fzdm30 != null and fzdm30 != ''"> fzdm30 , </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> idpzh , </if>
|
||||||
|
<if test="skrlx != null and skrlx != ''"> skrlx , </if>
|
||||||
|
<if test="skrmc != null and skrmc != ''"> skrmc , </if>
|
||||||
|
<if test="skrzh != null and skrzh != ''"> skrzh , </if>
|
||||||
|
<if test="skryhdm != null and skryhdm != ''"> skryhdm , </if>
|
||||||
|
<if test="skryhhh != null and skryhhh != ''"> skryhhh , </if>
|
||||||
|
<if test="skryhmc != null and skryhmc != ''"> skryhmc , </if>
|
||||||
|
<if test="yszccy != null and yszccy != ''"> yszccy , </if>
|
||||||
|
<if test="xsflh != null and xsflh != ''"> xsflh , </if>
|
||||||
|
<if test="bxdid != null and bxdid != ''"> bxdid , </if>
|
||||||
|
<if test="htid != null and htid != ''"> htid , </if>
|
||||||
|
<if test="zckpbh != null and zckpbh != ''"> zckpbh , </if>
|
||||||
|
<if test="sflx != null and sflx != ''"> sflx , </if>
|
||||||
|
<if test="djbh != null and djbh != ''"> djbh , </if>
|
||||||
|
<if test="hzflh != null and hzflh != ''"> hzflh , </if>
|
||||||
|
<if test="cyxfx != null and cyxfx != ''"> cyxfx , </if>
|
||||||
|
<if test="dqrq != null and dqrq != ''"> dqrq , </if>
|
||||||
|
<if test="glidpznr != null and glidpznr != ''"> glidpznr , </if>
|
||||||
|
<if test="zth != null and zth != ''"> ZTH </if>
|
||||||
|
</trim>
|
||||||
|
)values(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> #{kjqj} ,</if>
|
||||||
|
<if test="pzly != null "> #{pzly} ,</if>
|
||||||
|
<if test="pzh != null and pzh != ''"> #{pzh} ,</if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm != ''"> #{kjtxdm} , </if>
|
||||||
|
<if test="pzlxdm != null and pzlxdm != ''"> #{pzlxdm} , </if>
|
||||||
|
<if test="flh != null"> #{flh} ,</if>
|
||||||
|
<if test="zy != null and zy != ''"> #{zy} ,</if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> #{kmdm} ,</if>
|
||||||
|
<if test="wbdm != null "> #{wbdm} ,</if>
|
||||||
|
<if test="hl != null"> #{hl} ,</if>
|
||||||
|
<if test="jdbz != null and jdbz != ''"> #{jdbz} ,</if>
|
||||||
|
<if test="wbje != null"> #{wbje} ,</if>
|
||||||
|
<if test="je != null"> #{je} ,</if>
|
||||||
|
<if test="spz != null and spz != ''"> #{spz} ,</if>
|
||||||
|
<if test="wldrq != null and wldrq != ''"> #{wldrq} ,</if>
|
||||||
|
<if test="sl != null"> #{sl} ,</if>
|
||||||
|
<if test="dj != null"> #{dj} ,</if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> #{bmdm} ,</if>
|
||||||
|
<if test="wldm != null and wldm != ''"> #{wldm} ,</if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> #{xmdm} ,</if>
|
||||||
|
<if test="fzsm1 != null and fzsm1 != ''"> #{fzsm1} ,</if>
|
||||||
|
<if test="fzsm2 != null and fzsm2 != ''"> #{fzsm2} ,</if>
|
||||||
|
<if test="fzsm3 != null and fzsm3 != ''"> #{fzsm3} ,</if>
|
||||||
|
<if test="fzsm4 != null and fzsm4 != ''"> #{fzsm4} ,</if>
|
||||||
|
<if test="fzsm5 != null and fzsm5 != ''"> #{fzsm5} ,</if>
|
||||||
|
<if test="fzsm6 != null and fzsm6 != ''"> #{fzsm6} ,</if>
|
||||||
|
<if test="fzsm7 != null and fzsm7 != ''"> #{fzsm7} ,</if>
|
||||||
|
<if test="fzsm8 != null and fzsm8 != ''"> #{fzsm8} ,</if>
|
||||||
|
<if test="fzsm9 != null and fzsm9 != ''"> #{fzsm9} ,</if>
|
||||||
|
<if test="cess != null"> #{cess} ,</if>
|
||||||
|
<if test="fplx != null and fplx != ''"> #{fplx} ,</if>
|
||||||
|
<if test="fprq != null and fprq != ''"> #{fprq} ,</if>
|
||||||
|
<if test="fphfw1 != null"> #{fphfw1} ,</if>
|
||||||
|
<if test="fphfw2 != null"> #{fphfw2} ,</if>
|
||||||
|
<if test="jsfs != null and jsfs != ''"> #{jsfs} ,</if>
|
||||||
|
<if test="zydm != null and zydm != ''"> #{zydm} ,</if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> #{fzdm4} ,</if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> #{fzdm5} ,</if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> #{fzdm6} ,</if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> #{fzdm7} ,</if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> #{fzdm8} ,</if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> #{fzdm9} ,</if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> #{fzdm10} ,</if>
|
||||||
|
<if test="idpznr != null and idpznr != ''"> #{idpznr} ,</if>
|
||||||
|
<if test="wlh != null and wlh != ''"> #{wlh} ,</if>
|
||||||
|
<if test="zbid != null"> #{zbid} ,</if>
|
||||||
|
<if test="edid != null"> #{edid} ,</if>
|
||||||
|
<if test="jfsqid != null"> #{jfsqid} ,</if>
|
||||||
|
<if test="fzdm11 != null and fzdm11 != ''"> #{fzdm11} , </if>
|
||||||
|
<if test="fzdm12 != null and fzdm12 != ''"> #{fzdm12} , </if>
|
||||||
|
<if test="fzdm13 != null and fzdm13 != ''"> #{fzdm13} , </if>
|
||||||
|
<if test="fzdm14 != null and fzdm14 != ''"> #{fzdm14} , </if>
|
||||||
|
<if test="fzdm15 != null and fzdm15 != ''"> #{fzdm15} , </if>
|
||||||
|
<if test="fzdm16 != null and fzdm16 != ''"> #{fzdm16} , </if>
|
||||||
|
<if test="fzdm17 != null and fzdm17 != ''"> #{fzdm17} , </if>
|
||||||
|
<if test="fzdm18 != null and fzdm18 != ''"> #{fzdm18} , </if>
|
||||||
|
<if test="fzdm19 != null and fzdm19 != ''"> #{fzdm19} , </if>
|
||||||
|
<if test="fzdm20 != null and fzdm20 != ''"> #{fzdm20} , </if>
|
||||||
|
<if test="fzdm21 != null and fzdm21 != ''"> #{fzdm21} , </if>
|
||||||
|
<if test="fzdm22 != null and fzdm22 != ''"> #{fzdm22} , </if>
|
||||||
|
<if test="fzdm23 != null and fzdm23 != ''"> #{fzdm23} , </if>
|
||||||
|
<if test="fzdm24 != null and fzdm24 != ''"> #{fzdm24} , </if>
|
||||||
|
<if test="fzdm25 != null and fzdm25 != ''"> #{fzdm25} , </if>
|
||||||
|
<if test="fzdm26 != null and fzdm26 != ''"> #{fzdm26} , </if>
|
||||||
|
<if test="fzdm27 != null and fzdm27 != ''"> #{fzdm27} , </if>
|
||||||
|
<if test="fzdm28 != null and fzdm28 != ''"> #{fzdm28} , </if>
|
||||||
|
<if test="fzdm29 != null and fzdm29 != ''"> #{fzdm29} , </if>
|
||||||
|
<if test="fzdm30 != null and fzdm30 != ''"> #{fzdm30} , </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> #{idpzh} , </if>
|
||||||
|
<if test="skrlx != null and skrlx != ''"> #{skrlx} , </if>
|
||||||
|
<if test="skrmc != null and skrmc != ''"> #{skrmc} , </if>
|
||||||
|
<if test="skrzh != null and skrzh != ''"> #{skrzh} , </if>
|
||||||
|
<if test="skryhdm != null and skryhdm != ''"> #{skryhdm} , </if>
|
||||||
|
<if test="skryhhh != null and skryhhh != ''"> #{skryhhh} , </if>
|
||||||
|
<if test="skryhmc != null and skryhmc != ''"> #{skryhmc} , </if>
|
||||||
|
<if test="yszccy != null and yszccy != ''"> #{yszccy} , </if>
|
||||||
|
<if test="xsflh != null and xsflh != ''"> #{xsflh} , </if>
|
||||||
|
<if test="bxdid != null and bxdid != ''"> #{bxdid}, </if>
|
||||||
|
<if test="htid != null and htid != ''"> #{htid} , </if>
|
||||||
|
<if test="zckpbh != null and zckpbh != ''"> #{zckpbh} , </if>
|
||||||
|
<if test="sflx != null and sflx != ''"> #{sflx} , </if>
|
||||||
|
<if test="djbh != null and djbh != ''"> #{djbh} , </if>
|
||||||
|
<if test="hzflh != null and hzflh != ''"> #{hzflh} , </if>
|
||||||
|
<if test="cyxfx != null and cyxfx != ''"> #{cyxfx} , </if>
|
||||||
|
<if test="dqrq != null and dqrq != ''"> #{dqrq} , </if>
|
||||||
|
<if test="glidpznr != null and glidpznr != ''"> #{glidpznr} , </if>
|
||||||
|
<if test="zth != null and zth != ''"> #{zth} </if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增 -->
|
||||||
|
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_pznr(gsdm, ZTH, kjqj, pzly, pzh, flh, zy, kmdm, wbdm, hl, jdbz, wbje, je, spz, wldrq, sl, dj, bmdm, wldm, xmdm, fzsm1, fzsm2, fzsm3, fzsm4, fzsm5, fzsm6, fzsm7, fzsm8, fzsm9, cess, fplx, fprq, fphfw1, fphfw2, jsfs, zydm, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, IDPZNR, wlh, ZBID, EDID, JFSQID)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.flh},#{entity.zy},#{entity.kmdm},#{entity.wbdm},#{entity.hl},#{entity.jdbz},#{entity.wbje},#{entity.je},#{entity.spz},#{entity.wldrq},#{entity.sl},#{entity.dj},#{entity.bmdm},#{entity.wldm},#{entity.xmdm},#{entity.fzsm1},#{entity.fzsm2},#{entity.fzsm3},#{entity.fzsm4},#{entity.fzsm5},#{entity.fzsm6},#{entity.fzsm7},#{entity.fzsm8},#{entity.fzsm9},#{entity.cess},#{entity.fplx},#{entity.fprq},#{entity.fphfw1},#{entity.fphfw2},#{entity.jsfs},#{entity.zydm},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.idpznr},#{entity.wlh},#{entity.zbid},#{entity.edid},#{entity.jfsqid})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增或者修改-->
|
||||||
|
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_pznr(gsdm, ZTH, kjqj, pzly, pzh, flh, zy, kmdm, wbdm, hl, jdbz, wbje, je, spz, wldrq, sl, dj, bmdm, wldm, xmdm, fzsm1, fzsm2, fzsm3, fzsm4, fzsm5, fzsm6, fzsm7, fzsm8, fzsm9, cess, fplx, fprq, fphfw1, fphfw2, jsfs, zydm, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, IDPZNR, wlh, ZBID, EDID, JFSQID)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.gsdm},#{entity.zth},#{entity.kjqj},#{entity.pzly},#{entity.pzh},#{entity.flh},#{entity.zy},#{entity.kmdm},#{entity.wbdm},#{entity.hl},#{entity.jdbz},#{entity.wbje},#{entity.je},#{entity.spz},#{entity.wldrq},#{entity.sl},#{entity.dj},#{entity.bmdm},#{entity.wldm},#{entity.xmdm},#{entity.fzsm1},#{entity.fzsm2},#{entity.fzsm3},#{entity.fzsm4},#{entity.fzsm5},#{entity.fzsm6},#{entity.fzsm7},#{entity.fzsm8},#{entity.fzsm9},#{entity.cess},#{entity.fplx},#{entity.fprq},#{entity.fphfw1},#{entity.fphfw2},#{entity.jsfs},#{entity.zydm},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.idpznr},#{entity.wlh},#{entity.zbid},#{entity.edid},#{entity.jfsqid})
|
||||||
|
</foreach>
|
||||||
|
on duplicate key update
|
||||||
|
gsdm = values(gsdm),
|
||||||
|
ZTH = values(ZTH),
|
||||||
|
kjqj = values(kjqj),
|
||||||
|
pzly = values(pzly),
|
||||||
|
pzh = values(pzh),
|
||||||
|
flh = values(flh),
|
||||||
|
zy = values(zy),
|
||||||
|
kmdm = values(kmdm),
|
||||||
|
wbdm = values(wbdm),
|
||||||
|
hl = values(hl),
|
||||||
|
jdbz = values(jdbz),
|
||||||
|
wbje = values(wbje),
|
||||||
|
je = values(je),
|
||||||
|
spz = values(spz),
|
||||||
|
wldrq = values(wldrq),
|
||||||
|
sl = values(sl),
|
||||||
|
dj = values(dj),
|
||||||
|
bmdm = values(bmdm),
|
||||||
|
wldm = values(wldm),
|
||||||
|
xmdm = values(xmdm),
|
||||||
|
fzsm1 = values(fzsm1),
|
||||||
|
fzsm2 = values(fzsm2),
|
||||||
|
fzsm3 = values(fzsm3),
|
||||||
|
fzsm4 = values(fzsm4),
|
||||||
|
fzsm5 = values(fzsm5),
|
||||||
|
fzsm6 = values(fzsm6),
|
||||||
|
fzsm7 = values(fzsm7),
|
||||||
|
fzsm8 = values(fzsm8),
|
||||||
|
fzsm9 = values(fzsm9),
|
||||||
|
cess = values(cess),
|
||||||
|
fplx = values(fplx),
|
||||||
|
fprq = values(fprq),
|
||||||
|
fphfw1 = values(fphfw1),
|
||||||
|
fphfw2 = values(fphfw2),
|
||||||
|
jsfs = values(jsfs),
|
||||||
|
zydm = values(zydm),
|
||||||
|
fzdm4 = values(fzdm4),
|
||||||
|
fzdm5 = values(fzdm5),
|
||||||
|
fzdm6 = values(fzdm6),
|
||||||
|
fzdm7 = values(fzdm7),
|
||||||
|
fzdm8 = values(fzdm8),
|
||||||
|
fzdm9 = values(fzdm9),
|
||||||
|
fzdm10 = values(fzdm10),
|
||||||
|
IDPZNR = values(IDPZNR),
|
||||||
|
wlh = values(wlh),
|
||||||
|
ZBID = values(ZBID),
|
||||||
|
EDID = values(EDID),
|
||||||
|
JFSQID = values(JFSQID)</insert>
|
||||||
|
<!--通过主键修改方法-->
|
||||||
|
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" >
|
||||||
|
update gl_pznr set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
|
||||||
|
<if test="zth != null and zth != ''"> ZTH = #{zth},</if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> kjqj = #{kjqj},</if>
|
||||||
|
<if test="pzly != null and pzly != ''"> pzly = #{pzly},</if>
|
||||||
|
<if test="pzh != null and pzh != ''"> pzh = #{pzh},</if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm != ''"> kjtxdm = #{kjtxdm},</if>
|
||||||
|
<if test="pzlxdm != null and pzlxdm != ''"> pzlxdm = #{pzlxdm},</if>
|
||||||
|
<if test="flh != null"> flh = #{flh},</if>
|
||||||
|
<if test="zy != null and zy != ''"> zy = #{zy},</if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> kmdm = #{kmdm},</if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> wbdm = #{wbdm},</if>
|
||||||
|
<if test="hl != null"> hl = #{hl},</if>
|
||||||
|
<if test="jdbz != null and jdbz != ''"> jdbz = #{jdbz},</if>
|
||||||
|
<if test="wbje != null"> wbje = #{wbje},</if>
|
||||||
|
<if test="je != null"> je = #{je},</if>
|
||||||
|
<if test="spz != null and spz != ''"> spz = #{spz},</if>
|
||||||
|
<if test="wldrq != null and wldrq != ''"> wldrq = #{wldrq},</if>
|
||||||
|
<if test="sl != null"> sl = #{sl},</if>
|
||||||
|
<if test="dj != null"> dj = #{dj},</if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> bmdm = #{bmdm},</if>
|
||||||
|
<if test="wldm != null and wldm != ''"> wldm = #{wldm},</if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> xmdm = #{xmdm},</if>
|
||||||
|
<if test="fzsm1 != null and fzsm1 != ''"> fzsm1 = #{fzsm1},</if>
|
||||||
|
<if test="fzsm2 != null and fzsm2 != ''"> fzsm2 = #{fzsm2},</if>
|
||||||
|
<if test="fzsm3 != null and fzsm3 != ''"> fzsm3 = #{fzsm3},</if>
|
||||||
|
<if test="fzsm4 != null and fzsm4 != ''"> fzsm4 = #{fzsm4},</if>
|
||||||
|
<if test="fzsm5 != null and fzsm5 != ''"> fzsm5 = #{fzsm5},</if>
|
||||||
|
<if test="fzsm6 != null and fzsm6 != ''"> fzsm6 = #{fzsm6},</if>
|
||||||
|
<if test="fzsm7 != null and fzsm7 != ''"> fzsm7 = #{fzsm7},</if>
|
||||||
|
<if test="fzsm8 != null and fzsm8 != ''"> fzsm8 = #{fzsm8},</if>
|
||||||
|
<if test="fzsm9 != null and fzsm9 != ''"> fzsm9 = #{fzsm9},</if>
|
||||||
|
<if test="cess != null"> cess = #{cess},</if>
|
||||||
|
<if test="fplx != null and fplx != ''"> fplx = #{fplx},</if>
|
||||||
|
<if test="fprq != null and fprq != ''"> fprq = #{fprq},</if>
|
||||||
|
<if test="fphfw1 != null"> fphfw1 = #{fphfw1},</if>
|
||||||
|
<if test="fphfw2 != null"> fphfw2 = #{fphfw2},</if>
|
||||||
|
<if test="jsfs != null and jsfs != ''"> jsfs = #{jsfs},</if>
|
||||||
|
<if test="zydm != null and zydm != ''"> zydm = #{zydm},</if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> fzdm4 = #{fzdm4},</if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> fzdm5 = #{fzdm5},</if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> fzdm6 = #{fzdm6},</if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> fzdm7 = #{fzdm7},</if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> fzdm8 = #{fzdm8},</if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> fzdm9 = #{fzdm9},</if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> fzdm10 = #{fzdm10},</if>
|
||||||
|
<if test="wlh != null and wlh != ''"> wlh = #{wlh},</if>
|
||||||
|
<if test="zbid != null"> ZBID = #{zbid},</if>
|
||||||
|
<if test="edid != null"> EDID = #{edid},</if>
|
||||||
|
<if test="jfsqid != null"> JFSQID = #{jfsqid},</if>
|
||||||
|
<if test="fzdm11 != null and fzdm11 != ''"> fzdm11 = #{fzdm11} , </if>
|
||||||
|
<if test="fzdm12 != null and fzdm12 != ''"> fzdm12 = #{fzdm12} , </if>
|
||||||
|
<if test="fzdm13 != null and fzdm13 != ''"> fzdm13 = #{fzdm13} , </if>
|
||||||
|
<if test="fzdm14 != null and fzdm14 != ''">fzdm14 = #{fzdm14} , </if>
|
||||||
|
<if test="fzdm15 != null and fzdm15 != ''"> fzdm15 = #{fzdm15} , </if>
|
||||||
|
<if test="fzdm16 != null and fzdm16 != ''"> fzdm16 = #{fzdm16} , </if>
|
||||||
|
<if test="fzdm17 != null and fzdm17 != ''">fzdm17 = #{fzdm17} , </if>
|
||||||
|
<if test="fzdm18 != null and fzdm18 != ''"> fzdm18 = #{fzdm18} , </if>
|
||||||
|
<if test="fzdm19 != null and fzdm19 != ''"> fzdm19 = #{fzdm19} , </if>
|
||||||
|
<if test="fzdm20 != null and fzdm20 != ''"> fzdm20 = #{fzdm20} , </if>
|
||||||
|
<if test="fzdm21 != null and fzdm21 != ''"> fzdm21 = #{fzdm21} , </if>
|
||||||
|
<if test="fzdm22 != null and fzdm22 != ''"> fzdm22 = #{fzdm22} , </if>
|
||||||
|
<if test="fzdm23 != null and fzdm23 != ''"> fzdm23 = #{fzdm23} , </if>
|
||||||
|
<if test="fzdm24 != null and fzdm24 != ''"> fzdm24 = #{fzdm24} , </if>
|
||||||
|
<if test="fzdm25 != null and fzdm25 != ''"> fzdm25 = #{fzdm25} , </if>
|
||||||
|
<if test="fzdm26 != null and fzdm26 != ''"> fzdm26 = #{fzdm26} , </if>
|
||||||
|
<if test="fzdm27 != null and fzdm27 != ''"> fzdm27 = #{fzdm27} , </if>
|
||||||
|
<if test="fzdm28 != null and fzdm28 != ''"> fzdm28 = #{fzdm28} , </if>
|
||||||
|
<if test="fzdm29 != null and fzdm29 != ''"> fzdm29 = #{fzdm29} , </if>
|
||||||
|
<if test="fzdm30 != null and fzdm30 != ''"> fzdm30 = #{fzdm30} , </if>
|
||||||
|
<if test="idpzh != null and idpzh != ''"> idpzh = #{idpzh} , </if>
|
||||||
|
<if test="skrlx != null and skrlx != ''"> skrlx = #{skrlx} , </if>
|
||||||
|
<if test="skrmc != null and skrmc != ''"> skrmc = #{skrmc} , </if>
|
||||||
|
<if test="skrzh != null and skrzh != ''"> skrzh = #{skrzh} , </if>
|
||||||
|
<if test="skryhdm != null and skryhdm != ''">skryhdm = #{skryhdm} , </if>
|
||||||
|
<if test="skryhhh != null and skryhhh != ''"> skryhhh = #{skryhhh} , </if>
|
||||||
|
<if test="skryhmc != null and skryhmc != ''"> skryhmc = #{skryhmc} , </if>
|
||||||
|
<if test="yszccy != null and yszccy != ''"> yszccy = #{yszccy} , </if>
|
||||||
|
<if test="xsflh != null and xsflh != ''"> xsflh = #{xsflh} , </if>
|
||||||
|
<if test="bxdid != null and bxdid != ''"> bxdid = #{bxdid}, </if>
|
||||||
|
<if test="htid != null and htid != ''"> htid = #{htid} , </if>
|
||||||
|
<if test="zckpbh != null and zckpbh != ''"> zckpbh = #{zckpbh} , </if>
|
||||||
|
<if test="sflx != null and sflx != ''"> sflx = #{sflx} , </if>
|
||||||
|
<if test="djbh != null and djbh != ''"> djbh = #{djbh} , </if>
|
||||||
|
<if test="hzflh != null and hzflh != ''">hzflh = #{hzflh} , </if>
|
||||||
|
<if test="cyxfx != null and cyxfx != ''"> cyxfx =#{cyxfx} , </if>
|
||||||
|
<if test="dqrq != null and dqrq != ''"> dqrq = #{dqrq} , </if>
|
||||||
|
<if test="glidpznr != null and glidpznr != ''"> glidpznr =#{glidpznr} </if>
|
||||||
|
</trim>
|
||||||
|
where idpznr= #{idpznr}
|
||||||
|
</update>
|
||||||
|
<!-- 逻辑删除 -->
|
||||||
|
<update id="SenderGlPznrEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" >
|
||||||
|
update gl_pznr set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
where idpznr= #{idpznr}
|
||||||
|
</update>
|
||||||
|
<!-- 多条件逻辑删除 -->
|
||||||
|
<update id="SenderGlPznrEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity" >
|
||||||
|
update gl_pznr set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjqj != null and kjqj != ''"> and kjqj = #{kjqj} </if>
|
||||||
|
<if test="pzly != null and pzly != ''"> and pzly = #{pzly} </if>
|
||||||
|
<if test="pzh != null and pzh != ''"> and pzh = #{pzh} </if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm != ''"> and kjtxdm = #{kjtxdm}</if>
|
||||||
|
<if test="pzlxdm != null and pzlxdm != ''"> and pzh = #{pzlxdm}</if>
|
||||||
|
<if test="flh != null"> and flh = #{flh} </if>
|
||||||
|
<if test="zy != null and zy != ''"> and zy = #{zy} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||||
|
<if test="hl != null"> and hl = #{hl} </if>
|
||||||
|
<if test="jdbz != null and jdbz != ''"> and jdbz = #{jdbz} </if>
|
||||||
|
<if test="wbje != null"> and wbje = #{wbje} </if>
|
||||||
|
<if test="je != null"> and je = #{je} </if>
|
||||||
|
<if test="spz != null and spz != ''"> and spz = #{spz} </if>
|
||||||
|
<if test="wldrq != null and wldrq != ''"> and wldrq = #{wldrq} </if>
|
||||||
|
<if test="sl != null"> and sl = #{sl} </if>
|
||||||
|
<if test="dj != null"> and dj = #{dj} </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
|
||||||
|
<if test="wldm != null and wldm != ''"> and wldm = #{wldm} </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||||
|
<if test="fzsm1 != null and fzsm1 != ''"> and fzsm1 = #{fzsm1} </if>
|
||||||
|
<if test="fzsm2 != null and fzsm2 != ''"> and fzsm2 = #{fzsm2} </if>
|
||||||
|
<if test="fzsm3 != null and fzsm3 != ''"> and fzsm3 = #{fzsm3} </if>
|
||||||
|
<if test="fzsm4 != null and fzsm4 != ''"> and fzsm4 = #{fzsm4} </if>
|
||||||
|
<if test="fzsm5 != null and fzsm5 != ''"> and fzsm5 = #{fzsm5} </if>
|
||||||
|
<if test="fzsm6 != null and fzsm6 != ''"> and fzsm6 = #{fzsm6} </if>
|
||||||
|
<if test="fzsm7 != null and fzsm7 != ''"> and fzsm7 = #{fzsm7} </if>
|
||||||
|
<if test="fzsm8 != null and fzsm8 != ''"> and fzsm8 = #{fzsm8} </if>
|
||||||
|
<if test="fzsm9 != null and fzsm9 != ''"> and fzsm9 = #{fzsm9} </if>
|
||||||
|
<if test="cess != null"> and cess = #{cess} </if>
|
||||||
|
<if test="fplx != null and fplx != ''"> and fplx = #{fplx} </if>
|
||||||
|
<if test="fprq != null and fprq != ''"> and fprq = #{fprq} </if>
|
||||||
|
<if test="fphfw1 != null"> and fphfw1 = #{fphfw1} </if>
|
||||||
|
<if test="fphfw2 != null"> and fphfw2 = #{fphfw2} </if>
|
||||||
|
<if test="jsfs != null and jsfs != ''"> and jsfs = #{jsfs} </if>
|
||||||
|
<if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||||
|
<if test="idpznr != null and idpznr != ''"> and IDPZNR = #{idpznr} </if>
|
||||||
|
<if test="wlh != null and wlh != ''"> and wlh = #{wlh} </if>
|
||||||
|
<if test="zbid != null"> and ZBID = #{zbid} </if>
|
||||||
|
<if test="edid != null"> and EDID = #{edid} </if>
|
||||||
|
<if test="jfsqid != null"> and JFSQID = #{jfsqid} </if>
|
||||||
|
and sts='Y'
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="entity_delete">
|
||||||
|
delete from gl_pznr where idpznr = #{idpznr}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="SenderGlPznrEntity_delete_pznr">
|
||||||
|
delete from gl_pznr where gsdm= #{gsdm} and zth=#{zth}
|
||||||
|
<if test="kjqj != null and kjqj!=''"> and kjqj=#{kjqj}</if>
|
||||||
|
<if test="pzh != null and pzh!=''"> and pzh = #{pzh} </if>
|
||||||
|
<if test="idpzh != null and idpzh!=''"> and idpzh = #{idpzh} </if>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPznr.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlPznr)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 14:14:30
|
||||||
|
*/
|
||||||
|
public interface ISenderGlPznrService extends IBaseService<SenderGlPznrEntity, String> {
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glPznr.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPznr.dao.ISenderGlPznrDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPznr.entity.SenderGlPznrEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glPznr.service.ISenderGlPznrService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
/**
|
||||||
|
* (GlPznr)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 14:14:30
|
||||||
|
*/
|
||||||
|
@Service(value = "SenderGlPznrServiceImpl")
|
||||||
|
public class SenderGlPznrServiceImpl extends BaseService<SenderGlPznrEntity, String> implements ISenderGlPznrService {
|
||||||
|
|
||||||
|
private ISenderGlPznrDao senderGlPznrDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setSenderGlPznrDao(ISenderGlPznrDao dao) {
|
||||||
|
this.senderGlPznrDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,80 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glYeb.dao;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (gl_yeb: table)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-07-08 11:12:24
|
||||||
|
*/
|
||||||
|
public interface ISenderGlYebDao extends IBaseDao<SenderGlYebEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询余额数据 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/8 13:44
|
||||||
|
* **/
|
||||||
|
List<SenderGlYebEntity> querySenderGlYebEntity(SenderGlYebEntity senderGlYebEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存余额数据到余额日志中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/8 13:45
|
||||||
|
* **/
|
||||||
|
SenderGlYebEntity saveSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新余额数据到余额日志中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/8 13:46
|
||||||
|
* **/
|
||||||
|
SenderGlYebEntity updateSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询余额数据 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/8 13:55
|
||||||
|
* **/
|
||||||
|
List<SenderGlYebEntity> queryGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存余额数据 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/8 13:55
|
||||||
|
* **/
|
||||||
|
SenderGlYebEntity saveGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除余额数据 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/16 13:51
|
||||||
|
* **/
|
||||||
|
Integer deleteGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,57 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glYeb.dao.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glYeb.dao.ISenderGlYebDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlYeb)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-07-08 11:12:24
|
||||||
|
*/
|
||||||
|
@Repository(value = "SenderGlYebDaoImpl")
|
||||||
|
public class SenderGlYebDaoImpl extends MybatisGenericDao<SenderGlYebEntity, String> implements ISenderGlYebDao {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlYebEntity.dataSourceCode")
|
||||||
|
public List<SenderGlYebEntity> querySenderGlYebEntity(SenderGlYebEntity senderGlYebEntity) {
|
||||||
|
return super.queryByLike(senderGlYebEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlYebEntity.dataSourceCode")
|
||||||
|
public SenderGlYebEntity saveSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity) {
|
||||||
|
return super.save(senderGlYebEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlYebEntity.dataSourceCode")
|
||||||
|
public SenderGlYebEntity updateSenderGlYebEntity(SenderGlYebEntity senderGlYebEntity) {
|
||||||
|
return super.update(senderGlYebEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlYebEntity.dataSourceCode")
|
||||||
|
public List<SenderGlYebEntity> queryGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity) {
|
||||||
|
return super.query(senderGlYebEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlYebEntity.dataSourceCode")
|
||||||
|
public SenderGlYebEntity saveGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity) {
|
||||||
|
return super.save(senderGlYebEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlYebEntity.dataSourceCode")
|
||||||
|
public Integer deleteGlYebHealthBureau(SenderGlYebEntity senderGlYebEntity) {
|
||||||
|
return super.delete(getSqlIdPrifx()+"SenderGlYebEntity_delete_yeb",senderGlYebEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,630 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glYeb.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlYeb)实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-07-08 11:12:24
|
||||||
|
*/
|
||||||
|
public class SenderGlYebEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String kjnd;
|
||||||
|
private String kmdm;
|
||||||
|
private String yeblx;
|
||||||
|
private String wbdm;
|
||||||
|
private String gsdm;
|
||||||
|
private String zth;
|
||||||
|
private String fzdm0;
|
||||||
|
private String fzdm1;
|
||||||
|
private String fzdm2;
|
||||||
|
private String fzdm3;
|
||||||
|
private String fzdm4;
|
||||||
|
private String fzdm5;
|
||||||
|
private String fzdm6;
|
||||||
|
private String fzdm7;
|
||||||
|
private String fzdm8;
|
||||||
|
private String fzdm9;
|
||||||
|
private String fzdm10;
|
||||||
|
private String fzdm11;
|
||||||
|
private String fzdm12;
|
||||||
|
private String fzdm13;
|
||||||
|
private String fzdm14;
|
||||||
|
private String fzdm15;
|
||||||
|
private String fzdm16;
|
||||||
|
private String fzdm17;
|
||||||
|
private String fzdm18;
|
||||||
|
private String fzdm19;
|
||||||
|
private String fzdm20;
|
||||||
|
private String fzdm21;
|
||||||
|
private String fzdm22;
|
||||||
|
private String fzdm23;
|
||||||
|
private String fzdm24;
|
||||||
|
private String fzdm25;
|
||||||
|
private String fzdm26;
|
||||||
|
private String fzdm27;
|
||||||
|
private String fzdm28;
|
||||||
|
private String fzdm29;
|
||||||
|
private String fzdm30;
|
||||||
|
private String zdylb;
|
||||||
|
private String zdydm;
|
||||||
|
private String ncj;
|
||||||
|
private String ncd;
|
||||||
|
private String yj1;
|
||||||
|
private String yd1;
|
||||||
|
private String yj2;
|
||||||
|
private String yd2;
|
||||||
|
private String yj3;
|
||||||
|
private String yd3;
|
||||||
|
private String yj4;
|
||||||
|
private String yd4;
|
||||||
|
private String yj5;
|
||||||
|
private String yd5;
|
||||||
|
private String yj6;
|
||||||
|
private String yd6;
|
||||||
|
private String yj7;
|
||||||
|
private String yd7;
|
||||||
|
private String yj8;
|
||||||
|
private String yd8;
|
||||||
|
private String yj9;
|
||||||
|
private String yd9;
|
||||||
|
private String yj10;
|
||||||
|
private String yd10;
|
||||||
|
private String yj11;
|
||||||
|
private String yd11;
|
||||||
|
private String yj12;
|
||||||
|
private String yd12;
|
||||||
|
private String yj13;
|
||||||
|
private String yd13;
|
||||||
|
|
||||||
|
private String kjtxdm;
|
||||||
|
|
||||||
|
public String getFzdm11() {
|
||||||
|
return fzdm11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm11(String fzdm11) {
|
||||||
|
this.fzdm11 = fzdm11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm12() {
|
||||||
|
return fzdm12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm12(String fzdm12) {
|
||||||
|
this.fzdm12 = fzdm12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm13() {
|
||||||
|
return fzdm13;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm13(String fzdm13) {
|
||||||
|
this.fzdm13 = fzdm13;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm14() {
|
||||||
|
return fzdm14;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm14(String fzdm14) {
|
||||||
|
this.fzdm14 = fzdm14;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm15() {
|
||||||
|
return fzdm15;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm15(String fzdm15) {
|
||||||
|
this.fzdm15 = fzdm15;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm16() {
|
||||||
|
return fzdm16;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm16(String fzdm16) {
|
||||||
|
this.fzdm16 = fzdm16;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm17() {
|
||||||
|
return fzdm17;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm17(String fzdm17) {
|
||||||
|
this.fzdm17 = fzdm17;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm18() {
|
||||||
|
return fzdm18;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm18(String fzdm18) {
|
||||||
|
this.fzdm18 = fzdm18;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm19() {
|
||||||
|
return fzdm19;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm19(String fzdm19) {
|
||||||
|
this.fzdm19 = fzdm19;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm20() {
|
||||||
|
return fzdm20;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm20(String fzdm20) {
|
||||||
|
this.fzdm20 = fzdm20;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm21() {
|
||||||
|
return fzdm21;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm21(String fzdm21) {
|
||||||
|
this.fzdm21 = fzdm21;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm22() {
|
||||||
|
return fzdm22;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm22(String fzdm22) {
|
||||||
|
this.fzdm22 = fzdm22;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm23() {
|
||||||
|
return fzdm23;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm23(String fzdm23) {
|
||||||
|
this.fzdm23 = fzdm23;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm24() {
|
||||||
|
return fzdm24;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm24(String fzdm24) {
|
||||||
|
this.fzdm24 = fzdm24;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm25() {
|
||||||
|
return fzdm25;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm25(String fzdm25) {
|
||||||
|
this.fzdm25 = fzdm25;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm26() {
|
||||||
|
return fzdm26;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm26(String fzdm26) {
|
||||||
|
this.fzdm26 = fzdm26;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm27() {
|
||||||
|
return fzdm27;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm27(String fzdm27) {
|
||||||
|
this.fzdm27 = fzdm27;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm28() {
|
||||||
|
return fzdm28;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm28(String fzdm28) {
|
||||||
|
this.fzdm28 = fzdm28;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm29() {
|
||||||
|
return fzdm29;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm29(String fzdm29) {
|
||||||
|
this.fzdm29 = fzdm29;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm30() {
|
||||||
|
return fzdm30;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm30(String fzdm30) {
|
||||||
|
this.fzdm30 = fzdm30;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjtxdm() {
|
||||||
|
return kjtxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjtxdm(String kjtxdm) {
|
||||||
|
this.kjtxdm = kjtxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjnd() {
|
||||||
|
return kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjnd(String kjnd) {
|
||||||
|
this.kjnd = kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmdm() {
|
||||||
|
return kmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmdm(String kmdm) {
|
||||||
|
this.kmdm = kmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYeblx() {
|
||||||
|
return yeblx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYeblx(String yeblx) {
|
||||||
|
this.yeblx = yeblx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWbdm() {
|
||||||
|
return wbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWbdm(String wbdm) {
|
||||||
|
this.wbdm = wbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGsdm() {
|
||||||
|
return gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGsdm(String gsdm) {
|
||||||
|
this.gsdm = gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZth() {
|
||||||
|
return zth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZth(String zth) {
|
||||||
|
this.zth = zth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm0() {
|
||||||
|
return fzdm0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm0(String fzdm0) {
|
||||||
|
this.fzdm0 = fzdm0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm1() {
|
||||||
|
return fzdm1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm1(String fzdm1) {
|
||||||
|
this.fzdm1 = fzdm1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm2() {
|
||||||
|
return fzdm2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm2(String fzdm2) {
|
||||||
|
this.fzdm2 = fzdm2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm3() {
|
||||||
|
return fzdm3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm3(String fzdm3) {
|
||||||
|
this.fzdm3 = fzdm3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm4() {
|
||||||
|
return fzdm4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm4(String fzdm4) {
|
||||||
|
this.fzdm4 = fzdm4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm5() {
|
||||||
|
return fzdm5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm5(String fzdm5) {
|
||||||
|
this.fzdm5 = fzdm5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm6() {
|
||||||
|
return fzdm6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm6(String fzdm6) {
|
||||||
|
this.fzdm6 = fzdm6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm7() {
|
||||||
|
return fzdm7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm7(String fzdm7) {
|
||||||
|
this.fzdm7 = fzdm7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm8() {
|
||||||
|
return fzdm8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm8(String fzdm8) {
|
||||||
|
this.fzdm8 = fzdm8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm9() {
|
||||||
|
return fzdm9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm9(String fzdm9) {
|
||||||
|
this.fzdm9 = fzdm9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm10() {
|
||||||
|
return fzdm10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm10(String fzdm10) {
|
||||||
|
this.fzdm10 = fzdm10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZdylb() {
|
||||||
|
return zdylb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZdylb(String zdylb) {
|
||||||
|
this.zdylb = zdylb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZdydm() {
|
||||||
|
return zdydm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZdydm(String zdydm) {
|
||||||
|
this.zdydm = zdydm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNcj() {
|
||||||
|
return ncj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNcj(String ncj) {
|
||||||
|
this.ncj = ncj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNcd() {
|
||||||
|
return ncd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNcd(String ncd) {
|
||||||
|
this.ncd = ncd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj1() {
|
||||||
|
return yj1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj1(String yj1) {
|
||||||
|
this.yj1 = yj1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd1() {
|
||||||
|
return yd1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd1(String yd1) {
|
||||||
|
this.yd1 = yd1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj2() {
|
||||||
|
return yj2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj2(String yj2) {
|
||||||
|
this.yj2 = yj2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd2() {
|
||||||
|
return yd2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd2(String yd2) {
|
||||||
|
this.yd2 = yd2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj3() {
|
||||||
|
return yj3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj3(String yj3) {
|
||||||
|
this.yj3 = yj3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd3() {
|
||||||
|
return yd3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd3(String yd3) {
|
||||||
|
this.yd3 = yd3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj4() {
|
||||||
|
return yj4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj4(String yj4) {
|
||||||
|
this.yj4 = yj4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd4() {
|
||||||
|
return yd4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd4(String yd4) {
|
||||||
|
this.yd4 = yd4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj5() {
|
||||||
|
return yj5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj5(String yj5) {
|
||||||
|
this.yj5 = yj5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd5() {
|
||||||
|
return yd5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd5(String yd5) {
|
||||||
|
this.yd5 = yd5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj6() {
|
||||||
|
return yj6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj6(String yj6) {
|
||||||
|
this.yj6 = yj6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd6() {
|
||||||
|
return yd6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd6(String yd6) {
|
||||||
|
this.yd6 = yd6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj7() {
|
||||||
|
return yj7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj7(String yj7) {
|
||||||
|
this.yj7 = yj7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd7() {
|
||||||
|
return yd7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd7(String yd7) {
|
||||||
|
this.yd7 = yd7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj8() {
|
||||||
|
return yj8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj8(String yj8) {
|
||||||
|
this.yj8 = yj8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd8() {
|
||||||
|
return yd8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd8(String yd8) {
|
||||||
|
this.yd8 = yd8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj9() {
|
||||||
|
return yj9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj9(String yj9) {
|
||||||
|
this.yj9 = yj9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd9() {
|
||||||
|
return yd9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd9(String yd9) {
|
||||||
|
this.yd9 = yd9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj10() {
|
||||||
|
return yj10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj10(String yj10) {
|
||||||
|
this.yj10 = yj10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd10() {
|
||||||
|
return yd10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd10(String yd10) {
|
||||||
|
this.yd10 = yd10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj11() {
|
||||||
|
return yj11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj11(String yj11) {
|
||||||
|
this.yj11 = yj11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd11() {
|
||||||
|
return yd11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd11(String yd11) {
|
||||||
|
this.yd11 = yd11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj12() {
|
||||||
|
return yj12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj12(String yj12) {
|
||||||
|
this.yj12 = yj12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd12() {
|
||||||
|
return yd12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd12(String yd12) {
|
||||||
|
this.yd12 = yd12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYj13() {
|
||||||
|
return yj13;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYj13(String yj13) {
|
||||||
|
this.yj13 = yj13;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYd13() {
|
||||||
|
return yd13;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYd13(String yd13) {
|
||||||
|
this.yd13 = yd13;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,732 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.glYeb.dao.impl.SenderGlYebDaoImpl">
|
||||||
|
|
||||||
|
<resultMap id="get-SenderGlYebEntity-result" type="com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" >
|
||||||
|
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmdm" column="kmdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yeblx" column="yeblx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="wbdm" column="wbdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zth" column="ZTH" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm0" column="fzdm0" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm1" column="fzdm1" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm2" column="fzdm2" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm3" column="fzdm3" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm4" column="fzdm4" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm5" column="fzdm5" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm6" column="fzdm6" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm7" column="fzdm7" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm8" column="fzdm8" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm9" column="fzdm9" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm10" column="fzdm10" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm11" column="fzdm11" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm12" column="fzdm12" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm13" column="fzdm13" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm14" column="fzdm14" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm15" column="fzdm15" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm16" column="fzdm16" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm17" column="fzdm17" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm18" column="fzdm18" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm19" column="fzdm19" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm20" column="fzdm20" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm21" column="fzdm21" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm22" column="fzdm22" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm23" column="fzdm23" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm24" column="fzdm24" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm25" column="fzdm25" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm26" column="fzdm26" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm27" column="fzdm27" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm28" column="fzdm28" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm29" column="fzdm29" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm30" column="fzdm30" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zdylb" column="zdylb" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zdydm" column="zdydm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ncj" column="ncj" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ncd" column="ncd" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj1" column="yj1" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd1" column="yd1" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj2" column="yj2" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd2" column="yd2" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj3" column="yj3" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd3" column="yd3" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj4" column="yj4" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd4" column="yd4" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj5" column="yj5" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd5" column="yd5" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj6" column="yj6" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd6" column="yd6" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj7" column="yj7" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd7" column="yd7" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj8" column="yj8" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd8" column="yd8" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj9" column="yj9" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd9" column="yd9" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj10" column="yj10" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd10" column="yd10" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj11" column="yj11" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd11" column="yd11" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj12" column="yj12" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd12" column="yd12" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yj13" column="yj13" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yd13" column="yd13" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kjtxdm" column="kjtxdm" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
<!-- 查询的字段-->
|
||||||
|
<sql id = "SenderGlYebEntity_Base_Column_List">
|
||||||
|
kjnd
|
||||||
|
,kmdm
|
||||||
|
,yeblx
|
||||||
|
,wbdm
|
||||||
|
,gsdm
|
||||||
|
,ZTH
|
||||||
|
,fzdm0
|
||||||
|
,fzdm1
|
||||||
|
,fzdm2
|
||||||
|
,fzdm3
|
||||||
|
,fzdm4
|
||||||
|
,fzdm5
|
||||||
|
,fzdm6
|
||||||
|
,fzdm7
|
||||||
|
,fzdm8
|
||||||
|
,fzdm9
|
||||||
|
,fzdm10
|
||||||
|
,fzdm11
|
||||||
|
,fzdm12
|
||||||
|
,fzdm13
|
||||||
|
,fzdm14
|
||||||
|
,fzdm15
|
||||||
|
,fzdm16
|
||||||
|
,fzdm17
|
||||||
|
,fzdm18
|
||||||
|
,fzdm19
|
||||||
|
,fzdm20
|
||||||
|
,fzdm21
|
||||||
|
,fzdm22
|
||||||
|
,fzdm23
|
||||||
|
,fzdm24
|
||||||
|
,fzdm25
|
||||||
|
,fzdm26
|
||||||
|
,fzdm27
|
||||||
|
,fzdm28
|
||||||
|
,fzdm29
|
||||||
|
,fzdm30
|
||||||
|
,zdylb
|
||||||
|
,zdydm
|
||||||
|
,ncj
|
||||||
|
,ncd
|
||||||
|
,yj1
|
||||||
|
,yd1
|
||||||
|
,yj2
|
||||||
|
,yd2
|
||||||
|
,yj3
|
||||||
|
,yd3
|
||||||
|
,yj4
|
||||||
|
,yd4
|
||||||
|
,yj5
|
||||||
|
,yd5
|
||||||
|
,yj6
|
||||||
|
,yd6
|
||||||
|
,yj7
|
||||||
|
,yd7
|
||||||
|
,yj8
|
||||||
|
,yd8
|
||||||
|
,yj9
|
||||||
|
,yd9
|
||||||
|
,yj10
|
||||||
|
,yd10
|
||||||
|
,yj11
|
||||||
|
,yd11
|
||||||
|
,yj12
|
||||||
|
,yd12
|
||||||
|
,yj13
|
||||||
|
,yd13
|
||||||
|
,ID
|
||||||
|
,kjtxdm
|
||||||
|
</sql>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="entity_list_base" resultMap="get-SenderGlYebEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlYebEntity_Base_Column_List" />
|
||||||
|
from gl_yeb
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="yeblx != null and yeblx != ''"> and yeblx = #{yeblx} </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="fzdm0 != null and fzdm0 != ''"> and fzdm0 = #{fzdm0} </if>
|
||||||
|
<if test="fzdm1 != null and fzdm1 != ''"> and fzdm1 = #{fzdm1} </if>
|
||||||
|
<if test="fzdm2 != null and fzdm2 != ''"> and fzdm2 = #{fzdm2} </if>
|
||||||
|
<if test="fzdm3 != null and fzdm3 != ''"> and fzdm3 = #{fzdm3} </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||||
|
<if test="zdylb != null and zdylb != ''"> and zdylb = #{zdylb} </if>
|
||||||
|
<if test="zdydm != null and zdydm != ''"> and zdydm = #{zdydm} </if>
|
||||||
|
<if test="ncj != null"> and ncj = #{ncj} </if>
|
||||||
|
<if test="ncd != null"> and ncd = #{ncd} </if>
|
||||||
|
<if test="yj1 != null"> and yj1 = #{yj1} </if>
|
||||||
|
<if test="yd1 != null"> and yd1 = #{yd1} </if>
|
||||||
|
<if test="yj2 != null"> and yj2 = #{yj2} </if>
|
||||||
|
<if test="yd2 != null"> and yd2 = #{yd2} </if>
|
||||||
|
<if test="yj3 != null"> and yj3 = #{yj3} </if>
|
||||||
|
<if test="yd3 != null"> and yd3 = #{yd3} </if>
|
||||||
|
<if test="yj4 != null"> and yj4 = #{yj4} </if>
|
||||||
|
<if test="yd4 != null"> and yd4 = #{yd4} </if>
|
||||||
|
<if test="yj5 != null"> and yj5 = #{yj5} </if>
|
||||||
|
<if test="yd5 != null"> and yd5 = #{yd5} </if>
|
||||||
|
<if test="yj6 != null"> and yj6 = #{yj6} </if>
|
||||||
|
<if test="yd6 != null"> and yd6 = #{yd6} </if>
|
||||||
|
<if test="yj7 != null"> and yj7 = #{yj7} </if>
|
||||||
|
<if test="yd7 != null"> and yd7 = #{yd7} </if>
|
||||||
|
<if test="yj8 != null"> and yj8 = #{yj8} </if>
|
||||||
|
<if test="yd8 != null"> and yd8 = #{yd8} </if>
|
||||||
|
<if test="yj9 != null"> and yj9 = #{yj9} </if>
|
||||||
|
<if test="yd9 != null"> and yd9 = #{yd9} </if>
|
||||||
|
<if test="yj10 != null"> and yj10 = #{yj10} </if>
|
||||||
|
<if test="yd10 != null"> and yd10 = #{yd10} </if>
|
||||||
|
<if test="yj11 != null"> and yj11 = #{yj11} </if>
|
||||||
|
<if test="yd11 != null"> and yd11 = #{yd11} </if>
|
||||||
|
<if test="yj12 != null"> and yj12 = #{yj12} </if>
|
||||||
|
<if test="yd12 != null"> and yd12 = #{yd12} </if>
|
||||||
|
<if test="yj13 != null"> and yj13 = #{yj13} </if>
|
||||||
|
<if test="yd13 != null"> and yd13 = #{yd13} </if>
|
||||||
|
<if test="id != null"> and ID = #{id} </if>
|
||||||
|
-- and zth in ('004','005','009','010','011','012','014')
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询符合条件的数量 -->
|
||||||
|
<select id="SenderGlYebEntity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity">
|
||||||
|
select count(1) from gl_yeb
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="yeblx != null and yeblx != ''"> and yeblx = #{yeblx} </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="fzdm0 != null and fzdm0 != ''"> and fzdm0 = #{fzdm0} </if>
|
||||||
|
<if test="fzdm1 != null and fzdm1 != ''"> and fzdm1 = #{fzdm1} </if>
|
||||||
|
<if test="fzdm2 != null and fzdm2 != ''"> and fzdm2 = #{fzdm2} </if>
|
||||||
|
<if test="fzdm3 != null and fzdm3 != ''"> and fzdm3 = #{fzdm3} </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||||
|
<if test="zdylb != null and zdylb != ''"> and zdylb = #{zdylb} </if>
|
||||||
|
<if test="zdydm != null and zdydm != ''"> and zdydm = #{zdydm} </if>
|
||||||
|
<if test="ncj != null"> and ncj = #{ncj} </if>
|
||||||
|
<if test="ncd != null"> and ncd = #{ncd} </if>
|
||||||
|
<if test="yj1 != null"> and yj1 = #{yj1} </if>
|
||||||
|
<if test="yd1 != null"> and yd1 = #{yd1} </if>
|
||||||
|
<if test="yj2 != null"> and yj2 = #{yj2} </if>
|
||||||
|
<if test="yd2 != null"> and yd2 = #{yd2} </if>
|
||||||
|
<if test="yj3 != null"> and yj3 = #{yj3} </if>
|
||||||
|
<if test="yd3 != null"> and yd3 = #{yd3} </if>
|
||||||
|
<if test="yj4 != null"> and yj4 = #{yj4} </if>
|
||||||
|
<if test="yd4 != null"> and yd4 = #{yd4} </if>
|
||||||
|
<if test="yj5 != null"> and yj5 = #{yj5} </if>
|
||||||
|
<if test="yd5 != null"> and yd5 = #{yd5} </if>
|
||||||
|
<if test="yj6 != null"> and yj6 = #{yj6} </if>
|
||||||
|
<if test="yd6 != null"> and yd6 = #{yd6} </if>
|
||||||
|
<if test="yj7 != null"> and yj7 = #{yj7} </if>
|
||||||
|
<if test="yd7 != null"> and yd7 = #{yd7} </if>
|
||||||
|
<if test="yj8 != null"> and yj8 = #{yj8} </if>
|
||||||
|
<if test="yd8 != null"> and yd8 = #{yd8} </if>
|
||||||
|
<if test="yj9 != null"> and yj9 = #{yj9} </if>
|
||||||
|
<if test="yd9 != null"> and yd9 = #{yd9} </if>
|
||||||
|
<if test="yj10 != null"> and yj10 = #{yj10} </if>
|
||||||
|
<if test="yd10 != null"> and yd10 = #{yd10} </if>
|
||||||
|
<if test="yj11 != null"> and yj11 = #{yj11} </if>
|
||||||
|
<if test="yd11 != null"> and yd11 = #{yd11} </if>
|
||||||
|
<if test="yj12 != null"> and yj12 = #{yj12} </if>
|
||||||
|
<if test="yd12 != null"> and yd12 = #{yd12} </if>
|
||||||
|
<if test="yj13 != null"> and yj13 = #{yj13} </if>
|
||||||
|
<if test="yd13 != null"> and yd13 = #{yd13} </if>
|
||||||
|
<if test="id != null"> and ID = #{id} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
|
<select id="entity_list_like" resultMap="get-SenderGlYebEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlYebEntity_Base_Column_List" />
|
||||||
|
from gl_yeb
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd like concat('%',#{kjnd},'%') </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm like concat('%',#{kmdm},'%') </if>
|
||||||
|
<if test="yeblx != null and yeblx != ''"> and yeblx like concat('%',#{yeblx},'%') </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> and wbdm like concat('%',#{wbdm},'%') </if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm like concat('%',#{gsdm},'%') </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH like concat('%',#{zth},'%') </if>
|
||||||
|
<if test="fzdm0 != null and fzdm0 != ''"> and fzdm0 like concat('%',#{fzdm0},'%') </if>
|
||||||
|
<if test="fzdm1 != null and fzdm1 != ''"> and fzdm1 like concat('%',#{fzdm1},'%') </if>
|
||||||
|
<if test="fzdm2 != null and fzdm2 != ''"> and fzdm2 like concat('%',#{fzdm2},'%') </if>
|
||||||
|
<if test="fzdm3 != null and fzdm3 != ''"> and fzdm3 like concat('%',#{fzdm3},'%') </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 like concat('%',#{fzdm4},'%') </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 like concat('%',#{fzdm5},'%') </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 like concat('%',#{fzdm6},'%') </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 like concat('%',#{fzdm7},'%') </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 like concat('%',#{fzdm8},'%') </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 like concat('%',#{fzdm9},'%') </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 like concat('%',#{fzdm10},'%') </if>
|
||||||
|
<if test="zdylb != null and zdylb != ''"> and zdylb like concat('%',#{zdylb},'%') </if>
|
||||||
|
<if test="zdydm != null and zdydm != ''"> and zdydm like concat('%',#{zdydm},'%') </if>
|
||||||
|
<if test="ncj != null"> and ncj like concat('%',#{ncj},'%') </if>
|
||||||
|
<if test="ncd != null"> and ncd like concat('%',#{ncd},'%') </if>
|
||||||
|
<if test="yj1 != null"> and yj1 like concat('%',#{yj1},'%') </if>
|
||||||
|
<if test="yd1 != null"> and yd1 like concat('%',#{yd1},'%') </if>
|
||||||
|
<if test="yj2 != null"> and yj2 like concat('%',#{yj2},'%') </if>
|
||||||
|
<if test="yd2 != null"> and yd2 like concat('%',#{yd2},'%') </if>
|
||||||
|
<if test="yj3 != null"> and yj3 like concat('%',#{yj3},'%') </if>
|
||||||
|
<if test="yd3 != null"> and yd3 like concat('%',#{yd3},'%') </if>
|
||||||
|
<if test="yj4 != null"> and yj4 like concat('%',#{yj4},'%') </if>
|
||||||
|
<if test="yd4 != null"> and yd4 like concat('%',#{yd4},'%') </if>
|
||||||
|
<if test="yj5 != null"> and yj5 like concat('%',#{yj5},'%') </if>
|
||||||
|
<if test="yd5 != null"> and yd5 like concat('%',#{yd5},'%') </if>
|
||||||
|
<if test="yj6 != null"> and yj6 like concat('%',#{yj6},'%') </if>
|
||||||
|
<if test="yd6 != null"> and yd6 like concat('%',#{yd6},'%') </if>
|
||||||
|
<if test="yj7 != null"> and yj7 like concat('%',#{yj7},'%') </if>
|
||||||
|
<if test="yd7 != null"> and yd7 like concat('%',#{yd7},'%') </if>
|
||||||
|
<if test="yj8 != null"> and yj8 like concat('%',#{yj8},'%') </if>
|
||||||
|
<if test="yd8 != null"> and yd8 like concat('%',#{yd8},'%') </if>
|
||||||
|
<if test="yj9 != null"> and yj9 like concat('%',#{yj9},'%') </if>
|
||||||
|
<if test="yd9 != null"> and yd9 like concat('%',#{yd9},'%') </if>
|
||||||
|
<if test="yj10 != null"> and yj10 like concat('%',#{yj10},'%') </if>
|
||||||
|
<if test="yd10 != null"> and yd10 like concat('%',#{yd10},'%') </if>
|
||||||
|
<if test="yj11 != null"> and yj11 like concat('%',#{yj11},'%') </if>
|
||||||
|
<if test="yd11 != null"> and yd11 like concat('%',#{yd11},'%') </if>
|
||||||
|
<if test="yj12 != null"> and yj12 like concat('%',#{yj12},'%') </if>
|
||||||
|
<if test="yd12 != null"> and yd12 like concat('%',#{yd12},'%') </if>
|
||||||
|
<if test="yj13 != null"> and yj13 like concat('%',#{yj13},'%') </if>
|
||||||
|
<if test="yd13 != null"> and yd13 like concat('%',#{yd13},'%') </if>
|
||||||
|
<if test="id != null"> and ID like concat('%',#{id},'%') </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
|
<select id="SenderGlYebEntity_list_or" resultMap="get-SenderGlYebEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlYebEntity_Base_Column_List" />
|
||||||
|
from gl_yeb
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> or kjnd = #{kjnd} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> or kmdm = #{kmdm} </if>
|
||||||
|
<if test="yeblx != null and yeblx != ''"> or yeblx = #{yeblx} </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> or wbdm = #{wbdm} </if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> or ZTH = #{zth} </if>
|
||||||
|
<if test="fzdm0 != null and fzdm0 != ''"> or fzdm0 = #{fzdm0} </if>
|
||||||
|
<if test="fzdm1 != null and fzdm1 != ''"> or fzdm1 = #{fzdm1} </if>
|
||||||
|
<if test="fzdm2 != null and fzdm2 != ''"> or fzdm2 = #{fzdm2} </if>
|
||||||
|
<if test="fzdm3 != null and fzdm3 != ''"> or fzdm3 = #{fzdm3} </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> or fzdm4 = #{fzdm4} </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> or fzdm5 = #{fzdm5} </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> or fzdm6 = #{fzdm6} </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> or fzdm7 = #{fzdm7} </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> or fzdm8 = #{fzdm8} </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> or fzdm9 = #{fzdm9} </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> or fzdm10 = #{fzdm10} </if>
|
||||||
|
<if test="zdylb != null and zdylb != ''"> or zdylb = #{zdylb} </if>
|
||||||
|
<if test="zdydm != null and zdydm != ''"> or zdydm = #{zdydm} </if>
|
||||||
|
<if test="ncj != null"> or ncj = #{ncj} </if>
|
||||||
|
<if test="ncd != null"> or ncd = #{ncd} </if>
|
||||||
|
<if test="yj1 != null"> or yj1 = #{yj1} </if>
|
||||||
|
<if test="yd1 != null"> or yd1 = #{yd1} </if>
|
||||||
|
<if test="yj2 != null"> or yj2 = #{yj2} </if>
|
||||||
|
<if test="yd2 != null"> or yd2 = #{yd2} </if>
|
||||||
|
<if test="yj3 != null"> or yj3 = #{yj3} </if>
|
||||||
|
<if test="yd3 != null"> or yd3 = #{yd3} </if>
|
||||||
|
<if test="yj4 != null"> or yj4 = #{yj4} </if>
|
||||||
|
<if test="yd4 != null"> or yd4 = #{yd4} </if>
|
||||||
|
<if test="yj5 != null"> or yj5 = #{yj5} </if>
|
||||||
|
<if test="yd5 != null"> or yd5 = #{yd5} </if>
|
||||||
|
<if test="yj6 != null"> or yj6 = #{yj6} </if>
|
||||||
|
<if test="yd6 != null"> or yd6 = #{yd6} </if>
|
||||||
|
<if test="yj7 != null"> or yj7 = #{yj7} </if>
|
||||||
|
<if test="yd7 != null"> or yd7 = #{yd7} </if>
|
||||||
|
<if test="yj8 != null"> or yj8 = #{yj8} </if>
|
||||||
|
<if test="yd8 != null"> or yd8 = #{yd8} </if>
|
||||||
|
<if test="yj9 != null"> or yj9 = #{yj9} </if>
|
||||||
|
<if test="yd9 != null"> or yd9 = #{yd9} </if>
|
||||||
|
<if test="yj10 != null"> or yj10 = #{yj10} </if>
|
||||||
|
<if test="yd10 != null"> or yd10 = #{yd10} </if>
|
||||||
|
<if test="yj11 != null"> or yj11 = #{yj11} </if>
|
||||||
|
<if test="yd11 != null"> or yd11 = #{yd11} </if>
|
||||||
|
<if test="yj12 != null"> or yj12 = #{yj12} </if>
|
||||||
|
<if test="yd12 != null"> or yd12 = #{yd12} </if>
|
||||||
|
<if test="yj13 != null"> or yj13 = #{yj13} </if>
|
||||||
|
<if test="yd13 != null"> or yd13 = #{yd13} </if>
|
||||||
|
<if test="id != null"> or ID = #{id} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--新增所有列-->
|
||||||
|
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_yeb(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> kmdm , </if>
|
||||||
|
<if test="yeblx != null and yeblx != ''"> yeblx , </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> wbdm , </if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
|
||||||
|
<if test="zth != null and zth != ''"> ZTH , </if>
|
||||||
|
<if test="fzdm0 != null and fzdm0 != ''"> fzdm0 , </if>
|
||||||
|
<if test="fzdm1 != null and fzdm1 != ''"> fzdm1 , </if>
|
||||||
|
<if test="fzdm2 != null and fzdm2 != ''"> fzdm2 , </if>
|
||||||
|
<if test="fzdm3 != null and fzdm3 != ''"> fzdm3 , </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> fzdm4 , </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> fzdm5 , </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> fzdm6 , </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> fzdm7 , </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> fzdm8 , </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> fzdm9 , </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> fzdm10 , </if>
|
||||||
|
<if test="fzdm11 != null and fzdm11 != ''"> fzdm11 , </if>
|
||||||
|
<if test="fzdm12 != null and fzdm12 != ''"> fzdm12 , </if>
|
||||||
|
<if test="fzdm13 != null and fzdm13 != ''"> fzdm13 , </if>
|
||||||
|
<if test="fzdm14 != null and fzdm14 != ''"> fzdm14 , </if>
|
||||||
|
<if test="fzdm15 != null and fzdm15 != ''"> fzdm15 , </if>
|
||||||
|
<if test="fzdm16 != null and fzdm16 != ''"> fzdm16 , </if>
|
||||||
|
<if test="fzdm17 != null and fzdm17 != ''"> fzdm17 , </if>
|
||||||
|
<if test="fzdm18 != null and fzdm18 != ''"> fzdm18 , </if>
|
||||||
|
<if test="fzdm19 != null and fzdm19 != ''"> fzdm19 , </if>
|
||||||
|
<if test="fzdm20 != null and fzdm20 != ''"> fzdm20 , </if>
|
||||||
|
<if test="fzdm21 != null and fzdm21 != ''"> fzdm21 , </if>
|
||||||
|
<if test="fzdm22 != null and fzdm22 != ''"> fzdm22 , </if>
|
||||||
|
<if test="fzdm23 != null and fzdm23 != ''"> fzdm23 , </if>
|
||||||
|
<if test="fzdm24 != null and fzdm24 != ''"> fzdm24 , </if>
|
||||||
|
<if test="fzdm25 != null and fzdm25 != ''"> fzdm25 , </if>
|
||||||
|
<if test="fzdm26 != null and fzdm26 != ''"> fzdm26 , </if>
|
||||||
|
<if test="fzdm27 != null and fzdm27 != ''"> fzdm27 , </if>
|
||||||
|
<if test="fzdm28 != null and fzdm28 != ''"> fzdm28 , </if>
|
||||||
|
<if test="fzdm29 != null and fzdm29 != ''"> fzdm29 , </if>
|
||||||
|
<if test="fzdm30 != null and fzdm30 != ''"> fzdm30 , </if>
|
||||||
|
<if test="zdylb != null and zdylb != ''"> zdylb , </if>
|
||||||
|
<if test="zdydm != null and zdydm != ''"> zdydm , </if>
|
||||||
|
<if test="ncj != null"> ncj , </if>
|
||||||
|
<if test="ncd != null"> ncd , </if>
|
||||||
|
<if test="yj1 != null"> yj1 , </if>
|
||||||
|
<if test="yd1 != null"> yd1 , </if>
|
||||||
|
<if test="yj2 != null"> yj2 , </if>
|
||||||
|
<if test="yd2 != null"> yd2 , </if>
|
||||||
|
<if test="yj3 != null"> yj3 , </if>
|
||||||
|
<if test="yd3 != null"> yd3 , </if>
|
||||||
|
<if test="yj4 != null"> yj4 , </if>
|
||||||
|
<if test="yd4 != null"> yd4 , </if>
|
||||||
|
<if test="yj5 != null"> yj5 , </if>
|
||||||
|
<if test="yd5 != null"> yd5 , </if>
|
||||||
|
<if test="yj6 != null"> yj6 , </if>
|
||||||
|
<if test="yd6 != null"> yd6 , </if>
|
||||||
|
<if test="yj7 != null"> yj7 , </if>
|
||||||
|
<if test="yd7 != null"> yd7 , </if>
|
||||||
|
<if test="yj8 != null"> yj8 , </if>
|
||||||
|
<if test="yd8 != null"> yd8 , </if>
|
||||||
|
<if test="yj9 != null"> yj9 , </if>
|
||||||
|
<if test="yd9 != null"> yd9 , </if>
|
||||||
|
<if test="yj10 != null"> yj10 , </if>
|
||||||
|
<if test="yd10 != null"> yd10 , </if>
|
||||||
|
<if test="yj11 != null"> yj11 , </if>
|
||||||
|
<if test="yd11 != null"> yd11 , </if>
|
||||||
|
<if test="yj12 != null"> yj12 , </if>
|
||||||
|
<if test="yd12 != null"> yd12 , </if>
|
||||||
|
<if test="yj13 != null"> yj13 , </if>
|
||||||
|
<if test="yd13 != null"> yd13, </if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm!=''"> kjtxdm </if>
|
||||||
|
</trim>
|
||||||
|
)values(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> #{kmdm} ,</if>
|
||||||
|
<if test="yeblx != null and yeblx != ''"> #{yeblx} ,</if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> #{wbdm} ,</if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
|
||||||
|
<if test="zth != null and zth != ''"> #{zth} ,</if>
|
||||||
|
<if test="fzdm0 != null and fzdm0 != ''"> #{fzdm0} ,</if>
|
||||||
|
<if test="fzdm1 != null and fzdm1 != ''"> #{fzdm1} ,</if>
|
||||||
|
<if test="fzdm2 != null and fzdm2 != ''"> #{fzdm2} ,</if>
|
||||||
|
<if test="fzdm3 != null and fzdm3 != ''"> #{fzdm3} ,</if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> #{fzdm4} ,</if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> #{fzdm5} ,</if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> #{fzdm6} ,</if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> #{fzdm7} ,</if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> #{fzdm8} ,</if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> #{fzdm9} ,</if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> #{fzdm10} ,</if>
|
||||||
|
<if test="fzdm11 != null and fzdm11 != ''"> #{fzdm11} , </if>
|
||||||
|
<if test="fzdm12 != null and fzdm12 != ''"> #{fzdm12} , </if>
|
||||||
|
<if test="fzdm13 != null and fzdm13 != ''"> #{fzdm13} , </if>
|
||||||
|
<if test="fzdm14 != null and fzdm14 != ''"> #{fzdm14} , </if>
|
||||||
|
<if test="fzdm15 != null and fzdm15 != ''"> #{fzdm15} , </if>
|
||||||
|
<if test="fzdm16 != null and fzdm16 != ''"> #{fzdm16} , </if>
|
||||||
|
<if test="fzdm17 != null and fzdm17 != ''"> #{fzdm17} , </if>
|
||||||
|
<if test="fzdm18 != null and fzdm18 != ''"> #{fzdm18} , </if>
|
||||||
|
<if test="fzdm19 != null and fzdm19 != ''"> #{fzdm19} , </if>
|
||||||
|
<if test="fzdm20 != null and fzdm20 != ''"> #{fzdm20} , </if>
|
||||||
|
<if test="fzdm21 != null and fzdm21 != ''"> #{fzdm21} , </if>
|
||||||
|
<if test="fzdm22 != null and fzdm22 != ''"> #{fzdm22} , </if>
|
||||||
|
<if test="fzdm23 != null and fzdm23 != ''"> #{fzdm23} , </if>
|
||||||
|
<if test="fzdm24 != null and fzdm24 != ''"> #{fzdm24} , </if>
|
||||||
|
<if test="fzdm25 != null and fzdm25 != ''"> #{fzdm25} , </if>
|
||||||
|
<if test="fzdm26 != null and fzdm26 != ''"> #{fzdm26} , </if>
|
||||||
|
<if test="fzdm27 != null and fzdm27 != ''"> #{fzdm27} , </if>
|
||||||
|
<if test="fzdm28 != null and fzdm28 != ''"> #{fzdm28} , </if>
|
||||||
|
<if test="fzdm29 != null and fzdm29 != ''"> #{fzdm29} , </if>
|
||||||
|
<if test="fzdm30 != null and fzdm30 != ''"> #{fzdm30} , </if>
|
||||||
|
<if test="zdylb != null and zdylb != ''"> #{zdylb} ,</if>
|
||||||
|
<if test="zdydm != null and zdydm != ''"> #{zdydm} ,</if>
|
||||||
|
<if test="ncj != null"> #{ncj} ,</if>
|
||||||
|
<if test="ncd != null"> #{ncd} ,</if>
|
||||||
|
<if test="yj1 != null"> #{yj1} ,</if>
|
||||||
|
<if test="yd1 != null"> #{yd1} ,</if>
|
||||||
|
<if test="yj2 != null"> #{yj2} ,</if>
|
||||||
|
<if test="yd2 != null"> #{yd2} ,</if>
|
||||||
|
<if test="yj3 != null"> #{yj3} ,</if>
|
||||||
|
<if test="yd3 != null"> #{yd3} ,</if>
|
||||||
|
<if test="yj4 != null"> #{yj4} ,</if>
|
||||||
|
<if test="yd4 != null"> #{yd4} ,</if>
|
||||||
|
<if test="yj5 != null"> #{yj5} ,</if>
|
||||||
|
<if test="yd5 != null"> #{yd5} ,</if>
|
||||||
|
<if test="yj6 != null"> #{yj6} ,</if>
|
||||||
|
<if test="yd6 != null"> #{yd6} ,</if>
|
||||||
|
<if test="yj7 != null"> #{yj7} ,</if>
|
||||||
|
<if test="yd7 != null"> #{yd7} ,</if>
|
||||||
|
<if test="yj8 != null"> #{yj8} ,</if>
|
||||||
|
<if test="yd8 != null"> #{yd8} ,</if>
|
||||||
|
<if test="yj9 != null"> #{yj9} ,</if>
|
||||||
|
<if test="yd9 != null"> #{yd9} ,</if>
|
||||||
|
<if test="yj10 != null"> #{yj10} ,</if>
|
||||||
|
<if test="yd10 != null"> #{yd10} ,</if>
|
||||||
|
<if test="yj11 != null"> #{yj11} ,</if>
|
||||||
|
<if test="yd11 != null"> #{yd11} ,</if>
|
||||||
|
<if test="yj12 != null"> #{yj12} ,</if>
|
||||||
|
<if test="yd12 != null"> #{yd12} ,</if>
|
||||||
|
<if test="yj13 != null"> #{yj13} ,</if>
|
||||||
|
<if test="yd13 != null"> #{yd13}, </if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm!=''"> #{kjtxdm} </if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增 -->
|
||||||
|
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_yeb(kjnd, kmdm, yeblx, wbdm, gsdm, ZTH, fzdm0, fzdm1, fzdm2, fzdm3, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, zdylb, zdydm, ncj, ncd, yj1, yd1, yj2, yd2, yj3, yd3, yj4, yd4, yj5, yd5, yj6, yd6, yj7, yd7, yj8, yd8, yj9, yd9, yj10, yd10, yj11, yd11, yj12, yd12, yj13, yd13, ID)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.kjnd},#{entity.kmdm},#{entity.yeblx},#{entity.wbdm},#{entity.gsdm},#{entity.zth},#{entity.fzdm0},#{entity.fzdm1},#{entity.fzdm2},#{entity.fzdm3},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.zdylb},#{entity.zdydm},#{entity.ncj},#{entity.ncd},#{entity.yj1},#{entity.yd1},#{entity.yj2},#{entity.yd2},#{entity.yj3},#{entity.yd3},#{entity.yj4},#{entity.yd4},#{entity.yj5},#{entity.yd5},#{entity.yj6},#{entity.yd6},#{entity.yj7},#{entity.yd7},#{entity.yj8},#{entity.yd8},#{entity.yj9},#{entity.yd9},#{entity.yj10},#{entity.yd10},#{entity.yj11},#{entity.yd11},#{entity.yj12},#{entity.yd12},#{entity.yj13},#{entity.yd13},#{entity.id})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增或者修改-->
|
||||||
|
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_yeb(kjnd, kmdm, yeblx, wbdm, gsdm, ZTH, fzdm0, fzdm1, fzdm2, fzdm3, fzdm4, fzdm5, fzdm6, fzdm7, fzdm8, fzdm9, fzdm10, zdylb, zdydm, ncj, ncd, yj1, yd1, yj2, yd2, yj3, yd3, yj4, yd4, yj5, yd5, yj6, yd6, yj7, yd7, yj8, yd8, yj9, yd9, yj10, yd10, yj11, yd11, yj12, yd12, yj13, yd13, ID)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.kjnd},#{entity.kmdm},#{entity.yeblx},#{entity.wbdm},#{entity.gsdm},#{entity.zth},#{entity.fzdm0},#{entity.fzdm1},#{entity.fzdm2},#{entity.fzdm3},#{entity.fzdm4},#{entity.fzdm5},#{entity.fzdm6},#{entity.fzdm7},#{entity.fzdm8},#{entity.fzdm9},#{entity.fzdm10},#{entity.zdylb},#{entity.zdydm},#{entity.ncj},#{entity.ncd},#{entity.yj1},#{entity.yd1},#{entity.yj2},#{entity.yd2},#{entity.yj3},#{entity.yd3},#{entity.yj4},#{entity.yd4},#{entity.yj5},#{entity.yd5},#{entity.yj6},#{entity.yd6},#{entity.yj7},#{entity.yd7},#{entity.yj8},#{entity.yd8},#{entity.yj9},#{entity.yd9},#{entity.yj10},#{entity.yd10},#{entity.yj11},#{entity.yd11},#{entity.yj12},#{entity.yd12},#{entity.yj13},#{entity.yd13},#{entity.id})
|
||||||
|
</foreach>
|
||||||
|
on duplicate key update
|
||||||
|
kjnd = values(kjnd),
|
||||||
|
kmdm = values(kmdm),
|
||||||
|
yeblx = values(yeblx),
|
||||||
|
wbdm = values(wbdm),
|
||||||
|
gsdm = values(gsdm),
|
||||||
|
ZTH = values(ZTH),
|
||||||
|
fzdm0 = values(fzdm0),
|
||||||
|
fzdm1 = values(fzdm1),
|
||||||
|
fzdm2 = values(fzdm2),
|
||||||
|
fzdm3 = values(fzdm3),
|
||||||
|
fzdm4 = values(fzdm4),
|
||||||
|
fzdm5 = values(fzdm5),
|
||||||
|
fzdm6 = values(fzdm6),
|
||||||
|
fzdm7 = values(fzdm7),
|
||||||
|
fzdm8 = values(fzdm8),
|
||||||
|
fzdm9 = values(fzdm9),
|
||||||
|
fzdm10 = values(fzdm10),
|
||||||
|
zdylb = values(zdylb),
|
||||||
|
zdydm = values(zdydm),
|
||||||
|
ncj = values(ncj),
|
||||||
|
ncd = values(ncd),
|
||||||
|
yj1 = values(yj1),
|
||||||
|
yd1 = values(yd1),
|
||||||
|
yj2 = values(yj2),
|
||||||
|
yd2 = values(yd2),
|
||||||
|
yj3 = values(yj3),
|
||||||
|
yd3 = values(yd3),
|
||||||
|
yj4 = values(yj4),
|
||||||
|
yd4 = values(yd4),
|
||||||
|
yj5 = values(yj5),
|
||||||
|
yd5 = values(yd5),
|
||||||
|
yj6 = values(yj6),
|
||||||
|
yd6 = values(yd6),
|
||||||
|
yj7 = values(yj7),
|
||||||
|
yd7 = values(yd7),
|
||||||
|
yj8 = values(yj8),
|
||||||
|
yd8 = values(yd8),
|
||||||
|
yj9 = values(yj9),
|
||||||
|
yd9 = values(yd9),
|
||||||
|
yj10 = values(yj10),
|
||||||
|
yd10 = values(yd10),
|
||||||
|
yj11 = values(yj11),
|
||||||
|
yd11 = values(yd11),
|
||||||
|
yj12 = values(yj12),
|
||||||
|
yd12 = values(yd12),
|
||||||
|
yj13 = values(yj13),
|
||||||
|
yd13 = values(yd13),
|
||||||
|
ID = values(ID)</insert>
|
||||||
|
<!--通过主键修改方法-->
|
||||||
|
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" >
|
||||||
|
update gl_yeb set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> kjnd = #{kjnd},</if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> kmdm = #{kmdm},</if>
|
||||||
|
<if test="yeblx != null and yeblx != ''"> yeblx = #{yeblx},</if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> wbdm = #{wbdm},</if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
|
||||||
|
<if test="zth != null and zth != ''"> ZTH = #{zth},</if>
|
||||||
|
<if test="fzdm0 != null and fzdm0 != ''"> fzdm0 = #{fzdm0},</if>
|
||||||
|
<if test="fzdm1 != null and fzdm1 != ''"> fzdm1 = #{fzdm1},</if>
|
||||||
|
<if test="fzdm2 != null and fzdm2 != ''"> fzdm2 = #{fzdm2},</if>
|
||||||
|
<if test="fzdm3 != null and fzdm3 != ''"> fzdm3 = #{fzdm3},</if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> fzdm4 = #{fzdm4},</if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> fzdm5 = #{fzdm5},</if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> fzdm6 = #{fzdm6},</if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> fzdm7 = #{fzdm7},</if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> fzdm8 = #{fzdm8},</if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> fzdm9 = #{fzdm9},</if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> fzdm10 = #{fzdm10},</if>
|
||||||
|
<if test="fzdm11 != null and fzdm11 != ''"> fzdm11 = #{fzdm11},</if>
|
||||||
|
<if test="fzdm12 != null and fzdm12 != ''"> fzdm12 = #{fzdm12},</if>
|
||||||
|
<if test="fzdm13 != null and fzdm13 != ''"> fzdm13 = #{fzdm13},</if>
|
||||||
|
<if test="fzdm14 != null and fzdm14 != ''"> fzdm14 = #{fzdm14},</if>
|
||||||
|
<if test="fzdm15 != null and fzdm15 != ''"> fzdm15 = #{fzdm15},</if>
|
||||||
|
<if test="fzdm16 != null and fzdm16 != ''"> fzdm16 = #{fzdm16},</if>
|
||||||
|
<if test="fzdm17 != null and fzdm17 != ''"> fzdm17 = #{fzdm17},</if>
|
||||||
|
<if test="fzdm18 != null and fzdm18 != ''"> fzdm18 = #{fzdm18},</if>
|
||||||
|
<if test="fzdm19 != null and fzdm19 != ''"> fzdm19 = #{fzdm19},</if>
|
||||||
|
<if test="fzdm20 != null and fzdm20 != ''"> fzdm20 = #{fzdm20},</if>
|
||||||
|
<if test="fzdm21 != null and fzdm21 != ''"> fzdm21 = #{fzdm21},</if>
|
||||||
|
<if test="fzdm22 != null and fzdm22 != ''"> fzdm22 = #{fzdm22},</if>
|
||||||
|
<if test="fzdm23 != null and fzdm23 != ''"> fzdm23 = #{fzdm23},</if>
|
||||||
|
<if test="fzdm24 != null and fzdm24 != ''"> fzdm24 = #{fzdm24},</if>
|
||||||
|
<if test="fzdm25 != null and fzdm25 != ''"> fzdm25 = #{fzdm25},</if>
|
||||||
|
<if test="fzdm26 != null and fzdm26 != ''"> fzdm26 = #{fzdm26},</if>
|
||||||
|
<if test="fzdm27 != null and fzdm27 != ''"> fzdm27 = #{fzdm27},</if>
|
||||||
|
<if test="fzdm28 != null and fzdm28 != ''"> fzdm28 = #{fzdm28},</if>
|
||||||
|
<if test="fzdm29 != null and fzdm29 != ''"> fzdm29 = #{fzdm29},</if>
|
||||||
|
<if test="fzdm30 != null and fzdm30 != ''"> fzdm30 = #{fzdm30},</if>
|
||||||
|
<if test="zdylb != null and zdylb != ''"> zdylb = #{zdylb},</if>
|
||||||
|
<if test="zdydm != null and zdydm != ''"> zdydm = #{zdydm},</if>
|
||||||
|
<if test="ncj != null"> ncj = #{ncj},</if>
|
||||||
|
<if test="ncd != null"> ncd = #{ncd},</if>
|
||||||
|
<if test="yj1 != null"> yj1 = #{yj1},</if>
|
||||||
|
<if test="yd1 != null"> yd1 = #{yd1},</if>
|
||||||
|
<if test="yj2 != null"> yj2 = #{yj2},</if>
|
||||||
|
<if test="yd2 != null"> yd2 = #{yd2},</if>
|
||||||
|
<if test="yj3 != null"> yj3 = #{yj3},</if>
|
||||||
|
<if test="yd3 != null"> yd3 = #{yd3},</if>
|
||||||
|
<if test="yj4 != null"> yj4 = #{yj4},</if>
|
||||||
|
<if test="yd4 != null"> yd4 = #{yd4},</if>
|
||||||
|
<if test="yj5 != null"> yj5 = #{yj5},</if>
|
||||||
|
<if test="yd5 != null"> yd5 = #{yd5},</if>
|
||||||
|
<if test="yj6 != null"> yj6 = #{yj6},</if>
|
||||||
|
<if test="yd6 != null"> yd6 = #{yd6},</if>
|
||||||
|
<if test="yj7 != null"> yj7 = #{yj7},</if>
|
||||||
|
<if test="yd7 != null"> yd7 = #{yd7},</if>
|
||||||
|
<if test="yj8 != null"> yj8 = #{yj8},</if>
|
||||||
|
<if test="yd8 != null"> yd8 = #{yd8},</if>
|
||||||
|
<if test="yj9 != null"> yj9 = #{yj9},</if>
|
||||||
|
<if test="yd9 != null"> yd9 = #{yd9},</if>
|
||||||
|
<if test="yj10 != null"> yj10 = #{yj10},</if>
|
||||||
|
<if test="yd10 != null"> yd10 = #{yd10},</if>
|
||||||
|
<if test="yj11 != null"> yj11 = #{yj11},</if>
|
||||||
|
<if test="yd11 != null"> yd11 = #{yd11},</if>
|
||||||
|
<if test="yj12 != null"> yj12 = #{yj12},</if>
|
||||||
|
<if test="yd12 != null"> yd12 = #{yd12},</if>
|
||||||
|
<if test="yj13 != null"> yj13 = #{yj13},</if>
|
||||||
|
<if test="yd13 != null"> yd13 = #{yd13},</if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm!=''"> kjtxdm = #{kjtxdm}</if>
|
||||||
|
</trim>
|
||||||
|
where ID = #{id}
|
||||||
|
</update>
|
||||||
|
<!-- 逻辑删除 -->
|
||||||
|
<update id="SenderGlYebEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" >
|
||||||
|
update gl_yeb set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
where ID = #{id}
|
||||||
|
</update>
|
||||||
|
<!-- 多条件逻辑删除 -->
|
||||||
|
<update id="SenderGlYebEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity" >
|
||||||
|
update gl_yeb set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="yeblx != null and yeblx != ''"> and yeblx = #{yeblx} </if>
|
||||||
|
<if test="wbdm != null and wbdm != ''"> and wbdm = #{wbdm} </if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="fzdm0 != null and fzdm0 != ''"> and fzdm0 = #{fzdm0} </if>
|
||||||
|
<if test="fzdm1 != null and fzdm1 != ''"> and fzdm1 = #{fzdm1} </if>
|
||||||
|
<if test="fzdm2 != null and fzdm2 != ''"> and fzdm2 = #{fzdm2} </if>
|
||||||
|
<if test="fzdm3 != null and fzdm3 != ''"> and fzdm3 = #{fzdm3} </if>
|
||||||
|
<if test="fzdm4 != null and fzdm4 != ''"> and fzdm4 = #{fzdm4} </if>
|
||||||
|
<if test="fzdm5 != null and fzdm5 != ''"> and fzdm5 = #{fzdm5} </if>
|
||||||
|
<if test="fzdm6 != null and fzdm6 != ''"> and fzdm6 = #{fzdm6} </if>
|
||||||
|
<if test="fzdm7 != null and fzdm7 != ''"> and fzdm7 = #{fzdm7} </if>
|
||||||
|
<if test="fzdm8 != null and fzdm8 != ''"> and fzdm8 = #{fzdm8} </if>
|
||||||
|
<if test="fzdm9 != null and fzdm9 != ''"> and fzdm9 = #{fzdm9} </if>
|
||||||
|
<if test="fzdm10 != null and fzdm10 != ''"> and fzdm10 = #{fzdm10} </if>
|
||||||
|
<if test="zdylb != null and zdylb != ''"> and zdylb = #{zdylb} </if>
|
||||||
|
<if test="zdydm != null and zdydm != ''"> and zdydm = #{zdydm} </if>
|
||||||
|
<if test="ncj != null"> and ncj = #{ncj} </if>
|
||||||
|
<if test="ncd != null"> and ncd = #{ncd} </if>
|
||||||
|
<if test="yj1 != null"> and yj1 = #{yj1} </if>
|
||||||
|
<if test="yd1 != null"> and yd1 = #{yd1} </if>
|
||||||
|
<if test="yj2 != null"> and yj2 = #{yj2} </if>
|
||||||
|
<if test="yd2 != null"> and yd2 = #{yd2} </if>
|
||||||
|
<if test="yj3 != null"> and yj3 = #{yj3} </if>
|
||||||
|
<if test="yd3 != null"> and yd3 = #{yd3} </if>
|
||||||
|
<if test="yj4 != null"> and yj4 = #{yj4} </if>
|
||||||
|
<if test="yd4 != null"> and yd4 = #{yd4} </if>
|
||||||
|
<if test="yj5 != null"> and yj5 = #{yj5} </if>
|
||||||
|
<if test="yd5 != null"> and yd5 = #{yd5} </if>
|
||||||
|
<if test="yj6 != null"> and yj6 = #{yj6} </if>
|
||||||
|
<if test="yd6 != null"> and yd6 = #{yd6} </if>
|
||||||
|
<if test="yj7 != null"> and yj7 = #{yj7} </if>
|
||||||
|
<if test="yd7 != null"> and yd7 = #{yd7} </if>
|
||||||
|
<if test="yj8 != null"> and yj8 = #{yj8} </if>
|
||||||
|
<if test="yd8 != null"> and yd8 = #{yd8} </if>
|
||||||
|
<if test="yj9 != null"> and yj9 = #{yj9} </if>
|
||||||
|
<if test="yd9 != null"> and yd9 = #{yd9} </if>
|
||||||
|
<if test="yj10 != null"> and yj10 = #{yj10} </if>
|
||||||
|
<if test="yd10 != null"> and yd10 = #{yd10} </if>
|
||||||
|
<if test="yj11 != null"> and yj11 = #{yj11} </if>
|
||||||
|
<if test="yd11 != null"> and yd11 = #{yd11} </if>
|
||||||
|
<if test="yj12 != null"> and yj12 = #{yj12} </if>
|
||||||
|
<if test="yd12 != null"> and yd12 = #{yd12} </if>
|
||||||
|
<if test="yj13 != null"> and yj13 = #{yj13} </if>
|
||||||
|
<if test="yd13 != null"> and yd13 = #{yd13} </if>
|
||||||
|
<if test="id != null"> and ID = #{id} </if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm!=''"> and kjtxdm = #{kjtxdm} </if>
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="SenderGlYebEntity_delete">
|
||||||
|
delete from gl_yeb where ID = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
|
<!--通过会计年度,账套号,公司代码,科目代码删除-->
|
||||||
|
<delete id="SenderGlYebEntity_delete_yeb">
|
||||||
|
delete from gl_yeb where kjnd = #{kjnd} and gsdm=#{gsdm} and zth=#{zth}
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,69 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glYeb.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlYeb)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-07-08 11:12:24
|
||||||
|
*/
|
||||||
|
public interface ISenderGlYebService extends IBaseService<SenderGlYebEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 同步余额数据 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/8 11:47
|
||||||
|
* **/
|
||||||
|
Object glYebSynchronization(JSONObject json);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询余额数据 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/8 11:49
|
||||||
|
* **/
|
||||||
|
Object queryEntityPage(JSONObject json);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询余额数据 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/8 13:50
|
||||||
|
* **/
|
||||||
|
List<SenderGlYebEntity> queryEntityPageHealthBureau(SenderGlYebEntity senderGlYebEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存余额数据 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/8 13:51
|
||||||
|
* **/
|
||||||
|
Object saveEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除余额数据 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/7/16 13:48
|
||||||
|
* **/
|
||||||
|
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
}
|
|
@ -0,0 +1,363 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glYeb.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glYeb.dao.ISenderGlYebDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glYeb.service.ISenderGlYebService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||||
|
import com.hzya.frame.web.entity.BaseResult;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.mybatis.spring.SqlSessionTemplate;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlYeb)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-07-08 11:12:24
|
||||||
|
*/
|
||||||
|
@Service(value = "SenderGlYebServiceImpl")
|
||||||
|
public class SenderGlYebServiceImpl extends BaseService<SenderGlYebEntity, String> implements ISenderGlYebService {
|
||||||
|
|
||||||
|
|
||||||
|
private ISenderGlYebDao senderGlYebDao;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setSenderGlYebDao(ISenderGlYebDao dao) {
|
||||||
|
this.senderGlYebDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
|
||||||
|
//同步余额数据
|
||||||
|
@Override
|
||||||
|
public Object glYebSynchronization(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlYebEntity senderGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class);
|
||||||
|
List<SenderGlYebEntity> senderGlYebEntities=new ArrayList<>();
|
||||||
|
String result=null;
|
||||||
|
try {
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if(senderGlYebEntity.getKjnd()==null){
|
||||||
|
senderGlYebEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||||
|
}
|
||||||
|
/*try {
|
||||||
|
//同步南浔区人民医院001余额数据
|
||||||
|
senderGlYebEntity.setZth("001");
|
||||||
|
senderGlYebEntity.setGsdm("0101010101");
|
||||||
|
// senderGlYebEntity.setKmdm("1002010101");
|
||||||
|
logger.info("================开始查询南浔区人民医院余额表数据=================");
|
||||||
|
senderGlYebEntities= sqlSessionNxrm.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("南浔区人民医院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区人民医院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
try {
|
||||||
|
//同步南浔区练市人民医院003余额数据
|
||||||
|
senderGlYebEntity.setZth("003");
|
||||||
|
senderGlYebEntity.setGsdm("0101010103");
|
||||||
|
logger.info("================开始查询南浔区练市人民医院余额表数据=================");
|
||||||
|
senderGlYebEntities= senderGlYebDao.querySenderGlYebEntity(senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("南浔区练市人民医院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区练市人民医院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
/*try {
|
||||||
|
//同步练市镇中心卫生院005余额数据
|
||||||
|
senderGlYebEntity.setZth("005");
|
||||||
|
senderGlYebEntity.setGsdm("0101010202");
|
||||||
|
logger.info("================开始查询南浔区练市镇中心卫生院余额表数据=================");
|
||||||
|
senderGlYebEntities= sqlSessionNxrm.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("南浔区练市镇中心卫生院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区练市镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步善琏镇卫生院007余额数据
|
||||||
|
senderGlYebEntity.setZth("007");
|
||||||
|
senderGlYebEntity.setGsdm("0101010204");
|
||||||
|
logger.info("================开始查询南浔区善琏镇卫生院余额表数据=================");
|
||||||
|
senderGlYebEntities= sqlSessionNxrm.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步双林镇中心卫生院004余额数据
|
||||||
|
senderGlYebEntity.setZth("004");
|
||||||
|
senderGlYebEntity.setGsdm("0101010201");
|
||||||
|
senderGlYebEntities= sqlSessionSlz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("双林镇中心卫生院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("双林镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步菱湖镇中心卫生院009余额数据
|
||||||
|
senderGlYebEntity.setZth("009");
|
||||||
|
senderGlYebEntity.setGsdm("0101020201");
|
||||||
|
senderGlYebEntities= sqlSessionLhz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("菱湖镇中心卫生院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("菱湖镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步和孚镇卫生院010余额数据
|
||||||
|
senderGlYebEntity.setZth("010");
|
||||||
|
senderGlYebEntity.setGsdm("0101020202");
|
||||||
|
senderGlYebEntities= sqlSessionHfz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("和孚镇卫生院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("和孚镇卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步千金镇卫生院011余额数据
|
||||||
|
senderGlYebEntity.setZth("011");
|
||||||
|
senderGlYebEntity.setGsdm("0101020203");
|
||||||
|
senderGlYebEntities= sqlSessionQjz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("千金镇卫生院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("千金镇卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步石崇镇卫生院012余额数据
|
||||||
|
senderGlYebEntity.setZth("012");
|
||||||
|
senderGlYebEntity.setGsdm("0101020204");
|
||||||
|
senderGlYebEntities= sqlSessionScz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("石崇镇卫生院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("石崇镇卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步南浔镇中心卫生院014余额数据
|
||||||
|
senderGlYebEntity.setZth("014");
|
||||||
|
senderGlYebEntity.setGsdm("010202");
|
||||||
|
senderGlYebEntities= sqlSessionNxz.selectList("SenderGlYebEntity_list_base",senderGlYebEntity);
|
||||||
|
result =sendYebToHealthBureauTwo(senderGlYebEntities);
|
||||||
|
logger.info("南浔镇中心卫生院GRPU8余额数据同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔镇中心卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("卫生院GRPU8余额数据同步失败:{}",e.getMessage());
|
||||||
|
}
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("result",result);
|
||||||
|
return jsonObject1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private String sendYebToHealthBureauTwo(List<SenderGlYebEntity> senderGlYebEntities){
|
||||||
|
if (CollectionUtils.isEmpty(senderGlYebEntities)) {
|
||||||
|
logger.info("GRPU8没有需要同步得余额数据信息");
|
||||||
|
return "GRPU8没有需要同步得余额数据信息";
|
||||||
|
} else {
|
||||||
|
//先删除再保存 根据会计年度,公司代码,账套号删除
|
||||||
|
SenderGlYebEntity receiverGlYebEntity = new SenderGlYebEntity();
|
||||||
|
receiverGlYebEntity.setKjnd(senderGlYebEntities.get(0).getKjnd());
|
||||||
|
//receiverGlYebEntity.setKjnd("2021");
|
||||||
|
receiverGlYebEntity.setGsdm(senderGlYebEntities.get(0).getGsdm());
|
||||||
|
receiverGlYebEntity.setZth(senderGlYebEntities.get(0).getZth());
|
||||||
|
try {
|
||||||
|
JSONObject jsonObjectStr=new JSONObject();
|
||||||
|
jsonObjectStr.put("jsonStr",receiverGlYebEntity);
|
||||||
|
logger.info("========开始将卫生局得GRPU8账套号:{},公司代码:{},会计年度:{}的余额数据删除==========",senderGlYebEntities.get(0).getZth(),senderGlYebEntities.get(0).getGsdm(),senderGlYebEntities.get(0).getKjnd());
|
||||||
|
deleteEntityHealthBureau(jsonObjectStr);
|
||||||
|
logger.info("========卫生局得GRPU8账套号:{},公司代码:{},会计年度:{}的余额数据删除完毕==========",senderGlYebEntities.get(0).getZth(),senderGlYebEntities.get(0).getGsdm(),senderGlYebEntities.get(0).getKjnd());
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("{}得GRPU8余额数据删除失败:{}", senderGlYebEntities.get(0).getZth(),e.getMessage());
|
||||||
|
return "卫生院GRPU8余额数据删除失败";
|
||||||
|
}
|
||||||
|
for (SenderGlYebEntity senderGlYebEntity : senderGlYebEntities) {
|
||||||
|
//senderGlYebEntity.setKjnd("2021");
|
||||||
|
JSONObject jsonObjectStrSave = new JSONObject();
|
||||||
|
jsonObjectStrSave.put("jsonStr", senderGlYebEntity);
|
||||||
|
try {
|
||||||
|
//保存数据
|
||||||
|
logger.info("========开始将账套号为:{}得GRPU8余额数据同步新增到卫生局GRPU8余额数据中==========",senderGlYebEntity.getZth());
|
||||||
|
saveEntityHealthBureau(jsonObjectStrSave);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("账套号:{}得GRPU8余额数据新增失败:{}",senderGlYebEntity.getZth(), e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "同步卫生院GROU8余额数据成功";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询余额数据
|
||||||
|
@Override
|
||||||
|
public Object queryEntityPage(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlYebEntity senderGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class);
|
||||||
|
List<SenderGlYebEntity> senderGlYebEntities=new ArrayList<>();
|
||||||
|
try {
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if(senderGlYebEntity.getKjnd()==null){
|
||||||
|
senderGlYebEntity.setKjnd(String.valueOf(DateUtil.format(new Date(),"yyyy")));
|
||||||
|
}
|
||||||
|
if(StrUtil.isEmpty(senderGlYebEntity.getZth())){
|
||||||
|
logger.info("======根据账套号:{}查询余额数据为空",senderGlYebEntity.getZth());
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递账套号");
|
||||||
|
}
|
||||||
|
/* switch (senderGlYebEntity.getGsdm()){
|
||||||
|
case "0101010103"://练市人民医院
|
||||||
|
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||||
|
break;
|
||||||
|
case "0101010201"://双林镇中心卫生院
|
||||||
|
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||||
|
break;
|
||||||
|
case "0101010202"://练市镇中心卫生院
|
||||||
|
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||||
|
break;
|
||||||
|
case "0101010204"://善琏镇卫生院
|
||||||
|
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||||
|
break;
|
||||||
|
case "0101020201":
|
||||||
|
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||||
|
break;
|
||||||
|
case "0101020202":
|
||||||
|
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||||
|
break;
|
||||||
|
case "0101020203":
|
||||||
|
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||||
|
break;
|
||||||
|
case "0101020204":
|
||||||
|
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||||
|
break;
|
||||||
|
case "0101010101"://南浔区人民医院
|
||||||
|
senderGlYebEntities = senderGlYebDao.queryByLike(senderGlYebEntity);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}*/
|
||||||
|
senderGlYebEntities = senderGlYebDao.querySenderGlYebEntity(senderGlYebEntity);
|
||||||
|
PageInfo pageInfo=new PageInfo(senderGlYebEntities);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("pageInfo",pageInfo);
|
||||||
|
return jsonObject1;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套号:{}查询卫生院GROU8余额数据失败:",senderGlYebEntity.getZth(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("查询余额数据失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//查询余额数据
|
||||||
|
@Override
|
||||||
|
public List<SenderGlYebEntity> queryEntityPageHealthBureau(SenderGlYebEntity senderGlYebEntity) {
|
||||||
|
try {
|
||||||
|
logger.info("====开始根据账套号:{}查询卫生局中得余额数据====",senderGlYebEntity.getZth());
|
||||||
|
List<SenderGlYebEntity> receiverGlYebEntities = senderGlYebDao.queryGlYebHealthBureau(senderGlYebEntity);
|
||||||
|
return receiverGlYebEntities;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套号:{}查询卫生局GRPU8余额数据错误:{}",senderGlYebEntity.getZth(),e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
//保存余额数据
|
||||||
|
@Override
|
||||||
|
public Object saveEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlYebEntity receiverGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class);
|
||||||
|
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("========保存余额数据时会计年度为空==========");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("kmdm"))) {
|
||||||
|
logger.info("========保存余额数据时科目代码为空==========");
|
||||||
|
return BaseResult.getFailureMessageEntity("科目代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||||
|
logger.info("========保存余额数据时公司代码为空==========");
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("zth"))) {
|
||||||
|
logger.info("========保存余额数据时账套号为空==========");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
logger.info("==========根据账套号:{}开始保存余额数据=========",receiverGlYebEntity.getZth());
|
||||||
|
SenderGlYebEntity glYebEntity = senderGlYebDao.saveGlYebHealthBureau(receiverGlYebEntity);
|
||||||
|
logger.info("==========根据账套号:{}保存得余额数据id为:{}=========",receiverGlYebEntity.getZth(),glYebEntity.getId());
|
||||||
|
/*logger.info("=========开始保存余额中间表========");
|
||||||
|
receiverGlYebEntity.setJid(glYebEntity.getId());//卫生局的id
|
||||||
|
receiverGlYebEntity.setYid(jsonObject.getString("id")==null?String.valueOf(UUIDLong.longUUID()):jsonObject.getString("id"));//卫生院的id
|
||||||
|
receiverGlYebEntity.setId(String.valueOf(UUIDLong.longUUID()));//自己本身的id
|
||||||
|
ReceiverGlYebEntity receiverGlYeb = receiverGlYebDao.saveReceiverGlYebRelevance(receiverGlYebEntity);
|
||||||
|
logger.info("==========保存得余额中间表的数据id为:{}=========",receiverGlYeb.getId());*/
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("yeb",glYebEntity);
|
||||||
|
return jsonObject1;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套号:{}保存卫生局GROU8余额数据失败,",receiverGlYebEntity.getZth(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("保存卫生局GROU8余额数据失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlYebEntity receiverGlYebEntity = jsonObject.toJavaObject(SenderGlYebEntity.class);
|
||||||
|
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("========保存余额数据时会计年度为空==========");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||||
|
logger.info("========保存余额数据时公司代码为空==========");
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("zth"))) {
|
||||||
|
logger.info("========保存余额数据时账套号为空==========");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
logger.info("==========开始删除余额数据,会计年度为:{},公司代码为:{},账套号为:{},科目代码为:{}=========",
|
||||||
|
jsonObject.getString("kjnd"),jsonObject.getString("gsdm"),jsonObject.getString("zth"),receiverGlYebEntity.getKmdm());
|
||||||
|
Integer integer = senderGlYebDao.deleteGlYebHealthBureau(receiverGlYebEntity);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("yeb",integer);
|
||||||
|
return jsonObject1;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套号:{},会计年度:{}删除卫生局GROU8余额数据失败,",receiverGlYebEntity.getZth(),receiverGlYebEntity.getKjnd(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("删除卫生局GROU8余额数据失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,89 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glZtcs.dao;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (gl_ztcs: table)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 09:45:03
|
||||||
|
*/
|
||||||
|
public interface ISenderGlZtcsDao extends IBaseDao<SenderGlZtcsEntity, String> {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询账套信息 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlZtcsEntity> querySenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存账套信息到账套日志表中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/27 15:33
|
||||||
|
* **/
|
||||||
|
SenderGlZtcsEntity saveSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新账套信息到账套日志表中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/27 15:36
|
||||||
|
* **/
|
||||||
|
SenderGlZtcsEntity updateSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询账套信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlZtcsEntity> queryGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存账套信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/27 15:33
|
||||||
|
* **/
|
||||||
|
SenderGlZtcsEntity saveGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新账套信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/27 15:36
|
||||||
|
* **/
|
||||||
|
SenderGlZtcsEntity updateGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除账套信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/9 17:23
|
||||||
|
* **/
|
||||||
|
Integer deleteGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glZtcs.dao.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glZtcs.dao.ISenderGlZtcsDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlZtcs)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 09:45:03
|
||||||
|
*/
|
||||||
|
@Repository(value = "SenderGlZtcsDaoImpl")
|
||||||
|
public class SenderGlZtcsDaoImpl extends MybatisGenericDao<SenderGlZtcsEntity, String> implements ISenderGlZtcsDao {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||||
|
public List<SenderGlZtcsEntity> querySenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||||
|
return super.queryByLike(senderGlZtcsEntity);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||||
|
public SenderGlZtcsEntity saveSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||||
|
return super.save(senderGlZtcsEntity);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||||
|
public SenderGlZtcsEntity updateSenderGlZtcsEntity(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||||
|
return super.update(senderGlZtcsEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||||
|
public List<SenderGlZtcsEntity> queryGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||||
|
return super.query(senderGlZtcsEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||||
|
public SenderGlZtcsEntity saveGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||||
|
return super.save(senderGlZtcsEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||||
|
public SenderGlZtcsEntity updateGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||||
|
return super.update(senderGlZtcsEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlZtcsEntity.dataSourceCode")
|
||||||
|
public Integer deleteGlZtcsHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||||
|
return super.delete("SenderGlZtcsEntity_delete_ztcs",senderGlZtcsEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,971 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glZtcs.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlZtcs)实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 09:45:03
|
||||||
|
*/
|
||||||
|
public class SenderGlZtcsEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String kjnd;//会计年度
|
||||||
|
private String ztbh;//账套编号
|
||||||
|
private String ztmc;//账套名称
|
||||||
|
private String ztmce;//账套全程
|
||||||
|
private String ztlb;//账套类别
|
||||||
|
private String hsdwdm;//核算单位代码
|
||||||
|
private String hsdwmc;//核算单位名称
|
||||||
|
private String bwbdm;//本位币代码
|
||||||
|
private String bwbmc;//本位币名称
|
||||||
|
private String yzkm;//预制科目模板
|
||||||
|
private Integer sjsj;//是否复制上级基础资料
|
||||||
|
private String bwbbf;//本位币币符
|
||||||
|
private String bwbdw;//本位币单位
|
||||||
|
private Integer bwbjd;//本位币金额小数位数
|
||||||
|
private String cwzg;//财务主管
|
||||||
|
private Integer kjqjs;//会计期间个数
|
||||||
|
private String qykjqj;//启用会计期间
|
||||||
|
private String wbhs;//是否外币核算
|
||||||
|
private String hllx;//汇率类型
|
||||||
|
private String sfyjz;//是否预记账
|
||||||
|
private String ztkz;//账套控制参数
|
||||||
|
private String yskz;
|
||||||
|
private String pzygkz;//凭证必输项
|
||||||
|
private String yspzkz;//原始凭证号严格核算
|
||||||
|
private Integer slxsws;//数量小数位数
|
||||||
|
private Integer djxsws;//单价小数位数
|
||||||
|
private String anyibz;//打印[安易软件]专用标志
|
||||||
|
private String kmbmfa;//科目编码方案
|
||||||
|
private String kmzbmfa;//科目组编码方案
|
||||||
|
private String bmbmfa;//部门编码方案
|
||||||
|
private String xmbmfa;//项目编码方案
|
||||||
|
private String dqbmfa;//地区编码方案
|
||||||
|
private String dwbmfa;//单位编码方案
|
||||||
|
private String xjbmfa;//现金编码方案
|
||||||
|
private String gsbmfa;//公司编码方案
|
||||||
|
private String bbpath;//用友安易报表路径
|
||||||
|
private String bkdtd;
|
||||||
|
private String bzdw;//报账单位
|
||||||
|
private String zbqyrq;
|
||||||
|
private String gkjzzf;
|
||||||
|
private String zbkzmb;
|
||||||
|
private String kzfs;
|
||||||
|
private String kzqj;
|
||||||
|
private String kzyj;
|
||||||
|
private String ybksy;
|
||||||
|
private String ybjsy;
|
||||||
|
private String zfpzbh;
|
||||||
|
private String bkdbh;
|
||||||
|
private String bkpzlx;
|
||||||
|
private String bkhskm;
|
||||||
|
private String bkyhkmyz;
|
||||||
|
private String zfscbkd;
|
||||||
|
private String bkdscpz;
|
||||||
|
private String szqxkz;
|
||||||
|
private String djxg;
|
||||||
|
private String djsh;
|
||||||
|
private String dybz;
|
||||||
|
private String jhsh;
|
||||||
|
private String zpscbk;
|
||||||
|
private String zphs;
|
||||||
|
private String dzkdm;
|
||||||
|
private String headbkdh;
|
||||||
|
private String bkdfs;
|
||||||
|
private String lrzy;
|
||||||
|
private Integer mjxsxsws;
|
||||||
|
private String wjsjlj;
|
||||||
|
private String sjkzbz;
|
||||||
|
private String needjfzb;
|
||||||
|
private String zdyfzyslbdm;
|
||||||
|
private String zdyfzyskzcs;
|
||||||
|
private String needyskm;
|
||||||
|
private String gkksbmfa;
|
||||||
|
private String pzbtdf;
|
||||||
|
private String ykjhyskm;
|
||||||
|
private String bkdxssjkm;
|
||||||
|
private String pzfjpath;
|
||||||
|
private String bkdxyfscz;
|
||||||
|
private String delmaxdh;
|
||||||
|
private String bkddataqxqy;
|
||||||
|
private String ykjhcs;
|
||||||
|
private String ykjhfs;
|
||||||
|
private String cnqzkm;
|
||||||
|
private String ztsx;
|
||||||
|
private String tsxkz;
|
||||||
|
private String zbkz;
|
||||||
|
private String wjz;
|
||||||
|
private String bkdxszhmc;
|
||||||
|
private Integer maxzdycount;
|
||||||
|
private String sjly;
|
||||||
|
private String flowcontrol;
|
||||||
|
private String cs1;
|
||||||
|
private String cs2;
|
||||||
|
private String cs3;
|
||||||
|
private String cs4;
|
||||||
|
private String cs5;
|
||||||
|
private String czyjkm;
|
||||||
|
|
||||||
|
private String kjyslbdm;
|
||||||
|
private String wbxsws;
|
||||||
|
private String hlxsws;
|
||||||
|
private String sfpxjz;
|
||||||
|
private String qyxbzw;
|
||||||
|
private String pxjzfs;
|
||||||
|
private String yzxjll;
|
||||||
|
private String nsrlx;
|
||||||
|
private String dzgd;
|
||||||
|
private String dzgdzttb;
|
||||||
|
|
||||||
|
public String getKjyslbdm() {
|
||||||
|
return kjyslbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjyslbdm(String kjyslbdm) {
|
||||||
|
this.kjyslbdm = kjyslbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWbxsws() {
|
||||||
|
return wbxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWbxsws(String wbxsws) {
|
||||||
|
this.wbxsws = wbxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHlxsws() {
|
||||||
|
return hlxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHlxsws(String hlxsws) {
|
||||||
|
this.hlxsws = hlxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSfpxjz() {
|
||||||
|
return sfpxjz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSfpxjz(String sfpxjz) {
|
||||||
|
this.sfpxjz = sfpxjz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQyxbzw() {
|
||||||
|
return qyxbzw;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQyxbzw(String qyxbzw) {
|
||||||
|
this.qyxbzw = qyxbzw;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPxjzfs() {
|
||||||
|
return pxjzfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPxjzfs(String pxjzfs) {
|
||||||
|
this.pxjzfs = pxjzfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYzxjll() {
|
||||||
|
return yzxjll;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYzxjll(String yzxjll) {
|
||||||
|
this.yzxjll = yzxjll;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNsrlx() {
|
||||||
|
return nsrlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNsrlx(String nsrlx) {
|
||||||
|
this.nsrlx = nsrlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDzgd() {
|
||||||
|
return dzgd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDzgd(String dzgd) {
|
||||||
|
this.dzgd = dzgd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDzgdzttb() {
|
||||||
|
return dzgdzttb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDzgdzttb(String dzgdzttb) {
|
||||||
|
this.dzgdzttb = dzgdzttb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjnd() {
|
||||||
|
return kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjnd(String kjnd) {
|
||||||
|
this.kjnd = kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZtbh() {
|
||||||
|
return ztbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZtbh(String ztbh) {
|
||||||
|
this.ztbh = ztbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZtmc() {
|
||||||
|
return ztmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZtmc(String ztmc) {
|
||||||
|
this.ztmc = ztmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZtmce() {
|
||||||
|
return ztmce;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZtmce(String ztmce) {
|
||||||
|
this.ztmce = ztmce;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZtlb() {
|
||||||
|
return ztlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZtlb(String ztlb) {
|
||||||
|
this.ztlb = ztlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHsdwdm() {
|
||||||
|
return hsdwdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHsdwdm(String hsdwdm) {
|
||||||
|
this.hsdwdm = hsdwdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHsdwmc() {
|
||||||
|
return hsdwmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHsdwmc(String hsdwmc) {
|
||||||
|
this.hsdwmc = hsdwmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBwbdm() {
|
||||||
|
return bwbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBwbdm(String bwbdm) {
|
||||||
|
this.bwbdm = bwbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBwbmc() {
|
||||||
|
return bwbmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBwbmc(String bwbmc) {
|
||||||
|
this.bwbmc = bwbmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYzkm() {
|
||||||
|
return yzkm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYzkm(String yzkm) {
|
||||||
|
this.yzkm = yzkm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSjsj() {
|
||||||
|
return sjsj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSjsj(Integer sjsj) {
|
||||||
|
this.sjsj = sjsj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBwbbf() {
|
||||||
|
return bwbbf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBwbbf(String bwbbf) {
|
||||||
|
this.bwbbf = bwbbf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBwbdw() {
|
||||||
|
return bwbdw;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBwbdw(String bwbdw) {
|
||||||
|
this.bwbdw = bwbdw;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getBwbjd() {
|
||||||
|
return bwbjd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBwbjd(Integer bwbjd) {
|
||||||
|
this.bwbjd = bwbjd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCwzg() {
|
||||||
|
return cwzg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCwzg(String cwzg) {
|
||||||
|
this.cwzg = cwzg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getKjqjs() {
|
||||||
|
return kjqjs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjqjs(Integer kjqjs) {
|
||||||
|
this.kjqjs = kjqjs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQykjqj() {
|
||||||
|
return qykjqj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQykjqj(String qykjqj) {
|
||||||
|
this.qykjqj = qykjqj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWbhs() {
|
||||||
|
return wbhs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWbhs(String wbhs) {
|
||||||
|
this.wbhs = wbhs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHllx() {
|
||||||
|
return hllx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHllx(String hllx) {
|
||||||
|
this.hllx = hllx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSfyjz() {
|
||||||
|
return sfyjz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSfyjz(String sfyjz) {
|
||||||
|
this.sfyjz = sfyjz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZtkz() {
|
||||||
|
return ztkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZtkz(String ztkz) {
|
||||||
|
this.ztkz = ztkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYskz() {
|
||||||
|
return yskz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYskz(String yskz) {
|
||||||
|
this.yskz = yskz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzygkz() {
|
||||||
|
return pzygkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzygkz(String pzygkz) {
|
||||||
|
this.pzygkz = pzygkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYspzkz() {
|
||||||
|
return yspzkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYspzkz(String yspzkz) {
|
||||||
|
this.yspzkz = yspzkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSlxsws() {
|
||||||
|
return slxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSlxsws(Integer slxsws) {
|
||||||
|
this.slxsws = slxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDjxsws() {
|
||||||
|
return djxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjxsws(Integer djxsws) {
|
||||||
|
this.djxsws = djxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAnyibz() {
|
||||||
|
return anyibz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAnyibz(String anyibz) {
|
||||||
|
this.anyibz = anyibz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmbmfa() {
|
||||||
|
return kmbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmbmfa(String kmbmfa) {
|
||||||
|
this.kmbmfa = kmbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmzbmfa() {
|
||||||
|
return kmzbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmzbmfa(String kmzbmfa) {
|
||||||
|
this.kmzbmfa = kmzbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBmbmfa() {
|
||||||
|
return bmbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBmbmfa(String bmbmfa) {
|
||||||
|
this.bmbmfa = bmbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXmbmfa() {
|
||||||
|
return xmbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXmbmfa(String xmbmfa) {
|
||||||
|
this.xmbmfa = xmbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDqbmfa() {
|
||||||
|
return dqbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDqbmfa(String dqbmfa) {
|
||||||
|
this.dqbmfa = dqbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDwbmfa() {
|
||||||
|
return dwbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDwbmfa(String dwbmfa) {
|
||||||
|
this.dwbmfa = dwbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXjbmfa() {
|
||||||
|
return xjbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXjbmfa(String xjbmfa) {
|
||||||
|
this.xjbmfa = xjbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGsbmfa() {
|
||||||
|
return gsbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGsbmfa(String gsbmfa) {
|
||||||
|
this.gsbmfa = gsbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBbpath() {
|
||||||
|
return bbpath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBbpath(String bbpath) {
|
||||||
|
this.bbpath = bbpath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkdtd() {
|
||||||
|
return bkdtd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkdtd(String bkdtd) {
|
||||||
|
this.bkdtd = bkdtd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBzdw() {
|
||||||
|
return bzdw;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBzdw(String bzdw) {
|
||||||
|
this.bzdw = bzdw;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZbqyrq() {
|
||||||
|
return zbqyrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZbqyrq(String zbqyrq) {
|
||||||
|
this.zbqyrq = zbqyrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGkjzzf() {
|
||||||
|
return gkjzzf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGkjzzf(String gkjzzf) {
|
||||||
|
this.gkjzzf = gkjzzf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZbkzmb() {
|
||||||
|
return zbkzmb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZbkzmb(String zbkzmb) {
|
||||||
|
this.zbkzmb = zbkzmb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKzfs() {
|
||||||
|
return kzfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKzfs(String kzfs) {
|
||||||
|
this.kzfs = kzfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKzqj() {
|
||||||
|
return kzqj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKzqj(String kzqj) {
|
||||||
|
this.kzqj = kzqj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKzyj() {
|
||||||
|
return kzyj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKzyj(String kzyj) {
|
||||||
|
this.kzyj = kzyj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYbksy() {
|
||||||
|
return ybksy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYbksy(String ybksy) {
|
||||||
|
this.ybksy = ybksy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYbjsy() {
|
||||||
|
return ybjsy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYbjsy(String ybjsy) {
|
||||||
|
this.ybjsy = ybjsy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZfpzbh() {
|
||||||
|
return zfpzbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZfpzbh(String zfpzbh) {
|
||||||
|
this.zfpzbh = zfpzbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkdbh() {
|
||||||
|
return bkdbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkdbh(String bkdbh) {
|
||||||
|
this.bkdbh = bkdbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkpzlx() {
|
||||||
|
return bkpzlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkpzlx(String bkpzlx) {
|
||||||
|
this.bkpzlx = bkpzlx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkhskm() {
|
||||||
|
return bkhskm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkhskm(String bkhskm) {
|
||||||
|
this.bkhskm = bkhskm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkyhkmyz() {
|
||||||
|
return bkyhkmyz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkyhkmyz(String bkyhkmyz) {
|
||||||
|
this.bkyhkmyz = bkyhkmyz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZfscbkd() {
|
||||||
|
return zfscbkd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZfscbkd(String zfscbkd) {
|
||||||
|
this.zfscbkd = zfscbkd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkdscpz() {
|
||||||
|
return bkdscpz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkdscpz(String bkdscpz) {
|
||||||
|
this.bkdscpz = bkdscpz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSzqxkz() {
|
||||||
|
return szqxkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSzqxkz(String szqxkz) {
|
||||||
|
this.szqxkz = szqxkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjxg() {
|
||||||
|
return djxg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjxg(String djxg) {
|
||||||
|
this.djxg = djxg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjsh() {
|
||||||
|
return djsh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjsh(String djsh) {
|
||||||
|
this.djsh = djsh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDybz() {
|
||||||
|
return dybz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDybz(String dybz) {
|
||||||
|
this.dybz = dybz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJhsh() {
|
||||||
|
return jhsh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJhsh(String jhsh) {
|
||||||
|
this.jhsh = jhsh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZpscbk() {
|
||||||
|
return zpscbk;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZpscbk(String zpscbk) {
|
||||||
|
this.zpscbk = zpscbk;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZphs() {
|
||||||
|
return zphs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZphs(String zphs) {
|
||||||
|
this.zphs = zphs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDzkdm() {
|
||||||
|
return dzkdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDzkdm(String dzkdm) {
|
||||||
|
this.dzkdm = dzkdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHeadbkdh() {
|
||||||
|
return headbkdh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHeadbkdh(String headbkdh) {
|
||||||
|
this.headbkdh = headbkdh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkdfs() {
|
||||||
|
return bkdfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkdfs(String bkdfs) {
|
||||||
|
this.bkdfs = bkdfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLrzy() {
|
||||||
|
return lrzy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLrzy(String lrzy) {
|
||||||
|
this.lrzy = lrzy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMjxsxsws() {
|
||||||
|
return mjxsxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMjxsxsws(Integer mjxsxsws) {
|
||||||
|
this.mjxsxsws = mjxsxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWjsjlj() {
|
||||||
|
return wjsjlj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWjsjlj(String wjsjlj) {
|
||||||
|
this.wjsjlj = wjsjlj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSjkzbz() {
|
||||||
|
return sjkzbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSjkzbz(String sjkzbz) {
|
||||||
|
this.sjkzbz = sjkzbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNeedjfzb() {
|
||||||
|
return needjfzb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNeedjfzb(String needjfzb) {
|
||||||
|
this.needjfzb = needjfzb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZdyfzyslbdm() {
|
||||||
|
return zdyfzyslbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZdyfzyslbdm(String zdyfzyslbdm) {
|
||||||
|
this.zdyfzyslbdm = zdyfzyslbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZdyfzyskzcs() {
|
||||||
|
return zdyfzyskzcs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZdyfzyskzcs(String zdyfzyskzcs) {
|
||||||
|
this.zdyfzyskzcs = zdyfzyskzcs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNeedyskm() {
|
||||||
|
return needyskm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNeedyskm(String needyskm) {
|
||||||
|
this.needyskm = needyskm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGkksbmfa() {
|
||||||
|
return gkksbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGkksbmfa(String gkksbmfa) {
|
||||||
|
this.gkksbmfa = gkksbmfa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzbtdf() {
|
||||||
|
return pzbtdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzbtdf(String pzbtdf) {
|
||||||
|
this.pzbtdf = pzbtdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYkjhyskm() {
|
||||||
|
return ykjhyskm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYkjhyskm(String ykjhyskm) {
|
||||||
|
this.ykjhyskm = ykjhyskm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkdxssjkm() {
|
||||||
|
return bkdxssjkm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkdxssjkm(String bkdxssjkm) {
|
||||||
|
this.bkdxssjkm = bkdxssjkm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPzfjpath() {
|
||||||
|
return pzfjpath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPzfjpath(String pzfjpath) {
|
||||||
|
this.pzfjpath = pzfjpath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkdxyfscz() {
|
||||||
|
return bkdxyfscz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkdxyfscz(String bkdxyfscz) {
|
||||||
|
this.bkdxyfscz = bkdxyfscz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelmaxdh() {
|
||||||
|
return delmaxdh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelmaxdh(String delmaxdh) {
|
||||||
|
this.delmaxdh = delmaxdh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkddataqxqy() {
|
||||||
|
return bkddataqxqy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkddataqxqy(String bkddataqxqy) {
|
||||||
|
this.bkddataqxqy = bkddataqxqy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYkjhcs() {
|
||||||
|
return ykjhcs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYkjhcs(String ykjhcs) {
|
||||||
|
this.ykjhcs = ykjhcs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYkjhfs() {
|
||||||
|
return ykjhfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYkjhfs(String ykjhfs) {
|
||||||
|
this.ykjhfs = ykjhfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCnqzkm() {
|
||||||
|
return cnqzkm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCnqzkm(String cnqzkm) {
|
||||||
|
this.cnqzkm = cnqzkm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZtsx() {
|
||||||
|
return ztsx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZtsx(String ztsx) {
|
||||||
|
this.ztsx = ztsx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTsxkz() {
|
||||||
|
return tsxkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTsxkz(String tsxkz) {
|
||||||
|
this.tsxkz = tsxkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZbkz() {
|
||||||
|
return zbkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZbkz(String zbkz) {
|
||||||
|
this.zbkz = zbkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWjz() {
|
||||||
|
return wjz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWjz(String wjz) {
|
||||||
|
this.wjz = wjz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBkdxszhmc() {
|
||||||
|
return bkdxszhmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBkdxszhmc(String bkdxszhmc) {
|
||||||
|
this.bkdxszhmc = bkdxszhmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMaxzdycount() {
|
||||||
|
return maxzdycount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxzdycount(Integer maxzdycount) {
|
||||||
|
this.maxzdycount = maxzdycount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSjly() {
|
||||||
|
return sjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSjly(String sjly) {
|
||||||
|
this.sjly = sjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFlowcontrol() {
|
||||||
|
return flowcontrol;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFlowcontrol(String flowcontrol) {
|
||||||
|
this.flowcontrol = flowcontrol;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCs1() {
|
||||||
|
return cs1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCs1(String cs1) {
|
||||||
|
this.cs1 = cs1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCs2() {
|
||||||
|
return cs2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCs2(String cs2) {
|
||||||
|
this.cs2 = cs2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCs3() {
|
||||||
|
return cs3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCs3(String cs3) {
|
||||||
|
this.cs3 = cs3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCs4() {
|
||||||
|
return cs4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCs4(String cs4) {
|
||||||
|
this.cs4 = cs4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCs5() {
|
||||||
|
return cs5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCs5(String cs5) {
|
||||||
|
this.cs5 = cs5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCzyjkm() {
|
||||||
|
return czyjkm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCzyjkm(String czyjkm) {
|
||||||
|
this.czyjkm = czyjkm;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,80 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glZtcs.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glYeb.entity.SenderGlYebEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlZtcs)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 09:45:04
|
||||||
|
*/
|
||||||
|
public interface ISenderGlZtcsService extends IBaseService<SenderGlZtcsEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 同步账套信息 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 11:33
|
||||||
|
* **/
|
||||||
|
Object glZtcsSynchronization(JSONObject json);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询账套信息 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 18:55
|
||||||
|
* **/
|
||||||
|
Object queryEntityPage(JSONObject json);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询账套信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 18:55
|
||||||
|
* **/
|
||||||
|
List<SenderGlZtcsEntity> queryEntityPageHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存账套信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 14:02
|
||||||
|
* **/
|
||||||
|
Object saveEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新账套信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 14:09
|
||||||
|
* **/
|
||||||
|
Object updateEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除账套信息
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/9 17:21
|
||||||
|
* **/
|
||||||
|
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,491 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glZtcs.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glZtcs.dao.ISenderGlZtcsDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glZtcs.service.ISenderGlZtcsService;
|
||||||
|
import com.hzya.frame.web.entity.BaseResult;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.mybatis.spring.SqlSessionTemplate;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlZtcs)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 09:45:04
|
||||||
|
*/
|
||||||
|
@Service(value = "SenderGlZtcsServiceImpl")
|
||||||
|
public class SenderGlZtcsServiceImpl extends BaseService<SenderGlZtcsEntity, String> implements ISenderGlZtcsService {
|
||||||
|
|
||||||
|
|
||||||
|
private ISenderGlZtcsDao senderGlZtcsDao;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setSenderGlZtcsDao(ISenderGlZtcsDao dao) {
|
||||||
|
this.senderGlZtcsDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object glZtcsSynchronization(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlZtcsEntity senderGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||||
|
List<SenderGlZtcsEntity> senderGlZtcsEntities=new ArrayList<>();
|
||||||
|
String result=null;
|
||||||
|
try {
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if(senderGlZtcsEntity.getKjnd()==null){
|
||||||
|
senderGlZtcsEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||||
|
}
|
||||||
|
/*try {
|
||||||
|
//同步南浔区人民医院001账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("001");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("0101010101");
|
||||||
|
logger.info("===========开始查询南浔区人民医院账套信息=============");
|
||||||
|
senderGlZtcsEntities= sqlSessionNxrm.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("南浔区人民医院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区人民医院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
try {
|
||||||
|
//同步南浔区练市人民医院003账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("003");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("0101010103");
|
||||||
|
logger.info("===========开始查询南浔区练市人民医院账套信息=============");
|
||||||
|
senderGlZtcsEntities= senderGlZtcsDao.querySenderGlZtcsEntity(senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("南浔区人民医院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区人民医院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
/*try {
|
||||||
|
//同步练市镇中心卫生院005账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("005");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("0101010202");
|
||||||
|
logger.info("===========开始查询南浔区练市镇中心卫生院账套信息=============");
|
||||||
|
senderGlZtcsEntities= sqlSessionNxrm.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("南浔区练市镇中心卫生院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区练市镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步善琏镇卫生院007账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("007");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("0101010204");
|
||||||
|
logger.info("===========开始查询南浔区善琏镇卫生院账套信息=============");
|
||||||
|
senderGlZtcsEntities= sqlSessionNxrm.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步双林镇中心卫生院004账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("004");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("0101010201");
|
||||||
|
senderGlZtcsEntities= sqlSessionSlz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("双林镇中心卫生院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("双林镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步菱湖镇中心卫生院009账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("009");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("0101020201");
|
||||||
|
senderGlZtcsEntities= sqlSessionLhz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("菱湖镇中心卫生院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("菱湖镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步和孚镇卫生院010账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("010");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("0101020202");
|
||||||
|
senderGlZtcsEntities= sqlSessionHfz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("和孚镇卫生院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("和孚镇卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步千金镇卫生院011账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("011");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("0101020203");
|
||||||
|
senderGlZtcsEntities= sqlSessionQjz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("千金镇卫生院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("千金镇卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步石崇镇卫生院012账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("012");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("0101020204");
|
||||||
|
senderGlZtcsEntities= sqlSessionScz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("石崇镇卫生院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("石崇镇卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步南浔镇中心卫生院014账套信息
|
||||||
|
senderGlZtcsEntity.setZtbh("014");
|
||||||
|
senderGlZtcsEntity.setHsdwdm("010202");
|
||||||
|
senderGlZtcsEntities= sqlSessionNxz.selectList("SenderGlZtcsEntity_list_base",senderGlZtcsEntity);
|
||||||
|
result=sendZtcsToHealthBureau(senderGlZtcsEntities);
|
||||||
|
logger.info("南浔镇中心卫生院GRPU8账套信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔镇中心卫生院GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("GRPU8账套信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("result",result);
|
||||||
|
return jsonObject1;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String sendZtcsToHealthBureau(List<SenderGlZtcsEntity> senderGlZtcsEntities){
|
||||||
|
if (CollectionUtils.isEmpty(senderGlZtcsEntities)) {
|
||||||
|
logger.info("GRPU8没有需要同步得账套信息信息");
|
||||||
|
return "GRPU8没有需要同步得账套信息信息";
|
||||||
|
} else {
|
||||||
|
for (SenderGlZtcsEntity ztcsEntity : senderGlZtcsEntities) {
|
||||||
|
//ztcsEntity.setKjnd("2021");
|
||||||
|
//ztcsEntity.setQykjqj(ztcsEntity.getQykjqj().replace("2024","2021"));
|
||||||
|
//根据会计年度,公司代码,核算单位代码查询数据是否已经同步过
|
||||||
|
SenderGlZtcsEntity receiverGlZtcsEntity = new SenderGlZtcsEntity();
|
||||||
|
receiverGlZtcsEntity.setKjnd(ztcsEntity.getKjnd());
|
||||||
|
receiverGlZtcsEntity.setZtbh(ztcsEntity.getZtbh());
|
||||||
|
receiverGlZtcsEntity.setHsdwdm(ztcsEntity.getHsdwdm());
|
||||||
|
try {
|
||||||
|
List<SenderGlZtcsEntity> receiverGlZtcsEntities = queryEntityPageHealthBureau(receiverGlZtcsEntity);
|
||||||
|
//设置id为会计年度,账套号,核算单位代码拼接,测试时候这样,具体看情况
|
||||||
|
ztcsEntity.setId(ztcsEntity.getKjnd() + '-' + ztcsEntity.getZtbh() + '-' + ztcsEntity.getHsdwdm());
|
||||||
|
JsonResultEntity jsonResultEntity=null;
|
||||||
|
if (CollectionUtils.isEmpty(receiverGlZtcsEntities)) {
|
||||||
|
//将数据保存
|
||||||
|
JSONObject jsonObjectStr = new JSONObject();
|
||||||
|
jsonObjectStr.put("jsonStr", ztcsEntity);
|
||||||
|
logger.info("===========开始将账套编码为:{}得GRPU8账套数据同步新增到卫生局GRPU8账套信息中=============",ztcsEntity.getZtmc());
|
||||||
|
Object o = saveEntityHealthBureau(jsonObjectStr);
|
||||||
|
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||||
|
if(json.getString("status").equals("200")){
|
||||||
|
//JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||||
|
logger.info("========账套编码{}得GROU8账套信息同步保存返回结果为:{}======",ztcsEntity.getZtmc(),json.getString("ztcs"));
|
||||||
|
}
|
||||||
|
/*if (jsonObjectAttribute != null && jsonResultEntity.getStatus().equals("200")) {
|
||||||
|
logger.info("===========开始将发送方得GRPU8账套数据新增到账套信息日志中=============");
|
||||||
|
//保存发送方得日志
|
||||||
|
ztcsEntity.setDataSourceCode(grp_data_source_code);
|
||||||
|
senderGlZtcsDao.saveSenderGlZtcsEntity(ztcsEntity);
|
||||||
|
}*/
|
||||||
|
} else {
|
||||||
|
//将数据更新
|
||||||
|
JSONObject jsonObjectStr = new JSONObject();
|
||||||
|
jsonObjectStr.put("jsonStr", ztcsEntity);
|
||||||
|
logger.info("===========开始将账套编码为:{}得GRPU8账套数据同步更新到卫生局GRPU8账套信息中=============",ztcsEntity.getZtmc());
|
||||||
|
Object o = updateEntityHealthBureau(jsonObjectStr);
|
||||||
|
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||||
|
if(json.getString("status").equalsIgnoreCase("200")){
|
||||||
|
//JSONObject jsonObjectAttribute = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||||
|
logger.info("========账套编码:{}得GROU8账套信息同步更新返回结果为:{}======",ztcsEntity.getZtmc(),json.getString("ztcs"));
|
||||||
|
}
|
||||||
|
/*if (jsonObjectAttribute != null && jsonResultEntity.getStatus().equals("200")) {
|
||||||
|
logger.info("===========开始将发送方得GRPU8账套数据更新到账套信息日志中=============");
|
||||||
|
//保存发送方得日志
|
||||||
|
ztcsEntity.setDataSourceCode(grp_data_source_code);
|
||||||
|
senderGlZtcsDao.updateSenderGlZtcsEntity(ztcsEntity);
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("账套编码:{}得GRPU8账套信息同步失败:{}",ztcsEntity.getZtmc(), e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "同步GROU8账套信息成功";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询账套信息
|
||||||
|
@Override
|
||||||
|
public Object queryEntityPage(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlZtcsEntity senderGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||||
|
List<SenderGlZtcsEntity> senderGlZtcsEntities=new ArrayList<>();
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if(senderGlZtcsEntity.getKjnd()==null){
|
||||||
|
senderGlZtcsEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||||
|
}
|
||||||
|
if(StrUtil.isEmpty(senderGlZtcsEntity.getZtbh())){
|
||||||
|
logger.info("======根据账套号:{}查询账套信息为空",senderGlZtcsEntity.getZtbh());
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递账套号");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
/*switch (senderGlZtcsEntity.getZtbh()){
|
||||||
|
case "003"://练市人民医院
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||||
|
break;
|
||||||
|
case "004"://双林镇中心卫生院
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||||
|
break;
|
||||||
|
case "005"://练市镇中心卫生院
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||||
|
break;
|
||||||
|
case "007"://善琏镇卫生院
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||||
|
break;
|
||||||
|
case "009":
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||||
|
break;
|
||||||
|
case "010":
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||||
|
break;
|
||||||
|
case "011":
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||||
|
break;
|
||||||
|
case "012":
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||||
|
break;
|
||||||
|
case "001"://南浔区人民医院
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.queryByLike(senderGlZtcsEntity);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}*/
|
||||||
|
senderGlZtcsEntities = senderGlZtcsDao.querySenderGlZtcsEntity(senderGlZtcsEntity);
|
||||||
|
PageInfo pageInfo=new PageInfo(senderGlZtcsEntities);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("pageInfo",pageInfo);
|
||||||
|
return jsonObject1;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("账套编码:{}查询GROU8账套信息失败:{}",senderGlZtcsEntity.getZtbh(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("查询GROU8账套信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//查询账套信息
|
||||||
|
@Override
|
||||||
|
public List<SenderGlZtcsEntity> queryEntityPageHealthBureau(SenderGlZtcsEntity senderGlZtcsEntity) {
|
||||||
|
try {
|
||||||
|
logger.info("=======根据账套号:{}查询卫生局得账套信息======",senderGlZtcsEntity.getZtbh());
|
||||||
|
List<SenderGlZtcsEntity> receiverGlZtcsEntities = senderGlZtcsDao.queryGlZtcsHealthBureau(senderGlZtcsEntity);
|
||||||
|
return receiverGlZtcsEntities;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("查询卫生局GROU8账套信息失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
//保存账套信息
|
||||||
|
@Override
|
||||||
|
public Object saveEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlZtcsEntity receiverGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||||
|
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("===========保存账套信息时会计年度为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("ztbh"))) {
|
||||||
|
logger.info("===========保存账套信息时账套编号为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("ztmc"))) {
|
||||||
|
logger.info("===========保存账套信息时账套名称为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套名称为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("ztmce"))) {
|
||||||
|
logger.info("===========保存账套信息时账套全称为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套全称为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("hsdwdm"))) {
|
||||||
|
logger.info("===========保存账套信息时核算单位代码为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("核算单位代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("hsdwmc"))) {
|
||||||
|
logger.info("===========保存账套信息时核算单位名称为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("核算单位名称为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("bwbdm"))) {
|
||||||
|
logger.info("===========保存账套信息时本位币代码为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("本位币代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("bwbmc"))) {
|
||||||
|
logger.info("===========保存账套信息时本位币名称为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("本位币名称为空");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
receiverGlZtcsEntity.setCwzg("1");
|
||||||
|
receiverGlZtcsEntity.setKjqjs(12);
|
||||||
|
receiverGlZtcsEntity.setWbhs("0");
|
||||||
|
receiverGlZtcsEntity.setHllx("G");
|
||||||
|
receiverGlZtcsEntity.setSfyjz("1");
|
||||||
|
receiverGlZtcsEntity.setYskz("0");
|
||||||
|
receiverGlZtcsEntity.setYspzkz("0");
|
||||||
|
receiverGlZtcsEntity.setSlxsws(4);
|
||||||
|
receiverGlZtcsEntity.setDjxsws(2);
|
||||||
|
receiverGlZtcsEntity.setAnyibz("1");
|
||||||
|
receiverGlZtcsEntity.setXjbmfa("8");
|
||||||
|
receiverGlZtcsEntity.setBkdtd("0");
|
||||||
|
receiverGlZtcsEntity.setGkjzzf("0");
|
||||||
|
receiverGlZtcsEntity.setZbkzmb("0");
|
||||||
|
receiverGlZtcsEntity.setKzfs("0");
|
||||||
|
receiverGlZtcsEntity.setKzqj("0");
|
||||||
|
receiverGlZtcsEntity.setKzyj("0");
|
||||||
|
receiverGlZtcsEntity.setYbksy("01");
|
||||||
|
receiverGlZtcsEntity.setYbjsy("03");
|
||||||
|
receiverGlZtcsEntity.setZfpzbh("M");
|
||||||
|
receiverGlZtcsEntity.setBkdbh("M");
|
||||||
|
receiverGlZtcsEntity.setBkhskm("0");
|
||||||
|
receiverGlZtcsEntity.setBkyhkmyz("0");
|
||||||
|
receiverGlZtcsEntity.setZfscbkd("0");
|
||||||
|
receiverGlZtcsEntity.setBkdscpz("0");
|
||||||
|
receiverGlZtcsEntity.setSzqxkz("0");
|
||||||
|
receiverGlZtcsEntity.setDjxg("0");
|
||||||
|
receiverGlZtcsEntity.setDjsh("0");
|
||||||
|
receiverGlZtcsEntity.setDybz("0");
|
||||||
|
receiverGlZtcsEntity.setJhsh("0");
|
||||||
|
receiverGlZtcsEntity.setZpscbk("0");
|
||||||
|
receiverGlZtcsEntity.setZphs("0");
|
||||||
|
receiverGlZtcsEntity.setHeadbkdh("0");
|
||||||
|
receiverGlZtcsEntity.setBkdfs("0");
|
||||||
|
receiverGlZtcsEntity.setLrzy("0");
|
||||||
|
receiverGlZtcsEntity.setMjxsxsws(2);
|
||||||
|
receiverGlZtcsEntity.setNeedjfzb("0");
|
||||||
|
receiverGlZtcsEntity.setNeedyskm("5");
|
||||||
|
receiverGlZtcsEntity.setPzbtdf("0");
|
||||||
|
receiverGlZtcsEntity.setYkjhyskm("0");
|
||||||
|
receiverGlZtcsEntity.setBkdxssjkm("0");
|
||||||
|
receiverGlZtcsEntity.setBkdxyfscz("0");
|
||||||
|
receiverGlZtcsEntity.setDelmaxdh("0");
|
||||||
|
receiverGlZtcsEntity.setBkddataqxqy("0");
|
||||||
|
receiverGlZtcsEntity.setYkjhcs("0");
|
||||||
|
receiverGlZtcsEntity.setYkjhfs("0");
|
||||||
|
receiverGlZtcsEntity.setBkdxszhmc("0");
|
||||||
|
receiverGlZtcsEntity.setMaxzdycount(20);
|
||||||
|
SenderGlZtcsEntity senderGlZtcsEntity=new SenderGlZtcsEntity();
|
||||||
|
senderGlZtcsEntity.setKjnd(receiverGlZtcsEntity.getKjnd());
|
||||||
|
senderGlZtcsEntity.setZtbh(receiverGlZtcsEntity.getZtbh());
|
||||||
|
senderGlZtcsEntity.setHsdwdm(receiverGlZtcsEntity.getHsdwdm());
|
||||||
|
List<SenderGlZtcsEntity> senderGlZtcsEntities = queryEntityPageHealthBureau(senderGlZtcsEntity);
|
||||||
|
if(CollectionUtils.isEmpty(senderGlZtcsEntities)){
|
||||||
|
receiverGlZtcsEntity.setId(receiverGlZtcsEntity.getKjnd()+'-'+receiverGlZtcsEntity.getZtbh()+'-'+receiverGlZtcsEntity.getHsdwdm());
|
||||||
|
logger.info("==========开始根据账套号为:{}保存账套信息,id为:{}=========",receiverGlZtcsEntity.getZtbh(),receiverGlZtcsEntity.getId());
|
||||||
|
SenderGlZtcsEntity receiverGlZtcsEntity1 = senderGlZtcsDao.saveGlZtcsHealthBureau(receiverGlZtcsEntity);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("ztcs",receiverGlZtcsEntity1);
|
||||||
|
return jsonObject1;
|
||||||
|
}else {
|
||||||
|
SenderGlZtcsEntity receiverGlZtcsEntity1 = senderGlZtcsDao.updateGlZtcsHealthBureau(receiverGlZtcsEntity);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("ztcs",receiverGlZtcsEntity1);
|
||||||
|
return jsonObject1;
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套编号:{}保存GROU8账套信息失败:{}",receiverGlZtcsEntity.getZtbh(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("保存GROU8账套信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//更新账套信息
|
||||||
|
@Override
|
||||||
|
public Object updateEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlZtcsEntity receiverGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||||
|
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("===========更新账套信息时会计年度为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("ztbh"))) {
|
||||||
|
logger.info("===========更新账套信息时账套编号为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("hsdwdm"))) {
|
||||||
|
logger.info("===========更新账套信息时核算单位代码=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("核算单位代码");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
receiverGlZtcsEntity.setId(receiverGlZtcsEntity.getKjnd()+'-'+receiverGlZtcsEntity.getZtbh()+'-'+receiverGlZtcsEntity.getHsdwdm());
|
||||||
|
logger.info("==========开始根据账套号:{}更新账套信息,id为:{}=========",receiverGlZtcsEntity.getZtbh(),receiverGlZtcsEntity.getId());
|
||||||
|
SenderGlZtcsEntity receiverGlZtcsEntity1 = senderGlZtcsDao.updateGlZtcsHealthBureau(receiverGlZtcsEntity);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("ztcs",receiverGlZtcsEntity1);
|
||||||
|
return jsonObject1;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套编号:{}更新GROU8账套信息失败:{}",receiverGlZtcsEntity.getZtbh(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新GROU8账套信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//删除账套信息
|
||||||
|
@Override
|
||||||
|
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlZtcsEntity receiverGlZtcsEntity = jsonObject.toJavaObject(SenderGlZtcsEntity.class);
|
||||||
|
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("===========删除账套信息时会计年度为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("ztbh"))) {
|
||||||
|
logger.info("===========删除账套信息时账套编号为空=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套编号为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("hsdwdm"))) {
|
||||||
|
logger.info("===========删除账套信息时核算单位代码=========");
|
||||||
|
return BaseResult.getFailureMessageEntity("核算单位代码");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
receiverGlZtcsEntity.setId(receiverGlZtcsEntity.getKjnd()+'-'+receiverGlZtcsEntity.getZtbh()+'-'+receiverGlZtcsEntity.getHsdwdm());
|
||||||
|
logger.info("==========开始根据账套号:{}和会计年度:{}删除账套信息=========",receiverGlZtcsEntity.getZtbh(),receiverGlZtcsEntity.getKjnd());
|
||||||
|
Integer integer = senderGlZtcsDao.deleteGlZtcsHealthBureau(receiverGlZtcsEntity);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("ztcs",integer);
|
||||||
|
return jsonObject1;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据账套编号:{}删除GROU8账套信息失败:{}",receiverGlZtcsEntity.getZtbh(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("删除GROU8账套信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glczrz.dao;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GL_Czrz: table)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 15:27:05
|
||||||
|
*/
|
||||||
|
public interface IGlCzrzDao extends IBaseDao<GlCzrzEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询操作日志的最大no值+1
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/6 15:45
|
||||||
|
* **/
|
||||||
|
GlCzrzEntity queryCzrzNo(GlCzrzEntity glCzrzEntity);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glczrz.dao.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glczrz.dao.IGlCzrzDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
/**
|
||||||
|
* (GlCzrz)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 15:27:05
|
||||||
|
*/
|
||||||
|
@Repository(value = "GlCzrzDaoImpl")
|
||||||
|
public class GlCzrzDaoImpl extends MybatisGenericDao<GlCzrzEntity, String> implements IGlCzrzDao {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GlCzrzEntity queryCzrzNo(GlCzrzEntity glCzrzEntity) {
|
||||||
|
return (GlCzrzEntity)super.selectOne("queryCzrzNo",glCzrzEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,98 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glczrz.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlCzrz)实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 15:27:05
|
||||||
|
*/
|
||||||
|
public class GlCzrzEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String station;
|
||||||
|
private Integer no;
|
||||||
|
private String name;
|
||||||
|
private String date;
|
||||||
|
private String zwrq;
|
||||||
|
private String qssj;
|
||||||
|
private String zzsj;
|
||||||
|
private String cznr;
|
||||||
|
private String cznrkz;
|
||||||
|
|
||||||
|
|
||||||
|
public String getStation() {
|
||||||
|
return station;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStation(String station) {
|
||||||
|
this.station = station;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getNo() {
|
||||||
|
return no;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNo(Integer no) {
|
||||||
|
this.no = no;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDate() {
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDate(String date) {
|
||||||
|
this.date = date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZwrq() {
|
||||||
|
return zwrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZwrq(String zwrq) {
|
||||||
|
this.zwrq = zwrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQssj() {
|
||||||
|
return qssj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQssj(String qssj) {
|
||||||
|
this.qssj = qssj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZzsj() {
|
||||||
|
return zzsj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZzsj(String zzsj) {
|
||||||
|
this.zzsj = zzsj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCznr() {
|
||||||
|
return cznr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCznr(String cznr) {
|
||||||
|
this.cznr = cznr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCznrkz() {
|
||||||
|
return cznrkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCznrkz(String cznrkz) {
|
||||||
|
this.cznrkz = cznrkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,194 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.glczrz.dao.impl.GlCzrzDaoImpl">
|
||||||
|
|
||||||
|
<resultMap id="get-GlCzrzEntity-result" type="com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" >
|
||||||
|
<result property="station" column="station" jdbcType="VARCHAR"/>
|
||||||
|
<result property="no" column="no" jdbcType="INTEGER"/>
|
||||||
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="date" column="date" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zwrq" column="zwrq" jdbcType="VARCHAR"/>
|
||||||
|
<result property="qssj" column="qssj" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zzsj" column="zzsj" jdbcType="VARCHAR"/>
|
||||||
|
<result property="cznr" column="cznr" jdbcType="VARCHAR"/>
|
||||||
|
<result property="cznrkz" column="CZNRKZ" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
<!-- 查询的字段-->
|
||||||
|
<sql id = "GlCzrzEntity_Base_Column_List">
|
||||||
|
station
|
||||||
|
,no
|
||||||
|
,name
|
||||||
|
,date
|
||||||
|
,zwrq
|
||||||
|
,qssj
|
||||||
|
,zzsj
|
||||||
|
,cznr
|
||||||
|
,CZNRKZ
|
||||||
|
</sql>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="entity_list_base" resultMap="get-GlCzrzEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
|
||||||
|
select
|
||||||
|
<include refid="GlCzrzEntity_Base_Column_List" />
|
||||||
|
from GL_Czrz
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="station != null and station != ''"> and station = #{station} </if>
|
||||||
|
<if test="no != null"> and no = #{no} </if>
|
||||||
|
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||||
|
<if test="date != null and date != ''"> and date = #{date} </if>
|
||||||
|
<if test="zwrq != null and zwrq != ''"> and zwrq = #{zwrq} </if>
|
||||||
|
<if test="qssj != null and qssj != ''"> and qssj = #{qssj} </if>
|
||||||
|
<if test="zzsj != null and zzsj != ''"> and zzsj = #{zzsj} </if>
|
||||||
|
<if test="cznr != null and cznr != ''"> and cznr = #{cznr} </if>
|
||||||
|
<if test="cznrkz != null and cznrkz != ''"> and CZNRKZ = #{cznrkz} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询符合条件的数量 -->
|
||||||
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
|
||||||
|
select count(1) from GL_Czrz
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="station != null and station != ''"> and station = #{station} </if>
|
||||||
|
<if test="no != null"> and no = #{no} </if>
|
||||||
|
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||||
|
<if test="date != null and date != ''"> and date = #{date} </if>
|
||||||
|
<if test="zwrq != null and zwrq != ''"> and zwrq = #{zwrq} </if>
|
||||||
|
<if test="qssj != null and qssj != ''"> and qssj = #{qssj} </if>
|
||||||
|
<if test="zzsj != null and zzsj != ''"> and zzsj = #{zzsj} </if>
|
||||||
|
<if test="cznr != null and cznr != ''"> and cznr = #{cznr} </if>
|
||||||
|
<if test="cznrkz != null and cznrkz != ''"> and CZNRKZ = #{cznrkz} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
|
<select id="entity_list_like" resultMap="get-GlCzrzEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
|
||||||
|
select
|
||||||
|
<include refid="GlCzrzEntity_Base_Column_List" />
|
||||||
|
from GL_Czrz
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="station != null and station != ''"> and station like concat('%',#{station},'%') </if>
|
||||||
|
<if test="no != null"> and no like concat('%',#{no},'%') </if>
|
||||||
|
<if test="name != null and name != ''"> and name like concat('%',#{name},'%') </if>
|
||||||
|
<if test="date != null and date != ''"> and date like concat('%',#{date},'%') </if>
|
||||||
|
<if test="zwrq != null and zwrq != ''"> and zwrq like concat('%',#{zwrq},'%') </if>
|
||||||
|
<if test="qssj != null and qssj != ''"> and qssj like concat('%',#{qssj},'%') </if>
|
||||||
|
<if test="zzsj != null and zzsj != ''"> and zzsj like concat('%',#{zzsj},'%') </if>
|
||||||
|
<if test="cznr != null and cznr != ''"> and cznr like concat('%',#{cznr},'%') </if>
|
||||||
|
<if test="cznrkz != null and cznrkz != ''"> and CZNRKZ like concat('%',#{cznrkz},'%') </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
|
<select id="GlCzrzentity_list_or" resultMap="get-GlCzrzEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
|
||||||
|
select
|
||||||
|
<include refid="GlCzrzEntity_Base_Column_List" />
|
||||||
|
from GL_Czrz
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="station != null and station != ''"> or station = #{station} </if>
|
||||||
|
<if test="no != null"> or no = #{no} </if>
|
||||||
|
<if test="name != null and name != ''"> or name = #{name} </if>
|
||||||
|
<if test="date != null and date != ''"> or date = #{date} </if>
|
||||||
|
<if test="zwrq != null and zwrq != ''"> or zwrq = #{zwrq} </if>
|
||||||
|
<if test="qssj != null and qssj != ''"> or qssj = #{qssj} </if>
|
||||||
|
<if test="zzsj != null and zzsj != ''"> or zzsj = #{zzsj} </if>
|
||||||
|
<if test="cznr != null and cznr != ''"> or cznr = #{cznr} </if>
|
||||||
|
<if test="cznrkz != null and cznrkz != ''"> or CZNRKZ = #{cznrkz} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--操作日志no最大值+1-->
|
||||||
|
<select id="queryCzrzNo" resultMap="get-GlCzrzEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity">
|
||||||
|
select isnull(max(no),0)+1 as no from Gl_czrz where station like concat(#{station},'%')
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--新增所有列-->
|
||||||
|
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" keyProperty="station" useGeneratedKeys="true">
|
||||||
|
insert into GL_Czrz(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="no != null"> no , </if>
|
||||||
|
<if test="name != null and name != ''"> name , </if>
|
||||||
|
<if test="date != null and date != ''"> date , </if>
|
||||||
|
<if test="zwrq != null and zwrq != ''"> zwrq , </if>
|
||||||
|
<if test="qssj != null and qssj != ''"> qssj , </if>
|
||||||
|
<if test="zzsj != null and zzsj != ''"> zzsj , </if>
|
||||||
|
<if test="cznr != null and cznr != ''"> cznr , </if>
|
||||||
|
<if test="cznrkz != null and cznrkz != ''"> CZNRKZ , </if>
|
||||||
|
<if test="station != null and station != ''"> station </if>
|
||||||
|
</trim>
|
||||||
|
)values(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="no != null"> #{no} ,</if>
|
||||||
|
<if test="name != null and name != ''"> #{name} ,</if>
|
||||||
|
<if test="date != null and date != ''"> select convert(char(8),getdate(),112),</if>
|
||||||
|
<if test="zwrq != null and zwrq != ''"> select convert(char(8),getdate(),112) ,</if>
|
||||||
|
<if test="qssj != null and qssj != ''"> select convert(char(8),getdate(),108) ,</if>
|
||||||
|
<if test="zzsj != null and zzsj != ''"> select convert(char(8),getdate(),108) ,</if>
|
||||||
|
<if test="cznr != null and cznr != ''"> #{cznr} ,</if>
|
||||||
|
<if test="cznrkz != null and cznrkz != ''"> #{cznrkz} ,</if>
|
||||||
|
<if test="station != null and station != ''"> #{station} </if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增 -->
|
||||||
|
<insert id="entityInsertBatch" keyProperty="station" useGeneratedKeys="true">
|
||||||
|
insert into GL_Czrz(name, date, zwrq, qssj, zzsj, cznr, CZNRKZ, sts)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.name},#{entity.date},#{entity.zwrq},#{entity.qssj},#{entity.zzsj},#{entity.cznr},#{entity.cznrkz}, 'Y')
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增或者修改-->
|
||||||
|
<insert id="entityInsertOrUpdateBatch" keyProperty="station" useGeneratedKeys="true">
|
||||||
|
insert into GL_Czrz(name, date, zwrq, qssj, zzsj, cznr, CZNRKZ)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.name},#{entity.date},#{entity.zwrq},#{entity.qssj},#{entity.zzsj},#{entity.cznr},#{entity.cznrkz})
|
||||||
|
</foreach>
|
||||||
|
on duplicate key update
|
||||||
|
name = values(name),
|
||||||
|
date = values(date),
|
||||||
|
zwrq = values(zwrq),
|
||||||
|
qssj = values(qssj),
|
||||||
|
zzsj = values(zzsj),
|
||||||
|
cznr = values(cznr),
|
||||||
|
CZNRKZ = values(CZNRKZ)</insert>
|
||||||
|
<!--通过主键修改方法-->
|
||||||
|
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" >
|
||||||
|
update GL_Czrz set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="name != null and name != ''"> name = #{name},</if>
|
||||||
|
<if test="date != null and date != ''"> date = #{date},</if>
|
||||||
|
<if test="zwrq != null and zwrq != ''"> zwrq = #{zwrq},</if>
|
||||||
|
<if test="qssj != null and qssj != ''"> qssj = #{qssj},</if>
|
||||||
|
<if test="zzsj != null and zzsj != ''"> zzsj = #{zzsj},</if>
|
||||||
|
<if test="cznr != null and cznr != ''"> cznr = #{cznr},</if>
|
||||||
|
<if test="cznrkz != null and cznrkz != ''"> CZNRKZ = #{cznrkz},</if>
|
||||||
|
</trim>
|
||||||
|
where station = #{station}
|
||||||
|
</update>
|
||||||
|
<!-- 逻辑删除 -->
|
||||||
|
<update id="entity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" >
|
||||||
|
update GL_Czrz set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
where station = #{station}
|
||||||
|
</update>
|
||||||
|
<!-- 多条件逻辑删除 -->
|
||||||
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity" >
|
||||||
|
update GL_Czrz set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="station != null and station != ''"> and station = #{station} </if>
|
||||||
|
<if test="no != null"> and no = #{no} </if>
|
||||||
|
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||||
|
<if test="date != null and date != ''"> and date = #{date} </if>
|
||||||
|
<if test="zwrq != null and zwrq != ''"> and zwrq = #{zwrq} </if>
|
||||||
|
<if test="qssj != null and qssj != ''"> and qssj = #{qssj} </if>
|
||||||
|
<if test="zzsj != null and zzsj != ''"> and zzsj = #{zzsj} </if>
|
||||||
|
<if test="cznr != null and cznr != ''"> and cznr = #{cznr} </if>
|
||||||
|
<if test="cznrkz != null and cznrkz != ''"> and CZNRKZ = #{cznrkz} </if>
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="entity_delete">
|
||||||
|
delete from GL_Czrz where station = #{station}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glczrz.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlCzrz)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 15:27:05
|
||||||
|
*/
|
||||||
|
public interface IGlCzrzService extends IBaseService<GlCzrzEntity, String> {
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glczrz.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glczrz.dao.IGlCzrzDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glczrz.entity.GlCzrzEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glczrz.service.IGlCzrzService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlCzrz)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 15:27:05
|
||||||
|
*/
|
||||||
|
@Service(value = "glCzrzService")
|
||||||
|
public class GlCzrzServiceImpl extends BaseService<GlCzrzEntity, String> implements IGlCzrzService {
|
||||||
|
|
||||||
|
private IGlCzrzDao glCzrzDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setGlCzrzDao(IGlCzrzDao dao) {
|
||||||
|
this.glCzrzDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glfzxzl.dao;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GL_Fzxzl: table)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 10:56:28
|
||||||
|
*/
|
||||||
|
public interface IGlFzxzlDao extends IBaseDao<GlFzxzlEntity, String> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glfzxzl.dao.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glfzxzl.dao.IGlFzxzlDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
/**
|
||||||
|
* (GlFzxzl)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 10:56:28
|
||||||
|
*/
|
||||||
|
@Repository(value = "GlFzxzlDaoImpl")
|
||||||
|
public class GlFzxzlDaoImpl extends MybatisGenericDao<GlFzxzlEntity, String> implements IGlFzxzlDao {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,179 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glfzxzl.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlFzxzl)实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 10:56:29
|
||||||
|
*/
|
||||||
|
public class GlFzxzlEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String gsdm;
|
||||||
|
private String kjnd;
|
||||||
|
private String lbdm;
|
||||||
|
private String fzdm;
|
||||||
|
private String fzmc;
|
||||||
|
private String zjm;
|
||||||
|
private String f1;
|
||||||
|
private String f2;
|
||||||
|
private String syzt;
|
||||||
|
private String bz;
|
||||||
|
private String sjly;
|
||||||
|
private Integer jlrId;
|
||||||
|
private String jlRq;
|
||||||
|
private Integer xgrId;
|
||||||
|
private String xgRq;
|
||||||
|
private String sfmx;
|
||||||
|
private String gnlb;
|
||||||
|
private String gnlbmc;
|
||||||
|
|
||||||
|
|
||||||
|
public String getGsdm() {
|
||||||
|
return gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGsdm(String gsdm) {
|
||||||
|
this.gsdm = gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjnd() {
|
||||||
|
return kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjnd(String kjnd) {
|
||||||
|
this.kjnd = kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLbdm() {
|
||||||
|
return lbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLbdm(String lbdm) {
|
||||||
|
this.lbdm = lbdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzdm() {
|
||||||
|
return fzdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzdm(String fzdm) {
|
||||||
|
this.fzdm = fzdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzmc() {
|
||||||
|
return fzmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzmc(String fzmc) {
|
||||||
|
this.fzmc = fzmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZjm() {
|
||||||
|
return zjm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZjm(String zjm) {
|
||||||
|
this.zjm = zjm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getF1() {
|
||||||
|
return f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setF1(String f1) {
|
||||||
|
this.f1 = f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getF2() {
|
||||||
|
return f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setF2(String f2) {
|
||||||
|
this.f2 = f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSyzt() {
|
||||||
|
return syzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSyzt(String syzt) {
|
||||||
|
this.syzt = syzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBz() {
|
||||||
|
return bz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBz(String bz) {
|
||||||
|
this.bz = bz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSjly() {
|
||||||
|
return sjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSjly(String sjly) {
|
||||||
|
this.sjly = sjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getJlrId() {
|
||||||
|
return jlrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJlrId(Integer jlrId) {
|
||||||
|
this.jlrId = jlrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJlRq() {
|
||||||
|
return jlRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJlRq(String jlRq) {
|
||||||
|
this.jlRq = jlRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getXgrId() {
|
||||||
|
return xgrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXgrId(Integer xgrId) {
|
||||||
|
this.xgrId = xgrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXgRq() {
|
||||||
|
return xgRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXgRq(String xgRq) {
|
||||||
|
this.xgRq = xgRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSfmx() {
|
||||||
|
return sfmx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSfmx(String sfmx) {
|
||||||
|
this.sfmx = sfmx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGnlb() {
|
||||||
|
return gnlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGnlb(String gnlb) {
|
||||||
|
this.gnlb = gnlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGnlbmc() {
|
||||||
|
return gnlbmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGnlbmc(String gnlbmc) {
|
||||||
|
this.gnlbmc = gnlbmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,284 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.glfzxzl.dao.impl.GlFzxzlDaoImpl">
|
||||||
|
|
||||||
|
<resultMap id="get-GlFzxzlEntity-result" type="com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" >
|
||||||
|
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
|
||||||
|
<result property="lbdm" column="lbdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzdm" column="fzdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzmc" column="fzmc" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zjm" column="zjm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="f1" column="f1" jdbcType="VARCHAR"/>
|
||||||
|
<result property="f2" column="f2" jdbcType="VARCHAR"/>
|
||||||
|
<result property="syzt" column="syzt" jdbcType="VARCHAR"/>
|
||||||
|
<result property="bz" column="bz" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sjly" column="Sjly" jdbcType="VARCHAR"/>
|
||||||
|
<result property="jlrId" column="Jlr_ID" jdbcType="INTEGER"/>
|
||||||
|
<result property="jlRq" column="Jl_RQ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="xgrId" column="Xgr_ID" jdbcType="INTEGER"/>
|
||||||
|
<result property="xgRq" column="Xg_RQ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sfmx" column="SFMX" jdbcType="VARCHAR"/>
|
||||||
|
<result property="gnlb" column="GNLB" jdbcType="VARCHAR"/>
|
||||||
|
<result property="gnlbmc" column="GNLBMC" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
<!-- 查询的字段-->
|
||||||
|
<sql id = "GlFzxzlEntity_Base_Column_List">
|
||||||
|
gsdm
|
||||||
|
,kjnd
|
||||||
|
,lbdm
|
||||||
|
,fzdm
|
||||||
|
,fzmc
|
||||||
|
,zjm
|
||||||
|
,f1
|
||||||
|
,f2
|
||||||
|
,syzt
|
||||||
|
,bz
|
||||||
|
,Sjly
|
||||||
|
,Jlr_ID
|
||||||
|
,Jl_RQ
|
||||||
|
,Xgr_ID
|
||||||
|
,Xg_RQ
|
||||||
|
,SFMX
|
||||||
|
,GNLB
|
||||||
|
,GNLBMC
|
||||||
|
</sql>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="entity_list_base" resultMap="get-GlFzxzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity">
|
||||||
|
select
|
||||||
|
<include refid="GlFzxzlEntity_Base_Column_List" />
|
||||||
|
from GL_Fzxzl
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||||
|
<if test="lbdm != null and lbdm != ''"> and lbdm = #{lbdm} </if>
|
||||||
|
<if test="fzdm != null and fzdm != ''"> and fzdm = #{fzdm} </if>
|
||||||
|
<if test="fzmc != null and fzmc != ''"> and fzmc = #{fzmc} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
|
||||||
|
<if test="f1 != null and f1 != ''"> and f1 = #{f1} </if>
|
||||||
|
<if test="f2 != null and f2 != ''"> and f2 = #{f2} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
|
||||||
|
<if test="bz != null and bz != ''"> and bz = #{bz} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
|
||||||
|
<if test="jlrId != null"> and Jlr_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and Jl_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> and Xgr_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and Xg_RQ = #{xgRq} </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
|
||||||
|
<if test="gnlb != null and gnlb != ''"> and GNLB = #{gnlb} </if>
|
||||||
|
<if test="gnlbmc != null and gnlbmc != ''"> and GNLBMC = #{gnlbmc} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询符合条件的数量 -->
|
||||||
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity">
|
||||||
|
select count(1) from GL_Fzxzl
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||||
|
<if test="lbdm != null and lbdm != ''"> and lbdm = #{lbdm} </if>
|
||||||
|
<if test="fzdm != null and fzdm != ''"> and fzdm = #{fzdm} </if>
|
||||||
|
<if test="fzmc != null and fzmc != ''"> and fzmc = #{fzmc} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
|
||||||
|
<if test="f1 != null and f1 != ''"> and f1 = #{f1} </if>
|
||||||
|
<if test="f2 != null and f2 != ''"> and f2 = #{f2} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
|
||||||
|
<if test="bz != null and bz != ''"> and bz = #{bz} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
|
||||||
|
<if test="jlrId != null"> and Jlr_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and Jl_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> and Xgr_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and Xg_RQ = #{xgRq} </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
|
||||||
|
<if test="gnlb != null and gnlb != ''"> and GNLB = #{gnlb} </if>
|
||||||
|
<if test="gnlbmc != null and gnlbmc != ''"> and GNLBMC = #{gnlbmc} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
|
<select id="entity_list_like" resultMap="get-GlFzxzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity">
|
||||||
|
select
|
||||||
|
<include refid="GlFzxzlEntity_Base_Column_List" />
|
||||||
|
from GL_Fzxzl
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm like concat('%',#{gsdm},'%') </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd like concat('%',#{kjnd},'%') </if>
|
||||||
|
<if test="lbdm != null and lbdm != ''"> and lbdm like concat('%',#{lbdm},'%') </if>
|
||||||
|
<if test="fzdm != null and fzdm != ''"> and fzdm like concat('%',#{fzdm},'%') </if>
|
||||||
|
<if test="fzmc != null and fzmc != ''"> and fzmc like concat('%',#{fzmc},'%') </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and zjm like concat('%',#{zjm},'%') </if>
|
||||||
|
<if test="f1 != null and f1 != ''"> and f1 like concat('%',#{f1},'%') </if>
|
||||||
|
<if test="f2 != null and f2 != ''"> and f2 like concat('%',#{f2},'%') </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </if>
|
||||||
|
<if test="bz != null and bz != ''"> and bz like concat('%',#{bz},'%') </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and Sjly like concat('%',#{sjly},'%') </if>
|
||||||
|
<if test="jlrId != null"> and Jlr_ID like concat('%',#{jlrId},'%') </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and Jl_RQ like concat('%',#{jlRq},'%') </if>
|
||||||
|
<if test="xgrId != null"> and Xgr_ID like concat('%',#{xgrId},'%') </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and Xg_RQ like concat('%',#{xgRq},'%') </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> and SFMX like concat('%',#{sfmx},'%') </if>
|
||||||
|
<if test="gnlb != null and gnlb != ''"> and GNLB like concat('%',#{gnlb},'%') </if>
|
||||||
|
<if test="gnlbmc != null and gnlbmc != ''"> and GNLBMC like concat('%',#{gnlbmc},'%') </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
|
<select id="GlFzxzlentity_list_or" resultMap="get-GlFzxzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity">
|
||||||
|
select
|
||||||
|
<include refid="GlFzxzlEntity_Base_Column_List" />
|
||||||
|
from GL_Fzxzl
|
||||||
|
<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="lbdm != null and lbdm != ''"> or lbdm = #{lbdm} </if>
|
||||||
|
<if test="fzdm != null and fzdm != ''"> or fzdm = #{fzdm} </if>
|
||||||
|
<if test="fzmc != null and fzmc != ''"> or fzmc = #{fzmc} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> or zjm = #{zjm} </if>
|
||||||
|
<if test="f1 != null and f1 != ''"> or f1 = #{f1} </if>
|
||||||
|
<if test="f2 != null and f2 != ''"> or f2 = #{f2} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> or syzt = #{syzt} </if>
|
||||||
|
<if test="bz != null and bz != ''"> or bz = #{bz} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> or Sjly = #{sjly} </if>
|
||||||
|
<if test="jlrId != null"> or Jlr_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> or Jl_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> or Xgr_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> or Xg_RQ = #{xgRq} </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> or SFMX = #{sfmx} </if>
|
||||||
|
<if test="gnlb != null and gnlb != ''"> or GNLB = #{gnlb} </if>
|
||||||
|
<if test="gnlbmc != null and gnlbmc != ''"> or GNLBMC = #{gnlbmc} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--新增所有列-->
|
||||||
|
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" keyProperty="gsdm" useGeneratedKeys="true">
|
||||||
|
insert into GL_Fzxzl(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> gsdm , </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
|
||||||
|
<if test="lbdm != null and lbdm != ''"> lbdm , </if>
|
||||||
|
<if test="fzdm != null and fzdm != ''"> fzdm , </if>
|
||||||
|
<if test="fzmc != null and fzmc != ''"> fzmc , </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> zjm , </if>
|
||||||
|
<if test="f1 != null and f1 != ''"> f1 , </if>
|
||||||
|
<if test="f2 != null and f2 != ''"> f2 , </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> syzt , </if>
|
||||||
|
<if test="bz != null and bz != ''"> bz , </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> Sjly , </if>
|
||||||
|
<if test="jlrId != null"> Jlr_ID , </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> Jl_RQ , </if>
|
||||||
|
<if test="xgrId != null"> Xgr_ID , </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> Xg_RQ , </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> SFMX , </if>
|
||||||
|
<if test="gnlb != null and gnlb != ''"> GNLB , </if>
|
||||||
|
<if test="gnlbmc != null and gnlbmc != ''"> GNLBMC , </if>
|
||||||
|
</trim>
|
||||||
|
)values(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
|
||||||
|
<if test="lbdm != null and lbdm != ''"> #{lbdm} ,</if>
|
||||||
|
<if test="fzdm != null and fzdm != ''"> #{fzdm} ,</if>
|
||||||
|
<if test="fzmc != null and fzmc != ''"> #{fzmc} ,</if>
|
||||||
|
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
|
||||||
|
<if test="f1 != null and f1 != ''"> #{f1} ,</if>
|
||||||
|
<if test="f2 != null and f2 != ''"> #{f2} ,</if>
|
||||||
|
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
|
||||||
|
<if test="bz != null and bz != ''"> #{bz} ,</if>
|
||||||
|
<if test="sjly != null and sjly != ''"> #{sjly} ,</if>
|
||||||
|
<if test="jlrId != null"> #{jlrId} ,</if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> #{jlRq} ,</if>
|
||||||
|
<if test="xgrId != null"> #{xgrId} ,</if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> #{xgRq} ,</if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> #{sfmx} ,</if>
|
||||||
|
<if test="gnlb != null and gnlb != ''"> #{gnlb} ,</if>
|
||||||
|
<if test="gnlbmc != null and gnlbmc != ''"> #{gnlbmc} ,</if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增 -->
|
||||||
|
<insert id="entityInsertBatch" keyProperty="gsdm" useGeneratedKeys="true">
|
||||||
|
insert into GL_Fzxzl(fzmc, zjm, f1, f2, syzt, bz, Sjly, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, SFMX, GNLB, GNLBMC, sts)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.fzmc},#{entity.zjm},#{entity.f1},#{entity.f2},#{entity.syzt},#{entity.bz},#{entity.sjly},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.gnlb},#{entity.gnlbmc}, 'Y')
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增或者修改-->
|
||||||
|
<insert id="entityInsertOrUpdateBatch" keyProperty="gsdm" useGeneratedKeys="true">
|
||||||
|
insert into GL_Fzxzl(fzmc, zjm, f1, f2, syzt, bz, Sjly, Jlr_ID, Jl_RQ, Xgr_ID, Xg_RQ, SFMX, GNLB, GNLBMC)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.fzmc},#{entity.zjm},#{entity.f1},#{entity.f2},#{entity.syzt},#{entity.bz},#{entity.sjly},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sfmx},#{entity.gnlb},#{entity.gnlbmc})
|
||||||
|
</foreach>
|
||||||
|
on duplicate key update
|
||||||
|
fzmc = values(fzmc),
|
||||||
|
zjm = values(zjm),
|
||||||
|
f1 = values(f1),
|
||||||
|
f2 = values(f2),
|
||||||
|
syzt = values(syzt),
|
||||||
|
bz = values(bz),
|
||||||
|
Sjly = values(Sjly),
|
||||||
|
Jlr_ID = values(Jlr_ID),
|
||||||
|
Jl_RQ = values(Jl_RQ),
|
||||||
|
Xgr_ID = values(Xgr_ID),
|
||||||
|
Xg_RQ = values(Xg_RQ),
|
||||||
|
SFMX = values(SFMX),
|
||||||
|
GNLB = values(GNLB),
|
||||||
|
GNLBMC = values(GNLBMC)</insert>
|
||||||
|
<!--通过主键修改方法-->
|
||||||
|
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" >
|
||||||
|
update GL_Fzxzl set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="fzmc != null and fzmc != ''"> fzmc = #{fzmc},</if>
|
||||||
|
<if test="zjm != null and zjm != ''"> zjm = #{zjm},</if>
|
||||||
|
<if test="f1 != null and f1 != ''"> f1 = #{f1},</if>
|
||||||
|
<if test="f2 != null and f2 != ''"> f2 = #{f2},</if>
|
||||||
|
<if test="syzt != null and syzt != ''"> syzt = #{syzt},</if>
|
||||||
|
<if test="bz != null and bz != ''"> bz = #{bz},</if>
|
||||||
|
<if test="sjly != null and sjly != ''"> Sjly = #{sjly},</if>
|
||||||
|
<if test="jlrId != null"> Jlr_ID = #{jlrId},</if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> Jl_RQ = #{jlRq},</if>
|
||||||
|
<if test="xgrId != null"> Xgr_ID = #{xgrId},</if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> Xg_RQ = #{xgRq},</if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> SFMX = #{sfmx},</if>
|
||||||
|
<if test="gnlb != null and gnlb != ''"> GNLB = #{gnlb},</if>
|
||||||
|
<if test="gnlbmc != null and gnlbmc != ''"> GNLBMC = #{gnlbmc},</if>
|
||||||
|
</trim>
|
||||||
|
where gsdm = #{gsdm} and kjnd=#{kjnd} and lbdm=#{lbdm} and fzdm=#{fzdm}
|
||||||
|
</update>
|
||||||
|
<!-- 逻辑删除 -->
|
||||||
|
<update id="entity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" >
|
||||||
|
update GL_Fzxzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
where gsdm = #{gsdm}
|
||||||
|
</update>
|
||||||
|
<!-- 多条件逻辑删除 -->
|
||||||
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity" >
|
||||||
|
update GL_Fzxzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||||
|
<if test="lbdm != null and lbdm != ''"> and lbdm = #{lbdm} </if>
|
||||||
|
<if test="fzdm != null and fzdm != ''"> and fzdm = #{fzdm} </if>
|
||||||
|
<if test="fzmc != null and fzmc != ''"> and fzmc = #{fzmc} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
|
||||||
|
<if test="f1 != null and f1 != ''"> and f1 = #{f1} </if>
|
||||||
|
<if test="f2 != null and f2 != ''"> and f2 = #{f2} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
|
||||||
|
<if test="bz != null and bz != ''"> and bz = #{bz} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
|
||||||
|
<if test="jlrId != null"> and Jlr_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and Jl_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> and Xgr_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and Xg_RQ = #{xgRq} </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
|
||||||
|
<if test="gnlb != null and gnlb != ''"> and GNLB = #{gnlb} </if>
|
||||||
|
<if test="gnlbmc != null and gnlbmc != ''"> and GNLBMC = #{gnlbmc} </if>
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="entity_delete">
|
||||||
|
delete from GL_Fzxzl where gsdm = #{gsdm}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glfzxzl.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlFzxzl)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 10:56:29
|
||||||
|
*/
|
||||||
|
public interface IGlFzxzlService extends IBaseService<GlFzxzlEntity, String> {
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glfzxzl.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glfzxzl.dao.IGlFzxzlDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glfzxzl.service.IGlFzxzlService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlFzxzl)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-08-06 10:56:29
|
||||||
|
*/
|
||||||
|
@Service(value = "glFzxzlService")
|
||||||
|
public class GlFzxzlServiceImpl extends BaseService<GlFzxzlEntity, String> implements IGlFzxzlService {
|
||||||
|
|
||||||
|
private IGlFzxzlDao glFzxzlDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setGlFzxzlDao(IGlFzxzlDao dao) {
|
||||||
|
this.glFzxzlDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,91 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glkmxx.dao;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (gl_kmxx: table)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:01:13
|
||||||
|
*/
|
||||||
|
public interface ISenderGlKmxxDao extends IBaseDao<SenderGlKmxxEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询科目信息 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlKmxxEntity> querySenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存科目信息到科目日志中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/26 16:12
|
||||||
|
* **/
|
||||||
|
SenderGlKmxxEntity saveSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新科目信息到科目日志中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/26 16:12
|
||||||
|
* **/
|
||||||
|
SenderGlKmxxEntity updateSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询科目信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlKmxxEntity> queryGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存科目信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/26 16:12
|
||||||
|
* **/
|
||||||
|
SenderGlKmxxEntity saveGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新科目信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/26 16:12
|
||||||
|
* **/
|
||||||
|
SenderGlKmxxEntity updateGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除科目信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/9 16:58
|
||||||
|
* **/
|
||||||
|
Integer deleteGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,65 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glkmxx.dao.impl;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glkmxx.dao.ISenderGlKmxxDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlKmxx)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:01:13
|
||||||
|
*/
|
||||||
|
@Repository(value = "SenderGlKmxxDaoImpl")
|
||||||
|
public class SenderGlKmxxDaoImpl extends MybatisGenericDao<SenderGlKmxxEntity, String> implements ISenderGlKmxxDao {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||||
|
public List<SenderGlKmxxEntity> querySenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||||
|
return super.queryByLike(senderGlKmxxEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||||
|
public SenderGlKmxxEntity saveSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||||
|
return super.save(senderGlKmxxEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||||
|
public SenderGlKmxxEntity updateSenderGlKmxxEntity(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||||
|
return super.update(senderGlKmxxEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||||
|
public List<SenderGlKmxxEntity> queryGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||||
|
return super.query(senderGlKmxxEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||||
|
public SenderGlKmxxEntity saveGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||||
|
return super.save(senderGlKmxxEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||||
|
public SenderGlKmxxEntity updateGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||||
|
return super.update(senderGlKmxxEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlKmxxEntity.dataSourceCode")
|
||||||
|
public Integer deleteGlKmxxHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||||
|
return super.delete("SenderGlKmxxEntity_delete_kmxx",senderGlKmxxEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,396 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glkmxx.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlKmxx)实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:01:13
|
||||||
|
*/
|
||||||
|
public class SenderGlKmxxEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String gsdm;
|
||||||
|
private String zth;
|
||||||
|
private String kjnd;
|
||||||
|
private String kmdm;
|
||||||
|
private String zjm;
|
||||||
|
private String kmmc;
|
||||||
|
private String syzt;
|
||||||
|
private String kmxz;
|
||||||
|
private String kmmxlb;
|
||||||
|
private String kmmx;
|
||||||
|
private String kmgs;
|
||||||
|
private String kmbz;
|
||||||
|
private String kmdw;
|
||||||
|
private Integer kmslxsws;
|
||||||
|
private String kmlb;
|
||||||
|
private String kmhdfx;
|
||||||
|
private String kmsyfx;
|
||||||
|
private String syzcfs;
|
||||||
|
private String kmpz;
|
||||||
|
private String yefx;
|
||||||
|
private String fzsm;
|
||||||
|
private String fzhs;
|
||||||
|
private String jfmax;
|
||||||
|
private String dfmax;
|
||||||
|
private String yemax;
|
||||||
|
private String accNa;
|
||||||
|
private String kmjx;
|
||||||
|
private String kmqx;
|
||||||
|
private Integer jlrId;
|
||||||
|
private String jlRq;
|
||||||
|
private Integer xgrId;
|
||||||
|
private String xgRq;
|
||||||
|
private String sjly;
|
||||||
|
private String zdyfzhs;
|
||||||
|
|
||||||
|
private String kjtxdm;
|
||||||
|
private String dwlxdm;
|
||||||
|
private String kmsm;
|
||||||
|
private String bcdj;
|
||||||
|
private String czyjkz;
|
||||||
|
private String qycyx;
|
||||||
|
private String qyrjz;
|
||||||
|
private String djdqrq;
|
||||||
|
|
||||||
|
|
||||||
|
public String getKjtxdm() {
|
||||||
|
return kjtxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjtxdm(String kjtxdm) {
|
||||||
|
this.kjtxdm = kjtxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDwlxdm() {
|
||||||
|
return dwlxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDwlxdm(String dwlxdm) {
|
||||||
|
this.dwlxdm = dwlxdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmsm() {
|
||||||
|
return kmsm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmsm(String kmsm) {
|
||||||
|
this.kmsm = kmsm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBcdj() {
|
||||||
|
return bcdj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBcdj(String bcdj) {
|
||||||
|
this.bcdj = bcdj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCzyjkz() {
|
||||||
|
return czyjkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCzyjkz(String czyjkz) {
|
||||||
|
this.czyjkz = czyjkz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQycyx() {
|
||||||
|
return qycyx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQycyx(String qycyx) {
|
||||||
|
this.qycyx = qycyx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQyrjz() {
|
||||||
|
return qyrjz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQyrjz(String qyrjz) {
|
||||||
|
this.qyrjz = qyrjz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDjdqrq() {
|
||||||
|
return djdqrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDjdqrq(String djdqrq) {
|
||||||
|
this.djdqrq = djdqrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGsdm() {
|
||||||
|
return gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGsdm(String gsdm) {
|
||||||
|
this.gsdm = gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZth() {
|
||||||
|
return zth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZth(String zth) {
|
||||||
|
this.zth = zth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjnd() {
|
||||||
|
return kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjnd(String kjnd) {
|
||||||
|
this.kjnd = kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmdm() {
|
||||||
|
return kmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmdm(String kmdm) {
|
||||||
|
this.kmdm = kmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZjm() {
|
||||||
|
return zjm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZjm(String zjm) {
|
||||||
|
this.zjm = zjm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmmc() {
|
||||||
|
return kmmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmmc(String kmmc) {
|
||||||
|
this.kmmc = kmmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSyzt() {
|
||||||
|
return syzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSyzt(String syzt) {
|
||||||
|
this.syzt = syzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmxz() {
|
||||||
|
return kmxz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmxz(String kmxz) {
|
||||||
|
this.kmxz = kmxz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmmxlb() {
|
||||||
|
return kmmxlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmmxlb(String kmmxlb) {
|
||||||
|
this.kmmxlb = kmmxlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmmx() {
|
||||||
|
return kmmx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmmx(String kmmx) {
|
||||||
|
this.kmmx = kmmx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmgs() {
|
||||||
|
return kmgs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmgs(String kmgs) {
|
||||||
|
this.kmgs = kmgs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmbz() {
|
||||||
|
return kmbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmbz(String kmbz) {
|
||||||
|
this.kmbz = kmbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmdw() {
|
||||||
|
return kmdw;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmdw(String kmdw) {
|
||||||
|
this.kmdw = kmdw;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getKmslxsws() {
|
||||||
|
return kmslxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmslxsws(Integer kmslxsws) {
|
||||||
|
this.kmslxsws = kmslxsws;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmlb() {
|
||||||
|
return kmlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmlb(String kmlb) {
|
||||||
|
this.kmlb = kmlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmhdfx() {
|
||||||
|
return kmhdfx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmhdfx(String kmhdfx) {
|
||||||
|
this.kmhdfx = kmhdfx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmsyfx() {
|
||||||
|
return kmsyfx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmsyfx(String kmsyfx) {
|
||||||
|
this.kmsyfx = kmsyfx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSyzcfs() {
|
||||||
|
return syzcfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSyzcfs(String syzcfs) {
|
||||||
|
this.syzcfs = syzcfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmpz() {
|
||||||
|
return kmpz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmpz(String kmpz) {
|
||||||
|
this.kmpz = kmpz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYefx() {
|
||||||
|
return yefx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYefx(String yefx) {
|
||||||
|
this.yefx = yefx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzsm() {
|
||||||
|
return fzsm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzsm(String fzsm) {
|
||||||
|
this.fzsm = fzsm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFzhs() {
|
||||||
|
return fzhs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFzhs(String fzhs) {
|
||||||
|
this.fzhs = fzhs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJfmax() {
|
||||||
|
return jfmax;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJfmax(String jfmax) {
|
||||||
|
this.jfmax = jfmax;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDfmax() {
|
||||||
|
return dfmax;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDfmax(String dfmax) {
|
||||||
|
this.dfmax = dfmax;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYemax() {
|
||||||
|
return yemax;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYemax(String yemax) {
|
||||||
|
this.yemax = yemax;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccNa() {
|
||||||
|
return accNa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccNa(String accNa) {
|
||||||
|
this.accNa = accNa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmjx() {
|
||||||
|
return kmjx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmjx(String kmjx) {
|
||||||
|
this.kmjx = kmjx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKmqx() {
|
||||||
|
return kmqx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmqx(String kmqx) {
|
||||||
|
this.kmqx = kmqx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getJlrId() {
|
||||||
|
return jlrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJlrId(Integer jlrId) {
|
||||||
|
this.jlrId = jlrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJlRq() {
|
||||||
|
return jlRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJlRq(String jlRq) {
|
||||||
|
this.jlRq = jlRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getXgrId() {
|
||||||
|
return xgrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXgrId(Integer xgrId) {
|
||||||
|
this.xgrId = xgrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXgRq() {
|
||||||
|
return xgRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXgRq(String xgRq) {
|
||||||
|
this.xgRq = xgRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSjly() {
|
||||||
|
return sjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSjly(String sjly) {
|
||||||
|
this.sjly = sjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZdyfzhs() {
|
||||||
|
return zdyfzhs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZdyfzhs(String zdyfzhs) {
|
||||||
|
this.zdyfzhs = zdyfzhs;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,529 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.glkmxx.dao.impl.SenderGlKmxxDaoImpl">
|
||||||
|
|
||||||
|
<resultMap id="get-SenderGlKmxxEntity-result" type="com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" >
|
||||||
|
<result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zth" column="ZTH" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmdm" column="kmdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zjm" column="zjm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmmc" column="kmmc" jdbcType="VARCHAR"/>
|
||||||
|
<result property="syzt" column="syzt" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmxz" column="kmxz" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmmxlb" column="kmmxlb" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmmx" column="kmmx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmgs" column="kmgs" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmbz" column="kmbz" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmdw" column="kmdw" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmslxsws" column="kmslxsws" jdbcType="INTEGER"/>
|
||||||
|
<result property="kmlb" column="kmlb" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmhdfx" column="kmhdfx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmsyfx" column="kmsyfx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="syzcfs" column="syzcfs" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmpz" column="kmpz" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yefx" column="yefx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzsm" column="fzsm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fzhs" column="fzhs" jdbcType="VARCHAR"/>
|
||||||
|
<result property="jfmax" column="jfmax" jdbcType="VARCHAR"/>
|
||||||
|
<result property="dfmax" column="dfmax" jdbcType="VARCHAR"/>
|
||||||
|
<result property="yemax" column="yemax" jdbcType="VARCHAR"/>
|
||||||
|
<result property="accNa" column="acc_na" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmjx" column="kmjx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmqx" column="kmqx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="jlrId" column="JLR_ID" jdbcType="INTEGER"/>
|
||||||
|
<result property="jlRq" column="JL_RQ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="xgrId" column="XGR_ID" jdbcType="INTEGER"/>
|
||||||
|
<result property="xgRq" column="XG_RQ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sjly" column="Sjly" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zdyfzhs" column="zdyfzhs" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kjtxdm" column="kjtxdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="dwlxdm" column="dwlxdm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kmsm" column="kmsm" jdbcType="VARCHAR"/>
|
||||||
|
<result property="bcdj" column="bcdj" jdbcType="VARCHAR"/>
|
||||||
|
<result property="czyjkz" column="czyjkz" jdbcType="VARCHAR"/>
|
||||||
|
<result property="qycyx" column="qycyx" jdbcType="VARCHAR"/>
|
||||||
|
<result property="qyrjz" column="qyrjz" jdbcType="VARCHAR"/>
|
||||||
|
<result property="djdqrq" column="djdqrq" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
<!-- 查询的字段-->
|
||||||
|
<sql id = "SenderGlKmxxEntity_Base_Column_List">
|
||||||
|
gsdm
|
||||||
|
, ZTH
|
||||||
|
, kjnd
|
||||||
|
, kmdm
|
||||||
|
, zjm
|
||||||
|
, kmmc
|
||||||
|
, syzt
|
||||||
|
, kmxz
|
||||||
|
, kmmxlb
|
||||||
|
, kmmx
|
||||||
|
, kmgs
|
||||||
|
, kmbz
|
||||||
|
, kmdw
|
||||||
|
, kmslxsws
|
||||||
|
, kmlb
|
||||||
|
, kmhdfx
|
||||||
|
, kmsyfx
|
||||||
|
, syzcfs
|
||||||
|
, kmpz
|
||||||
|
, yefx
|
||||||
|
, fzsm
|
||||||
|
, fzhs
|
||||||
|
, jfmax
|
||||||
|
, dfmax
|
||||||
|
, yemax
|
||||||
|
, acc_na
|
||||||
|
, kmjx
|
||||||
|
, kmqx
|
||||||
|
, JLR_ID
|
||||||
|
, JL_RQ
|
||||||
|
, XGR_ID
|
||||||
|
, XG_RQ
|
||||||
|
, Sjly
|
||||||
|
, zdyfzhs
|
||||||
|
, kjtxdm
|
||||||
|
, dwlxdm
|
||||||
|
, kmsm
|
||||||
|
, bcdj
|
||||||
|
, czyjkz
|
||||||
|
, qycyx
|
||||||
|
, qyrjz
|
||||||
|
, djdqrq
|
||||||
|
</sql>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="entity_list_base" resultMap="get-SenderGlKmxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlKmxxEntity_Base_Column_List" />
|
||||||
|
from gl_kmxx
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
|
||||||
|
<if test="kmmc != null and kmmc != ''"> and kmmc = #{kmmc} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
|
||||||
|
<if test="kmxz != null and kmxz != ''"> and kmxz = #{kmxz} </if>
|
||||||
|
<if test="kmmxlb != null and kmmxlb != ''"> and kmmxlb = #{kmmxlb} </if>
|
||||||
|
<if test="kmmx != null and kmmx != ''"> and kmmx = #{kmmx} </if>
|
||||||
|
<if test="kmgs != null and kmgs != ''"> and kmgs = #{kmgs} </if>
|
||||||
|
<if test="kmbz != null and kmbz != ''"> and kmbz = #{kmbz} </if>
|
||||||
|
<if test="kmdw != null and kmdw != ''"> and kmdw = #{kmdw} </if>
|
||||||
|
<if test="kmslxsws != null"> and kmslxsws = #{kmslxsws} </if>
|
||||||
|
<if test="kmlb != null and kmlb != ''"> and kmlb = #{kmlb} </if>
|
||||||
|
<if test="kmhdfx != null and kmhdfx != ''"> and kmhdfx = #{kmhdfx} </if>
|
||||||
|
<if test="kmsyfx != null and kmsyfx != ''"> and kmsyfx = #{kmsyfx} </if>
|
||||||
|
<if test="syzcfs != null and syzcfs != ''"> and syzcfs = #{syzcfs} </if>
|
||||||
|
<if test="kmpz != null and kmpz != ''"> and kmpz = #{kmpz} </if>
|
||||||
|
<if test="yefx != null and yefx != ''"> and yefx = #{yefx} </if>
|
||||||
|
<if test="fzsm != null and fzsm != ''"> and fzsm = #{fzsm} </if>
|
||||||
|
<if test="fzhs != null and fzhs != ''"> and fzhs = #{fzhs} </if>
|
||||||
|
<if test="jfmax != null"> and jfmax = #{jfmax} </if>
|
||||||
|
<if test="dfmax != null"> and dfmax = #{dfmax} </if>
|
||||||
|
<if test="yemax != null"> and yemax = #{yemax} </if>
|
||||||
|
<if test="accNa != null and accNa != ''"> and acc_na = #{accNa} </if>
|
||||||
|
<if test="kmjx != null and kmjx != ''"> and kmjx = #{kmjx} </if>
|
||||||
|
<if test="kmqx != null and kmqx != ''"> and kmqx = #{kmqx} </if>
|
||||||
|
<if test="jlrId != null"> and JLR_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> and XGR_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and XG_RQ >= #{xgRq} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
|
||||||
|
<if test="zdyfzhs != null and zdyfzhs != ''"> and zdyfzhs = #{zdyfzhs} </if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm != ''"> and kjtxdm = #{kjtxdm} </if>
|
||||||
|
<if test="dwlxdm != null and dwlxdm != ''"> and dwlxdm = #{dwlxdm} </if>
|
||||||
|
<if test="kmsm != null and kmsm != ''"> and kmsm = #{kmsm} </if>
|
||||||
|
<if test="bcdj != null and bcdj != ''"> and bcdj = #{bcdj} </if>
|
||||||
|
<if test="czyjkz != null and czyjkz != ''"> and czyjkz = #{czyjkz} </if>
|
||||||
|
<if test="qycyx != null and qycyx != ''"> and qycyx = #{qycyx} </if>
|
||||||
|
<if test="qyrjz != null and qyrjz != ''"> and qyrjz = #{qyrjz} </if>
|
||||||
|
<if test="djdqrq != null and djdqrq != ''"> and zdyfzhs = #{djdqrq} </if>
|
||||||
|
-- and gsdm in ('0101010201','0101010202')
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询符合条件的数量 -->
|
||||||
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity">
|
||||||
|
select count(1) from gl_kmxx
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
|
||||||
|
<if test="kmmc != null and kmmc != ''"> and kmmc = #{kmmc} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
|
||||||
|
<if test="kmxz != null and kmxz != ''"> and kmxz = #{kmxz} </if>
|
||||||
|
<if test="kmmxlb != null and kmmxlb != ''"> and kmmxlb = #{kmmxlb} </if>
|
||||||
|
<if test="kmmx != null and kmmx != ''"> and kmmx = #{kmmx} </if>
|
||||||
|
<if test="kmgs != null and kmgs != ''"> and kmgs = #{kmgs} </if>
|
||||||
|
<if test="kmbz != null and kmbz != ''"> and kmbz = #{kmbz} </if>
|
||||||
|
<if test="kmdw != null and kmdw != ''"> and kmdw = #{kmdw} </if>
|
||||||
|
<if test="kmslxsws != null"> and kmslxsws = #{kmslxsws} </if>
|
||||||
|
<if test="kmlb != null and kmlb != ''"> and kmlb = #{kmlb} </if>
|
||||||
|
<if test="kmhdfx != null and kmhdfx != ''"> and kmhdfx = #{kmhdfx} </if>
|
||||||
|
<if test="kmsyfx != null and kmsyfx != ''"> and kmsyfx = #{kmsyfx} </if>
|
||||||
|
<if test="syzcfs != null and syzcfs != ''"> and syzcfs = #{syzcfs} </if>
|
||||||
|
<if test="kmpz != null and kmpz != ''"> and kmpz = #{kmpz} </if>
|
||||||
|
<if test="yefx != null and yefx != ''"> and yefx = #{yefx} </if>
|
||||||
|
<if test="fzsm != null and fzsm != ''"> and fzsm = #{fzsm} </if>
|
||||||
|
<if test="fzhs != null and fzhs != ''"> and fzhs = #{fzhs} </if>
|
||||||
|
<if test="jfmax != null"> and jfmax = #{jfmax} </if>
|
||||||
|
<if test="dfmax != null"> and dfmax = #{dfmax} </if>
|
||||||
|
<if test="yemax != null"> and yemax = #{yemax} </if>
|
||||||
|
<if test="accNa != null and accNa != ''"> and acc_na = #{accNa} </if>
|
||||||
|
<if test="kmjx != null and kmjx != ''"> and kmjx = #{kmjx} </if>
|
||||||
|
<if test="kmqx != null and kmqx != ''"> and kmqx = #{kmqx} </if>
|
||||||
|
<if test="jlrId != null"> and JLR_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> and XGR_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
|
||||||
|
<if test="zdyfzhs != null and zdyfzhs != ''"> and zdyfzhs = #{zdyfzhs} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
|
<select id="entity_list_like" resultMap="get-SenderGlKmxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlKmxxEntity_Base_Column_List" />
|
||||||
|
from gl_kmxx
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm like concat('%',#{gsdm},'%') </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH like concat('%',#{zth},'%') </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd like concat('%',#{kjnd},'%') </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm like concat('%',#{kmdm},'%') </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and zjm like concat('%',#{zjm},'%') </if>
|
||||||
|
<if test="kmmc != null and kmmc != ''"> and kmmc like concat('%',#{kmmc},'%') </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </if>
|
||||||
|
<if test="kmxz != null and kmxz != ''"> and kmxz like concat('%',#{kmxz},'%') </if>
|
||||||
|
<if test="kmmxlb != null and kmmxlb != ''"> and kmmxlb like concat('%',#{kmmxlb},'%') </if>
|
||||||
|
<if test="kmmx != null and kmmx != ''"> and kmmx like concat('%',#{kmmx},'%') </if>
|
||||||
|
<if test="kmgs != null and kmgs != ''"> and kmgs like concat('%',#{kmgs},'%') </if>
|
||||||
|
<if test="kmbz != null and kmbz != ''"> and kmbz like concat('%',#{kmbz},'%') </if>
|
||||||
|
<if test="kmdw != null and kmdw != ''"> and kmdw like concat('%',#{kmdw},'%') </if>
|
||||||
|
<if test="kmslxsws != null"> and kmslxsws like concat('%',#{kmslxsws},'%') </if>
|
||||||
|
<if test="kmlb != null and kmlb != ''"> and kmlb like concat('%',#{kmlb},'%') </if>
|
||||||
|
<if test="kmhdfx != null and kmhdfx != ''"> and kmhdfx like concat('%',#{kmhdfx},'%') </if>
|
||||||
|
<if test="kmsyfx != null and kmsyfx != ''"> and kmsyfx like concat('%',#{kmsyfx},'%') </if>
|
||||||
|
<if test="syzcfs != null and syzcfs != ''"> and syzcfs like concat('%',#{syzcfs},'%') </if>
|
||||||
|
<if test="kmpz != null and kmpz != ''"> and kmpz like concat('%',#{kmpz},'%') </if>
|
||||||
|
<if test="yefx != null and yefx != ''"> and yefx like concat('%',#{yefx},'%') </if>
|
||||||
|
<if test="fzsm != null and fzsm != ''"> and fzsm like concat('%',#{fzsm},'%') </if>
|
||||||
|
<if test="fzhs != null and fzhs != ''"> and fzhs like concat('%',#{fzhs},'%') </if>
|
||||||
|
<if test="jfmax != null"> and jfmax like concat('%',#{jfmax},'%') </if>
|
||||||
|
<if test="dfmax != null"> and dfmax like concat('%',#{dfmax},'%') </if>
|
||||||
|
<if test="yemax != null"> and yemax like concat('%',#{yemax},'%') </if>
|
||||||
|
<if test="accNa != null and accNa != ''"> and acc_na like concat('%',#{accNa},'%') </if>
|
||||||
|
<if test="kmjx != null and kmjx != ''"> and kmjx like concat('%',#{kmjx},'%') </if>
|
||||||
|
<if test="kmqx != null and kmqx != ''"> and kmqx like concat('%',#{kmqx},'%') </if>
|
||||||
|
<if test="jlrId != null"> and JLR_ID like concat('%',#{jlrId},'%') </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and JL_RQ like concat('%',#{jlRq},'%') </if>
|
||||||
|
<if test="xgrId != null"> and XGR_ID like concat('%',#{xgrId},'%') </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and XG_RQ like concat('%',#{xgRq},'%') </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and Sjly like concat('%',#{sjly},'%') </if>
|
||||||
|
<if test="zdyfzhs != null and zdyfzhs != ''"> and zdyfzhs like concat('%',#{zdyfzhs},'%') </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
|
<select id="SenderGlKmxxEntity_list_or" resultMap="get-SenderGlKmxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlKmxxEntity_Base_Column_List" />
|
||||||
|
from gl_kmxx
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> or ZTH = #{zth} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> or kjnd = #{kjnd} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> or kmdm = #{kmdm} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> or zjm = #{zjm} </if>
|
||||||
|
<if test="kmmc != null and kmmc != ''"> or kmmc = #{kmmc} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> or syzt = #{syzt} </if>
|
||||||
|
<if test="kmxz != null and kmxz != ''"> or kmxz = #{kmxz} </if>
|
||||||
|
<if test="kmmxlb != null and kmmxlb != ''"> or kmmxlb = #{kmmxlb} </if>
|
||||||
|
<if test="kmmx != null and kmmx != ''"> or kmmx = #{kmmx} </if>
|
||||||
|
<if test="kmgs != null and kmgs != ''"> or kmgs = #{kmgs} </if>
|
||||||
|
<if test="kmbz != null and kmbz != ''"> or kmbz = #{kmbz} </if>
|
||||||
|
<if test="kmdw != null and kmdw != ''"> or kmdw = #{kmdw} </if>
|
||||||
|
<if test="kmslxsws != null"> or kmslxsws = #{kmslxsws} </if>
|
||||||
|
<if test="kmlb != null and kmlb != ''"> or kmlb = #{kmlb} </if>
|
||||||
|
<if test="kmhdfx != null and kmhdfx != ''"> or kmhdfx = #{kmhdfx} </if>
|
||||||
|
<if test="kmsyfx != null and kmsyfx != ''"> or kmsyfx = #{kmsyfx} </if>
|
||||||
|
<if test="syzcfs != null and syzcfs != ''"> or syzcfs = #{syzcfs} </if>
|
||||||
|
<if test="kmpz != null and kmpz != ''"> or kmpz = #{kmpz} </if>
|
||||||
|
<if test="yefx != null and yefx != ''"> or yefx = #{yefx} </if>
|
||||||
|
<if test="fzsm != null and fzsm != ''"> or fzsm = #{fzsm} </if>
|
||||||
|
<if test="fzhs != null and fzhs != ''"> or fzhs = #{fzhs} </if>
|
||||||
|
<if test="jfmax != null"> or jfmax = #{jfmax} </if>
|
||||||
|
<if test="dfmax != null"> or dfmax = #{dfmax} </if>
|
||||||
|
<if test="yemax != null"> or yemax = #{yemax} </if>
|
||||||
|
<if test="accNa != null and accNa != ''"> or acc_na = #{accNa} </if>
|
||||||
|
<if test="kmjx != null and kmjx != ''"> or kmjx = #{kmjx} </if>
|
||||||
|
<if test="kmqx != null and kmqx != ''"> or kmqx = #{kmqx} </if>
|
||||||
|
<if test="jlrId != null"> or JLR_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> or JL_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> or XGR_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> or XG_RQ = #{xgRq} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> or Sjly = #{sjly} </if>
|
||||||
|
<if test="zdyfzhs != null and zdyfzhs != ''"> or zdyfzhs = #{zdyfzhs} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--新增所有列-->
|
||||||
|
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_kmxx(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="zth != null and zth != ''"> ZTH , </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> kjnd , </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> kmdm , </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> zjm , </if>
|
||||||
|
<if test="kmmc != null and kmmc != ''"> kmmc , </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> syzt , </if>
|
||||||
|
<if test="kmxz != null and kmxz != ''"> kmxz , </if>
|
||||||
|
<if test="kmmxlb != null and kmmxlb != ''"> kmmxlb , </if>
|
||||||
|
<if test="kmmx != null and kmmx != ''"> kmmx , </if>
|
||||||
|
<if test="kmgs != null and kmgs != ''"> kmgs , </if>
|
||||||
|
<if test="kmbz != null and kmbz != ''"> kmbz , </if>
|
||||||
|
<if test="kmdw != null and kmdw != ''"> kmdw , </if>
|
||||||
|
<if test="kmslxsws != null"> kmslxsws , </if>
|
||||||
|
<if test="kmlb != null and kmlb != ''"> kmlb , </if>
|
||||||
|
<if test="kmhdfx != null and kmhdfx != ''"> kmhdfx , </if>
|
||||||
|
<if test="kmsyfx != null and kmsyfx != ''"> kmsyfx , </if>
|
||||||
|
<if test="syzcfs != null and syzcfs != ''"> syzcfs , </if>
|
||||||
|
<if test="kmpz != null and kmpz != ''"> kmpz , </if>
|
||||||
|
<if test="yefx != null and yefx != ''"> yefx , </if>
|
||||||
|
<if test="fzsm != null and fzsm != ''"> fzsm , </if>
|
||||||
|
<if test="fzhs != null and fzhs != ''"> fzhs , </if>
|
||||||
|
<if test="jfmax != null"> jfmax , </if>
|
||||||
|
<if test="dfmax != null"> dfmax , </if>
|
||||||
|
<if test="yemax != null"> yemax , </if>
|
||||||
|
<if test="accNa != null and accNa != ''"> acc_na , </if>
|
||||||
|
<if test="kmjx != null and kmjx != ''"> kmjx , </if>
|
||||||
|
<if test="kmqx != null and kmqx != ''"> kmqx , </if>
|
||||||
|
<if test="jlrId != null"> JLR_ID , </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> JL_RQ , </if>
|
||||||
|
<if test="xgrId != null"> XGR_ID , </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> XG_RQ , </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> Sjly , </if>
|
||||||
|
<if test="zdyfzhs != null and zdyfzhs != ''"> zdyfzhs , </if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> gsdm, </if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm != ''"> kjtxdm, </if>
|
||||||
|
<if test="dwlxdm != null and dwlxdm != ''"> dwlxdm, </if>
|
||||||
|
<if test="kmsm != null and kmsm != ''"> kmsm, </if>
|
||||||
|
<if test="bcdj != null and bcdj != ''"> bcdj, </if>
|
||||||
|
<if test="czyjkz != null and czyjkz != ''"> czyjkz, </if>
|
||||||
|
<if test="qycyx != null and qycyx != ''"> qycyx, </if>
|
||||||
|
<if test="qyrjz != null and qyrjz != ''"> qyrjz, </if>
|
||||||
|
<if test="djdqrq != null and djdqrq != ''"> djdqrq </if>
|
||||||
|
</trim>
|
||||||
|
)values(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="zth != null and zth != ''"> #{zth} ,</if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> #{kmdm} ,</if>
|
||||||
|
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
|
||||||
|
<if test="kmmc != null and kmmc != ''"> #{kmmc} ,</if>
|
||||||
|
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
|
||||||
|
<if test="kmxz != null and kmxz != ''"> #{kmxz} ,</if>
|
||||||
|
<if test="kmmxlb != null and kmmxlb != ''"> #{kmmxlb} ,</if>
|
||||||
|
<if test="kmmx != null and kmmx != ''"> #{kmmx} ,</if>
|
||||||
|
<if test="kmgs != null and kmgs != ''"> #{kmgs} ,</if>
|
||||||
|
<if test="kmbz != null and kmbz != ''"> #{kmbz} ,</if>
|
||||||
|
<if test="kmdw != null and kmdw != ''"> #{kmdw} ,</if>
|
||||||
|
<if test="kmslxsws != null"> #{kmslxsws} ,</if>
|
||||||
|
<if test="kmlb != null and kmlb != ''"> #{kmlb} ,</if>
|
||||||
|
<if test="kmhdfx != null and kmhdfx != ''"> #{kmhdfx} ,</if>
|
||||||
|
<if test="kmsyfx != null and kmsyfx != ''"> #{kmsyfx} ,</if>
|
||||||
|
<if test="syzcfs != null and syzcfs != ''"> #{syzcfs} ,</if>
|
||||||
|
<if test="kmpz != null and kmpz != ''"> #{kmpz} ,</if>
|
||||||
|
<if test="yefx != null and yefx != ''"> #{yefx} ,</if>
|
||||||
|
<if test="fzsm != null and fzsm != ''"> #{fzsm} ,</if>
|
||||||
|
<if test="fzhs != null and fzhs != ''"> #{fzhs} ,</if>
|
||||||
|
<if test="jfmax != null"> #{jfmax} ,</if>
|
||||||
|
<if test="dfmax != null"> #{dfmax} ,</if>
|
||||||
|
<if test="yemax != null"> #{yemax} ,</if>
|
||||||
|
<if test="accNa != null and accNa != ''"> #{accNa} ,</if>
|
||||||
|
<if test="kmjx != null and kmjx != ''"> #{kmjx} ,</if>
|
||||||
|
<if test="kmqx != null and kmqx != ''"> #{kmqx} ,</if>
|
||||||
|
<if test="jlrId != null"> #{jlrId} ,</if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> #{jlRq} ,</if>
|
||||||
|
<if test="xgrId != null"> #{xgrId} ,</if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> #{xgRq} ,</if>
|
||||||
|
<if test="sjly != null and sjly != ''"> #{sjly} ,</if>
|
||||||
|
<if test="zdyfzhs != null and zdyfzhs != ''"> #{zdyfzhs} ,</if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> #{gsdm}, </if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm != ''"> #{kjtxdm}, </if>
|
||||||
|
<if test="dwlxdm != null and dwlxdm != ''"> #{dwlxdm}, </if>
|
||||||
|
<if test="kmsm != null and kmsm != ''"> #{kmsm}, </if>
|
||||||
|
<if test="bcdj != null and bcdj != ''"> #{bcdj}, </if>
|
||||||
|
<if test="czyjkz != null and czyjkz != ''"> #{czyjkz}, </if>
|
||||||
|
<if test="qycyx != null and qycyx != ''"> #{qycyx}, </if>
|
||||||
|
<if test="qyrjz != null and qyrjz != ''"> #{qyrjz}, </if>
|
||||||
|
<if test="djdqrq != null and gsdm != ''"> #{djdqrq} </if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 批量新增 -->
|
||||||
|
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_kmxx(id,gsdm, ZTH, kjnd, kmdm, zjm, kmmc, syzt, kmxz, kmmxlb, kmmx, kmgs, kmbz, kmdw, kmslxsws, kmlb, kmhdfx, kmsyfx, syzcfs, kmpz, yefx, fzsm, fzhs, jfmax, dfmax, yemax, acc_na, kmjx, kmqx, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, zdyfzhs)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.id},#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kmdm},#{entity.zjm},#{entity.kmmc},#{entity.syzt},#{entity.kmxz},#{entity.kmmxlb},#{entity.kmmx},#{entity.kmgs},#{entity.kmbz},#{entity.kmdw},#{entity.kmslxsws},#{entity.kmlb},#{entity.kmhdfx},#{entity.kmsyfx},#{entity.syzcfs},#{entity.kmpz},#{entity.yefx},#{entity.fzsm},#{entity.fzhs},#{entity.jfmax},#{entity.dfmax},#{entity.yemax},#{entity.accNa},#{entity.kmjx},#{entity.kmqx},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.zdyfzhs})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增或者修改-->
|
||||||
|
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_kmxx(id,gsdm, ZTH, kjnd, kmdm, zjm, kmmc, syzt, kmxz, kmmxlb, kmmx, kmgs, kmbz, kmdw, kmslxsws, kmlb, kmhdfx, kmsyfx, syzcfs, kmpz, yefx, fzsm, fzhs, jfmax, dfmax, yemax, acc_na, kmjx, kmqx, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, zdyfzhs)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.id},#{entity.gsdm},#{entity.zth},#{entity.kjnd},#{entity.kmdm},#{entity.zjm},#{entity.kmmc},#{entity.syzt},#{entity.kmxz},#{entity.kmmxlb},#{entity.kmmx},#{entity.kmgs},#{entity.kmbz},#{entity.kmdw},#{entity.kmslxsws},#{entity.kmlb},#{entity.kmhdfx},#{entity.kmsyfx},#{entity.syzcfs},#{entity.kmpz},#{entity.yefx},#{entity.fzsm},#{entity.fzhs},#{entity.jfmax},#{entity.dfmax},#{entity.yemax},#{entity.accNa},#{entity.kmjx},#{entity.kmqx},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.zdyfzhs})
|
||||||
|
</foreach>
|
||||||
|
on duplicate key update
|
||||||
|
gsdm = values(gsdm),
|
||||||
|
ZTH = values(ZTH),
|
||||||
|
kjnd = values(kjnd),
|
||||||
|
kmdm = values(kmdm),
|
||||||
|
zjm = values(zjm),
|
||||||
|
kmmc = values(kmmc),
|
||||||
|
syzt = values(syzt),
|
||||||
|
kmxz = values(kmxz),
|
||||||
|
kmmxlb = values(kmmxlb),
|
||||||
|
kmmx = values(kmmx),
|
||||||
|
kmgs = values(kmgs),
|
||||||
|
kmbz = values(kmbz),
|
||||||
|
kmdw = values(kmdw),
|
||||||
|
kmslxsws = values(kmslxsws),
|
||||||
|
kmlb = values(kmlb),
|
||||||
|
kmhdfx = values(kmhdfx),
|
||||||
|
kmsyfx = values(kmsyfx),
|
||||||
|
syzcfs = values(syzcfs),
|
||||||
|
kmpz = values(kmpz),
|
||||||
|
yefx = values(yefx),
|
||||||
|
fzsm = values(fzsm),
|
||||||
|
fzhs = values(fzhs),
|
||||||
|
jfmax = values(jfmax),
|
||||||
|
dfmax = values(dfmax),
|
||||||
|
yemax = values(yemax),
|
||||||
|
acc_na = values(acc_na),
|
||||||
|
kmjx = values(kmjx),
|
||||||
|
kmqx = values(kmqx),
|
||||||
|
JLR_ID = values(JLR_ID),
|
||||||
|
JL_RQ = values(JL_RQ),
|
||||||
|
XGR_ID = values(XGR_ID),
|
||||||
|
XG_RQ = values(XG_RQ),
|
||||||
|
Sjly = values(Sjly),
|
||||||
|
zdyfzhs = values(zdyfzhs)</insert>
|
||||||
|
<!--通过主键修改方法-->
|
||||||
|
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" >
|
||||||
|
update gl_kmxx set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
|
||||||
|
<if test="zth != null and zth != ''"> ZTH = #{zth},</if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> kjnd = #{kjnd},</if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> kmdm = #{kmdm},</if>
|
||||||
|
<if test="zjm != null and zjm != ''"> zjm = #{zjm},</if>
|
||||||
|
<if test="kmmc != null and kmmc != ''"> kmmc = #{kmmc},</if>
|
||||||
|
<if test="syzt != null and syzt != ''"> syzt = #{syzt},</if>
|
||||||
|
<if test="kmxz != null and kmxz != ''"> kmxz = #{kmxz},</if>
|
||||||
|
<if test="kmmxlb != null and kmmxlb != ''"> kmmxlb = #{kmmxlb},</if>
|
||||||
|
<if test="kmmx != null and kmmx != ''"> kmmx = #{kmmx},</if>
|
||||||
|
<if test="kmgs != null and kmgs != ''"> kmgs = #{kmgs},</if>
|
||||||
|
<if test="kmbz != null and kmbz != ''"> kmbz = #{kmbz},</if>
|
||||||
|
<if test="kmdw != null and kmdw != ''"> kmdw = #{kmdw},</if>
|
||||||
|
<if test="kmslxsws != null"> kmslxsws = #{kmslxsws},</if>
|
||||||
|
<if test="kmlb != null and kmlb != ''"> kmlb = #{kmlb},</if>
|
||||||
|
<if test="kmhdfx != null and kmhdfx != ''"> kmhdfx = #{kmhdfx},</if>
|
||||||
|
<if test="kmsyfx != null and kmsyfx != ''"> kmsyfx = #{kmsyfx},</if>
|
||||||
|
<if test="syzcfs != null and syzcfs != ''"> syzcfs = #{syzcfs},</if>
|
||||||
|
<if test="kmpz != null and kmpz != ''"> kmpz = #{kmpz},</if>
|
||||||
|
<if test="yefx != null and yefx != ''"> yefx = #{yefx},</if>
|
||||||
|
<if test="fzsm != null and fzsm != ''"> fzsm = #{fzsm},</if>
|
||||||
|
<if test="fzhs != null and fzhs != ''"> fzhs = #{fzhs},</if>
|
||||||
|
<if test="jfmax != null"> jfmax = #{jfmax},</if>
|
||||||
|
<if test="dfmax != null"> dfmax = #{dfmax},</if>
|
||||||
|
<if test="yemax != null"> yemax = #{yemax},</if>
|
||||||
|
<if test="accNa != null and accNa != ''"> acc_na = #{accNa},</if>
|
||||||
|
<if test="kmjx != null and kmjx != ''"> kmjx = #{kmjx},</if>
|
||||||
|
<if test="kmqx != null and kmqx != ''"> kmqx = #{kmqx},</if>
|
||||||
|
<if test="jlrId != null"> JLR_ID = #{jlrId},</if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> JL_RQ = #{jlRq},</if>
|
||||||
|
<if test="xgrId != null"> XGR_ID = #{xgrId},</if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> XG_RQ = #{xgRq},</if>
|
||||||
|
<if test="sjly != null and sjly != ''"> Sjly = #{sjly},</if>
|
||||||
|
<if test="zdyfzhs != null and zdyfzhs != ''"> zdyfzhs = #{zdyfzhs},</if>
|
||||||
|
<if test="kjtxdm != null and kjtxdm != ''"> kjtxdm = #{kjtxdm},</if>
|
||||||
|
<if test="dwlxdm != null and dwlxdm != ''"> dwlxdm = #{dwlxdm},</if>
|
||||||
|
<if test="kmsm != null and kmsm != ''"> kmsm = #{kmsm},</if>
|
||||||
|
<if test="bcdj != null and bcdj != ''"> bcdj = #{bcdj},</if>
|
||||||
|
<if test="czyjkz != null and czyjkz != ''"> czyjkz = #{czyjkz},</if>
|
||||||
|
<if test="qycyx != null and qycyx != ''"> qycyx = #{qycyx},</if>
|
||||||
|
<if test="qyrjz != null and qyrjz != ''"> qyrjz = #{qyrjz},</if>
|
||||||
|
<if test="djdqrq != null and djdqrq != ''"> djdqrq = #{djdqrq}</if>
|
||||||
|
</trim>
|
||||||
|
where gsdm= #{gsdm} and kjnd=#{kjnd} and zth=#{zth} and kmdm=#{kmdm}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 逻辑删除 -->
|
||||||
|
<update id="SenderGlKmxxEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" >
|
||||||
|
update gl_kmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
where id= #{id}
|
||||||
|
</update>
|
||||||
|
<!-- 多条件逻辑删除 -->
|
||||||
|
<update id="SenderGlKmxxEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity" >
|
||||||
|
update gl_kmxx set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
|
||||||
|
<if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm = #{kmdm} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
|
||||||
|
<if test="kmmc != null and kmmc != ''"> and kmmc = #{kmmc} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
|
||||||
|
<if test="kmxz != null and kmxz != ''"> and kmxz = #{kmxz} </if>
|
||||||
|
<if test="kmmxlb != null and kmmxlb != ''"> and kmmxlb = #{kmmxlb} </if>
|
||||||
|
<if test="kmmx != null and kmmx != ''"> and kmmx = #{kmmx} </if>
|
||||||
|
<if test="kmgs != null and kmgs != ''"> and kmgs = #{kmgs} </if>
|
||||||
|
<if test="kmbz != null and kmbz != ''"> and kmbz = #{kmbz} </if>
|
||||||
|
<if test="kmdw != null and kmdw != ''"> and kmdw = #{kmdw} </if>
|
||||||
|
<if test="kmslxsws != null"> and kmslxsws = #{kmslxsws} </if>
|
||||||
|
<if test="kmlb != null and kmlb != ''"> and kmlb = #{kmlb} </if>
|
||||||
|
<if test="kmhdfx != null and kmhdfx != ''"> and kmhdfx = #{kmhdfx} </if>
|
||||||
|
<if test="kmsyfx != null and kmsyfx != ''"> and kmsyfx = #{kmsyfx} </if>
|
||||||
|
<if test="syzcfs != null and syzcfs != ''"> and syzcfs = #{syzcfs} </if>
|
||||||
|
<if test="kmpz != null and kmpz != ''"> and kmpz = #{kmpz} </if>
|
||||||
|
<if test="yefx != null and yefx != ''"> and yefx = #{yefx} </if>
|
||||||
|
<if test="fzsm != null and fzsm != ''"> and fzsm = #{fzsm} </if>
|
||||||
|
<if test="fzhs != null and fzhs != ''"> and fzhs = #{fzhs} </if>
|
||||||
|
<if test="jfmax != null"> and jfmax = #{jfmax} </if>
|
||||||
|
<if test="dfmax != null"> and dfmax = #{dfmax} </if>
|
||||||
|
<if test="yemax != null"> and yemax = #{yemax} </if>
|
||||||
|
<if test="accNa != null and accNa != ''"> and acc_na = #{accNa} </if>
|
||||||
|
<if test="kmjx != null and kmjx != ''"> and kmjx = #{kmjx} </if>
|
||||||
|
<if test="kmqx != null and kmqx != ''"> and kmqx = #{kmqx} </if>
|
||||||
|
<if test="jlrId != null"> and JLR_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> and XGR_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
|
||||||
|
<if test="zdyfzhs != null and zdyfzhs != ''"> and zdyfzhs = #{zdyfzhs} </if>
|
||||||
|
and sts='Y'
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="entity_delete">
|
||||||
|
delete from gl_kmxx where id= #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<!--根据会计年度,账套号,科目代码,公司代码删除科目-->
|
||||||
|
<delete id="SenderGlKmxxEntity_delete_kmxx">
|
||||||
|
delete from gl_kmxx where
|
||||||
|
gsdm= #{gsdm} and kjnd=#{kjnd} and zth=#{zth}
|
||||||
|
<if test="kmdm != null and kmdm != ''"> and kmdm=#{kmdm}</if>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,92 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glkmxx.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlKmxx)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:01:13
|
||||||
|
*/
|
||||||
|
public interface ISenderGlKmxxService extends IBaseService<SenderGlKmxxEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 科目信息同步 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:27
|
||||||
|
* **/
|
||||||
|
Object kmxxSynchronization(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询科目信息 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 18:33
|
||||||
|
* **/
|
||||||
|
Object queryEntityPage(JSONObject json);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询科目信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 18:33
|
||||||
|
* **/
|
||||||
|
List<SenderGlKmxxEntity> queryEntityPageHealthBureau(SenderGlKmxxEntity receiverGlKmxxEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存科目信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 11:54
|
||||||
|
* **/
|
||||||
|
Object saveEntityHealthBureau(JSONObject json);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新科目信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 13:37
|
||||||
|
* **/
|
||||||
|
Object updateEntityHealthBureau(JSONObject json);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除科目信息 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/9 16:55
|
||||||
|
* **/
|
||||||
|
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 获取数据源编码
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/13 14:59
|
||||||
|
* **/
|
||||||
|
SysExtensionApiEntity getDataSourceCode(SysExtensionApiEntity sysExtensionApiEntity);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,469 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glkmxx.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glkmxx.dao.ISenderGlKmxxDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glkmxx.entity.SenderGlKmxxEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glkmxx.service.ISenderGlKmxxService;
|
||||||
|
import com.hzya.frame.sysnew.application.database.dao.ISysApplicationDatabaseDao;
|
||||||
|
import com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysApplicationEntity;
|
||||||
|
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
|
||||||
|
import com.hzya.frame.web.entity.BaseResult;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.mybatis.spring.SqlSessionTemplate;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlKmxx)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:01:13
|
||||||
|
*/
|
||||||
|
@Service(value = "SenderGlKmxxServiceImpl")
|
||||||
|
public class SenderGlKmxxServiceImpl extends BaseService<SenderGlKmxxEntity, String> implements ISenderGlKmxxService {
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISysApplicationDatabaseDao sysApplicationDatabaseDao;
|
||||||
|
private ISenderGlKmxxDao senderGlKmxxDao;
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setSenderGlKmxxDao(ISenderGlKmxxDao dao) {
|
||||||
|
this.senderGlKmxxDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
|
||||||
|
//科目信息同步接口
|
||||||
|
@Override
|
||||||
|
public Object kmxxSynchronization(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlKmxxEntity senderGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||||
|
String result = null;
|
||||||
|
List<SenderGlKmxxEntity> senderGlKmxxEntities = new ArrayList<>();
|
||||||
|
try {
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if (senderGlKmxxEntity.getKjnd() == null) {
|
||||||
|
senderGlKmxxEntity.setKjnd(DateUtil.format(new Date(), "yyyy"));
|
||||||
|
}
|
||||||
|
/*try {
|
||||||
|
//同步南浔区人民医院001科目信息
|
||||||
|
senderGlKmxxEntity.setZth("001");
|
||||||
|
senderGlKmxxEntity.setGsdm("0101010101");
|
||||||
|
logger.info("==========开始查询南浔区人民医院科目信息========");
|
||||||
|
senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result = sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("南浔区人民医院GRPU8科目信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区人民医院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
try {
|
||||||
|
//同步南浔区练市人民医院003科目信息
|
||||||
|
senderGlKmxxEntity.setZth("003");
|
||||||
|
senderGlKmxxEntity.setGsdm("0101010103");
|
||||||
|
logger.info("==========开始查询南浔区练市人民医院科目信息========");
|
||||||
|
senderGlKmxxEntities = senderGlKmxxDao.querySenderGlKmxxEntity(senderGlKmxxEntity);
|
||||||
|
//senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result = sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("南浔区练市人民医院GRPU8科目信息同步结果为:{}", result);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("南浔区练市人民医院GRPU8科目信息同步失败:{}", e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
/*try {
|
||||||
|
//同步练市镇中心卫生院005科目信息
|
||||||
|
senderGlKmxxEntity.setZth("005");
|
||||||
|
senderGlKmxxEntity.setGsdm("0101010202");
|
||||||
|
logger.info("==========开始查询南浔区练市镇中心卫生院科目信息========");
|
||||||
|
senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("南浔区练市镇中心卫生院GRPU8科目信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区练市镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步南浔区善琏镇卫生院007科目信息
|
||||||
|
senderGlKmxxEntity.setZth("007");
|
||||||
|
senderGlKmxxEntity.setGsdm("0101010204");
|
||||||
|
logger.info("==========开始查询南浔区善琏镇卫生院科目信息========");
|
||||||
|
senderGlKmxxEntities = sqlSessionNxrm.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8科目信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步双林镇中心卫生院004科目信息
|
||||||
|
senderGlKmxxEntity.setZth("004");
|
||||||
|
senderGlKmxxEntity.setGsdm("0101010201");
|
||||||
|
senderGlKmxxEntities = sqlSessionSlz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("双林镇中心卫生院GRPU8科目信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("双林镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步菱湖镇中心卫生院009科目信息
|
||||||
|
senderGlKmxxEntity.setZth("009");
|
||||||
|
senderGlKmxxEntity.setGsdm("0101020201");
|
||||||
|
senderGlKmxxEntities = sqlSessionLhz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("菱湖镇中心卫生院GRPU8科目信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("菱湖镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步和孚镇卫生院010科目信息
|
||||||
|
senderGlKmxxEntity.setZth("010");
|
||||||
|
senderGlKmxxEntity.setGsdm("0101020202");
|
||||||
|
senderGlKmxxEntities = sqlSessionHfz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("和孚镇卫生院GRPU8科目信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("和孚镇卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步千金镇卫生院011科目信息
|
||||||
|
senderGlKmxxEntity.setZth("011");
|
||||||
|
senderGlKmxxEntity.setGsdm("0101020203");
|
||||||
|
senderGlKmxxEntities = sqlSessionQjz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("千金镇卫生院GRPU8科目信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("千金镇卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步石崇镇卫生院012科目信息
|
||||||
|
senderGlKmxxEntity.setZth("012");
|
||||||
|
senderGlKmxxEntity.setGsdm("0101020204");
|
||||||
|
senderGlKmxxEntities = sqlSessionScz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("石崇镇卫生院GRPU8科目信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("石崇镇卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步南浔镇中心卫生院014科目信息
|
||||||
|
senderGlKmxxEntity.setZth("014");
|
||||||
|
senderGlKmxxEntity.setGsdm("010202");
|
||||||
|
senderGlKmxxEntities = sqlSessionNxz.selectList("SenderGlKmxxEntity_list_base",senderGlKmxxEntity);
|
||||||
|
result =sendKmxxToHealthBureau(senderGlKmxxEntities);
|
||||||
|
logger.info("南浔镇中心卫生院GRPU8科目信息同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔镇中心卫生院GRPU8科目信息同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("GRPU8科目信息同步失败:{}", e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("status", "200");
|
||||||
|
jsonObject1.put("result", result);
|
||||||
|
return jsonObject1;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String sendKmxxToHealthBureau(List<SenderGlKmxxEntity> senderGlKmxxEntities) {
|
||||||
|
if (CollectionUtils.isEmpty(senderGlKmxxEntities)) {
|
||||||
|
logger.info("GRPU8没有需要同步得科目信息");
|
||||||
|
return "GRPU8没有需要同步得科目信息";
|
||||||
|
} else {
|
||||||
|
for (SenderGlKmxxEntity kmxxEntity : senderGlKmxxEntities) {
|
||||||
|
// kmxxEntity.setKjnd("2021");
|
||||||
|
//根据会计年度,公司代码,账套号,科目代码查询接收方数据是否已经同步过
|
||||||
|
SenderGlKmxxEntity receiverGlKmxxEntity = new SenderGlKmxxEntity();
|
||||||
|
receiverGlKmxxEntity.setKjnd(kmxxEntity.getKjnd());
|
||||||
|
receiverGlKmxxEntity.setZth(kmxxEntity.getZth());
|
||||||
|
receiverGlKmxxEntity.setGsdm(kmxxEntity.getGsdm());
|
||||||
|
receiverGlKmxxEntity.setKmdm(kmxxEntity.getKmdm());
|
||||||
|
try {
|
||||||
|
//查询接收方中是否存在
|
||||||
|
List<SenderGlKmxxEntity> receiverGlKmxxEntities = queryEntityPageHealthBureau(receiverGlKmxxEntity);
|
||||||
|
//设置id为会计年度,公司代码,账套号,科目代码拼接,测试时候这样,具体看情况
|
||||||
|
kmxxEntity.setId(kmxxEntity.getGsdm() + '-' + kmxxEntity.getZth() + '-' + kmxxEntity.getKjnd() + '-' + kmxxEntity.getKmdm());
|
||||||
|
JsonResultEntity jsonResultEntity = null;
|
||||||
|
//如果在接收方信息中不存在,则保存数据到接收方
|
||||||
|
if (CollectionUtils.isEmpty(receiverGlKmxxEntities)) {
|
||||||
|
JSONObject jsonObjectStr = new JSONObject();
|
||||||
|
jsonObjectStr.put("jsonStr", kmxxEntity);
|
||||||
|
logger.info("===========开始将账套号为:{}的GRPU8科目信息数据新增到卫生局得GRPU8中=============", kmxxEntity.getZth());
|
||||||
|
Object o = saveEntityHealthBureau(jsonObjectStr);
|
||||||
|
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||||
|
if (json.getString("status").equalsIgnoreCase("200")) {
|
||||||
|
//JSONObject jsonObject =(JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||||
|
logger.info("账套号:{}的GROU8得科目信息同步卫生局保存返回结果为:{}", kmxxEntity.getZth(), json.getString("kmxx"));
|
||||||
|
}
|
||||||
|
//日志暂时不保存和更新
|
||||||
|
/*if (jsonObjectAttribute != null) {
|
||||||
|
logger.info("===========开始将发送方得GRPU8数据新增到科目信息日志中=============");
|
||||||
|
//保存发送方得日志
|
||||||
|
kmxxEntity.setDataSourceCode(grp_data_source_code);
|
||||||
|
senderGlKmxxDao.saveSenderGlKmxxEntity(kmxxEntity);
|
||||||
|
}*/
|
||||||
|
} else {
|
||||||
|
//如果存在,则更新
|
||||||
|
JSONObject jsonObjectStr = new JSONObject();
|
||||||
|
jsonObjectStr.put("jsonStr", kmxxEntity);
|
||||||
|
logger.info("===========开始将账套号:{}得GRPU8科目信息数据更新到卫生局GRPU8中=============", kmxxEntity.getZth());
|
||||||
|
Object o = updateEntityHealthBureau(jsonObjectStr);
|
||||||
|
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||||
|
if (json.getString("status").equalsIgnoreCase("200")) {
|
||||||
|
//JSONObject jsonObject = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||||
|
logger.info("账套号:{}的GROU8得科目信息同步卫生局更新返回结果为:{}", kmxxEntity.getZth(), json.getString("kmxx"));
|
||||||
|
}
|
||||||
|
/*if (jsonObjectAttribute != null) {
|
||||||
|
logger.info("===========开始将发送方得GRPU8数据更新到科目信息日志中=============");
|
||||||
|
//更新发送方得日志
|
||||||
|
kmxxEntity.setDataSourceCode(grp_data_source_code);
|
||||||
|
senderGlKmxxDao.updateSenderGlKmxxEntity(kmxxEntity);
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("{}的GRPU8科目信息同步失败:{}", kmxxEntity.getZth(), e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "同步GRPU8科目信息成功";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询科目信息
|
||||||
|
@Override
|
||||||
|
public Object queryEntityPage(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlKmxxEntity senderGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||||
|
List<SenderGlKmxxEntity> glKmxxEntities = new ArrayList<>();
|
||||||
|
if (StrUtil.isEmpty(senderGlKmxxEntity.getZth())) {
|
||||||
|
logger.info("======传入的账套号为:{}", senderGlKmxxEntity.getZth());
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递账套号");
|
||||||
|
}
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if (senderGlKmxxEntity.getKjnd() == null) {
|
||||||
|
senderGlKmxxEntity.setKjnd(DateUtil.format(new Date(), "yyyy"));
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
/*switch (senderGlKmxxEntity.getZth()){
|
||||||
|
case "003"://练市人民医院
|
||||||
|
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||||
|
break;
|
||||||
|
case "004"://双林镇中心卫生院
|
||||||
|
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||||
|
break;
|
||||||
|
case "005"://练市镇中心卫生院
|
||||||
|
glKmxxEntities =senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||||
|
break;
|
||||||
|
case "007"://善琏镇卫生院
|
||||||
|
glKmxxEntities =senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||||
|
break;
|
||||||
|
case "009":
|
||||||
|
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||||
|
break;
|
||||||
|
case "010":
|
||||||
|
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||||
|
break;
|
||||||
|
case "011":
|
||||||
|
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||||
|
break;
|
||||||
|
case "012":
|
||||||
|
glKmxxEntities = senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||||
|
break;
|
||||||
|
case "001"://南浔人民医院
|
||||||
|
glKmxxEntities =senderGlKmxxDao.queryByLike(senderGlKmxxEntity);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}*/
|
||||||
|
glKmxxEntities = senderGlKmxxDao.querySenderGlKmxxEntity(senderGlKmxxEntity);
|
||||||
|
PageInfo pageInfo = new PageInfo(glKmxxEntities);
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("status", 200);
|
||||||
|
jsonObject1.put("pageInfo", pageInfo);
|
||||||
|
return jsonObject1;
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("查询GROU8科目信息失败:{}", e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("查询GROU8科目信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询科目信息
|
||||||
|
@Override
|
||||||
|
public List<SenderGlKmxxEntity> queryEntityPageHealthBureau(SenderGlKmxxEntity senderGlKmxxEntity) {
|
||||||
|
try {
|
||||||
|
logger.info("====开始根据账套号:{}查询卫生局中得科目信息数据====", senderGlKmxxEntity.getZth());
|
||||||
|
List<SenderGlKmxxEntity> senderGlKmxxEntities = senderGlKmxxDao.queryGlKmxxHealthBureau(senderGlKmxxEntity);
|
||||||
|
return senderGlKmxxEntities;
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("根据账套号:{}查询得卫生局GROU8科目信息失败:{}", senderGlKmxxEntity.getZth(), e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
//保存科目信息
|
||||||
|
@Override
|
||||||
|
public Object saveEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlKmxxEntity senderGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||||
|
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("======保存科目信息会计年度为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||||
|
logger.info("======保存科目信息公司代码为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("zth"))) {
|
||||||
|
logger.info("======保存科目信息账套号为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("kmdm"))) {
|
||||||
|
logger.info("======保存科目信息科目代码为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("科目代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("kmmc"))) {
|
||||||
|
logger.info("======保存科目信息科目名称为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("科目名称为空");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
SenderGlKmxxEntity senderGlKmxxQuery=new SenderGlKmxxEntity();
|
||||||
|
senderGlKmxxQuery.setZth(senderGlKmxxEntity.getZth());
|
||||||
|
senderGlKmxxQuery.setGsdm(senderGlKmxxEntity.getGsdm());
|
||||||
|
senderGlKmxxQuery.setKjnd(senderGlKmxxEntity.getKjnd());
|
||||||
|
senderGlKmxxQuery.setKmdm(senderGlKmxxEntity.getKmdm());
|
||||||
|
//先查询数据是否存在,如果存在则更新,不存在则更新
|
||||||
|
List<SenderGlKmxxEntity> senderGlKmxxEntities = queryEntityPageHealthBureau(senderGlKmxxQuery);
|
||||||
|
if(CollectionUtils.isEmpty(senderGlKmxxEntities)){
|
||||||
|
senderGlKmxxEntity.setId(senderGlKmxxEntity.getGsdm() + '-' + senderGlKmxxEntity.getZth() + '-' + senderGlKmxxEntity.getKjnd() + '-' + senderGlKmxxEntity.getKmdm());
|
||||||
|
logger.info("=======开始根据账套号:{}保存科目信息,id为:{}", senderGlKmxxEntity.getZth(), senderGlKmxxEntity.getId());
|
||||||
|
SenderGlKmxxEntity senderGlKmxx = senderGlKmxxDao.saveGlKmxxHealthBureau(senderGlKmxxEntity);
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("status", "200");
|
||||||
|
jsonObject1.put("kmxx", senderGlKmxx);
|
||||||
|
return jsonObject1;
|
||||||
|
}else{
|
||||||
|
SenderGlKmxxEntity receiverGlKmxx = senderGlKmxxDao.updateGlKmxxHealthBureau(senderGlKmxxEntity);
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("status", "200");
|
||||||
|
jsonObject1.put("kmxx", receiverGlKmxx);
|
||||||
|
return jsonObject1;
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("根据账套号:{}保存GROU8科目信息失败:{}", senderGlKmxxEntity.getZth(), e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("保存GROU8科目信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//更新科目信息
|
||||||
|
@Override
|
||||||
|
public Object updateEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlKmxxEntity receiverGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||||
|
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("======更新科目信息会计年度为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||||
|
logger.info("======更新科目信息公司代码为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("zth"))) {
|
||||||
|
logger.info("======更新科目信息账套号为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("kmdm"))) {
|
||||||
|
logger.info("======更新科目信息科目代码为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("科目代码为空");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
receiverGlKmxxEntity.setId(receiverGlKmxxEntity.getGsdm() + '-' + receiverGlKmxxEntity.getZth() + '-' + receiverGlKmxxEntity.getKjnd() + '-' + receiverGlKmxxEntity.getKmdm());
|
||||||
|
logger.info("=======开始根据账套号:{}更新科目信息,id为:{}", receiverGlKmxxEntity.getZth(), receiverGlKmxxEntity.getId());
|
||||||
|
SenderGlKmxxEntity receiverGlKmxx = senderGlKmxxDao.updateGlKmxxHealthBureau(receiverGlKmxxEntity);
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("status", "200");
|
||||||
|
jsonObject1.put("kmxx", receiverGlKmxx);
|
||||||
|
return jsonObject1;
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("根据账套号:{}更新GROU8科目信息失败:{}", receiverGlKmxxEntity.getZth(), e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新GROU8科目信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//删除科目信息 卫生局
|
||||||
|
@Override
|
||||||
|
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlKmxxEntity receiverGlKmxxEntity = jsonObject.toJavaObject(SenderGlKmxxEntity.class);
|
||||||
|
if (!checkStr(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("======删除科目信息会计年度为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("gsdm"))) {
|
||||||
|
logger.info("======删除科目信息公司代码为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (!checkStr(jsonObject.getString("zth"))) {
|
||||||
|
logger.info("======删除科目信息账套号为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("账套号为空");
|
||||||
|
}
|
||||||
|
/*if (!checkStr(jsonObject.getString("kmdm"))) {
|
||||||
|
logger.info("======删除科目信息科目代码为空=====");
|
||||||
|
return BaseResult.getFailureMessageEntity("科目代码为空");
|
||||||
|
}*/
|
||||||
|
try {
|
||||||
|
receiverGlKmxxEntity.setId(receiverGlKmxxEntity.getGsdm() + '-' + receiverGlKmxxEntity.getZth() + '-' + receiverGlKmxxEntity.getKjnd() + '-' + receiverGlKmxxEntity.getKmdm());
|
||||||
|
logger.info("=======开始根据账套号:{}和会计年度:{}删除科目信息,科目代码为:{}", receiverGlKmxxEntity.getZth(), receiverGlKmxxEntity.getKjnd(), receiverGlKmxxEntity.getKmdm());
|
||||||
|
Integer integer = senderGlKmxxDao.deleteGlKmxxHealthBureau(receiverGlKmxxEntity);
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("status", "200");
|
||||||
|
jsonObject1.put("kmxx", integer);
|
||||||
|
return jsonObject1;
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("根据账套号:{}和科目代码:{}以及会计年度:{}删除GROU8科目信息失败:{}", receiverGlKmxxEntity.getZth(), receiverGlKmxxEntity.getKmdm(), receiverGlKmxxEntity.getKjnd(), e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("删除GROU8科目信息失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取数据源编码
|
||||||
|
@Override
|
||||||
|
public SysExtensionApiEntity getDataSourceCode(SysExtensionApiEntity entity) {
|
||||||
|
try {
|
||||||
|
SysApplicationEntity applicationEntity = entity.getReceiveApp();
|
||||||
|
SysApplicationDatabaseEntity sysApplicationDatabaseEntity = new SysApplicationDatabaseEntity();
|
||||||
|
sysApplicationDatabaseEntity.setSts("Y");
|
||||||
|
sysApplicationDatabaseEntity.setAppId(applicationEntity.getId());
|
||||||
|
sysApplicationDatabaseEntity.setDataSourceCode("master");
|
||||||
|
List<SysApplicationDatabaseEntity> sysDataSourceEntities = sysApplicationDatabaseDao.queryDSBase(sysApplicationDatabaseEntity);
|
||||||
|
if (sysDataSourceEntities != null && sysDataSourceEntities.size() > 0) {
|
||||||
|
String parm = entity.getBodys();
|
||||||
|
JSONObject jsonObject = JSONObject.parseObject(parm);
|
||||||
|
jsonObject.put("dataSourceCode", sysDataSourceEntities.get(0).getSourceCode());
|
||||||
|
entity.setBodys(jsonObject.toJSONString());
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,89 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glxmzl.dao;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (gl_xmzl: table)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:38
|
||||||
|
*/
|
||||||
|
public interface ISenderGlXmzlDao extends IBaseDao<SenderGlXmzlEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询项目资料 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlXmzlEntity> querySenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存项目资料到项目日志中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/26 16:55
|
||||||
|
* **/
|
||||||
|
SenderGlXmzlEntity saveSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新项目资料到项目日志中 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/26 16:55
|
||||||
|
* **/
|
||||||
|
SenderGlXmzlEntity updateSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询项目资料 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 10:11
|
||||||
|
* **/
|
||||||
|
List<SenderGlXmzlEntity> queryGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存项目资料到项目日志中 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/26 16:55
|
||||||
|
* **/
|
||||||
|
SenderGlXmzlEntity saveGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新项目资料到项目日志中 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/26 16:55
|
||||||
|
* **/
|
||||||
|
SenderGlXmzlEntity updateGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除项目资料
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/9 17:15
|
||||||
|
* **/
|
||||||
|
Integer deleteGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,62 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glxmzl.dao.impl;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.dao.ISenderGlXmzlDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlXmzl)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:38
|
||||||
|
*/
|
||||||
|
@Repository(value = "SenderGlXmzlDaoImpl")
|
||||||
|
public class SenderGlXmzlDaoImpl extends MybatisGenericDao<SenderGlXmzlEntity, String> implements ISenderGlXmzlDao {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||||
|
public List<SenderGlXmzlEntity> querySenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||||
|
return super.queryByLike(senderGlXmzlEntity);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||||
|
public SenderGlXmzlEntity saveSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||||
|
return super.save(senderGlXmzlEntity);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||||
|
public SenderGlXmzlEntity updateSenderGlXmzlEntity(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||||
|
return super.update(senderGlXmzlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||||
|
public List<SenderGlXmzlEntity> queryGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||||
|
return super.query(senderGlXmzlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||||
|
public SenderGlXmzlEntity saveGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||||
|
return super.save(senderGlXmzlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||||
|
public SenderGlXmzlEntity updateGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||||
|
return super.update(senderGlXmzlEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DS("#senderGlXmzlEntity.dataSourceCode")
|
||||||
|
public Integer deleteGlXmzlHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||||
|
return super.delete("SenderGlXmzlEntity_delete_xmzl",senderGlXmzlEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,296 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glxmzl.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlXmzl)实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:38
|
||||||
|
*/
|
||||||
|
public class SenderGlXmzlEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String gsdm;
|
||||||
|
private String kjnd;
|
||||||
|
private String xmdm;
|
||||||
|
private String xmmc;
|
||||||
|
private String zjm;
|
||||||
|
private String ksrq;
|
||||||
|
private String jsrq;
|
||||||
|
private String bmdm;
|
||||||
|
private String bm;
|
||||||
|
private String ren;
|
||||||
|
private String zy;
|
||||||
|
private String syzt;
|
||||||
|
private Long jlrId;
|
||||||
|
private String jlRq;
|
||||||
|
private Integer xgrId;
|
||||||
|
private String xgRq;
|
||||||
|
private String sjly;
|
||||||
|
private String sfmx;
|
||||||
|
private String projobjid;
|
||||||
|
private String zdxmbz;
|
||||||
|
private String kzfs;
|
||||||
|
private String isjbzc;
|
||||||
|
private String lxnd;
|
||||||
|
private String zjly;
|
||||||
|
private String xmfl;
|
||||||
|
private String sfjt;
|
||||||
|
private String ren2;
|
||||||
|
private String ren3;
|
||||||
|
private Double ysje;
|
||||||
|
private String glh;
|
||||||
|
|
||||||
|
private String sfjjxm;
|
||||||
|
|
||||||
|
public String getSfjjxm() {
|
||||||
|
return sfjjxm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSfjjxm(String sfjjxm) {
|
||||||
|
this.sfjjxm = sfjjxm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGsdm() {
|
||||||
|
return gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGsdm(String gsdm) {
|
||||||
|
this.gsdm = gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjnd() {
|
||||||
|
return kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjnd(String kjnd) {
|
||||||
|
this.kjnd = kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXmdm() {
|
||||||
|
return xmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXmdm(String xmdm) {
|
||||||
|
this.xmdm = xmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXmmc() {
|
||||||
|
return xmmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXmmc(String xmmc) {
|
||||||
|
this.xmmc = xmmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZjm() {
|
||||||
|
return zjm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZjm(String zjm) {
|
||||||
|
this.zjm = zjm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKsrq() {
|
||||||
|
return ksrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKsrq(String ksrq) {
|
||||||
|
this.ksrq = ksrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJsrq() {
|
||||||
|
return jsrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJsrq(String jsrq) {
|
||||||
|
this.jsrq = jsrq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBmdm() {
|
||||||
|
return bmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBmdm(String bmdm) {
|
||||||
|
this.bmdm = bmdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBm() {
|
||||||
|
return bm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBm(String bm) {
|
||||||
|
this.bm = bm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRen() {
|
||||||
|
return ren;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRen(String ren) {
|
||||||
|
this.ren = ren;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZy() {
|
||||||
|
return zy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZy(String zy) {
|
||||||
|
this.zy = zy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSyzt() {
|
||||||
|
return syzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSyzt(String syzt) {
|
||||||
|
this.syzt = syzt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getJlrId() {
|
||||||
|
return jlrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJlrId(Long jlrId) {
|
||||||
|
this.jlrId = jlrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJlRq() {
|
||||||
|
return jlRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJlRq(String jlRq) {
|
||||||
|
this.jlRq = jlRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getXgrId() {
|
||||||
|
return xgrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXgrId(Integer xgrId) {
|
||||||
|
this.xgrId = xgrId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXgRq() {
|
||||||
|
return xgRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXgRq(String xgRq) {
|
||||||
|
this.xgRq = xgRq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSjly() {
|
||||||
|
return sjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSjly(String sjly) {
|
||||||
|
this.sjly = sjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSfmx() {
|
||||||
|
return sfmx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSfmx(String sfmx) {
|
||||||
|
this.sfmx = sfmx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProjobjid() {
|
||||||
|
return projobjid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProjobjid(String projobjid) {
|
||||||
|
this.projobjid = projobjid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZdxmbz() {
|
||||||
|
return zdxmbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZdxmbz(String zdxmbz) {
|
||||||
|
this.zdxmbz = zdxmbz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKzfs() {
|
||||||
|
return kzfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKzfs(String kzfs) {
|
||||||
|
this.kzfs = kzfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIsjbzc() {
|
||||||
|
return isjbzc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsjbzc(String isjbzc) {
|
||||||
|
this.isjbzc = isjbzc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLxnd() {
|
||||||
|
return lxnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLxnd(String lxnd) {
|
||||||
|
this.lxnd = lxnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZjly() {
|
||||||
|
return zjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZjly(String zjly) {
|
||||||
|
this.zjly = zjly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXmfl() {
|
||||||
|
return xmfl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXmfl(String xmfl) {
|
||||||
|
this.xmfl = xmfl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSfjt() {
|
||||||
|
return sfjt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSfjt(String sfjt) {
|
||||||
|
this.sfjt = sfjt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRen2() {
|
||||||
|
return ren2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRen2(String ren2) {
|
||||||
|
this.ren2 = ren2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRen3() {
|
||||||
|
return ren3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRen3(String ren3) {
|
||||||
|
this.ren3 = ren3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getYsje() {
|
||||||
|
return ysje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYsje(Double ysje) {
|
||||||
|
this.ysje = ysje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGlh() {
|
||||||
|
return glh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGlh(String glh) {
|
||||||
|
this.glh = glh;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,440 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.glxmzl.dao.impl.SenderGlXmzlDaoImpl">
|
||||||
|
|
||||||
|
<resultMap id="get-SenderGlXmzlEntity-result" type="com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" >
|
||||||
|
<result property="gsdm" column="GSDM" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kjnd" column="KJND" jdbcType="VARCHAR"/>
|
||||||
|
<result property="xmdm" column="XMDM" jdbcType="VARCHAR"/>
|
||||||
|
<result property="xmmc" column="XMMC" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zjm" column="ZJM" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ksrq" column="KSRQ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="jsrq" column="JSRQ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="bmdm" column="BMDM" jdbcType="VARCHAR"/>
|
||||||
|
<result property="bm" column="BM" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ren" column="REN" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zy" column="ZY" jdbcType="VARCHAR"/>
|
||||||
|
<result property="syzt" column="SYZT" jdbcType="VARCHAR"/>
|
||||||
|
<result property="jlrId" column="JLR_ID" jdbcType="INTEGER"/>
|
||||||
|
<result property="jlRq" column="JL_RQ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="xgrId" column="XGR_ID" jdbcType="INTEGER"/>
|
||||||
|
<result property="xgRq" column="XG_RQ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sjly" column="SJLY" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sfmx" column="SFMX" jdbcType="VARCHAR"/>
|
||||||
|
<result property="projobjid" column="PROJOBJID" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zdxmbz" column="ZDXMBZ" jdbcType="VARCHAR"/>
|
||||||
|
<result property="kzfs" column="KZFS" jdbcType="VARCHAR"/>
|
||||||
|
<result property="isjbzc" column="ISJBZC" jdbcType="VARCHAR"/>
|
||||||
|
<result property="lxnd" column="LXND" jdbcType="VARCHAR"/>
|
||||||
|
<result property="zjly" column="ZJLY" jdbcType="VARCHAR"/>
|
||||||
|
<result property="xmfl" column="XMFL" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sfjt" column="SFJT" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ren2" column="REN2" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ren3" column="REN3" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ysje" column="YSJE" jdbcType="NUMERIC"/>
|
||||||
|
<result property="glh" column="GLH" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sfjjxm" column="sfjjxm" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
<!-- 查询的字段-->
|
||||||
|
<sql id = "SenderGlXmzlEntity_Base_Column_List">
|
||||||
|
GSDM
|
||||||
|
,KJND
|
||||||
|
,XMDM
|
||||||
|
,XMMC
|
||||||
|
,ZJM
|
||||||
|
,KSRQ
|
||||||
|
,JSRQ
|
||||||
|
,BMDM
|
||||||
|
,BM
|
||||||
|
,REN
|
||||||
|
,ZY
|
||||||
|
,SYZT
|
||||||
|
,JLR_ID
|
||||||
|
,JL_RQ
|
||||||
|
,XGR_ID
|
||||||
|
,XG_RQ
|
||||||
|
,SJLY
|
||||||
|
,SFMX
|
||||||
|
,PROJOBJID
|
||||||
|
,ZDXMBZ
|
||||||
|
,KZFS
|
||||||
|
,ISJBZC
|
||||||
|
,LXND
|
||||||
|
,ZJLY
|
||||||
|
,XMFL
|
||||||
|
,SFJT
|
||||||
|
,REN2
|
||||||
|
,REN3
|
||||||
|
,YSJE
|
||||||
|
,GLH
|
||||||
|
,sfjjxm
|
||||||
|
</sql>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="entity_list_base" resultMap="get-SenderGlXmzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlXmzlEntity_Base_Column_List" />
|
||||||
|
from gl_xmzl
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and XMDM = #{xmdm} </if>
|
||||||
|
<if test="xmmc != null and xmmc != ''"> and XMMC = #{xmmc} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
|
||||||
|
<if test="ksrq != null and ksrq != ''"> and KSRQ = #{ksrq} </if>
|
||||||
|
<if test="jsrq != null and jsrq != ''"> and JSRQ = #{jsrq} </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> and BMDM = #{bmdm} </if>
|
||||||
|
<if test="bm != null and bm != ''"> and BM = #{bm} </if>
|
||||||
|
<if test="ren != null and ren != ''"> and REN = #{ren} </if>
|
||||||
|
<if test="zy != null and zy != ''"> and ZY = #{zy} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </if>
|
||||||
|
<if test="jlrId != null"> and JLR_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> and XGR_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and XG_RQ >= #{xgRq} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
|
||||||
|
<if test="projobjid != null and projobjid != ''"> and PROJOBJID = #{projobjid} </if>
|
||||||
|
<if test="zdxmbz != null and zdxmbz != ''"> and ZDXMBZ = #{zdxmbz} </if>
|
||||||
|
<if test="kzfs != null and kzfs != ''"> and KZFS = #{kzfs} </if>
|
||||||
|
<if test="isjbzc != null and isjbzc != ''"> and ISJBZC = #{isjbzc} </if>
|
||||||
|
<if test="lxnd != null and lxnd != ''"> and LXND = #{lxnd} </if>
|
||||||
|
<if test="zjly != null and zjly != ''"> and ZJLY = #{zjly} </if>
|
||||||
|
<if test="xmfl != null and xmfl != ''"> and XMFL = #{xmfl} </if>
|
||||||
|
<if test="sfjt != null and sfjt != ''"> and SFJT = #{sfjt} </if>
|
||||||
|
<if test="ren2 != null and ren2 != ''"> and REN2 = #{ren2} </if>
|
||||||
|
<if test="ren3 != null and ren3 != ''"> and REN3 = #{ren3} </if>
|
||||||
|
<if test="ysje != null"> and YSJE = #{ysje} </if>
|
||||||
|
<if test="glh != null and glh != ''"> and GLH = #{glh} </if>
|
||||||
|
<if test="sfjjxm != null and sfjjxm != ''"> and sfjjxm = #{sfjjxm} </if>
|
||||||
|
-- and gsdm in ('0101010201','0101010202')
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询符合条件的数量 -->
|
||||||
|
<select id="SenderGlXmzlEntity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity">
|
||||||
|
select count(1) from gl_xmzl
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and XMDM = #{xmdm} </if>
|
||||||
|
<if test="xmmc != null and xmmc != ''"> and XMMC = #{xmmc} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
|
||||||
|
<if test="ksrq != null and ksrq != ''"> and KSRQ = #{ksrq} </if>
|
||||||
|
<if test="jsrq != null and jsrq != ''"> and JSRQ = #{jsrq} </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> and BMDM = #{bmdm} </if>
|
||||||
|
<if test="bm != null and bm != ''"> and BM = #{bm} </if>
|
||||||
|
<if test="ren != null and ren != ''"> and REN = #{ren} </if>
|
||||||
|
<if test="zy != null and zy != ''"> and ZY = #{zy} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </if>
|
||||||
|
<if test="jlrId != null"> and JLR_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> and XGR_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
|
||||||
|
<if test="projobjid != null and projobjid != ''"> and PROJOBJID = #{projobjid} </if>
|
||||||
|
<if test="zdxmbz != null and zdxmbz != ''"> and ZDXMBZ = #{zdxmbz} </if>
|
||||||
|
<if test="kzfs != null and kzfs != ''"> and KZFS = #{kzfs} </if>
|
||||||
|
<if test="isjbzc != null and isjbzc != ''"> and ISJBZC = #{isjbzc} </if>
|
||||||
|
<if test="lxnd != null and lxnd != ''"> and LXND = #{lxnd} </if>
|
||||||
|
<if test="zjly != null and zjly != ''"> and ZJLY = #{zjly} </if>
|
||||||
|
<if test="xmfl != null and xmfl != ''"> and XMFL = #{xmfl} </if>
|
||||||
|
<if test="sfjt != null and sfjt != ''"> and SFJT = #{sfjt} </if>
|
||||||
|
<if test="ren2 != null and ren2 != ''"> and REN2 = #{ren2} </if>
|
||||||
|
<if test="ren3 != null and ren3 != ''"> and REN3 = #{ren3} </if>
|
||||||
|
<if test="ysje != null"> and YSJE = #{ysje} </if>
|
||||||
|
<if test="glh != null and glh != ''"> and GLH = #{glh} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
|
<select id="entity_list_like" resultMap="get-SenderGlXmzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlXmzlEntity_Base_Column_List" />
|
||||||
|
from gl_xmzl
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and GSDM like concat('%',#{gsdm},'%') </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and KJND like concat('%',#{kjnd},'%') </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and XMDM like concat('%',#{xmdm},'%') </if>
|
||||||
|
<if test="xmmc != null and xmmc != ''"> and XMMC like concat('%',#{xmmc},'%') </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and ZJM like concat('%',#{zjm},'%') </if>
|
||||||
|
<if test="ksrq != null and ksrq != ''"> and KSRQ like concat('%',#{ksrq},'%') </if>
|
||||||
|
<if test="jsrq != null and jsrq != ''"> and JSRQ like concat('%',#{jsrq},'%') </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> and BMDM like concat('%',#{bmdm},'%') </if>
|
||||||
|
<if test="bm != null and bm != ''"> and BM like concat('%',#{bm},'%') </if>
|
||||||
|
<if test="ren != null and ren != ''"> and REN like concat('%',#{ren},'%') </if>
|
||||||
|
<if test="zy != null and zy != ''"> and ZY like concat('%',#{zy},'%') </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and SYZT like concat('%',#{syzt},'%') </if>
|
||||||
|
<if test="jlrId != null"> and JLR_ID like concat('%',#{jlrId},'%') </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and JL_RQ like concat('%',#{jlRq},'%') </if>
|
||||||
|
<if test="xgrId != null"> and XGR_ID like concat('%',#{xgrId},'%') </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and XG_RQ like concat('%',#{xgRq},'%') </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and SJLY like concat('%',#{sjly},'%') </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> and SFMX like concat('%',#{sfmx},'%') </if>
|
||||||
|
<if test="projobjid != null and projobjid != ''"> and PROJOBJID like concat('%',#{projobjid},'%') </if>
|
||||||
|
<if test="zdxmbz != null and zdxmbz != ''"> and ZDXMBZ like concat('%',#{zdxmbz},'%') </if>
|
||||||
|
<if test="kzfs != null and kzfs != ''"> and KZFS like concat('%',#{kzfs},'%') </if>
|
||||||
|
<if test="isjbzc != null and isjbzc != ''"> and ISJBZC like concat('%',#{isjbzc},'%') </if>
|
||||||
|
<if test="lxnd != null and lxnd != ''"> and LXND like concat('%',#{lxnd},'%') </if>
|
||||||
|
<if test="zjly != null and zjly != ''"> and ZJLY like concat('%',#{zjly},'%') </if>
|
||||||
|
<if test="xmfl != null and xmfl != ''"> and XMFL like concat('%',#{xmfl},'%') </if>
|
||||||
|
<if test="sfjt != null and sfjt != ''"> and SFJT like concat('%',#{sfjt},'%') </if>
|
||||||
|
<if test="ren2 != null and ren2 != ''"> and REN2 like concat('%',#{ren2},'%') </if>
|
||||||
|
<if test="ren3 != null and ren3 != ''"> and REN3 like concat('%',#{ren3},'%') </if>
|
||||||
|
<if test="ysje != null"> and YSJE like concat('%',#{ysje},'%') </if>
|
||||||
|
<if test="glh != null and glh != ''"> and GLH like concat('%',#{glh},'%') </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
|
<select id="SenderGlXmzlEntity_list_or" resultMap="get-SenderGlXmzlEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity">
|
||||||
|
select
|
||||||
|
<include refid="SenderGlXmzlEntity_Base_Column_List" />
|
||||||
|
from gl_xmzl
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> or GSDM = #{gsdm} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> or KJND = #{kjnd} </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> or XMDM = #{xmdm} </if>
|
||||||
|
<if test="xmmc != null and xmmc != ''"> or XMMC = #{xmmc} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> or ZJM = #{zjm} </if>
|
||||||
|
<if test="ksrq != null and ksrq != ''"> or KSRQ = #{ksrq} </if>
|
||||||
|
<if test="jsrq != null and jsrq != ''"> or JSRQ = #{jsrq} </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> or BMDM = #{bmdm} </if>
|
||||||
|
<if test="bm != null and bm != ''"> or BM = #{bm} </if>
|
||||||
|
<if test="ren != null and ren != ''"> or REN = #{ren} </if>
|
||||||
|
<if test="zy != null and zy != ''"> or ZY = #{zy} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> or SYZT = #{syzt} </if>
|
||||||
|
<if test="jlrId != null"> or JLR_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> or JL_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> or XGR_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> or XG_RQ = #{xgRq} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> or SJLY = #{sjly} </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> or SFMX = #{sfmx} </if>
|
||||||
|
<if test="projobjid != null and projobjid != ''"> or PROJOBJID = #{projobjid} </if>
|
||||||
|
<if test="zdxmbz != null and zdxmbz != ''"> or ZDXMBZ = #{zdxmbz} </if>
|
||||||
|
<if test="kzfs != null and kzfs != ''"> or KZFS = #{kzfs} </if>
|
||||||
|
<if test="isjbzc != null and isjbzc != ''"> or ISJBZC = #{isjbzc} </if>
|
||||||
|
<if test="lxnd != null and lxnd != ''"> or LXND = #{lxnd} </if>
|
||||||
|
<if test="zjly != null and zjly != ''"> or ZJLY = #{zjly} </if>
|
||||||
|
<if test="xmfl != null and xmfl != ''"> or XMFL = #{xmfl} </if>
|
||||||
|
<if test="sfjt != null and sfjt != ''"> or SFJT = #{sfjt} </if>
|
||||||
|
<if test="ren2 != null and ren2 != ''"> or REN2 = #{ren2} </if>
|
||||||
|
<if test="ren3 != null and ren3 != ''"> or REN3 = #{ren3} </if>
|
||||||
|
<if test="ysje != null"> or YSJE = #{ysje} </if>
|
||||||
|
<if test="glh != null and glh != ''"> or GLH = #{glh} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--新增所有列-->
|
||||||
|
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_xmzl(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> KJND , </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> XMDM , </if>
|
||||||
|
<if test="xmmc != null and xmmc != ''"> XMMC , </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> ZJM , </if>
|
||||||
|
<if test="ksrq != null and ksrq != ''"> KSRQ , </if>
|
||||||
|
<if test="jsrq != null and jsrq != ''"> JSRQ , </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> BMDM , </if>
|
||||||
|
<if test="bm != null and bm != ''"> BM , </if>
|
||||||
|
<if test="ren != null and ren != ''"> REN , </if>
|
||||||
|
<if test="zy != null and zy != ''"> ZY , </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> SYZT , </if>
|
||||||
|
<if test="jlrId != null"> JLR_ID , </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> JL_RQ , </if>
|
||||||
|
<if test="xgrId != null"> XGR_ID , </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> XG_RQ , </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> SJLY , </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> SFMX , </if>
|
||||||
|
<if test="projobjid != null and projobjid != ''"> PROJOBJID , </if>
|
||||||
|
<if test="zdxmbz != null and zdxmbz != ''"> ZDXMBZ , </if>
|
||||||
|
<if test="kzfs != null and kzfs != ''"> KZFS , </if>
|
||||||
|
<if test="isjbzc != null and isjbzc != ''"> ISJBZC , </if>
|
||||||
|
<if test="lxnd != null and lxnd != ''"> LXND , </if>
|
||||||
|
<if test="zjly != null and zjly != ''"> ZJLY , </if>
|
||||||
|
<if test="xmfl != null and xmfl != ''"> XMFL , </if>
|
||||||
|
<if test="sfjt != null and sfjt != ''"> SFJT , </if>
|
||||||
|
<if test="ren2 != null and ren2 != ''"> REN2 , </if>
|
||||||
|
<if test="ren3 != null and ren3 != ''"> REN3 , </if>
|
||||||
|
<if test="ysje != null"> YSJE , </if>
|
||||||
|
<if test="glh != null and glh != ''"> GLH, </if>
|
||||||
|
<if test="sfjjxm != null and sfjjxm != ''"> sfjjxm, </if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> GSDM </if>
|
||||||
|
</trim>
|
||||||
|
)values(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> #{xmdm} ,</if>
|
||||||
|
<if test="xmmc != null and xmmc != ''"> #{xmmc} ,</if>
|
||||||
|
<if test="zjm != null and zjm != ''"> #{zjm} ,</if>
|
||||||
|
<if test="ksrq != null and ksrq != ''"> #{ksrq} ,</if>
|
||||||
|
<if test="jsrq != null and jsrq != ''"> #{jsrq} ,</if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> #{bmdm} ,</if>
|
||||||
|
<if test="bm != null and bm != ''"> #{bm} ,</if>
|
||||||
|
<if test="ren != null and ren != ''"> #{ren} ,</if>
|
||||||
|
<if test="zy != null and zy != ''"> #{zy} ,</if>
|
||||||
|
<if test="syzt != null and syzt != ''"> #{syzt} ,</if>
|
||||||
|
<if test="jlrId != null"> #{jlrId} ,</if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> #{jlRq} ,</if>
|
||||||
|
<if test="xgrId != null"> #{xgrId} ,</if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> #{xgRq} ,</if>
|
||||||
|
<if test="sjly != null and sjly != ''"> #{sjly} ,</if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> #{sfmx} ,</if>
|
||||||
|
<if test="projobjid != null and projobjid != ''"> #{projobjid} ,</if>
|
||||||
|
<if test="zdxmbz != null and zdxmbz != ''"> #{zdxmbz} ,</if>
|
||||||
|
<if test="kzfs != null and kzfs != ''"> #{kzfs} ,</if>
|
||||||
|
<if test="isjbzc != null and isjbzc != ''"> #{isjbzc} ,</if>
|
||||||
|
<if test="lxnd != null and lxnd != ''"> #{lxnd} ,</if>
|
||||||
|
<if test="zjly != null and zjly != ''"> #{zjly} ,</if>
|
||||||
|
<if test="xmfl != null and xmfl != ''"> #{xmfl} ,</if>
|
||||||
|
<if test="sfjt != null and sfjt != ''"> #{sfjt} ,</if>
|
||||||
|
<if test="ren2 != null and ren2 != ''"> #{ren2} ,</if>
|
||||||
|
<if test="ren3 != null and ren3 != ''"> #{ren3} ,</if>
|
||||||
|
<if test="ysje != null"> #{ysje} ,</if>
|
||||||
|
<if test="glh != null and glh != ''"> #{glh} ,</if>
|
||||||
|
<if test="sfjjxm != null and sfjjxm != ''"> #{sfjjxm} ,</if>
|
||||||
|
<if test="gsdm != null and gsdm != ''"> #{gsdm} </if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 批量新增 -->
|
||||||
|
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_xmzl(id,GSDM, KJND, XMDM, XMMC, ZJM, KSRQ, JSRQ, BMDM, BM, REN, ZY, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SJLY, SFMX, PROJOBJID, ZDXMBZ, KZFS, ISJBZC, LXND, ZJLY, XMFL, SFJT, REN2, REN3, YSJE, GLH)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.id},#{entity.gsdm},#{entity.kjnd},#{entity.xmdm},#{entity.xmmc},#{entity.zjm},#{entity.ksrq},#{entity.jsrq},#{entity.bmdm},#{entity.bm},#{entity.ren},#{entity.zy},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.projobjid},#{entity.zdxmbz},#{entity.kzfs},#{entity.isjbzc},#{entity.lxnd},#{entity.zjly},#{entity.xmfl},#{entity.sfjt},#{entity.ren2},#{entity.ren3},#{entity.ysje},#{entity.glh})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增或者修改-->
|
||||||
|
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||||
|
insert into gl_xmzl(id,GSDM, KJND, XMDM, XMMC, ZJM, KSRQ, JSRQ, BMDM, BM, REN, ZY, SYZT, JLR_ID, JL_RQ, XGR_ID, XG_RQ, SJLY, SFMX, PROJOBJID, ZDXMBZ, KZFS, ISJBZC, LXND, ZJLY, XMFL, SFJT, REN2, REN3, YSJE, GLH)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.id},#{entity.gsdm},#{entity.kjnd},#{entity.xmdm},#{entity.xmmc},#{entity.zjm},#{entity.ksrq},#{entity.jsrq},#{entity.bmdm},#{entity.bm},#{entity.ren},#{entity.zy},#{entity.syzt},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.sfmx},#{entity.projobjid},#{entity.zdxmbz},#{entity.kzfs},#{entity.isjbzc},#{entity.lxnd},#{entity.zjly},#{entity.xmfl},#{entity.sfjt},#{entity.ren2},#{entity.ren3},#{entity.ysje},#{entity.glh})
|
||||||
|
</foreach>
|
||||||
|
on duplicate key update
|
||||||
|
GSDM = values(GSDM),
|
||||||
|
KJND = values(KJND),
|
||||||
|
XMDM = values(XMDM),
|
||||||
|
XMMC = values(XMMC),
|
||||||
|
ZJM = values(ZJM),
|
||||||
|
KSRQ = values(KSRQ),
|
||||||
|
JSRQ = values(JSRQ),
|
||||||
|
BMDM = values(BMDM),
|
||||||
|
BM = values(BM),
|
||||||
|
REN = values(REN),
|
||||||
|
ZY = values(ZY),
|
||||||
|
SYZT = values(SYZT),
|
||||||
|
JLR_ID = values(JLR_ID),
|
||||||
|
JL_RQ = values(JL_RQ),
|
||||||
|
XGR_ID = values(XGR_ID),
|
||||||
|
XG_RQ = values(XG_RQ),
|
||||||
|
SJLY = values(SJLY),
|
||||||
|
SFMX = values(SFMX),
|
||||||
|
PROJOBJID = values(PROJOBJID),
|
||||||
|
ZDXMBZ = values(ZDXMBZ),
|
||||||
|
KZFS = values(KZFS),
|
||||||
|
ISJBZC = values(ISJBZC),
|
||||||
|
LXND = values(LXND),
|
||||||
|
ZJLY = values(ZJLY),
|
||||||
|
XMFL = values(XMFL),
|
||||||
|
SFJT = values(SFJT),
|
||||||
|
REN2 = values(REN2),
|
||||||
|
REN3 = values(REN3),
|
||||||
|
YSJE = values(YSJE),
|
||||||
|
GLH = values(GLH)</insert>
|
||||||
|
<!--通过主键修改方法-->
|
||||||
|
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" >
|
||||||
|
update gl_xmzl set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> GSDM = #{gsdm},</if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> KJND = #{kjnd},</if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> XMDM = #{xmdm},</if>
|
||||||
|
<if test="xmmc != null and xmmc != ''"> XMMC = #{xmmc},</if>
|
||||||
|
<if test="zjm != null and zjm != ''"> ZJM = #{zjm},</if>
|
||||||
|
<if test="ksrq != null and ksrq != ''"> KSRQ = #{ksrq},</if>
|
||||||
|
<if test="jsrq != null and jsrq != ''"> JSRQ = #{jsrq},</if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> BMDM = #{bmdm},</if>
|
||||||
|
<if test="bm != null and bm != ''"> BM = #{bm},</if>
|
||||||
|
<if test="ren != null and ren != ''"> REN = #{ren},</if>
|
||||||
|
<if test="zy != null and zy != ''"> ZY = #{zy},</if>
|
||||||
|
<if test="syzt != null and syzt != ''"> SYZT = #{syzt},</if>
|
||||||
|
<if test="jlrId != null"> JLR_ID = #{jlrId},</if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> JL_RQ = #{jlRq},</if>
|
||||||
|
<if test="xgrId != null"> XGR_ID = #{xgrId},</if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> XG_RQ = #{xgRq},</if>
|
||||||
|
<if test="sjly != null and sjly != ''"> SJLY = #{sjly},</if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> SFMX = #{sfmx},</if>
|
||||||
|
<if test="projobjid != null and projobjid != ''"> PROJOBJID = #{projobjid},</if>
|
||||||
|
<if test="zdxmbz != null and zdxmbz != ''"> ZDXMBZ = #{zdxmbz},</if>
|
||||||
|
<if test="kzfs != null and kzfs != ''"> KZFS = #{kzfs},</if>
|
||||||
|
<if test="isjbzc != null and isjbzc != ''"> ISJBZC = #{isjbzc},</if>
|
||||||
|
<if test="lxnd != null and lxnd != ''"> LXND = #{lxnd},</if>
|
||||||
|
<if test="zjly != null and zjly != ''"> ZJLY = #{zjly},</if>
|
||||||
|
<if test="xmfl != null and xmfl != ''"> XMFL = #{xmfl},</if>
|
||||||
|
<if test="sfjt != null and sfjt != ''"> SFJT = #{sfjt},</if>
|
||||||
|
<if test="ren2 != null and ren2 != ''"> REN2 = #{ren2},</if>
|
||||||
|
<if test="ren3 != null and ren3 != ''"> REN3 = #{ren3},</if>
|
||||||
|
<if test="ysje != null"> YSJE = #{ysje},</if>
|
||||||
|
<if test="sfjjxm != null"> sfjjxm = #{sfjjxm},</if>
|
||||||
|
<if test="glh != null and glh != ''"> GLH = #{glh}</if>
|
||||||
|
</trim>
|
||||||
|
where kjnd= #{kjnd} and gsdm=#{gsdm} and xmdm=#{xmdm}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!-- 逻辑删除 -->
|
||||||
|
<update id="SenderGlXmzlEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" >
|
||||||
|
update gl_xmzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
where id= #{id}
|
||||||
|
</update>
|
||||||
|
<!-- 多条件逻辑删除 -->
|
||||||
|
<update id="SenderGlXmzlEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity" >
|
||||||
|
update gl_xmzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
|
||||||
|
<if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and XMDM = #{xmdm} </if>
|
||||||
|
<if test="xmmc != null and xmmc != ''"> and XMMC = #{xmmc} </if>
|
||||||
|
<if test="zjm != null and zjm != ''"> and ZJM = #{zjm} </if>
|
||||||
|
<if test="ksrq != null and ksrq != ''"> and KSRQ = #{ksrq} </if>
|
||||||
|
<if test="jsrq != null and jsrq != ''"> and JSRQ = #{jsrq} </if>
|
||||||
|
<if test="bmdm != null and bmdm != ''"> and BMDM = #{bmdm} </if>
|
||||||
|
<if test="bm != null and bm != ''"> and BM = #{bm} </if>
|
||||||
|
<if test="ren != null and ren != ''"> and REN = #{ren} </if>
|
||||||
|
<if test="zy != null and zy != ''"> and ZY = #{zy} </if>
|
||||||
|
<if test="syzt != null and syzt != ''"> and SYZT = #{syzt} </if>
|
||||||
|
<if test="jlrId != null"> and JLR_ID = #{jlrId} </if>
|
||||||
|
<if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
|
||||||
|
<if test="xgrId != null"> and XGR_ID = #{xgrId} </if>
|
||||||
|
<if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
|
||||||
|
<if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
|
||||||
|
<if test="sfmx != null and sfmx != ''"> and SFMX = #{sfmx} </if>
|
||||||
|
<if test="projobjid != null and projobjid != ''"> and PROJOBJID = #{projobjid} </if>
|
||||||
|
<if test="zdxmbz != null and zdxmbz != ''"> and ZDXMBZ = #{zdxmbz} </if>
|
||||||
|
<if test="kzfs != null and kzfs != ''"> and KZFS = #{kzfs} </if>
|
||||||
|
<if test="isjbzc != null and isjbzc != ''"> and ISJBZC = #{isjbzc} </if>
|
||||||
|
<if test="lxnd != null and lxnd != ''"> and LXND = #{lxnd} </if>
|
||||||
|
<if test="zjly != null and zjly != ''"> and ZJLY = #{zjly} </if>
|
||||||
|
<if test="xmfl != null and xmfl != ''"> and XMFL = #{xmfl} </if>
|
||||||
|
<if test="sfjt != null and sfjt != ''"> and SFJT = #{sfjt} </if>
|
||||||
|
<if test="ren2 != null and ren2 != ''"> and REN2 = #{ren2} </if>
|
||||||
|
<if test="ren3 != null and ren3 != ''"> and REN3 = #{ren3} </if>
|
||||||
|
<if test="ysje != null"> and YSJE = #{ysje} </if>
|
||||||
|
<if test="glh != null and glh != ''"> and GLH = #{glh} </if>
|
||||||
|
and sts='Y'
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="entity_delete">
|
||||||
|
delete from gl_xmzl where id= #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<!--通过会计年度,公司代码,项目资料代码删除-->
|
||||||
|
<delete id="SenderGlXmzlEntity_delete_xmzl">
|
||||||
|
delete from gl_xmzl where gsdm= #{gsdm} and kjnd=#{kjnd}
|
||||||
|
<if test="xmdm != null and xmdm != ''"> and xmdm = #{xmdm} </if>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,79 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glxmzl.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlXmzl)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:38
|
||||||
|
*/
|
||||||
|
public interface ISenderGlXmzlService extends IBaseService<SenderGlXmzlEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 同步项目资料 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 11:53
|
||||||
|
* **/
|
||||||
|
Object glXmzlSynchronization(JSONObject json);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询项目资料 卫生院
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 18:48
|
||||||
|
* **/
|
||||||
|
Object queryEntityPage(JSONObject json);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 查询项目资料 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/20 18:48
|
||||||
|
* **/
|
||||||
|
List<SenderGlXmzlEntity> queryEntityPageHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 保存项目资料 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 13:43
|
||||||
|
* **/
|
||||||
|
Object saveEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 更新项目资料 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/21 14:00
|
||||||
|
* **/
|
||||||
|
Object updateEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 删除项目资料 卫生局
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/8/9 17:08
|
||||||
|
* **/
|
||||||
|
Object deleteEntityHealthBureau(JSONObject jsonObject);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,407 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.glxmzl.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.dao.ISenderGlXmzlDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.entity.SenderGlXmzlEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.glxmzl.service.ISenderGlXmzlService;
|
||||||
|
import com.hzya.frame.web.entity.BaseResult;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.mybatis.spring.SqlSessionTemplate;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (GlXmzl)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-20 10:02:38
|
||||||
|
*/
|
||||||
|
@Service(value = "SenderGlXmzlServiceImpl")
|
||||||
|
public class SenderGlXmzlServiceImpl extends BaseService<SenderGlXmzlEntity, String> implements ISenderGlXmzlService {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private ISenderGlXmzlDao senderGlXmzlDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setSenderGlXmzlDao(ISenderGlXmzlDao dao) {
|
||||||
|
this.senderGlXmzlDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
|
||||||
|
//同步项目资料
|
||||||
|
@Override
|
||||||
|
public Object glXmzlSynchronization(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlXmzlEntity senderGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||||
|
List<SenderGlXmzlEntity> senderGlXmzlEntities=new ArrayList<>();
|
||||||
|
String result=null;
|
||||||
|
try {
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if(senderGlXmzlEntity.getKjnd()==null){
|
||||||
|
senderGlXmzlEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||||
|
}
|
||||||
|
logger.info("===========开始查询GRPU8项目资料信息=============");
|
||||||
|
/*try {
|
||||||
|
//同步南浔区人民医院001项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("0101010101");
|
||||||
|
logger.info("==========开始查询南浔区人民医院项目资料========");
|
||||||
|
senderGlXmzlEntities = sqlSessionNxrm.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||||
|
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("南浔区人民医院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区人民医院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
try {
|
||||||
|
//同步南浔区练市人民医院003项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("0101010103");
|
||||||
|
logger.info("==========开始查询南浔区练市人民医院项目资料========");
|
||||||
|
senderGlXmzlEntities=senderGlXmzlDao.querySenderGlXmzlEntity(senderGlXmzlEntity);
|
||||||
|
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("南浔区练市人民医院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区练市人民医院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
/*try {
|
||||||
|
//同步练市镇中心卫生院005项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("0101010202");
|
||||||
|
logger.info("==========开始查询南浔区练市镇中心卫生院项目资料========");
|
||||||
|
senderGlXmzlEntities = sqlSessionNxrm.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||||
|
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("练市镇中心卫生院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("练市镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步善琏镇卫生院007项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("0101010204");
|
||||||
|
logger.info("==========开始查询南浔区善琏镇卫生院项目资料========");
|
||||||
|
senderGlXmzlEntities = sqlSessionNxrm.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||||
|
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔区善琏镇卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
/*try {
|
||||||
|
//同步双林镇中心卫生院004项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("0101010201");
|
||||||
|
senderGlXmzlEntities = sqlSessionSlz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||||
|
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("双林镇中心卫生院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("双林镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步菱湖镇中心卫生院009项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("0101020201");
|
||||||
|
senderGlXmzlEntities = sqlSessionLhz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||||
|
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("菱湖镇中心卫生院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("菱湖镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步和孚镇卫生院010项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("0101020202");
|
||||||
|
senderGlXmzlEntities = sqlSessionHfz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||||
|
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("和孚镇卫生院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("和孚镇卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步千金镇卫生院011项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("0101020203");
|
||||||
|
senderGlXmzlEntities = sqlSessionQjz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||||
|
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("千金镇卫生院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("千金镇卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
//同步石崇镇卫生院012项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("0101020204");
|
||||||
|
senderGlXmzlEntities = sqlSessionScz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||||
|
result=sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("石崇镇卫生院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("石崇镇卫生院GRPU8项目资料同步失败:{}",result);
|
||||||
|
e.printStackTrace();
|
||||||
|
}try {
|
||||||
|
//同步南浔镇中心卫生院014项目资料
|
||||||
|
senderGlXmzlEntity.setGsdm("010202");
|
||||||
|
senderGlXmzlEntities = sqlSessionNxz.selectList("SenderGlXmzlEntity_list_base",senderGlXmzlEntity);
|
||||||
|
result= sendXmzlToHealthBureau(senderGlXmzlEntities);
|
||||||
|
logger.info("南浔镇中心卫生院GRPU8项目资料同步结果为:{}",result);
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("南浔镇中心卫生院GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}*/
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("GRPU8项目资料同步失败:{}",e.getMessage());
|
||||||
|
throw new RuntimeException(e.getMessage());
|
||||||
|
}
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("result",result);
|
||||||
|
return jsonObject1;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String sendXmzlToHealthBureau(List<SenderGlXmzlEntity> senderGlXmzlEntities){
|
||||||
|
if (CollectionUtils.isEmpty(senderGlXmzlEntities)) {
|
||||||
|
logger.info("GRPU8没有需要同步得项目资料信息");
|
||||||
|
return "GRPU8没有需要同步得项目资料信息";
|
||||||
|
} else {
|
||||||
|
for (SenderGlXmzlEntity xmzlEntity : senderGlXmzlEntities) {
|
||||||
|
//xmzlEntity.setKjnd("2021");
|
||||||
|
//根据会计年度,公司代码,项目代码查询数据是否已经同步过
|
||||||
|
SenderGlXmzlEntity receiverGlXmzlEntity = new SenderGlXmzlEntity();
|
||||||
|
receiverGlXmzlEntity.setKjnd(xmzlEntity.getKjnd());
|
||||||
|
receiverGlXmzlEntity.setGsdm(xmzlEntity.getGsdm());
|
||||||
|
receiverGlXmzlEntity.setXmdm(xmzlEntity.getXmdm());
|
||||||
|
try {
|
||||||
|
List<SenderGlXmzlEntity> receiverGlXmzlEntities=queryEntityPageHealthBureau(receiverGlXmzlEntity);
|
||||||
|
//设置id为会计年度,公司代码,项目代码拼接,测试时候这样,具体看情况
|
||||||
|
xmzlEntity.setId(xmzlEntity.getGsdm() + '-' + xmzlEntity.getKjnd() + '-' + xmzlEntity.getXmdm());
|
||||||
|
JsonResultEntity jsonResultEntity=null;
|
||||||
|
if (CollectionUtils.isEmpty(receiverGlXmzlEntities)) {
|
||||||
|
logger.info("===========开始将公司代码为:{}得GRPU8项目资料信息同步保存到卫生局GRPU8中=============",xmzlEntity.getGsdm());
|
||||||
|
JSONObject jsonObjectStr = new JSONObject();
|
||||||
|
jsonObjectStr.put("jsonStr", xmzlEntity);
|
||||||
|
Object o = saveEntityHealthBureau(jsonObjectStr);
|
||||||
|
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||||
|
if(json.getString("status").equalsIgnoreCase("200")){
|
||||||
|
//JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||||
|
logger.info("======公司代码为:{}得GROU8项目资料信息同步保存到卫生局得返回结果为:{}=======",xmzlEntity.getGsdm(),json.getString("xmzl"));
|
||||||
|
}
|
||||||
|
/*if (jsonObjectAttribute != null) {
|
||||||
|
logger.info("===========开始将发送方的GRPU8项目资料信息新增到项目资料日志中=============");
|
||||||
|
//保存发送方得日志
|
||||||
|
xmzlEntity.setDataSourceCode(grp_data_source_code);
|
||||||
|
senderGlXmzlDao.saveSenderGlXmzlEntity(xmzlEntity);
|
||||||
|
}*/
|
||||||
|
} else {
|
||||||
|
logger.info("===========开始将公司代码为:{}得GRPU8项目资料信息同步更新到卫生局GRPU8中=============",xmzlEntity.getGsdm());
|
||||||
|
JSONObject jsonObjectStr = new JSONObject();
|
||||||
|
jsonObjectStr.put("jsonStr", xmzlEntity);
|
||||||
|
Object o = updateEntityHealthBureau(jsonObjectStr);
|
||||||
|
JSONObject json = (JSONObject) JSON.toJSON(o);
|
||||||
|
if(json.getString("status").equalsIgnoreCase("200")){
|
||||||
|
//JSONObject json = (JSONObject) JSONObject.toJSON(jsonResultEntity.getAttribute());
|
||||||
|
logger.info("======公司代码:{}得GROU8项目资料信息同步更新到卫生局得返回结果为:{}=======",xmzlEntity.getGsdm(),json.getString("xmzl"));
|
||||||
|
}
|
||||||
|
/*if (jsonObjectAttribute != null) {
|
||||||
|
logger.info("===========开始将发送方的GRPU8项目资料信息更新到项目资料日志中=============");
|
||||||
|
//保存发送方得日志
|
||||||
|
xmzlEntity.setDataSourceCode(grp_data_source_code);
|
||||||
|
senderGlXmzlDao.updateSenderGlXmzlEntity(xmzlEntity);
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.info("公司代码为:{}得GRPU8项目资料同步失败:{}", xmzlEntity.getGsdm(),e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "同步GROU8项目资料成功";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询项目资料
|
||||||
|
@Override
|
||||||
|
public Object queryEntityPage(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlXmzlEntity senderGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||||
|
List<SenderGlXmzlEntity> senderGlXmzlEntities=new ArrayList<>();
|
||||||
|
//如果没有传入年度,则查询当年得,避免数据查询太大
|
||||||
|
if(senderGlXmzlEntity.getKjnd()==null){
|
||||||
|
senderGlXmzlEntity.setKjnd(DateUtil.format(new Date(),"yyyy"));
|
||||||
|
}
|
||||||
|
if(StrUtil.isEmpty(senderGlXmzlEntity.getGsdm())){
|
||||||
|
logger.info("======根据公司编码:{}查询项目资料为空",senderGlXmzlEntity.getGsdm());
|
||||||
|
return BaseResult.getFailureMessageEntity("请传递公司编码");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
/*switch (senderGlXmzlEntity.getGsdm()){
|
||||||
|
case "0101010103"://练市人民医院
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||||
|
break;
|
||||||
|
case "0101010201"://双林镇中心卫生院
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||||
|
break;
|
||||||
|
case "0101010202"://练市镇中心卫生院
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||||
|
break;
|
||||||
|
case "0101010204"://善琏镇卫生院
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||||
|
break;
|
||||||
|
case "0101020201":
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||||
|
break;
|
||||||
|
case "0101020202":
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||||
|
break;
|
||||||
|
case "0101020203":
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||||
|
break;
|
||||||
|
case "0101020204":
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||||
|
break;
|
||||||
|
case "0101010101"://南浔区人民医院
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.queryByLike(senderGlXmzlEntity);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}*/
|
||||||
|
senderGlXmzlEntities = senderGlXmzlDao.querySenderGlXmzlEntity(senderGlXmzlEntity);
|
||||||
|
PageInfo pageInfo=new PageInfo(senderGlXmzlEntities);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("pageInfo",pageInfo);
|
||||||
|
return jsonObject1;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据公司代码:{}查询GROU8项目资料失败:{}",senderGlXmzlEntity.getGsdm(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("查询GROU8项目资料失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//保存项目资料
|
||||||
|
@Override
|
||||||
|
public Object saveEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlXmzlEntity receiverGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("保存项目资料时会计年度为空");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||||
|
logger.info("保存项目资料时公司代码为空");
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("xmdm"))) {
|
||||||
|
logger.info("保存项目资料时项目资料代码为空");
|
||||||
|
return BaseResult.getFailureMessageEntity("项目资料代码为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("xmmc"))) {
|
||||||
|
logger.info("保存项目资料时项目资料名称为空");
|
||||||
|
return BaseResult.getFailureMessageEntity("项目资料名称为空");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
SenderGlXmzlEntity senderGlXmzlEntity=new SenderGlXmzlEntity();
|
||||||
|
senderGlXmzlEntity.setGsdm(receiverGlXmzlEntity.getGsdm());
|
||||||
|
senderGlXmzlEntity.setKjnd(receiverGlXmzlEntity.getKjnd());
|
||||||
|
senderGlXmzlEntity.setXmdm(receiverGlXmzlEntity.getXmdm());
|
||||||
|
List<SenderGlXmzlEntity> senderGlXmzlEntities = queryEntityPageHealthBureau(senderGlXmzlEntity);
|
||||||
|
if(CollectionUtils.isEmpty(senderGlXmzlEntities)){
|
||||||
|
receiverGlXmzlEntity.setId(receiverGlXmzlEntity.getGsdm()+'-'+receiverGlXmzlEntity.getKjnd()+'-'+receiverGlXmzlEntity.getXmdm());
|
||||||
|
logger.info("=======开始根据公司代码:{}保存项目资料,id为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getId());
|
||||||
|
SenderGlXmzlEntity receiverGlXmzlEntitySave = senderGlXmzlDao.saveGlXmzlHealthBureau(receiverGlXmzlEntity);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("xmzl",receiverGlXmzlEntitySave);
|
||||||
|
return jsonObject1;
|
||||||
|
}else{
|
||||||
|
logger.info("=======开始根据公司代码:{}更新项目资料,id为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getId());
|
||||||
|
SenderGlXmzlEntity receiverGlXmzlEntity1 = senderGlXmzlDao.updateGlXmzlHealthBureau(receiverGlXmzlEntity);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("xmzl",receiverGlXmzlEntity1);
|
||||||
|
return jsonObject1;
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据公司代码:{}保存GROU8项目资料失败:{}",receiverGlXmzlEntity.getGsdm(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("保存GROU8项目资料失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//更新项目资料
|
||||||
|
@Override
|
||||||
|
public Object updateEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlXmzlEntity receiverGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("更新项目资料时会计年度为空");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||||
|
logger.info("更新项目资料时公司代码为空");
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("xmdm"))) {
|
||||||
|
logger.info("更新项目资料时项目资料代码为空");
|
||||||
|
return BaseResult.getFailureMessageEntity("项目资料代码为空");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
receiverGlXmzlEntity.setId(receiverGlXmzlEntity.getGsdm()+'-'+receiverGlXmzlEntity.getKjnd()+'-'+receiverGlXmzlEntity.getXmdm());
|
||||||
|
logger.info("=======开始根据公司代码:{}更新项目资料,id为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getId());
|
||||||
|
SenderGlXmzlEntity receiverGlXmzlEntity1 = senderGlXmzlDao.updateGlXmzlHealthBureau(receiverGlXmzlEntity);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("xmzl",receiverGlXmzlEntity1);
|
||||||
|
return jsonObject1;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据公司代码:{}更新GROU8项目资料失败:{}",receiverGlXmzlEntity.getGsdm(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("更新GROU8项目资料失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//删除项目资料
|
||||||
|
@Override
|
||||||
|
public Object deleteEntityHealthBureau(JSONObject json) {
|
||||||
|
JSONObject jsonObject = json.getJSONObject("jsonStr");
|
||||||
|
SenderGlXmzlEntity receiverGlXmzlEntity = jsonObject.toJavaObject(SenderGlXmzlEntity.class);
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("kjnd"))) {
|
||||||
|
logger.info("删除项目资料时会计年度为空");
|
||||||
|
return BaseResult.getFailureMessageEntity("会计年度为空");
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(jsonObject.getString("gsdm"))) {
|
||||||
|
logger.info("删除项目资料时公司代码为空");
|
||||||
|
return BaseResult.getFailureMessageEntity("公司代码为空");
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
receiverGlXmzlEntity.setId(receiverGlXmzlEntity.getGsdm()+'-'+receiverGlXmzlEntity.getKjnd()+'-'+receiverGlXmzlEntity.getXmdm());
|
||||||
|
logger.info("=======开始根据公司代码:{}删除项目资料为:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getXmdm());
|
||||||
|
Integer integer = senderGlXmzlDao.deleteGlXmzlHealthBureau(receiverGlXmzlEntity);
|
||||||
|
JSONObject jsonObject1=new JSONObject();
|
||||||
|
jsonObject1.put("status","200");
|
||||||
|
jsonObject1.put("xmzl",integer);
|
||||||
|
return jsonObject1;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据公司代码:{}删除GROU8项目资料:{}失败:{}",receiverGlXmzlEntity.getGsdm(),receiverGlXmzlEntity.getXmdm(),e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("删除GROU8项目资料失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询项目资料
|
||||||
|
@Override
|
||||||
|
public List<SenderGlXmzlEntity> queryEntityPageHealthBureau(SenderGlXmzlEntity senderGlXmzlEntity) {
|
||||||
|
try {
|
||||||
|
logger.info("====根据公司代码:{}查询卫生局中得项目资料数据====",senderGlXmzlEntity.getGsdm());
|
||||||
|
List<SenderGlXmzlEntity> receiverGlXmzlEntities = senderGlXmzlDao.queryGlXmzlHealthBureau(senderGlXmzlEntity);
|
||||||
|
return receiverGlXmzlEntities;
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.info("根据公司代码:{}查询卫生局的GROU8项目资料失败:{}",senderGlXmzlEntity.getGsdm(),e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.oerannex.dao;/*
|
||||||
|
* @Description 附件关系表
|
||||||
|
* @Author xiangerlin
|
||||||
|
@Date 2022-10-26 10:04
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity;
|
||||||
|
|
||||||
|
public interface IOerAnnexDao extends IBaseDao<OerAnnexEntity, String> {
|
||||||
|
Integer deleteAnnex(OerAnnexEntity delete);
|
||||||
|
|
||||||
|
OerAnnexEntity queryMaxId(OerAnnexEntity entity);
|
||||||
|
|
||||||
|
Integer saveData(OerAnnexEntity annexEntity);
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.oerannex.dao.impl;/*
|
||||||
|
* @Description 附件关系表
|
||||||
|
* @Author xiangerlin
|
||||||
|
@Date 2022-10-26 10:05
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerannex.dao.IOerAnnexDao;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity;
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public class OerAnnexDaoImpl extends MybatisGenericDao<OerAnnexEntity, String> implements IOerAnnexDao {
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public Integer deleteAnnex(OerAnnexEntity entity) {
|
||||||
|
Integer o = super.delete( "com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity.OerAnnexEntity_delete", entity);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public OerAnnexEntity queryMaxId(OerAnnexEntity entity) {
|
||||||
|
OerAnnexEntity o = super.query(entity,"com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity.OerAnnexEntity_max_id");
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public Integer saveData(OerAnnexEntity entity) {
|
||||||
|
Integer o = super.insert("com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity.OerAnnexEntity_insert",entity);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,149 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.oerannex.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @Description 附件关系表
|
||||||
|
* @Author xiangerlin
|
||||||
|
@Date 2022-10-26 8:44
|
||||||
|
*/
|
||||||
|
public class OerAnnexEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String annexid; //主键id
|
||||||
|
private String mlid;//报销单id
|
||||||
|
private String gsdm;//公司代码 默认001
|
||||||
|
private String kjnd;//会计年度
|
||||||
|
private String bnxid;// 不知道是什么 填0
|
||||||
|
private String xh;//序号
|
||||||
|
private String onlyid;// AT_AttachmentFile 表的主键ATGuid
|
||||||
|
private String annexName;//附件名
|
||||||
|
private Long annexSize;//附件大小
|
||||||
|
private String showSize;//附件大小显示值
|
||||||
|
private String ole;// 不知道是什么,填空
|
||||||
|
private String fjType;//附件类型, 数据库中只有 其他、其他其他(&Z)、合同3种类型
|
||||||
|
private String fpid;//不知道是什么 填空
|
||||||
|
|
||||||
|
private String maxAnnexid;//最大id
|
||||||
|
|
||||||
|
private String aTextName;//后缀名
|
||||||
|
|
||||||
|
public String getAnnexid() {
|
||||||
|
return annexid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAnnexid(String annexid) {
|
||||||
|
this.annexid = annexid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMlid() {
|
||||||
|
return mlid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMlid(String mlid) {
|
||||||
|
this.mlid = mlid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGsdm() {
|
||||||
|
return gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGsdm(String gsdm) {
|
||||||
|
this.gsdm = gsdm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKjnd() {
|
||||||
|
return kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKjnd(String kjnd) {
|
||||||
|
this.kjnd = kjnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBnxid() {
|
||||||
|
return bnxid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBnxid(String bnxid) {
|
||||||
|
this.bnxid = bnxid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXh() {
|
||||||
|
return xh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXh(String xh) {
|
||||||
|
this.xh = xh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOnlyid() {
|
||||||
|
return onlyid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOnlyid(String onlyid) {
|
||||||
|
this.onlyid = onlyid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAnnexName() {
|
||||||
|
return annexName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAnnexName(String annexName) {
|
||||||
|
this.annexName = annexName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAnnexSize() {
|
||||||
|
return annexSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAnnexSize(Long annexSize) {
|
||||||
|
this.annexSize = annexSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShowSize() {
|
||||||
|
return showSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShowSize(String showSize) {
|
||||||
|
this.showSize = showSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOle() {
|
||||||
|
return ole;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOle(String ole) {
|
||||||
|
this.ole = ole;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFjType() {
|
||||||
|
return fjType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFjType(String fjType) {
|
||||||
|
this.fjType = fjType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFpid() {
|
||||||
|
return fpid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFpid(String fpid) {
|
||||||
|
this.fpid = fpid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMaxAnnexid() {
|
||||||
|
return maxAnnexid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxAnnexid(String maxAnnexid) {
|
||||||
|
this.maxAnnexid = maxAnnexid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getaTextName() {
|
||||||
|
return aTextName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setaTextName(String aTextName) {
|
||||||
|
this.aTextName = aTextName;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,125 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity">
|
||||||
|
<resultMap id="get-OerAnnexEntity-result" type="com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity">
|
||||||
|
<result property="annexid" column="annexid" />
|
||||||
|
<result property="mlid" column="mlid" />
|
||||||
|
<result property="gsdm" column="gsdm" />
|
||||||
|
<result property="kjnd" column="kjnd" />
|
||||||
|
<result property="bnxid" column="bnxid" />
|
||||||
|
<result property="xh" column="xh" />
|
||||||
|
<result property="onlyid" column="onlyid" />
|
||||||
|
<result property="annexName" column="annexName" />
|
||||||
|
<result property="annexSize" column="annexSize" />
|
||||||
|
<result property="showSize" column="showSize" />
|
||||||
|
<result property="ole" column="ole" />
|
||||||
|
<result property="fjType" column="fjType" />
|
||||||
|
<result property="fpid" column="fpid" />
|
||||||
|
<result property="maxAnnexid" column="maxAnnexid" />
|
||||||
|
<result property="aTextName" column="aTextName" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="OerAnnexEntity_Base_Column_List">
|
||||||
|
AnnexID,
|
||||||
|
MLID,
|
||||||
|
GSDM,
|
||||||
|
KJND,
|
||||||
|
BNXID,
|
||||||
|
XH,
|
||||||
|
OnlyID,
|
||||||
|
AnnexName,
|
||||||
|
AnnexSize,
|
||||||
|
ShowSize,
|
||||||
|
OLE,
|
||||||
|
FJType,
|
||||||
|
FPID
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="OerAnnexEntity_list_base" resultMap="get-OerAnnexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity">
|
||||||
|
select
|
||||||
|
<include refid="OerAnnexEntity_Base_Column_List" />
|
||||||
|
FROM
|
||||||
|
OER_ANNEX
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="mlid != null and mlid !='' "> MLID = #{mlid} </if>
|
||||||
|
<if test="kjnd != null and kjnd !='' ">and KJND = #{kjnd} </if>
|
||||||
|
<if test="gsdm != null and gsdm !='' ">and gsdm = #{gsdm} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 查询 采用==查询 联查附件表 -->
|
||||||
|
<select id="OerAnnexEntity_list_base_join_attachment" resultMap="get-OerAnnexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity">
|
||||||
|
select
|
||||||
|
OER_ANNEX.AnnexID,
|
||||||
|
OER_ANNEX.mlid,
|
||||||
|
OER_ANNEX.OnlyID,
|
||||||
|
OER_ANNEX.AnnexName,
|
||||||
|
OER_ANNEX.AnnexSize,
|
||||||
|
AT_AttachmentFile.AtextName
|
||||||
|
FROM
|
||||||
|
OER_ANNEX
|
||||||
|
LEFT JOIN AT_AttachmentFile ON AT_AttachmentFile.ATGuid = OER_ANNEX.OnlyID
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="mlid != null and mlid !='' "> MLID = #{mlid} </if>
|
||||||
|
<if test="kjnd != null and kjnd !='' ">and KJND = #{kjnd} </if>
|
||||||
|
<if test="gsdm != null and gsdm !='' ">and gsdm = #{gsdm} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--查询最大id-->
|
||||||
|
<select id="OerAnnexEntity_max_id" resultMap="get-OerAnnexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity">
|
||||||
|
SELECT
|
||||||
|
MAX(AnnexID) as maxAnnexid
|
||||||
|
FROM
|
||||||
|
OER_ANNEX
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="kjnd != null and kjnd !='' "> KJND = #{kjnd} </if>
|
||||||
|
<if test="gsdm != null and gsdm !='' ">and GSDM = #{gsdm} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="OerAnnexEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity">
|
||||||
|
insert into OER_ANNEX(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="annexid != null and annexid !='' ">AnnexID,</if>
|
||||||
|
<if test="mlid != null and mlid !='' "> MLID, </if>
|
||||||
|
<if test="gsdm != null and gsdm !='' "> gsdm, </if>
|
||||||
|
<if test="kjnd != null and kjnd !='' "> kjnd ,</if>
|
||||||
|
<if test="xh != null and xh !='' ">xh,</if>
|
||||||
|
<if test="onlyid != null and onlyid !='' ">onlyid,</if>
|
||||||
|
<if test="annexName != null and annexName !='' ">annexName,</if>
|
||||||
|
<if test="annexSize != null and annexSize !='' ">annexSize,</if>
|
||||||
|
<if test="showSize != null and showSize !='' ">showSize,</if>
|
||||||
|
<if test="fjType != null and fjType !='' ">fjType,</if>
|
||||||
|
bnxid,
|
||||||
|
ole,
|
||||||
|
fpid
|
||||||
|
</trim>
|
||||||
|
)values
|
||||||
|
(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="annexid != null and annexid !='' ">#{annexid},</if>
|
||||||
|
<if test="mlid != null and mlid !='' "> #{mlid}, </if>
|
||||||
|
<if test="gsdm != null and gsdm !='' "> #{gsdm}, </if>
|
||||||
|
<if test="kjnd != null and kjnd !='' "> #{kjnd} ,</if>
|
||||||
|
<if test="xh != null and xh !='' ">#{xh},</if>
|
||||||
|
<if test="onlyid != null and onlyid !='' ">#{onlyid},</if>
|
||||||
|
<if test="annexName != null and annexName !='' ">#{annexName},</if>
|
||||||
|
<if test="annexSize != null and annexSize !='' ">#{annexSize},</if>
|
||||||
|
<if test="showSize != null and showSize !='' ">#{showSize},</if>
|
||||||
|
<if test="fjType != null and fjType !='' ">#{fjType},</if>
|
||||||
|
0,
|
||||||
|
null,
|
||||||
|
''
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<!-- 删除附件 -->
|
||||||
|
<delete id="OerAnnexEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity">
|
||||||
|
delete from OER_ANNEX where mlid = #{mlid} and kjnd = #{kjnd} and gsdm = #{gsdm}
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.hzya.frame.grpU8.nxproof.oerannex.service;
|
||||||
|
/*
|
||||||
|
* @Description 附件关系表
|
||||||
|
* @Author xiangerlin
|
||||||
|
@Date 2022-10-26 10:06
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.grpU8.nxproof.oerannex.entity.OerAnnexEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface IOerAnnexService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询附件关系
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<OerAnnexEntity> queryAnnex(OerAnnexEntity entity)throws Exception;
|
||||||
|
/**
|
||||||
|
* 查询最大id
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
String queryMaxId(OerAnnexEntity entity)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存附件关系
|
||||||
|
* @param entity
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
void saveAnnex(OerAnnexEntity entity)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除附件关系
|
||||||
|
* @param entity
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
void deleteAnnex(OerAnnexEntity entity)throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询附件关系,联查附件对象表
|
||||||
|
* @param mlid
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
List<OerAnnexEntity> queryAnnexAndFile(String mlid)throws Exception;
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue