master分支结构上传
This commit is contained in:
parent
482f0533c4
commit
f0db5772a2
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.plugin.masterData.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
|
||||
|
||||
/**
|
||||
* 客户档案(mdm_customer: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public interface IMdmDao extends IBaseDao<MdmEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.plugin.masterData.dao.impl;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
|
||||
import com.hzya.frame.plugin.masterData.dao.IMdmDao;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmDaoImpl extends MybatisGenericDao<MdmEntity, String> implements IMdmDao {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,186 @@
|
|||
package com.hzya.frame.plugin.masterData.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmEntity extends BaseEntity {
|
||||
|
||||
/** 单据规则 */
|
||||
private String documentRule;
|
||||
/** 单据规则流水号 */
|
||||
private Long documentRuleNum;
|
||||
/** 数据状态 Y正常 N删除 F修改 */
|
||||
private String dataStatus;
|
||||
/** 新增数据状态 0待下发 1已下发 */
|
||||
private String addStatus;
|
||||
/** 修改数据状态 0待下发 1已下发 */
|
||||
private String updateStatus;
|
||||
/** 删除数据状态 0待下发 1已下发 */
|
||||
private String deleteStatus;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
/** 客户编码 */
|
||||
private String code;
|
||||
/** 客户类型 */
|
||||
private String custprop;
|
||||
/** 客户状态 */
|
||||
private String custstate;
|
||||
/** 启用状态 */
|
||||
private String enablestate;
|
||||
/** 客户名称 */
|
||||
private String name;
|
||||
/** 国家/地区 */
|
||||
private String pkCountry;
|
||||
/** 客户基本分类 */
|
||||
private String pkCustclass;
|
||||
/** 所属集团 */
|
||||
private String pkGroup;
|
||||
/** 所属组织 */
|
||||
private String pkOrg;
|
||||
/** 纳税人登记号 */
|
||||
private String taxpayerid;
|
||||
|
||||
|
||||
public String getDocumentRule() {
|
||||
return documentRule;
|
||||
}
|
||||
|
||||
public void setDocumentRule(String documentRule) {
|
||||
this.documentRule = documentRule;
|
||||
}
|
||||
|
||||
public Long getDocumentRuleNum() {
|
||||
return documentRuleNum;
|
||||
}
|
||||
|
||||
public void setDocumentRuleNum(Long documentRuleNum) {
|
||||
this.documentRuleNum = documentRuleNum;
|
||||
}
|
||||
|
||||
public String getDataStatus() {
|
||||
return dataStatus;
|
||||
}
|
||||
|
||||
public void setDataStatus(String dataStatus) {
|
||||
this.dataStatus = dataStatus;
|
||||
}
|
||||
|
||||
public String getAddStatus() {
|
||||
return addStatus;
|
||||
}
|
||||
|
||||
public void setAddStatus(String addStatus) {
|
||||
this.addStatus = addStatus;
|
||||
}
|
||||
|
||||
public String getUpdateStatus() {
|
||||
return updateStatus;
|
||||
}
|
||||
|
||||
public void setUpdateStatus(String updateStatus) {
|
||||
this.updateStatus = updateStatus;
|
||||
}
|
||||
|
||||
public String getDeleteStatus() {
|
||||
return deleteStatus;
|
||||
}
|
||||
|
||||
public void setDeleteStatus(String deleteStatus) {
|
||||
this.deleteStatus = deleteStatus;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCustprop() {
|
||||
return custprop;
|
||||
}
|
||||
|
||||
public void setCustprop(String custprop) {
|
||||
this.custprop = custprop;
|
||||
}
|
||||
|
||||
public String getCuststate() {
|
||||
return custstate;
|
||||
}
|
||||
|
||||
public void setCuststate(String custstate) {
|
||||
this.custstate = custstate;
|
||||
}
|
||||
|
||||
public String getEnablestate() {
|
||||
return enablestate;
|
||||
}
|
||||
|
||||
public void setEnablestate(String enablestate) {
|
||||
this.enablestate = enablestate;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPkCountry() {
|
||||
return pkCountry;
|
||||
}
|
||||
|
||||
public void setPkCountry(String pkCountry) {
|
||||
this.pkCountry = pkCountry;
|
||||
}
|
||||
|
||||
public String getPkCustclass() {
|
||||
return pkCustclass;
|
||||
}
|
||||
|
||||
public void setPkCustclass(String pkCustclass) {
|
||||
this.pkCustclass = pkCustclass;
|
||||
}
|
||||
|
||||
public String getPkGroup() {
|
||||
return pkGroup;
|
||||
}
|
||||
|
||||
public void setPkGroup(String pkGroup) {
|
||||
this.pkGroup = pkGroup;
|
||||
}
|
||||
|
||||
public String getPkOrg() {
|
||||
return pkOrg;
|
||||
}
|
||||
|
||||
public void setPkOrg(String pkOrg) {
|
||||
this.pkOrg = pkOrg;
|
||||
}
|
||||
|
||||
public String getTaxpayerid() {
|
||||
return taxpayerid;
|
||||
}
|
||||
|
||||
public void setTaxpayerid(String taxpayerid) {
|
||||
this.taxpayerid = taxpayerid;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,375 @@
|
|||
<?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.plugin.masterData.dao.impl.MdmDaoImpl">
|
||||
|
||||
<resultMap id="get-MdmCustomerEntity-result" type="com.hzya.frame.plugin.masterData.entity.MdmEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="documentRule" column="document_rule" jdbcType="VARCHAR"/>
|
||||
<result property="documentRuleNum" column="document_rule_num" jdbcType="INTEGER"/>
|
||||
<result property="dataStatus" column="data_status" jdbcType="VARCHAR"/>
|
||||
<result property="addStatus" column="add_status" jdbcType="VARCHAR"/>
|
||||
<result property="updateStatus" column="update_status" jdbcType="VARCHAR"/>
|
||||
<result property="deleteStatus" column="delete_status" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
<result property="code" column="code" jdbcType="VARCHAR"/>
|
||||
<result property="custprop" column="custprop" jdbcType="VARCHAR"/>
|
||||
<result property="custstate" column="custstate" jdbcType="VARCHAR"/>
|
||||
<result property="enablestate" column="enablestate" jdbcType="VARCHAR"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="pkCountry" column="pk_country" jdbcType="VARCHAR"/>
|
||||
<result property="pkCustclass" column="pk_custclass" jdbcType="VARCHAR"/>
|
||||
<result property="pkGroup" column="pk_group" jdbcType="VARCHAR"/>
|
||||
<result property="pkOrg" column="pk_org" jdbcType="VARCHAR"/>
|
||||
<result property="taxpayerid" column="taxpayerid" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "MdmCustomerEntity_Base_Column_List">
|
||||
id
|
||||
,document_rule
|
||||
,document_rule_num
|
||||
,data_status
|
||||
,add_status
|
||||
,update_status
|
||||
,delete_status
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
,modify_time
|
||||
,sts
|
||||
,org_id
|
||||
,company_id
|
||||
,code
|
||||
,custprop
|
||||
,custstate
|
||||
,enablestate
|
||||
,name
|
||||
,pk_country
|
||||
,pk_custclass
|
||||
,pk_group
|
||||
,pk_org
|
||||
,taxpayerid
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmCustomerEntity-result" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity">
|
||||
select
|
||||
<include refid="MdmCustomerEntity_Base_Column_List" />
|
||||
from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity">
|
||||
select count(1) from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-MdmCustomerEntity-result" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity">
|
||||
select
|
||||
<include refid="MdmCustomerEntity_Base_Column_List" />
|
||||
from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule like concat('%',#{documentRule},'%') </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num like concat('%',#{documentRuleNum},'%') </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status like concat('%',#{dataStatus},'%') </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status like concat('%',#{addStatus},'%') </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status like concat('%',#{updateStatus},'%') </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status like concat('%',#{deleteStatus},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
<if test="code != null and code != ''"> and code like concat('%',#{code},'%') </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop like concat('%',#{custprop},'%') </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate like concat('%',#{custstate},'%') </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate like concat('%',#{enablestate},'%') </if>
|
||||
<if test="name != null and name != ''"> and name like concat('%',#{name},'%') </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country like concat('%',#{pkCountry},'%') </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass like concat('%',#{pkCustclass},'%') </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group like concat('%',#{pkGroup},'%') </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org like concat('%',#{pkOrg},'%') </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid like concat('%',#{taxpayerid},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="MdmCustomerentity_list_or" resultMap="get-MdmCustomerEntity-result" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity">
|
||||
select
|
||||
<include refid="MdmCustomerEntity_Base_Column_List" />
|
||||
from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> or document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> or document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> or data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> or add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> or update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> or delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> or code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> or custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> or custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> or enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> or name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> or pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> or pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> or pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> or pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> or taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="documentRule != null and documentRule != ''"> document_rule , </if>
|
||||
<if test="documentRuleNum != null"> document_rule_num , </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> data_status , </if>
|
||||
<if test="addStatus != null and addStatus != ''"> add_status , </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> update_status , </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> delete_status , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="code != null and code != ''"> code , </if>
|
||||
<if test="custprop != null and custprop != ''"> custprop , </if>
|
||||
<if test="custstate != null and custstate != ''"> custstate , </if>
|
||||
<if test="enablestate != null and enablestate != ''"> enablestate , </if>
|
||||
<if test="name != null and name != ''"> name , </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> pk_country , </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> pk_custclass , </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> pk_group , </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> pk_org , </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> taxpayerid , </if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="documentRule != null and documentRule != ''"> #{documentRule} ,</if>
|
||||
<if test="documentRuleNum != null"> #{documentRuleNum} ,</if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> #{dataStatus} ,</if>
|
||||
<if test="addStatus != null and addStatus != ''"> #{addStatus} ,</if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> #{updateStatus} ,</if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> #{deleteStatus} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="code != null and code != ''"> #{code} ,</if>
|
||||
<if test="custprop != null and custprop != ''"> #{custprop} ,</if>
|
||||
<if test="custstate != null and custstate != ''"> #{custstate} ,</if>
|
||||
<if test="enablestate != null and enablestate != ''"> #{enablestate} ,</if>
|
||||
<if test="name != null and name != ''"> #{name} ,</if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> #{pkCountry} ,</if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> #{pkCustclass} ,</if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> #{pkGroup} ,</if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> #{pkOrg} ,</if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> #{taxpayerid} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, code, custprop, custstate, enablestate, name, pk_country, pk_custclass, pk_group, pk_org, taxpayerid, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.code},#{entity.custprop},#{entity.custstate},#{entity.enablestate},#{entity.name},#{entity.pkCountry},#{entity.pkCustclass},#{entity.pkGroup},#{entity.pkOrg},#{entity.taxpayerid}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, code, custprop, custstate, enablestate, name, pk_country, pk_custclass, pk_group, pk_org, taxpayerid)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.code},#{entity.custprop},#{entity.custstate},#{entity.enablestate},#{entity.name},#{entity.pkCountry},#{entity.pkCustclass},#{entity.pkGroup},#{entity.pkOrg},#{entity.taxpayerid})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
document_rule = values(document_rule),
|
||||
document_rule_num = values(document_rule_num),
|
||||
data_status = values(data_status),
|
||||
add_status = values(add_status),
|
||||
update_status = values(update_status),
|
||||
delete_status = values(delete_status),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id),
|
||||
code = values(code),
|
||||
custprop = values(custprop),
|
||||
custstate = values(custstate),
|
||||
enablestate = values(enablestate),
|
||||
name = values(name),
|
||||
pk_country = values(pk_country),
|
||||
pk_custclass = values(pk_custclass),
|
||||
pk_group = values(pk_group),
|
||||
pk_org = values(pk_org),
|
||||
taxpayerid = values(taxpayerid)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity" >
|
||||
update mdm_customer set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="documentRule != null and documentRule != ''"> document_rule = #{documentRule},</if>
|
||||
<if test="documentRuleNum != null"> document_rule_num = #{documentRuleNum},</if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> data_status = #{dataStatus},</if>
|
||||
<if test="addStatus != null and addStatus != ''"> add_status = #{addStatus},</if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> update_status = #{updateStatus},</if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> delete_status = #{deleteStatus},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||
<if test="code != null and code != ''"> code = #{code},</if>
|
||||
<if test="custprop != null and custprop != ''"> custprop = #{custprop},</if>
|
||||
<if test="custstate != null and custstate != ''"> custstate = #{custstate},</if>
|
||||
<if test="enablestate != null and enablestate != ''"> enablestate = #{enablestate},</if>
|
||||
<if test="name != null and name != ''"> name = #{name},</if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> pk_country = #{pkCountry},</if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> pk_custclass = #{pkCustclass},</if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> pk_group = #{pkGroup},</if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> pk_org = #{pkOrg},</if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> taxpayerid = #{taxpayerid},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity" >
|
||||
update mdm_customer set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.masterData.entity.MdmEntity" >
|
||||
update mdm_customer set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from mdm_customer where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.hzya.frame.plugin.masterData.plugin;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.sysnew.comparison.masterData.service.IMasterDataService;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* 主数据同步
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmPluginInitializer extends PluginBaseEntity{
|
||||
Logger logger = LoggerFactory.getLogger(MdmPluginInitializer.class);
|
||||
@Autowired
|
||||
private IMasterDataService masterDataService;
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginId() {
|
||||
return "MdmCustomerPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "MdmCustomerPlugin插件";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "MdmCustomerPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
try {
|
||||
logger.info("======开始执行主数据信息同步========");
|
||||
return masterDataService.queryArchives(requestJson);
|
||||
}catch (Exception e){
|
||||
logger.info("======执行主数据同步失败:{}========",e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.hzya.frame.plugin.masterData.service;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public interface IMdmService extends IBaseService<MdmEntity, String>{
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
package com.hzya.frame.plugin.masterData.service.impl;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
|
||||
import com.hzya.frame.plugin.masterData.dao.IMdmDao;
|
||||
import com.hzya.frame.plugin.masterData.service.IMdmService;
|
||||
import com.hzya.frame.plugin.masterData.service.IMdmService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmServiceImpl extends BaseService<MdmEntity, String> implements IMdmService {
|
||||
|
||||
private IMdmDao mdmCustomerDao;
|
||||
|
||||
@Autowired
|
||||
public void setMdmCustomerDao(IMdmDao dao) {
|
||||
this.mdmCustomerDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
}
|
|
@ -32,8 +32,6 @@ import com.hzya.frame.sysnew.application.script.entity.SysApplicationScriptEntit
|
|||
import com.hzya.frame.sysnew.grovy.service.IGroovyIntegrationService;
|
||||
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
|
||||
import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService;
|
||||
import com.hzya.frame.testCbs.service.ITsetCbsService;
|
||||
import com.hzya.frame.testU8c.service.ITsetU8cService;
|
||||
import com.hzya.frame.uuid.UUIDUtils;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
@ -119,10 +117,6 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
|
|||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
@Resource
|
||||
private ITsetCbsService tsetCbsService;
|
||||
@Resource
|
||||
private ITsetU8cService tsetU8cService;
|
||||
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
|
@ -1490,7 +1484,4 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
|
|||
}
|
||||
return jsonObjects;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package com.hzya.frame.plugin.sysMessageManageLogBack.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
public class SysESBMessageManageLogEntity extends BaseEntity {
|
||||
|
||||
private String name;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.hzya.frame.plugin.sysMessageManageLogBack.plugin;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* 消息管理日志(SysMessageManageLog)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-08 10:22:00
|
||||
*/
|
||||
public class SysMessageManageLogPluginInitializer extends PluginBaseEntity {
|
||||
Logger logger = LoggerFactory.getLogger(SysMessageManageLogPluginInitializer.class);
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginId() {
|
||||
return "SysMessageManageLogPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "ESB消息日志备份";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "ESB消息日志备份";
|
||||
}
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||
try {
|
||||
logger.info("执行成功");
|
||||
return BaseResult.getSuccessMessageEntity("执行成功");
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("执行成功");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.hzya.frame.plugin.sysMessageManageLogBack.service;
|
||||
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.plugin.sysMessageManageLogBack.entity.SysESBMessageManageLogEntity;
|
||||
|
||||
/**
|
||||
* 消息管理日志(SysMessageManageLog)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-08 10:22:00
|
||||
*/
|
||||
public interface ISysESBMessageManageLogService extends IBaseService<SysESBMessageManageLogEntity, String> {
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.plugin.sysMessageManageLogBack.service.impl;
|
||||
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.plugin.sysMessageManageLogBack.entity.SysESBMessageManageLogEntity;
|
||||
import com.hzya.frame.plugin.sysMessageManageLogBack.service.ISysESBMessageManageLogService;
|
||||
|
||||
/**
|
||||
* 消息管理日志(SysMessageManageLog)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-08 10:22:00
|
||||
*/
|
||||
public class SysESBMessageManageLogServiceImpl extends BaseService<SysESBMessageManageLogEntity, String> implements ISysESBMessageManageLogService {
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
#######################澳星环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: GBK
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: E:\yongansystem\log
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://127.0.0.1:3306/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
username: root
|
||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: E:\yongansystem\file
|
||||
zt:
|
||||
url: http://127.0.0.1:9081/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -0,0 +1,27 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: D:\yongansystem\kangarooDataCenter\v3\logs
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
# url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
# username: root
|
||||
# password: bd993088e8a7c3dc5f44441617f9b4bf
|
||||
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
username: root
|
||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: D:\yongansystem\kangarooDataCenter\v3\logs
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -0,0 +1,23 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: /Users/apple/Desktop/log/local
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
username: root
|
||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: /Users/apple/Desktop/log/local
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -0,0 +1,35 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: /Users/xiangerlin/work/app/logs/dev
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
username: root
|
||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: /Users/xiangerlin/work/app/file/dev
|
||||
cbs8:
|
||||
appId: 1P4AGrpz
|
||||
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
|
||||
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
|
||||
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
|
||||
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
|
||||
# 这个私钥到时候上传到cbs,和下面到是同一对
|
||||
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
|
||||
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
|
||||
cbs_public_key: 0469146F06BF3B01236E84632441E826F3067A6B93BC3839C836A06007869CD351FBBE388B51F742859388BBC1DE089923AAFBC69E448F15141DDF30EE6CE90185
|
||||
#电子回单下载临时存放位置
|
||||
elec_path: /Users/xiangerlin/Downloads/
|
||||
OA:
|
||||
data_source_code: yc-test
|
|
@ -0,0 +1,90 @@
|
|||
#logging:
|
||||
# #日志级别 指定目录级别
|
||||
# level:
|
||||
# root: info
|
||||
# encodings: UTF-8
|
||||
# file:
|
||||
# # 日志保存路径
|
||||
# path: /zt/log
|
||||
#spring:
|
||||
# flyway:
|
||||
# # 启动flyway migration, 默认为true
|
||||
# enabled: false
|
||||
# datasource:
|
||||
# dynamic:
|
||||
# druid:
|
||||
# filters: stat,log4j2
|
||||
# datasource:
|
||||
# master:
|
||||
# url: jdbc:dm://10.75.51.82:5238?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
|
||||
# username: businesscenter
|
||||
# password: 6842568689469adad597d144ee104063
|
||||
# driver-class-name: dm.jdbc.driver.DmDriver
|
||||
#savefile:
|
||||
# # 文件保存路径
|
||||
# path: /zt/file
|
||||
#公司mysql
|
||||
#ax:
|
||||
# url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
||||
#logging:
|
||||
# #日志级别 指定目录级别warn
|
||||
# level:
|
||||
# root: info
|
||||
# encodings: UTF-8
|
||||
# file:
|
||||
# # 日志保存路径
|
||||
# path: /home/webservice/zt/log
|
||||
#spring:
|
||||
# datasource:
|
||||
# dynamic:
|
||||
# datasource:
|
||||
# master:
|
||||
# url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
# username: root
|
||||
# password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
#savefile:
|
||||
# # 文件保存路径
|
||||
# path: /home/webservice/zt/file
|
||||
|
||||
|
||||
#公司服务器达梦
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: /zt/log
|
||||
spring:
|
||||
flyway:
|
||||
# 启动flyway migration, 默认为true
|
||||
enabled: false
|
||||
datasource:
|
||||
dynamic:
|
||||
druid:
|
||||
filters: stat,log4j2
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:dm://ufidahz.com.cn:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
|
||||
username: hzyazt
|
||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: /zt/file
|
||||
cbs8:
|
||||
appId: 1P4AGrpz
|
||||
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
|
||||
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
|
||||
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
|
||||
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
|
||||
# 这个私钥到时候上传到cbs,和下面到是同一对
|
||||
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
|
||||
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
|
||||
cbs_public_key: 0469146F06BF3B01236E84632441E826
|
||||
#电子回单下载临时存放位置
|
||||
elec_path: /zt/elecfile
|
||||
OA:
|
||||
data_source_code: yc_oa
|
|
@ -0,0 +1,21 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: /Users/xiangerlin/work/app/logs/ydc
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
username: root
|
||||
password: bd993088e8a7c3dc5f44441617f9b4bf
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: /Users/xiangerlin/work/app/logs/ydc
|
|
@ -0,0 +1,31 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: /Users/xiangerlin/work/app/logs/yuecheng
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
username: root
|
||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: /Users/xiangerlin/work/app/logs/yuecheng
|
||||
cbs8:
|
||||
appId: 1P4AGrpz
|
||||
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
|
||||
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
|
||||
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
|
||||
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
|
||||
# 这个私钥到时候上传到cbs,和下面到是同一对
|
||||
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
|
||||
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
|
||||
cbs_public_key: 0469146F06BF3B01236E84632441E826F3067A6B93BC3839C836A06007869CD351FBBE388B51F742859388BBC1DE089923AAFBC69E448F15141DDF30EE6CE90185
|
|
@ -0,0 +1,23 @@
|
|||
#######################本地环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: E:\yongansystem\log
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
username: root
|
||||
password: bd993088e8a7c3dc5f44441617f9b4bf
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: E:\yongansystem\log
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -0,0 +1,39 @@
|
|||
#######################zqtlocal环境#######################
|
||||
logging:
|
||||
#日志级别 指定目录级别
|
||||
level:
|
||||
root: info
|
||||
encodings: UTF-8
|
||||
file:
|
||||
# 日志保存路径
|
||||
path: D:/local/logs/
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
|
||||
username: root
|
||||
password: 62e4295b615a30dbf3b8ee96f41c820b
|
||||
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
savefile:
|
||||
# 文件保存路径
|
||||
path: D:/local/upload/
|
||||
pluginpath : D:/local/plugin/
|
||||
tomcatpath: E:\apache-tomcat-9.0.27\webapps\kangarooDataCenterV3\WEB-INF\classes\
|
||||
cbs8:
|
||||
appId: 1P4AGrpz
|
||||
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
|
||||
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
|
||||
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
|
||||
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
|
||||
# 这个私钥到时候上传到cbs,和下面到是同一对
|
||||
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
|
||||
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
|
||||
cbs_public_key: 0469146F06BF3B01236E84632441E826
|
||||
#电子回单下载临时存放位置
|
||||
elec_path: /Users/xiangerlin/Downloads/
|
||||
OA:
|
||||
data_source_code: yc_oa
|
||||
zt:
|
||||
url: http://127.0.0.1:9082/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin>
|
||||
<id>MdmPlugin</id>
|
||||
<name>MdmPlugin插件</name>
|
||||
<category>90000001</category>
|
||||
</plugin>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="mdmCustomerDao" class="com.hzya.frame.plugin.masterData.dao.impl.MdmDaoImpl" />
|
||||
</beans>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="mdmCustomerInitializer" class="com.hzya.frame.plugin.masterData.plugin.MdmPluginInitializer" />
|
||||
</beans>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="mdmCustomerService" class="com.hzya.frame.plugin.masterData.service.impl.MdmServiceImpl" />
|
||||
</beans>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin>
|
||||
<id>SysMessageManageLogPlugin</id>
|
||||
<name>SysMessageManageLogPlugin插件</name>
|
||||
<category>202403080010</category>
|
||||
</plugin>
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
</beans>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="sysMessageManageLogInitializer" class="com.hzya.frame.plugin.sysMessageManageLogBack.plugin.SysMessageManageLogPluginInitializer" />
|
||||
</beans>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="sysESBMessageManageLogService" class="com.hzya.frame.plugin.sysMessageManageLogBack.service.impl.SysESBMessageManageLogServiceImpl" />
|
||||
</beans>
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.report.reportAccredit.dao;
|
||||
|
||||
import com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* 报表授权表(report_accredit: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:02:11
|
||||
*/
|
||||
public interface IReportAccreditDao extends IBaseDao<ReportAccreditEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.report.reportAccredit.dao.impl;
|
||||
|
||||
import com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity;
|
||||
import com.hzya.frame.report.reportAccredit.dao.IReportAccreditDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 报表授权表(ReportAccredit)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:02:11
|
||||
*/
|
||||
@Repository(value = "ReportAccreditDaoImpl")
|
||||
public class ReportAccreditDaoImpl extends MybatisGenericDao<ReportAccreditEntity, String> implements IReportAccreditDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package com.hzya.frame.report.reportAccredit.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 报表授权表(ReportAccredit)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:02:12
|
||||
*/
|
||||
public class ReportAccreditEntity extends BaseEntity {
|
||||
|
||||
/** 权限赋予对象id */
|
||||
private String objectId;
|
||||
/** 报表ID */
|
||||
private String reportId;
|
||||
/** 权限类型(1、应用2、人员) */
|
||||
private String kindId;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
|
||||
|
||||
public String getObjectId() {
|
||||
return objectId;
|
||||
}
|
||||
|
||||
public void setObjectId(String objectId) {
|
||||
this.objectId = objectId;
|
||||
}
|
||||
|
||||
public String getReportId() {
|
||||
return reportId;
|
||||
}
|
||||
|
||||
public void setReportId(String reportId) {
|
||||
this.reportId = reportId;
|
||||
}
|
||||
|
||||
public String getKindId() {
|
||||
return kindId;
|
||||
}
|
||||
|
||||
public void setKindId(String kindId) {
|
||||
this.kindId = kindId;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,241 @@
|
|||
<?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.report.reportAccredit.dao.impl.ReportAccreditDaoImpl">
|
||||
|
||||
<resultMap id="get-ReportAccreditEntity-result" type="com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="objectId" column="object_id" jdbcType="VARCHAR"/>
|
||||
<result property="reportId" column="report_id" jdbcType="VARCHAR"/>
|
||||
<result property="kindId" column="kind_id" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "ReportAccreditEntity_Base_Column_List">
|
||||
id
|
||||
,object_id
|
||||
,report_id
|
||||
,kind_id
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
,modify_time
|
||||
,sts
|
||||
,org_id
|
||||
,company_id
|
||||
</sql>
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-ReportAccreditEntity-result">
|
||||
select
|
||||
<include refid="ReportAccreditEntity_Base_Column_List" />
|
||||
from report_accredit where sts = 'Y' and id = #{id}
|
||||
</select>
|
||||
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-ReportAccreditEntity-result" parameterType = "com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity">
|
||||
select
|
||||
<include refid="ReportAccreditEntity_Base_Column_List" />
|
||||
from report_accredit
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="objectId != null and objectId != ''"> and object_id = #{objectId} </if>
|
||||
<if test="reportId != null and reportId != ''"> and report_id = #{reportId} </if>
|
||||
<if test="kindId != null and kindId != ''"> and kind_id = #{kindId} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity">
|
||||
select count(1) from report_accredit
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="objectId != null and objectId != ''"> and object_id = #{objectId} </if>
|
||||
<if test="reportId != null and reportId != ''"> and report_id = #{reportId} </if>
|
||||
<if test="kindId != null and kindId != ''"> and kind_id = #{kindId} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-ReportAccreditEntity-result" parameterType = "com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity">
|
||||
select
|
||||
<include refid="ReportAccreditEntity_Base_Column_List" />
|
||||
from report_accredit
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="objectId != null and objectId != ''"> and object_id like concat('%',#{objectId},'%') </if>
|
||||
<if test="reportId != null and reportId != ''"> and report_id like concat('%',#{reportId},'%') </if>
|
||||
<if test="kindId != null and kindId != ''"> and kind_id like concat('%',#{kindId},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="ReportAccreditentity_list_or" resultMap="get-ReportAccreditEntity-result" parameterType = "com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity">
|
||||
select
|
||||
<include refid="ReportAccreditEntity_Base_Column_List" />
|
||||
from report_accredit
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="objectId != null and objectId != ''"> or object_id = #{objectId} </if>
|
||||
<if test="reportId != null and reportId != ''"> or report_id = #{reportId} </if>
|
||||
<if test="kindId != null and kindId != ''"> or kind_id = #{kindId} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity" >
|
||||
insert into report_accredit(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="objectId != null and objectId != ''"> object_id , </if>
|
||||
<if test="reportId != null and reportId != ''"> report_id , </if>
|
||||
<if test="kindId != null and kindId != ''"> kind_id , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="objectId != null and objectId != ''"> #{objectId} ,</if>
|
||||
<if test="reportId != null and reportId != ''"> #{reportId} ,</if>
|
||||
<if test="kindId != null and kindId != ''"> #{kindId} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into report_accredit(id, object_id, report_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{entity.objectId},#{entity.reportId},#{entity.kindId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into report_accredit(id, object_id, report_id, kind_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{entity.objectId},#{entity.reportId},#{entity.kindId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
id = values(id),
|
||||
object_id = values(object_id),
|
||||
report_id = values(report_id),
|
||||
kind_id = values(kind_id),
|
||||
sorts = values(sorts),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity" >
|
||||
update report_accredit set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id = #{id},</if>
|
||||
<if test="objectId != null and objectId != ''"> object_id = #{objectId},</if>
|
||||
<if test="reportId != null and reportId != ''"> report_id = #{reportId},</if>
|
||||
<if test="kindId != null and kindId != ''"> kind_id = #{kindId},</if>
|
||||
<if test="sorts != null"> sorts = #{sorts},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||
</trim>
|
||||
where = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity" >
|
||||
update report_accredit set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity" >
|
||||
update report_accredit set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="objectId != null and objectId != ''"> and object_id = #{objectId} </if>
|
||||
<if test="reportId != null and reportId != ''"> and report_id = #{reportId} </if>
|
||||
<if test="kindId != null and kindId != ''"> and kind_id = #{kindId} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from report_accredit where = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
package com.hzya.frame.report.reportAccredit.service;
|
||||
|
||||
import com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
/**
|
||||
* 报表授权表(ReportAccredit)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:02:12
|
||||
*/
|
||||
public interface IReportAccreditService extends IBaseService<ReportAccreditEntity, String>{
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.hzya.frame.report.reportAccredit.service.impl;
|
||||
|
||||
import com.hzya.frame.report.reportAccredit.entity.ReportAccreditEntity;
|
||||
import com.hzya.frame.report.reportAccredit.dao.IReportAccreditDao;
|
||||
import com.hzya.frame.report.reportAccredit.service.IReportAccreditService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import javax.annotation.Resource;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
/**
|
||||
* 报表授权表(ReportAccredit)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:02:12
|
||||
*/
|
||||
@Service(value = "reportAccreditService")
|
||||
public class ReportAccreditServiceImpl extends BaseService<ReportAccreditEntity, String> implements IReportAccreditService {
|
||||
|
||||
private IReportAccreditDao reportAccreditDao;
|
||||
|
||||
@Autowired
|
||||
public void setReportAccreditDao(IReportAccreditDao dao) {
|
||||
this.reportAccreditDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.report.reportClassify.dao;
|
||||
|
||||
import com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* 报表分类表(report_classify: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:03:14
|
||||
*/
|
||||
public interface IReportClassifyDao extends IBaseDao<ReportClassifyEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.report.reportClassify.dao.impl;
|
||||
|
||||
import com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity;
|
||||
import com.hzya.frame.report.reportClassify.dao.IReportClassifyDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 报表分类表(ReportClassify)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:03:14
|
||||
*/
|
||||
@Repository(value = "ReportClassifyDaoImpl")
|
||||
public class ReportClassifyDaoImpl extends MybatisGenericDao<ReportClassifyEntity, String> implements IReportClassifyDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
package com.hzya.frame.report.reportClassify.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.hzya.frame.sysnew.organ.entity.SysOrganEntity;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 报表分类表(ReportClassify)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:03:14
|
||||
*/
|
||||
public class ReportClassifyEntity extends BaseEntity {
|
||||
|
||||
/** 编码 */
|
||||
private String code;
|
||||
/** 名称 */
|
||||
private String name;
|
||||
/** 上级id */
|
||||
private String parentId;
|
||||
private String parentName;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
private List<ReportClassifyEntity> children;
|
||||
|
||||
private String label;
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public List<ReportClassifyEntity> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<ReportClassifyEntity> children) {
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
public String getParentName() {
|
||||
return parentName;
|
||||
}
|
||||
|
||||
public void setParentName(String parentName) {
|
||||
this.parentName = parentName;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,240 @@
|
|||
<?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.report.reportClassify.dao.impl.ReportClassifyDaoImpl">
|
||||
|
||||
<resultMap id="get-ReportClassifyEntity-result" type="com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="code" column="code" jdbcType="VARCHAR"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="parentId" column="parent_id" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "ReportClassifyEntity_Base_Column_List">
|
||||
id
|
||||
,code
|
||||
,name
|
||||
,parent_id
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
,modify_time
|
||||
,sts
|
||||
,org_id
|
||||
,company_id
|
||||
</sql>
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-ReportClassifyEntity-result">
|
||||
select
|
||||
<include refid="ReportClassifyEntity_Base_Column_List" />
|
||||
from report_classify where sts = 'Y' and id = #{id}
|
||||
</select>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-ReportClassifyEntity-result" parameterType = "com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity">
|
||||
select
|
||||
<include refid="ReportClassifyEntity_Base_Column_List" />
|
||||
from report_classify
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id = #{parentId} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity">
|
||||
select count(1) from report_classify
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id = #{parentId} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-ReportClassifyEntity-result" parameterType = "com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity">
|
||||
select
|
||||
<include refid="ReportClassifyEntity_Base_Column_List" />
|
||||
from report_classify
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="code != null and code != ''"> and code like concat('%',#{code},'%') </if>
|
||||
<if test="name != null and name != ''"> and name like concat('%',#{name},'%') </if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id like concat('%',#{parentId},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="ReportClassifyentity_list_or" resultMap="get-ReportClassifyEntity-result" parameterType = "com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity">
|
||||
select
|
||||
<include refid="ReportClassifyEntity_Base_Column_List" />
|
||||
from report_classify
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="code != null and code != ''"> or code = #{code} </if>
|
||||
<if test="name != null and name != ''"> or name = #{name} </if>
|
||||
<if test="parentId != null and parentId != ''"> or parent_id = #{parentId} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity" >
|
||||
insert into report_classify(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="code != null and code != ''"> code , </if>
|
||||
<if test="name != null and name != ''"> name , </if>
|
||||
<if test="parentId != null and parentId != ''"> parent_id , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="code != null and code != ''"> #{code} ,</if>
|
||||
<if test="name != null and name != ''"> #{name} ,</if>
|
||||
<if test="parentId != null and parentId != ''"> #{parentId} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into report_classify(id, code, name, parent_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{entity.code},#{entity.name},#{entity.parentId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into report_classify(id, code, name, parent_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{entity.code},#{entity.name},#{entity.parentId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
id = values(id),
|
||||
code = values(code),
|
||||
name = values(name),
|
||||
parent_id = values(parent_id),
|
||||
sorts = values(sorts),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity" >
|
||||
update report_classify set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id = #{id},</if>
|
||||
<if test="code != null and code != ''"> code = #{code},</if>
|
||||
<if test="name != null and name != ''"> name = #{name},</if>
|
||||
<if test="parentId != null and parentId != ''"> parent_id = #{parentId},</if>
|
||||
<if test="sorts != null"> sorts = #{sorts},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||
</trim>
|
||||
where = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity" >
|
||||
update report_classify set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity" >
|
||||
update report_classify set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id = #{parentId} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from report_classify where = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package com.hzya.frame.report.reportClassify.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
/**
|
||||
* 报表分类表(ReportClassify)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:03:14
|
||||
*/
|
||||
public interface IReportClassifyService extends IBaseService<ReportClassifyEntity, String>{
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 查询分类树
|
||||
* @Date 3:14 下午 2024/5/21
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryEntityTree(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 保存分类
|
||||
* @Date 3:16 下午 2024/5/21
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveEntity(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 获取分类
|
||||
* @Date 3:16 下午 2024/5/21
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity getEntity(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 修改分类
|
||||
* @Date 3:16 下午 2024/5/21
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity updateEntity(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 删除分类
|
||||
* @Date 3:16 下午 2024/5/21
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity deleteEntity(JSONObject jsonObject);
|
||||
|
||||
}
|
|
@ -0,0 +1,230 @@
|
|||
package com.hzya.frame.report.reportClassify.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.report.reportClassify.entity.ReportClassifyEntity;
|
||||
import com.hzya.frame.report.reportClassify.dao.IReportClassifyDao;
|
||||
import com.hzya.frame.report.reportClassify.service.IReportClassifyService;
|
||||
import com.hzya.frame.report.reportManage.dao.IReportManageDao;
|
||||
import com.hzya.frame.report.reportManage.entity.ReportManageEntity;
|
||||
import com.hzya.frame.sysnew.organ.entity.SysOrganEntity;
|
||||
import com.hzya.frame.sysnew.person.entity.SysPersonEntity;
|
||||
import com.hzya.frame.sysnew.userCompany.entity.SysUserCompanyEntity;
|
||||
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.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报表分类表(ReportClassify)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:03:14
|
||||
*/
|
||||
@Service(value = "reportClassifyService")
|
||||
public class ReportClassifyServiceImpl extends BaseService<ReportClassifyEntity, String> implements IReportClassifyService {
|
||||
|
||||
private IReportClassifyDao reportClassifyDao;
|
||||
|
||||
@Resource
|
||||
private IReportManageDao reportManageDao;
|
||||
@Autowired
|
||||
public void setReportClassifyDao(IReportClassifyDao dao) {
|
||||
this.reportClassifyDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询分类树
|
||||
* @Date 3:14 下午 2024/5/21
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity queryEntityTree(JSONObject jsonObject) {
|
||||
ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class);
|
||||
if (entity == null) {
|
||||
entity = new ReportClassifyEntity();
|
||||
}
|
||||
List<ReportClassifyEntity> returnEntity = new ArrayList<>();
|
||||
//查询符合条件的组织数据
|
||||
List<ReportClassifyEntity> reportClassifyEntities = reportClassifyDao.queryByLike(entity);
|
||||
if (reportClassifyEntities == null || reportClassifyEntities.size() == 0) {
|
||||
ReportClassifyEntity first = new ReportClassifyEntity();
|
||||
first.setCode("1");
|
||||
first.setName("系统");
|
||||
first.setParentId("0");
|
||||
first.setCreate();
|
||||
reportClassifyDao.save(first);
|
||||
reportClassifyEntities = new ArrayList<>();
|
||||
reportClassifyEntities.add(first);
|
||||
}
|
||||
if (reportClassifyEntities != null && reportClassifyEntities.size() > 0) {
|
||||
for (int i = 0; i < reportClassifyEntities.size(); i++) {
|
||||
if ("0".equals(reportClassifyEntities.get(i).getParentId())) {
|
||||
recursiveSetTree(reportClassifyEntities.get(i), reportClassifyEntities);
|
||||
reportClassifyEntities.get(i).setLabel("(" + reportClassifyEntities.get(i).getCode() + ")" + reportClassifyEntities.get(i).getName());
|
||||
returnEntity.add(reportClassifyEntities.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("查询组织树成功", returnEntity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param reportClassifyEntity
|
||||
* @param reportClassifyEntityList
|
||||
* @return void
|
||||
* @Author lvleigang
|
||||
* @Description 递归设置树
|
||||
* @Date 9:19 上午 2024/3/28
|
||||
**/
|
||||
private void recursiveSetTree(ReportClassifyEntity reportClassifyEntity, List<ReportClassifyEntity> reportClassifyEntityList) {
|
||||
List<ReportClassifyEntity> children = new ArrayList<>();
|
||||
for (int i = 0; i < reportClassifyEntityList.size(); i++) {
|
||||
if (reportClassifyEntityList.get(i).getParentId() != null && !"".equals(reportClassifyEntityList.get(i).getParentId())) {
|
||||
if (reportClassifyEntity.getId().equals(reportClassifyEntityList.get(i).getParentId())) {
|
||||
reportClassifyEntityList.get(i).setLabel("(" + reportClassifyEntityList.get(i).getCode() + ")" + reportClassifyEntityList.get(i).getName());
|
||||
children.add(reportClassifyEntityList.get(i));
|
||||
recursiveSetTree(reportClassifyEntityList.get(i), reportClassifyEntityList);
|
||||
}
|
||||
}
|
||||
}
|
||||
reportClassifyEntity.setChildren(children);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 保存分类
|
||||
* @Date 3:16 下午 2024/5/21
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity saveEntity(JSONObject jsonObject) {
|
||||
ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getCode() == null || "".equals(entity.getCode())) {
|
||||
return BaseResult.getFailureMessageEntity("请先输入编码");
|
||||
}
|
||||
if (entity.getName() == null || "".equals(entity.getName())) {
|
||||
return BaseResult.getFailureMessageEntity("请先输入名称");
|
||||
}
|
||||
if (entity.getParentId() == null || "".equals(entity.getParentId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
entity.setCreate();
|
||||
//保存
|
||||
reportClassifyDao.save(entity);
|
||||
return BaseResult.getSuccessMessageEntity("保存分类成功", entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 获取分类
|
||||
* @Date 3:16 下午 2024/5/21
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity getEntity(JSONObject jsonObject) {
|
||||
ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getId() == null || "".equals(entity.getId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
entity = reportClassifyDao.get(entity.getId());
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("获取组织失败");
|
||||
}
|
||||
if (entity.getParentId() != null && !"0".equals(entity.getParentId())) {
|
||||
ReportClassifyEntity parentEntity = reportClassifyDao.get(entity.getParentId());
|
||||
if (entity != null) {
|
||||
entity.setParentName(parentEntity.getName());
|
||||
}
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("获取分类成功", entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 修改分类
|
||||
* @Date 3:16 下午 2024/5/21
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity updateEntity(JSONObject jsonObject) {
|
||||
ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getId() == null || "".equals(entity.getId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
if (entity.getName() == null || "".equals(entity.getName())) {
|
||||
return BaseResult.getFailureMessageEntity("请先输入名称");
|
||||
}
|
||||
if (entity.getCode() == null || "".equals(entity.getCode())) {
|
||||
return BaseResult.getFailureMessageEntity("请先输入编码");
|
||||
}
|
||||
if (entity.getParentId() == null || "".equals(entity.getParentId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
entity.setUpdate();
|
||||
//保存
|
||||
reportClassifyDao.update(entity);
|
||||
return BaseResult.getSuccessMessageEntity("修改分类成功", entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 删除分类
|
||||
* @Date 3:16 下午 2024/5/21
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity deleteEntity(JSONObject jsonObject) {
|
||||
ReportClassifyEntity entity = getData("jsonStr", jsonObject, ReportClassifyEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getId() == null || "".equals(entity.getId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
if (!checkUse(entity)) {
|
||||
return BaseResult.getFailureMessageEntity("当前组织已经使用,不允许删除");
|
||||
}
|
||||
entity.setUpdate();
|
||||
reportClassifyDao.logicRemove(entity);
|
||||
return BaseResult.getSuccessMessageEntity("删除分类成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 校验分类下面是否有配置报表
|
||||
* @Date 3:27 下午 2024/3/27
|
||||
* @param entity
|
||||
* @return boolean
|
||||
**/
|
||||
private boolean checkUse(ReportClassifyEntity entity) {
|
||||
ReportManageEntity reportManageEntity = new ReportManageEntity();
|
||||
reportManageEntity.setClassifyId(entity.getId());
|
||||
if(reportManageDao.getCount(reportManageEntity) > 0){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.hzya.frame.report.reportManage.dao;
|
||||
|
||||
import com.hzya.frame.report.reportManage.entity.JimuReportEntity;
|
||||
import com.hzya.frame.report.reportManage.entity.ReportManageEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报表管理表(report_manage: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:04:12
|
||||
*/
|
||||
public interface IReportManageDao extends IBaseDao<ReportManageEntity, String> {
|
||||
|
||||
List<ReportManageEntity> queryByLikeClassify(ReportManageEntity entity);
|
||||
|
||||
List<JimuReportEntity> queryReportNotUse(JimuReportEntity entity);
|
||||
|
||||
JimuReportEntity queryReportEntity(JimuReportEntity entity);
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.hzya.frame.report.reportManage.dao.impl;
|
||||
|
||||
import com.hzya.frame.report.reportManage.entity.JimuReportEntity;
|
||||
import com.hzya.frame.report.reportManage.entity.ReportManageEntity;
|
||||
import com.hzya.frame.report.reportManage.dao.IReportManageDao;
|
||||
import com.hzya.frame.sysnew.user.entity.SysUserEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报表管理表(ReportManage)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:04:12
|
||||
*/
|
||||
@Repository(value = "ReportManageDaoImpl")
|
||||
public class ReportManageDaoImpl extends MybatisGenericDao<ReportManageEntity, String> implements IReportManageDao{
|
||||
|
||||
@Override
|
||||
public List<ReportManageEntity> queryByLikeClassify(ReportManageEntity entity) {
|
||||
List<ReportManageEntity> o = super.query(getSqlIdPrifx() + "queryByLikeClassify", entity);
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<JimuReportEntity> queryReportNotUse(JimuReportEntity entity) {
|
||||
List<JimuReportEntity> o = (List<JimuReportEntity>) super.selectList(getSqlIdPrifx() + "queryReportNotUse", entity);
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JimuReportEntity queryReportEntity(JimuReportEntity entity) {
|
||||
JimuReportEntity o = (JimuReportEntity) super.selectOne(getSqlIdPrifx() + "queryReportEntity", entity);
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
package com.hzya.frame.report.reportManage.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* 积木报表jimu_report 实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:04:12
|
||||
*/
|
||||
public class JimuReportEntity extends BaseEntity {
|
||||
|
||||
/** 编码 */
|
||||
private String code;
|
||||
/** 名称 */
|
||||
private String name;
|
||||
/** 删除标识0-正常,1-已删除 */
|
||||
private String delFlag;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
package com.hzya.frame.report.reportManage.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 报表管理表(ReportManage)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:04:12
|
||||
*/
|
||||
public class ReportManageEntity extends BaseEntity {
|
||||
|
||||
/** 报表ID */
|
||||
private String reportId;
|
||||
/** 报表名称 */
|
||||
private String reportName;
|
||||
/** 类别id */
|
||||
private String classifyId;
|
||||
/** 类别名称 */
|
||||
private String classifyName;
|
||||
/** 预览地址 */
|
||||
private String previewAddress;
|
||||
/** 状态: 0启用 1 停用 */
|
||||
private String state;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
|
||||
|
||||
public String getReportId() {
|
||||
return reportId;
|
||||
}
|
||||
|
||||
public void setReportId(String reportId) {
|
||||
this.reportId = reportId;
|
||||
}
|
||||
|
||||
public String getReportName() {
|
||||
return reportName;
|
||||
}
|
||||
|
||||
public void setReportName(String reportName) {
|
||||
this.reportName = reportName;
|
||||
}
|
||||
|
||||
public String getClassifyId() {
|
||||
return classifyId;
|
||||
}
|
||||
|
||||
public void setClassifyId(String classifyId) {
|
||||
this.classifyId = classifyId;
|
||||
}
|
||||
|
||||
public String getPreviewAddress() {
|
||||
return previewAddress;
|
||||
}
|
||||
|
||||
public void setPreviewAddress(String previewAddress) {
|
||||
this.previewAddress = previewAddress;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getClassifyName() {
|
||||
return classifyName;
|
||||
}
|
||||
|
||||
public void setClassifyName(String classifyName) {
|
||||
this.classifyName = classifyName;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,352 @@
|
|||
<?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.report.reportManage.dao.impl.ReportManageDaoImpl">
|
||||
|
||||
<resultMap id="get-ReportManageEntity-result" type="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="reportId" column="report_id" jdbcType="VARCHAR"/>
|
||||
<result property="reportName" column="report_name" jdbcType="VARCHAR"/>
|
||||
<result property="classifyId" column="classify_id" jdbcType="VARCHAR"/>
|
||||
<result property="classifyName" column="classify_name" jdbcType="VARCHAR"/>
|
||||
<result property="previewAddress" column="preview_address" jdbcType="VARCHAR"/>
|
||||
<result property="state" column="state" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id="ReportManageEntity_Base_Column_List">
|
||||
id
|
||||
,report_id
|
||||
,report_name
|
||||
,classify_id
|
||||
,preview_address
|
||||
,state
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
,modify_time
|
||||
,sts
|
||||
,org_id
|
||||
,company_id
|
||||
</sql>
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-ReportManageEntity-result">
|
||||
select
|
||||
<include refid="ReportManageEntity_Base_Column_List"/>
|
||||
from report_manage where sts = 'Y' and id = #{id}
|
||||
</select>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-ReportManageEntity-result"
|
||||
parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
select
|
||||
<include refid="ReportManageEntity_Base_Column_List"/>
|
||||
from report_manage
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="reportId != null and reportId != ''">and report_id = #{reportId}</if>
|
||||
<if test="reportName != null and reportName != ''">and report_name = #{reportName}</if>
|
||||
<if test="classifyId != null and classifyId != ''">and classify_id = #{classifyId}</if>
|
||||
<if test="previewAddress != null and previewAddress != ''">and preview_address = #{previewAddress}</if>
|
||||
<if test="state != null and state != ''">and state = #{state}</if>
|
||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer"
|
||||
parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
select count(1) from report_manage
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="reportId != null and reportId != ''">and report_id = #{reportId}</if>
|
||||
<if test="reportName != null and reportName != ''">and report_name = #{reportName}</if>
|
||||
<if test="classifyId != null and classifyId != ''">and classify_id = #{classifyId}</if>
|
||||
<if test="previewAddress != null and previewAddress != ''">and preview_address = #{previewAddress}</if>
|
||||
<if test="state != null and state != ''">and state = #{state}</if>
|
||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-ReportManageEntity-result"
|
||||
parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
select
|
||||
<include refid="ReportManageEntity_Base_Column_List"/>
|
||||
from report_manage
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
||||
<if test="reportId != null and reportId != ''">and report_id like concat('%',#{reportId},'%')</if>
|
||||
<if test="reportName != null and reportName != ''">and report_name like concat('%',#{reportName},'%')</if>
|
||||
<if test="classifyId != null and classifyId != ''">and classify_id like concat('%',#{classifyId},'%')</if>
|
||||
<if test="previewAddress != null and previewAddress != ''">and preview_address like
|
||||
concat('%',#{previewAddress},'%')
|
||||
</if>
|
||||
<if test="state != null and state != ''">and state like concat('%',#{state},'%')</if>
|
||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
||||
concat('%',#{create_user_id},'%')
|
||||
</if>
|
||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
||||
concat('%',#{modify_user_id},'%')
|
||||
</if>
|
||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id like concat('%',#{companyId},'%')</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="ReportManageentity_list_or" resultMap="get-ReportManageEntity-result"
|
||||
parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
select
|
||||
<include refid="ReportManageEntity_Base_Column_List"/>
|
||||
from report_manage
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">or id = #{id}</if>
|
||||
<if test="reportId != null and reportId != ''">or report_id = #{reportId}</if>
|
||||
<if test="reportName != null and reportName != ''">or report_name = #{reportName}</if>
|
||||
<if test="classifyId != null and classifyId != ''">or classify_id = #{classifyId}</if>
|
||||
<if test="previewAddress != null and previewAddress != ''">or preview_address = #{previewAddress}</if>
|
||||
<if test="state != null and state != ''">or state = #{state}</if>
|
||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
||||
<if test="companyId != null and companyId != ''">or company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
insert into report_manage(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
<if test="reportId != null and reportId != ''">report_id ,</if>
|
||||
<if test="reportName != null and reportName != ''">report_name ,</if>
|
||||
<if test="classifyId != null and classifyId != ''">classify_id ,</if>
|
||||
<if test="previewAddress != null and previewAddress != ''">preview_address ,</if>
|
||||
<if test="state != null and state != ''">state ,</if>
|
||||
<if test="sorts != null">sorts ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
||||
<if test="create_time != null">create_time ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
||||
<if test="modify_time != null">modify_time ,</if>
|
||||
<if test="sts != null and sts != ''">sts ,</if>
|
||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
||||
<if test="companyId != null and companyId != ''">company_id ,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id} ,</if>
|
||||
<if test="reportId != null and reportId != ''">#{reportId} ,</if>
|
||||
<if test="reportName != null and reportName != ''">#{reportName} ,</if>
|
||||
<if test="classifyId != null and classifyId != ''">#{classifyId} ,</if>
|
||||
<if test="previewAddress != null and previewAddress != ''">#{previewAddress} ,</if>
|
||||
<if test="state != null and state != ''">#{state} ,</if>
|
||||
<if test="sorts != null">#{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
||||
<if test="create_time != null">#{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
||||
<if test="modify_time != null">#{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch">
|
||||
insert into report_manage(id, report_id, report_name, classify_id, preview_address, state, sorts,
|
||||
create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{entity.reportId},#{entity.reportName},#{entity.classifyId},#{entity.previewAddress},#{entity.state},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},
|
||||
'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch">
|
||||
insert into report_manage(id, report_id, report_name, classify_id, preview_address, state, sorts,
|
||||
create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id},#{entity.reportId},#{entity.reportName},#{entity.classifyId},#{entity.previewAddress},#{entity.state},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
id = values(id),
|
||||
report_id = values(report_id),
|
||||
report_name = values(report_name),
|
||||
classify_id = values(classify_id),
|
||||
preview_address = values(preview_address),
|
||||
state = values(state),
|
||||
sorts = values(sorts),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id)
|
||||
</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
update report_manage set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id = #{id},</if>
|
||||
<if test="reportId != null and reportId != ''">report_id = #{reportId},</if>
|
||||
<if test="reportName != null and reportName != ''">report_name = #{reportName},</if>
|
||||
<if test="classifyId != null and classifyId != ''">classify_id = #{classifyId},</if>
|
||||
<if test="previewAddress != null and previewAddress != ''">preview_address = #{previewAddress},</if>
|
||||
<if test="state != null and state != ''">state = #{state},</if>
|
||||
<if test="sorts != null">sorts = #{sorts},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null">create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
||||
</trim>
|
||||
where = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
update report_manage set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition"
|
||||
parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
update report_manage set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="reportId != null and reportId != ''">and report_id = #{reportId}</if>
|
||||
<if test="reportName != null and reportName != ''">and report_name = #{reportName}</if>
|
||||
<if test="classifyId != null and classifyId != ''">and classify_id = #{classifyId}</if>
|
||||
<if test="previewAddress != null and previewAddress != ''">and preview_address = #{previewAddress}</if>
|
||||
<if test="state != null and state != ''">and state = #{state}</if>
|
||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from report_manage where = #{id}
|
||||
</delete>
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="queryByLikeClassify" resultMap="get-ReportManageEntity-result"
|
||||
parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
|
||||
select
|
||||
a.id
|
||||
,a.report_id
|
||||
,a.report_name
|
||||
,a.classify_id
|
||||
,p.name as classify_name
|
||||
,a.preview_address
|
||||
,a.state
|
||||
,a.sorts
|
||||
,a.create_user_id
|
||||
,a.create_time
|
||||
,a.modify_user_id
|
||||
,a.modify_time
|
||||
,a.sts
|
||||
,a.org_id
|
||||
,a.company_id
|
||||
from report_manage a
|
||||
LEFT JOIN report_classify p on p.id = a.classify_id and p.sts = 'Y'
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and a.id like concat('%',#{id},'%')</if>
|
||||
<if test="reportId != null and reportId != ''">and a.report_id like concat('%',#{reportId},'%')</if>
|
||||
<if test="reportName != null and reportName != ''">and a.report_name like concat('%',#{reportName},'%')</if>
|
||||
<if test="classifyId != null and classifyId != ''">and a.classify_id like concat('%',#{classifyId},'%')</if>
|
||||
<if test="previewAddress != null and previewAddress != ''">and a.preview_address like
|
||||
concat('%',#{previewAddress},'%')
|
||||
</if>
|
||||
<if test="state != null and state != ''">and a.state like concat('%',#{state},'%')</if>
|
||||
<if test="sorts != null">and a.sorts like concat('%',#{sorts},'%')</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and a.create_user_id like
|
||||
concat('%',#{create_user_id},'%')
|
||||
</if>
|
||||
<if test="create_time != null">and a.create_time like concat('%',#{create_time},'%')</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and a.modify_user_id like
|
||||
concat('%',#{modify_user_id},'%')
|
||||
</if>
|
||||
<if test="modify_time != null">and a.modify_time like concat('%',#{modify_time},'%')</if>
|
||||
<if test="sts != null and sts != ''">and a.sts like concat('%',#{sts},'%')</if>
|
||||
<if test="org_id != null and org_id != ''">and a.org_id like concat('%',#{org_id},'%')</if>
|
||||
<if test="companyId != null and companyId != ''">and a.company_id like concat('%',#{companyId},'%')</if>
|
||||
and a.sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by a.sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="queryReportNotUse" resultType="com.hzya.frame.report.reportManage.entity.JimuReportEntity"
|
||||
parameterType="com.hzya.frame.report.reportManage.entity.JimuReportEntity">
|
||||
SELECT
|
||||
a.id as id
|
||||
,a.code as code
|
||||
,a.name as name
|
||||
,a.del_flag as delFlag
|
||||
FROM
|
||||
jimu_report a
|
||||
LEFT JOIN report_manage b on b.report_id = a.id and b.sts = 'Y'
|
||||
WHERE a.del_flag = '0' and b.id is null ORDER BY a.create_time desc
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="queryReportEntity" resultType="com.hzya.frame.report.reportManage.entity.JimuReportEntity"
|
||||
parameterType="com.hzya.frame.report.reportManage.entity.JimuReportEntity">
|
||||
SELECT
|
||||
id as id
|
||||
,code as code
|
||||
,name as name
|
||||
,del_flag as delFlag
|
||||
FROM
|
||||
jimu_report
|
||||
WHERE del_flag = '0' and id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,116 @@
|
|||
package com.hzya.frame.report.reportManage.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.report.reportManage.entity.ReportManageEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
/**
|
||||
* 报表管理表(ReportManage)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:04:12
|
||||
*/
|
||||
public interface IReportManageService extends IBaseService<ReportManageEntity, String>{
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询报表管理列表分页
|
||||
* @Date 11:52 上午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity queryEntityPage(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询报表管理列表
|
||||
* @Date 11:52 上午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity queryEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 保存报表管理
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity saveEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询未配置的报表
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity queryReport(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询单个报表
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity queryReportEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 获取报表管理
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity getEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 修改报表管理
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity updateEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 删除报表管理
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity deleteEntity(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 启用停用报表管理
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity enableDisableEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 报表管理权限查询
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity jurisdiction(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 保存报表管理权限查询
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity saveJurisdiction(JSONObject jsonObject);
|
||||
}
|
|
@ -0,0 +1,291 @@
|
|||
package com.hzya.frame.report.reportManage.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.report.reportManage.dao.IReportManageDao;
|
||||
import com.hzya.frame.report.reportManage.entity.JimuReportEntity;
|
||||
import com.hzya.frame.report.reportManage.entity.ReportManageEntity;
|
||||
import com.hzya.frame.report.reportManage.service.IReportManageService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报表管理表(ReportManage)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-05-21 15:04:12
|
||||
*/
|
||||
@Service(value = "reportManageService")
|
||||
public class ReportManageServiceImpl extends BaseService<ReportManageEntity, String> implements IReportManageService {
|
||||
|
||||
private IReportManageDao reportManageDao;
|
||||
|
||||
@Autowired
|
||||
public void setReportManageDao(IReportManageDao dao) {
|
||||
this.reportManageDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询报表列表分页
|
||||
* @Date 11:52 上午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity queryEntityPage(JSONObject jsonObject) {
|
||||
ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class);
|
||||
//判断分页
|
||||
if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) {
|
||||
return BaseResult.getFailureMessageEntity("分页查询参数不存在");
|
||||
}
|
||||
PageHelper.startPage(entity.getPageNum(), entity.getPageSize());
|
||||
List<ReportManageEntity> list = reportManageDao.queryByLikeClassify(entity);
|
||||
PageInfo pageInfo = new PageInfo(list);
|
||||
return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询报表列表
|
||||
* @Date 11:52 上午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity queryEntity(JSONObject jsonObject) {
|
||||
ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class);
|
||||
if (entity == null) {
|
||||
entity = new ReportManageEntity();
|
||||
}
|
||||
List<ReportManageEntity> list = reportManageDao.queryByLike(entity);
|
||||
return BaseResult.getSuccessMessageEntity("查询数据成功", list);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 保存报表
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity saveEntity(JSONObject jsonObject) {
|
||||
ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getReportId() == null || "".equals(entity.getReportId())) {
|
||||
return BaseResult.getFailureMessageEntity("请先选择报表");
|
||||
}
|
||||
if (entity.getReportName() == null || "".equals(entity.getReportName())) {
|
||||
return BaseResult.getFailureMessageEntity("请先输入报表名称");
|
||||
}
|
||||
if (entity.getClassifyId() == null || "".equals(entity.getClassifyId())) {
|
||||
return BaseResult.getFailureMessageEntity("请先选择分类");
|
||||
}
|
||||
if (entity.getPreviewAddress() == null || "".equals(entity.getPreviewAddress())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
entity.setState("0");
|
||||
if (!checkIsUse(entity)) {
|
||||
return BaseResult.getFailureMessageEntity("当前报表已经配置,请勿重复配置");
|
||||
}
|
||||
entity.setCreate();
|
||||
//保存
|
||||
reportManageDao.save(entity);
|
||||
return BaseResult.getSuccessMessageEntity("保存报表成功", entity);
|
||||
}
|
||||
|
||||
|
||||
private boolean checkIsUse(ReportManageEntity entity) {
|
||||
ReportManageEntity checkUse = new ReportManageEntity();
|
||||
checkUse.setReportId(entity.getReportId());
|
||||
return reportManageDao.getCount(checkUse) <= 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 获取报表
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity getEntity(JSONObject jsonObject) {
|
||||
ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getId() == null || "".equals(entity.getId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
entity = reportManageDao.get(entity.getId());
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("获取报表失败");
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("获取报表成功", entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 修改报表
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity updateEntity(JSONObject jsonObject) {
|
||||
ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getId() == null || "".equals(entity.getId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
if (entity.getReportId() == null || "".equals(entity.getReportId())) {
|
||||
return BaseResult.getFailureMessageEntity("请先选择报表");
|
||||
}
|
||||
if (entity.getReportName() == null || "".equals(entity.getReportName())) {
|
||||
return BaseResult.getFailureMessageEntity("请先输入报表名称");
|
||||
}
|
||||
if (entity.getClassifyId() == null || "".equals(entity.getClassifyId())) {
|
||||
return BaseResult.getFailureMessageEntity("请先选择分类");
|
||||
}
|
||||
if (entity.getPreviewAddress() == null || "".equals(entity.getPreviewAddress())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
entity.setUpdate();
|
||||
//保存
|
||||
reportManageDao.update(entity);
|
||||
return BaseResult.getSuccessMessageEntity("修改报表成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 删除报表
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity deleteEntity(JSONObject jsonObject) {
|
||||
ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getId() == null || "".equals(entity.getId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
entity.setUpdate();
|
||||
reportManageDao.logicRemove(entity);
|
||||
return BaseResult.getSuccessMessageEntity("删除报表成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 启用停用报表
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity enableDisableEntity(JSONObject jsonObject) {
|
||||
ReportManageEntity entity = getData("jsonStr", jsonObject, ReportManageEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getId() == null || "".equals(entity.getId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
if (entity.getState() == null || "".equals(entity.getState())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
entity.setUpdate();
|
||||
reportManageDao.update(entity);
|
||||
//0启用 1 停用
|
||||
if ("0".equals(entity.getState())) {
|
||||
return BaseResult.getSuccessMessageEntity("启用用户成功");
|
||||
} else {
|
||||
return BaseResult.getSuccessMessageEntity("停用用户成功");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询报表
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity queryReport(JSONObject jsonObject) {
|
||||
JimuReportEntity entity = getData("jsonStr", jsonObject, JimuReportEntity.class);
|
||||
//判断分页
|
||||
if (entity == null || entity.getPageNum() == null || entity.getPageSize() == null) {
|
||||
return BaseResult.getFailureMessageEntity("分页查询参数不存在");
|
||||
}
|
||||
PageHelper.startPage(entity.getPageNum(), entity.getPageSize());
|
||||
List<JimuReportEntity> list = reportManageDao.queryReportNotUse(entity);
|
||||
PageInfo pageInfo = new PageInfo(list);
|
||||
return BaseResult.getSuccessMessageEntity("查询数据成功", pageInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询报表
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity queryReportEntity(JSONObject jsonObject) {
|
||||
JimuReportEntity entity = getData("jsonStr", jsonObject, JimuReportEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("参数不允许为空");
|
||||
}
|
||||
if (entity.getId() == null || "".equals(entity.getId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
entity = reportManageDao.queryReportEntity(entity);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("获取报表失败");
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("获取报表成功", entity);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 权限查询
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity jurisdiction(JSONObject jsonObject) {
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 保存权限查询
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity saveJurisdiction(JSONObject jsonObject) {
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -18,16 +18,66 @@
|
|||
<artifactId>base-service</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.hzya.frame</groupId>
|
||||
<artifactId>fw-cbs</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.hzya.frame</groupId>
|
||||
<artifactId>fw-u8c</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-bip</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-cbs</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-dd</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-grpU8</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-nc</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-ncc</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-ningbobank</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-oa</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-u8</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-u8c</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.hzya.frame</groupId>-->
|
||||
<!-- <artifactId>fw-u9c</artifactId>-->
|
||||
<!-- <version>${revision}</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
<?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-cbs</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>
|
|
@ -1,12 +0,0 @@
|
|||
package com.hzya.frame.testCbs.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.testCbs.entity.TestCbsEntity;
|
||||
|
||||
|
||||
public interface ITestCbsDao extends IBaseDao<TestCbsEntity, String> {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
package com.hzya.frame.testCbs.dao.impl;
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.testCbs.dao.ITestCbsDao;
|
||||
import com.hzya.frame.testCbs.entity.TestCbsEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository(value = "TestCbsDaoImpl")
|
||||
public class TestCbsDaoImpl extends MybatisGenericDao<TestCbsEntity, String> implements ITestCbsDao {
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.hzya.frame.testCbs.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
|
||||
public class TestCbsEntity extends BaseEntity {
|
||||
private String name;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<?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.testCbs.dao.impl.TestCbsDaoImpl">
|
||||
|
||||
<select id="entity_list_base" resultType="com.hzya.frame.testCbs.entity.TestCbsEntity" parameterType = "com.hzya.frame.testCbs.entity.TestCbsEntity">
|
||||
select name
|
||||
from test
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
package com.hzya.frame.testCbs.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.testCbs.entity.TestCbsEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
public interface ITsetCbsService extends IBaseService<TestCbsEntity, String> {
|
||||
JsonResultEntity testCbs(JSONObject jsonObject);
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
package com.hzya.frame.testCbs.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.sysnew.application.dao.ISysApplicationDao;
|
||||
import com.hzya.frame.sysnew.application.entity.SysApplicationEntity;
|
||||
import com.hzya.frame.testCbs.dao.ITestCbsDao;
|
||||
import com.hzya.frame.testCbs.entity.TestCbsEntity;
|
||||
import com.hzya.frame.testCbs.service.ITsetCbsService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service(value = "testCbsService")
|
||||
public class TestCbsServiceImpl extends BaseService<TestCbsEntity, String> implements ITsetCbsService {
|
||||
|
||||
private ITestCbsDao testCbsDao;
|
||||
@Autowired
|
||||
private ISysApplicationDao sysApplicationDao;
|
||||
@Autowired
|
||||
public void setTestCbsDao(ITestCbsDao testCbsDao) {
|
||||
this.testCbsDao = testCbsDao;
|
||||
this.dao = testCbsDao;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JsonResultEntity testCbs(JSONObject jsonObject) {
|
||||
TestCbsEntity testCbsEntity = new TestCbsEntity();
|
||||
List<TestCbsEntity> testCbsEntities = testCbsDao.queryBase(testCbsEntity);
|
||||
SysApplicationEntity sysApplicationEntity = new SysApplicationEntity();
|
||||
List<SysApplicationEntity> sysApplicationEntities = sysApplicationDao.queryBase(sysApplicationEntity);
|
||||
return BaseResult.getSuccessMessageEntity("cg");
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
</web-app>
|
|
@ -1,48 +0,0 @@
|
|||
<?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-u8c</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>
|
|
@ -1,12 +0,0 @@
|
|||
package com.hzya.frame.testU8c.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.testU8c.entity.TestU8cEntity;
|
||||
|
||||
|
||||
public interface ITestU8cDao extends IBaseDao<TestU8cEntity, String> {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
package com.hzya.frame.testU8c.dao.impl;
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.testU8c.dao.ITestU8cDao;
|
||||
import com.hzya.frame.testU8c.entity.TestU8cEntity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository(value = "TestU8cDaoImpl")
|
||||
public class TestU8cDaoImpl extends MybatisGenericDao<TestU8cEntity, String> implements ITestU8cDao {
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.hzya.frame.testU8c.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
|
||||
public class TestU8cEntity extends BaseEntity {
|
||||
private String name;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<?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.testU8c.dao.impl.TestU8cDaoImpl">
|
||||
|
||||
<select id="entity_list_base" resultType="com.hzya.frame.testU8c.entity.TestU8cEntity" parameterType = "com.hzya.frame.testU8c.entity.TestU8cEntity">
|
||||
select name
|
||||
from test
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
package com.hzya.frame.testU8c.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.testU8c.entity.TestU8cEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
public interface ITsetU8cService extends IBaseService<TestU8cEntity, String> {
|
||||
JsonResultEntity testU8c(JSONObject jsonObject);
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
package com.hzya.frame.testU8c.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.sysnew.application.dao.ISysApplicationDao;
|
||||
import com.hzya.frame.sysnew.application.entity.SysApplicationEntity;
|
||||
import com.hzya.frame.testU8c.dao.ITestU8cDao;
|
||||
import com.hzya.frame.testU8c.entity.TestU8cEntity;
|
||||
import com.hzya.frame.testU8c.service.ITsetU8cService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service(value = "testU8cService")
|
||||
public class TestU8cServiceImpl extends BaseService<TestU8cEntity, String> implements ITsetU8cService {
|
||||
|
||||
private ITestU8cDao testU8cDao;
|
||||
@Autowired
|
||||
private ISysApplicationDao sysApplicationDao;
|
||||
@Autowired
|
||||
public void setTestU8cDao(ITestU8cDao testU8cDao) {
|
||||
this.testU8cDao = testU8cDao;
|
||||
this.dao = testU8cDao;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JsonResultEntity testU8c(JSONObject jsonObject) {
|
||||
TestU8cEntity testU8cEntity = new TestU8cEntity();
|
||||
List<TestU8cEntity> testU8cEntities = testU8cDao.queryBase(testU8cEntity);
|
||||
SysApplicationEntity sysApplicationEntity = new SysApplicationEntity();
|
||||
List<SysApplicationEntity> sysApplicationEntities = sysApplicationDao.queryBase(sysApplicationEntity);
|
||||
return BaseResult.getSuccessMessageEntity("cg");
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
</web-app>
|
13
pom.xml
13
pom.xml
|
@ -7,8 +7,17 @@
|
|||
<module>base-common</module>
|
||||
<module>base-webapp</module>
|
||||
<module>base-core</module>
|
||||
<module>fw-cbs</module>
|
||||
<module>fw-u8c</module>
|
||||
<!-- <module>fw-bip</module>-->
|
||||
<!-- <module>fw-cbs</module>-->
|
||||
<!-- <module>fw-dd</module>-->
|
||||
<!-- <module>fw-grpU8</module>-->
|
||||
<!-- <module>fw-nc</module>-->
|
||||
<!-- <module>fw-ncc</module>-->
|
||||
<!-- <module>fw-ningbobank</module>-->
|
||||
<!-- <module>fw-oa</module>-->
|
||||
<!-- <module>fw-u8</module>-->
|
||||
<!-- <module>fw-u8c</module>-->
|
||||
<!-- <module>fw-u9c</module>-->
|
||||
</modules>
|
||||
<groupId>com.hzya.frame</groupId>
|
||||
<artifactId>kangarooDataCenterV3</artifactId>
|
||||
|
|
Loading…
Reference in New Issue