commit cfa25be612ac1b2cee2fe3f615c98b83cc9e96f7 Author: tangzp Date: Wed Jan 3 14:15:05 2024 +0800 朝阳 养老驿站填报系统 diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..3ac4b85 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..f6ea148 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..a2b6c24 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..132404b --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/mztb/pom.xml b/mztb/pom.xml new file mode 100644 index 0000000..1e0b1b2 --- /dev/null +++ b/mztb/pom.xml @@ -0,0 +1,91 @@ + + + + + + + + + 4.0.0 + cc.smtweb + mztb + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-parent + 2.6.2 + + + + + 8 + 8 + UTF-8 + + + + org.springframework.boot + spring-boot-starter + 2.6.2 + + + org.springframework.boot + spring-boot-starter-web + 2.6.2 + + + + cc.smtweb + smt-framework-bpm + 1.4.0-SNAPSHOT + + + + + + + + cc.smtweb + smt-framework-bpm-vue + + 1.4.0-SNAPSHOT + + + ch.qos.logback + logback-core + 1.2.6 + + + + com.google.zxing + core + 3.3.3 + + + com.google.zxing + javase + 3.3.3 + + + + + + + nexus-jjkj + Nexus jjkj + http://47.92.149.153:7000/repository/maven-public/ + + true + + + true + + + + + + \ No newline at end of file diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/MztbApplication.java b/mztb/src/main/java/cc/smtweb/biz/mztb/MztbApplication.java new file mode 100644 index 0000000..24a3b12 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/MztbApplication.java @@ -0,0 +1,22 @@ +package cc.smtweb.biz.mztb; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class MztbApplication { + + public static void main(String[] args) { +// try { +// Runtime.getRuntime().exec("redis-cli -n 10 flushdb"); +// } catch (IOException e) { +// e.printStackTrace(); +// } + SpringApplication.run(MztbApplication.class, args); +// try { +// Runtime.getRuntime().exec("cmd /c start http://localhost:8888/static/design/ui/index.html#/design"); +// } catch (IOException e) { +// e.printStackTrace(); +// } + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.java b/mztb/src/main/java/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.java new file mode 100644 index 0000000..dfc0eab --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.java @@ -0,0 +1,19 @@ +package cc.smtweb.biz.mztb.spring; + +import cc.smtweb.framework.core.mvc.config.ControllerConfig; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.context.annotation.Configuration; + +/** + * @author kevin + */ +@Configuration +@ComponentScan +public class MztbAutoConfiguration { + /** 配置自定义service扫描路径 {module}/{service}/{method} */ + @Bean + public ControllerConfig pgzxControllerConfig() { + return new ControllerConfig("mztb", "cc.smtweb.biz.mztb", null); + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/MztbStartedListener.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/MztbStartedListener.java new file mode 100644 index 0000000..8ad8ec7 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/MztbStartedListener.java @@ -0,0 +1,40 @@ +package cc.smtweb.biz.mztb.web; + +import cc.smtweb.framework.core.annotation.SwStartListener; +import cc.smtweb.framework.core.common.SwConsts; +import cc.smtweb.framework.core.mvc.controller.IStartListener; +import cc.smtweb.framework.core.session.SessionUtil; + +/** + * Created by Akmm at 2022/7/8 19:57 + */ +@SwStartListener() +public class MztbStartedListener implements IStartListener { + + @Override + public double versionTo() { + return 0; + } + @Override + public int order() { + return SwConsts.DEFAULT_ORDER + 10; + } + + @Override + public void init() { + SwConsts.SysParam.RUN_PROJECTS = "bpm,mztb"; + SwConsts.SysParam.SYS_DEBUG = true; + SwConsts.SysParam.ENABLE_TRANSPORT_ENCRYPT =false; + + } + + @Override + public void run() { + + } + + @Override + public void close() { + + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/BusinessInfo.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/BusinessInfo.java new file mode 100644 index 0000000..4496476 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/BusinessInfo.java @@ -0,0 +1,253 @@ +package cc.smtweb.biz.mztb.web.base; + +import cc.smtweb.framework.core.annotation.SwTable; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.impl.DefaultEntity; + +/** + * Created by 1 at 2023-12-19 11:07:15 + * 实体【[业务信息](TB_BUSINESS_INFO)】的Entity类 + */ +@SwTable("TB_BUSINESS_INFO") +public class BusinessInfo extends DefaultEntity { + public static final String ENTITY_NAME = "TB_BUSINESS_INFO"; + + public BusinessInfo() { + super(ENTITY_NAME); + } + + /** 主键 */ + public long getId() { + return getLong("bi_id"); + } + + /** 主键 */ + public void setId(long bi_id) { + put("bi_id", bi_id); + } + /** 最后更新时间 */ + public long getUpdateAt() { + return getLong("bi_update_at"); + } + + /** 最后更新时间 */ + public void setUpdateAt(long bi_update_at) { + put("bi_update_at", bi_update_at); + } + /** 填报主表ID */ + public long getFoId() { + return getLong("bi_fo_id"); + } + + /** 填报主表ID */ + public void setFoId(long bi_fo_id) { + put("bi_fo_id", bi_fo_id); + } + /** 类型 */ + public String getType() { + return getStr("bi_type"); + } + + /** 类型 */ + public void setType(String bi_type) { + put("bi_type", bi_type); + } + /** 性质 */ + public String getProperty() { + return getStr("bi_property"); + } + + /** 性质 */ + public void setProperty(String bi_property) { + put("bi_property", bi_property); + } + /** 兴办主体 */ + public String getInitiate() { + return getStr("bi_initiate"); + } + + /** 兴办主体 */ + public void setInitiate(String bi_initiate) { + put("bi_initiate", bi_initiate); + } + /** 是否为所有权、经营权分离办公养老机构 */ + public int getIsolate() { + return getInt("bi_isolate"); + } + + /** 是否为所有权、经营权分离办公养老机构 */ + public void setIsolate(int bi_isolate) { + put("bi_isolate", bi_isolate); + } + /** 医疗机构执业许可证登记号 */ + public String getMedicalCard() { + return getStr("bi_medical_card"); + } + + /** 医疗机构执业许可证登记号 */ + public void setMedicalCard(String bi_medical_card) { + put("bi_medical_card", bi_medical_card); + } + /** 医疗保险定点医疗机构资格证书编码 */ + public String getMedicalCode() { + return getStr("bi_medical_code"); + } + + /** 医疗保险定点医疗机构资格证书编码 */ + public void setMedicalCode(String bi_medical_code) { + put("bi_medical_code", bi_medical_code); + } + /** 单位所在地区行政区划代码 */ + public String getUnitAddressAreaCode() { + return getStr("bi_unit_address_area_code"); + } + + /** 单位所在地区行政区划代码 */ + public void setUnitAddressAreaCode(String bi_unit_address_area_code) { + put("bi_unit_address_area_code", bi_unit_address_area_code); + } + /** 邮编 */ + public String getPostcode() { + return getStr("bi_postcode"); + } + + /** 邮编 */ + public void setPostcode(String bi_postcode) { + put("bi_postcode", bi_postcode); + } + /** 年末职工人数 */ + public int getYearEndEmployeeNumber() { + return getInt("bi_year_end_employee_number"); + } + + /** 年末职工人数 */ + public void setYearEndEmployeeNumber(int bi_year_end_employee_number) { + put("bi_year_end_employee_number", bi_year_end_employee_number); + } + /** 年末职工人数(女) */ + public int getYearEndEmpMiss() { + return getInt("bi_year_end_emp_miss"); + } + + /** 年末职工人数(女) */ + public void setYearEndEmpMiss(int bi_year_end_emp_miss) { + put("bi_year_end_emp_miss", bi_year_end_emp_miss); + } + /** 年末职工人数(男) */ + public int getYearEndEmpMan() { + return getInt("bi_year_end_emp_man"); + } + + /** 年末职工人数(男) */ + public void setYearEndEmpMan(int bi_year_end_emp_man) { + put("bi_year_end_emp_man", bi_year_end_emp_man); + } + /** 年末职工人数(医护人员) */ + public int getYearEndMedic() { + return getInt("bi_year_end_medic"); + } + + /** 年末职工人数(医护人员) */ + public void setYearEndMedic(int bi_year_end_medic) { + put("bi_year_end_medic", bi_year_end_medic); + } + /** 大学专科人数 */ + public int getYearEndZk() { + return getInt("bi_year_end_zk"); + } + + /** 大学专科人数 */ + public void setYearEndZk(int bi_year_end_zk) { + put("bi_year_end_zk", bi_year_end_zk); + } + /** 大学本科及以上人数 */ + public int getYearEndBk() { + return getInt("bi_year_end_bk"); + } + + /** 大学本科及以上人数 */ + public void setYearEndBk(int bi_year_end_bk) { + put("bi_year_end_bk", bi_year_end_bk); + } + /** 助理社会工作师人数 */ + public int getAssistant() { + return getInt("bi_assistant"); + } + + /** 助理社会工作师人数 */ + public void setAssistant(int bi_assistant) { + put("bi_assistant", bi_assistant); + } + /** 社会工作师人数 */ + public int getEngineer() { + return getInt("bi_engineer"); + } + + /** 社会工作师人数 */ + public void setEngineer(int bi_engineer) { + put("bi_engineer", bi_engineer); + } + /** 35岁及以下人数 */ + public int getThirtyFive() { + return getInt("bi_thirty_five"); + } + + /** 35岁及以下人数 */ + public void setThirtyFive(int bi_thirty_five) { + put("bi_thirty_five", bi_thirty_five); + } + /** 36-45岁人数 */ + public int getFortyFive() { + return getInt("bi_forty_five"); + } + + /** 36-45岁人数 */ + public void setFortyFive(int bi_forty_five) { + put("bi_forty_five", bi_forty_five); + } + /** 46-55岁人数 */ + public int getFiftyFive() { + return getInt("bi_fifty_five"); + } + + /** 46-55岁人数 */ + public void setFiftyFive(int bi_fifty_five) { + put("bi_fifty_five", bi_fifty_five); + } + /** 56岁以上人数 */ + public int getFiftyFiveAbove() { + return getInt("bi_fifty_five_above"); + } + + /** 56岁以上人数 */ + public void setFiftyFiveAbove(int bi_fifty_five_above) { + put("bi_fifty_five_above", bi_fifty_five_above); + } + /** 机构管理人员—专业技术技能人员 */ + public int getPartyManageSp() { + return getInt("bi_party_manage_sp"); + } + + /** 机构管理人员—专业技术技能人员 */ + public void setPartyManageSp(int bi_party_manage_sp) { + put("bi_party_manage_sp", bi_party_manage_sp); + } + /** 专业技术技能人员—养老护理员 */ + public int getSpNursingAssistant() { + return getInt("bi_sp_nursing_assistant"); + } + + /** 专业技术技能人员—养老护理员 */ + public void setSpNursingAssistant(int bi_sp_nursing_assistant) { + put("bi_sp_nursing_assistant", bi_sp_nursing_assistant); + } + /** 执行会计制度 */ + public String getExecuteRegimen() { + return getStr("bi_execute_regimen"); + } + + /** 执行会计制度 */ + public void setExecuteRegimen(String bi_execute_regimen) { + put("bi_execute_regimen", bi_execute_regimen); + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/DbSourceConfig.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/DbSourceConfig.java new file mode 100644 index 0000000..e2c230f --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/DbSourceConfig.java @@ -0,0 +1,127 @@ +package cc.smtweb.biz.mztb.web.base; + +import cc.smtweb.framework.core.annotation.SwTable; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.impl.DefaultEntity; + +/** + * Created by 1 at 2023-12-19 11:07:17 + * 实体【[配置前置库连接](TB_DB_SOURCE_CONFIG)】的Entity类 + */ +@SwTable("TB_DB_SOURCE_CONFIG") +public class DbSourceConfig extends DefaultEntity { + public static final String ENTITY_NAME = "TB_DB_SOURCE_CONFIG"; + + public DbSourceConfig() { + super(ENTITY_NAME); + } + + /** 主键 */ + public long getId() { + return getLong("dsc_id"); + } + + /** 主键 */ + public void setId(long dsc_id) { + put("dsc_id", dsc_id); + } + /** 最后更新时间 */ + public long getUpdateAt() { + return getLong("dsc_update_at"); + } + + /** 最后更新时间 */ + public void setUpdateAt(long dsc_update_at) { + put("dsc_update_at", dsc_update_at); + } + /** 组织ID */ + public long getOrgId() { + return getLong("dsc_org_id"); + } + + /** 组织ID */ + public void setOrgId(long dsc_org_id) { + put("dsc_org_id", dsc_org_id); + } + /** 数据库类型 */ + public String getDbType() { + return getStr("dsc_db_type"); + } + + /** 数据库类型 */ + public void setDbType(String dsc_db_type) { + put("dsc_db_type", dsc_db_type); + } + /** ip地址 */ + public String getConnectIp() { + return getStr("dsc_connect_ip"); + } + + /** ip地址 */ + public void setConnectIp(String dsc_connect_ip) { + put("dsc_connect_ip", dsc_connect_ip); + } + /** 端口 */ + public int getPort() { + return getInt("dsc_port"); + } + + /** 端口 */ + public void setPort(int dsc_port) { + put("dsc_port", dsc_port); + } + /** 用户名 */ + public String getUsername() { + return getStr("dsc_username"); + } + + /** 用户名 */ + public void setUsername(String dsc_username) { + put("dsc_username", dsc_username); + } + /** 密码 */ + public String getPassword() { + return getStr("dsc_password"); + } + + /** 密码 */ + public void setPassword(String dsc_password) { + put("dsc_password", dsc_password); + } + /** 数据库名 */ + public String getDbName() { + return getStr("dsc_db_name"); + } + + /** 数据库名 */ + public void setDbName(String dsc_db_name) { + put("dsc_db_name", dsc_db_name); + } + /** 数据库编码 */ + public String getCoding() { + return getStr("dsc_coding"); + } + + /** 数据库编码 */ + public void setCoding(String dsc_coding) { + put("dsc_coding", dsc_coding); + } + /** 完整的URL地址 */ + public String getWholeUrl() { + return getStr("dsc_whole_url"); + } + + /** 完整的URL地址 */ + public void setWholeUrl(String dsc_whole_url) { + put("dsc_whole_url", dsc_whole_url); + } + /** 使用状态 */ + public int getUseState() { + return getInt("dsc_use_state"); + } + + /** 使用状态 */ + public void setUseState(int dsc_use_state) { + put("dsc_use_state", dsc_use_state); + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FillOut.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FillOut.java new file mode 100644 index 0000000..0188619 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FillOut.java @@ -0,0 +1,82 @@ +package cc.smtweb.biz.mztb.web.base; + +import cc.smtweb.framework.core.annotation.SwTable; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.impl.DefaultEntity; + +/** + * Created by 1 at 2023-12-19 11:07:02 + * 实体【[填报主表](TB_FILL_OUT)】的Entity类 + */ +@SwTable("TB_FILL_OUT") +public class FillOut extends DefaultEntity { + public static final String ENTITY_NAME = "TB_FILL_OUT"; + + public FillOut() { + super(ENTITY_NAME); + } + + /** 主键 */ + public long getId() { + return getLong("fo_id"); + } + + /** 主键 */ + public void setId(long fo_id) { + put("fo_id", fo_id); + } + /** 最后更新时间 */ + public long getUpdateAt() { + return getLong("fo_update_at"); + } + + /** 最后更新时间 */ + public void setUpdateAt(long fo_update_at) { + put("fo_update_at", fo_update_at); + } + /** 任务月 */ + public long getTask() { + return getLong("fo_task"); + } + + /** 任务月 */ + public void setTask(long fo_task) { + put("fo_task", fo_task); + } + /** 填报类型 */ + public int getType() { + return getInt("fo_type"); + } + + /** 填报类型 */ + public void setType(int fo_type) { + put("fo_type", fo_type); + } + /** 状态 */ + public int getState() { + return getInt("fo_state"); + } + + /** 状态 */ + public void setState(int fo_state) { + put("fo_state", fo_state); + } + /** 填报人 */ + public String getUser() { + return getStr("fo_user"); + } + + /** 填报人 */ + public void setUser(String fo_user) { + put("fo_user", fo_user); + } + /** 填报时间 */ + public long getDate() { + return getLong("fo_date"); + } + + /** 填报时间 */ + public void setDate(long fo_date) { + put("fo_date", fo_date); + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FinanceInfo.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FinanceInfo.java new file mode 100644 index 0000000..f974ff8 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FinanceInfo.java @@ -0,0 +1,577 @@ +package cc.smtweb.biz.mztb.web.base; + +import cc.smtweb.framework.core.annotation.SwTable; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.impl.DefaultEntity; + +/** + * Created by 1 at 2023-12-19 11:07:05 + * 实体【[财务信息](TB_FINANCE_INFO)】的Entity类 + */ +@SwTable("TB_FINANCE_INFO") +public class FinanceInfo extends DefaultEntity { + public static final String ENTITY_NAME = "TB_FINANCE_INFO"; + + public FinanceInfo() { + super(ENTITY_NAME); + } + + /** 主键 */ + public long getId() { + return getLong("fi_id"); + } + + /** 主键 */ + public void setId(long fi_id) { + put("fi_id", fi_id); + } + /** 最后更新时间 */ + public long getUpdateAt() { + return getLong("fi_update_at"); + } + + /** 最后更新时间 */ + public void setUpdateAt(long fi_update_at) { + put("fi_update_at", fi_update_at); + } + /** 填报主表ID */ + public long getFoId() { + return getLong("fi_fo_id"); + } + + /** 填报主表ID */ + public void setFoId(long fi_fo_id) { + put("fi_fo_id", fi_fo_id); + } + /** 存货 */ + public long getStock() { + return getLong("fi_stock"); + } + + /** 存货 */ + public void setStock(long fi_stock) { + put("fi_stock", fi_stock); + } + /** 固定资产原价 */ + public long getFixedAssets() { + return getLong("fi_fixed_assets"); + } + + /** 固定资产原价 */ + public void setFixedAssets(long fi_fixed_assets) { + put("fi_fixed_assets", fi_fixed_assets); + } + /** 累计折旧 */ + public long getGrandTotalDepr() { + return getLong("fi_grand_total_depr"); + } + + /** 累计折旧 */ + public void setGrandTotalDepr(long fi_grand_total_depr) { + put("fi_grand_total_depr", fi_grand_total_depr); + } + /** 累计折旧(本年折旧) */ + public long getGtdYear() { + return getLong("fi_gtd_year"); + } + + /** 累计折旧(本年折旧) */ + public void setGtdYear(long fi_gtd_year) { + put("fi_gtd_year", fi_gtd_year); + } + /** 资产总计 */ + public long getPropertyTotal() { + return getLong("fi_property_total"); + } + + /** 资产总计 */ + public void setPropertyTotal(long fi_property_total) { + put("fi_property_total", fi_property_total); + } + /** 负债合计 */ + public long getLiabilitiesTotal() { + return getLong("fi_liabilities_total"); + } + + /** 负债合计 */ + public void setLiabilitiesTotal(long fi_liabilities_total) { + put("fi_liabilities_total", fi_liabilities_total); + } + /** 营业收入 */ + public long getOperationRevenue() { + return getLong("fi_operation_revenue"); + } + + /** 营业收入 */ + public void setOperationRevenue(long fi_operation_revenue) { + put("fi_operation_revenue", fi_operation_revenue); + } + /** 营业成本 */ + public long getOperatingCosts() { + return getLong("fi_operating_costs"); + } + + /** 营业成本 */ + public void setOperatingCosts(long fi_operating_costs) { + put("fi_operating_costs", fi_operating_costs); + } + /** 营业税金及附加 */ + public long getTaxes() { + return getLong("fi_taxes"); + } + + /** 营业税金及附加 */ + public void setTaxes(long fi_taxes) { + put("fi_taxes", fi_taxes); + } + /** 销售费用 */ + public long getSellCost() { + return getLong("fi_sell_cost"); + } + + /** 销售费用 */ + public void setSellCost(long fi_sell_cost) { + put("fi_sell_cost", fi_sell_cost); + } + /** 管理费用 */ + public long getManageCost() { + return getLong("fi_manage_cost"); + } + + /** 管理费用 */ + public void setManageCost(long fi_manage_cost) { + put("fi_manage_cost", fi_manage_cost); + } + /** 管理费用(税金) */ + public long getMcTaxes() { + return getLong("fi_mc_taxes"); + } + + /** 管理费用(税金) */ + public void setMcTaxes(long fi_mc_taxes) { + put("fi_mc_taxes", fi_mc_taxes); + } + /** 管理费用(差旅费) */ + public long getMcTravel() { + return getLong("fi_mc_travel"); + } + + /** 管理费用(差旅费) */ + public void setMcTravel(long fi_mc_travel) { + put("fi_mc_travel", fi_mc_travel); + } + /** 财务费用 */ + public long getFinanceCost() { + return getLong("fi_finance_cost"); + } + + /** 财务费用 */ + public void setFinanceCost(long fi_finance_cost) { + put("fi_finance_cost", fi_finance_cost); + } + /** 财务费用(利息净支出) */ + public long getFcInterests() { + return getLong("fi_fc_interests"); + } + + /** 财务费用(利息净支出) */ + public void setFcInterests(long fi_fc_interests) { + put("fi_fc_interests", fi_fc_interests); + } + /** 资产减值损失 */ + public long getAssetLoss() { + return getLong("fi_asset_loss"); + } + + /** 资产减值损失 */ + public void setAssetLoss(long fi_asset_loss) { + put("fi_asset_loss", fi_asset_loss); + } + /** 公允价值变动收益 */ + public long getFairValueChanage() { + return getLong("fi_fair_value_chanage"); + } + + /** 公允价值变动收益 */ + public void setFairValueChanage(long fi_fair_value_chanage) { + put("fi_fair value_chanage", fi_fair_value_chanage); + } + /** 投资收益 */ + public long getIncomeFromInvestment() { + return getLong("fi_income_from_investment"); + } + + /** 投资收益 */ + public void setIncomeFromInvestment(long fi_income_from_investment) { + put("fi_income_from_investment", fi_income_from_investment); + } + /** 营业利润 */ + public long getOperatingProfit() { + return getLong("fi_operating_profit"); + } + + /** 营业利润 */ + public void setOperatingProfit(long fi_operating_profit) { + put("fi_operating_profit", fi_operating_profit); + } + /** 营业外收入 */ + public long getNonbusinessIncome() { + return getLong("fi_nonbusiness_income"); + } + + /** 营业外收入 */ + public void setNonbusinessIncome(long fi_nonbusiness_income) { + put("fi_nonbusiness_income", fi_nonbusiness_income); + } + /** 营业外收入(政府补助) */ + public long getNiPublicSubsidy() { + return getLong("fi_ni_public_subsidy"); + } + + /** 营业外收入(政府补助) */ + public void setNiPublicSubsidy(long fi_ni_public_subsidy) { + put("fi_ni_public_subsidy", fi_ni_public_subsidy); + } + /** 应付职工底薪 */ + public long getBasePay() { + return getLong("fi_base_pay"); + } + + /** 应付职工底薪 */ + public void setBasePay(long fi_base_pay) { + put("fi_base_pay", fi_base_pay); + } + /** 本年应交增值税 */ + public long getPayableMoneyYear() { + return getLong("fi_payable_money_year"); + } + + /** 本年应交增值税 */ + public void setPayableMoneyYear(long fi_payable_money_year) { + put("fi_payable_money_year", fi_payable_money_year); + } + /** 本年收入合计 */ + public long getYearIncomeTotal() { + return getLong("fi_year_income_total"); + } + + /** 本年收入合计 */ + public void setYearIncomeTotal(long fi_year_income_total) { + put("fi_year_income_total", fi_year_income_total); + } + /** 本年收入合计(事业收入) */ + public long getYitEnterpricse() { + return getLong("fi_yit_enterpricse"); + } + + /** 本年收入合计(事业收入) */ + public void setYitEnterpricse(long fi_yit_enterpricse) { + put("fi_yit_enterpricse", fi_yit_enterpricse); + } + /** 本年收入合计(捐赠收入) */ + public long getYitDonation() { + return getLong("fi_yit_donation"); + } + + /** 本年收入合计(捐赠收入) */ + public void setYitDonation(long fi_yit_donation) { + put("fi_yit_donation", fi_yit_donation); + } + /** 本年收入合计(经营收入) */ + public long getYitBusiness() { + return getLong("fi_yit_business"); + } + + /** 本年收入合计(经营收入) */ + public void setYitBusiness(long fi_yit_business) { + put("fi_yit_business", fi_yit_business); + } + /** 本年收入合计(政府补助收入) */ + public long getYitSubsidy() { + return getLong("fi_yit_subsidy"); + } + + /** 本年收入合计(政府补助收入) */ + public void setYitSubsidy(long fi_yit_subsidy) { + put("fi_yit_subsidy", fi_yit_subsidy); + } + /** 本年收入合计(会费收入) */ + public long getYitMembershiopFees() { + return getLong("fi_yit_membershiop_fees"); + } + + /** 本年收入合计(会费收入) */ + public void setYitMembershiopFees(long fi_yit_membershiop_fees) { + put("fi_yit_membershiop_fees", fi_yit_membershiop_fees); + } + /** 本年支出合计 */ + public long getYearExpend() { + return getLong("fi_year_expend"); + } + + /** 本年支出合计 */ + public void setYearExpend(long fi_year_expend) { + put("fi_year_expend", fi_year_expend); + } + /** 本年支出合计(商品和服务支出) */ + public long getYeCommodityService() { + return getLong("fi_ye_commodity_service"); + } + + /** 本年支出合计(商品和服务支出) */ + public void setYeCommodityService(long fi_ye_commodity_service) { + put("fi_ye_commodity_service", fi_ye_commodity_service); + } + /** 商品和服务支出(取暖费) */ + public long getCsHeatingFee() { + return getLong("fi_cs_heating_fee"); + } + + /** 商品和服务支出(取暖费) */ + public void setCsHeatingFee(long fi_cs_heating_fee) { + put("fi_cs_heating_fee", fi_cs_heating_fee); + } + /** 商品和服务支出(差旅费) */ + public long getCsTravelExpense() { + return getLong("fi_cs_travel_expense"); + } + + /** 商品和服务支出(差旅费) */ + public void setCsTravelExpense(long fi_cs_travel_expense) { + put("fi_cs_travel_expense", fi_cs_travel_expense); + } + /** 商品和服务支出(因公出国 / 境费) */ + public long getCsGoAbroad() { + return getLong("fi_cs_go_abroad"); + } + + /** 商品和服务支出(因公出国 / 境费) */ + public void setCsGoAbroad(long fi_cs_go_abroad) { + put("fi_cs_go_abroad", fi_cs_go_abroad); + } + /** 商品和服务支出(劳务费) */ + public long getCsServiceFee() { + return getLong("fi_cs_service_fee"); + } + + /** 商品和服务支出(劳务费) */ + public void setCsServiceFee(long fi_cs_service_fee) { + put("fi_cs_service_fee", fi_cs_service_fee); + } + /** 商品和服务支出(工会经费) */ + public long getCsExpend() { + return getLong("fi_cs_expend"); + } + + /** 商品和服务支出(工会经费) */ + public void setCsExpend(long fi_cs_expend) { + put("fi_cs_expend", fi_cs_expend); + } + /** 商品和服务支出(福利费) */ + public long getCsWeal() { + return getLong("fi_cs_weal"); + } + + /** 商品和服务支出(福利费) */ + public void setCsWeal(long fi_cs_weal) { + put("fi_cs_weal", fi_cs_weal); + } + /** 本年支出合计(对个人和家庭补助支出) */ + public long getYcsPersonageFamilyFee() { + return getLong("fi_ycs_personage_family_fee"); + } + + /** 本年支出合计(对个人和家庭补助支出) */ + public void setYcsPersonageFamilyFee(long fi_ycs_personage_family_fee) { + put("fi_ycs_personage_family_fee", fi_ycs_personage_family_fee); + } + /** 对个人和家庭补助支出(抚恤金) */ + public long getPffFuxue() { + return getLong("fi_pff_fuxue"); + } + + /** 对个人和家庭补助支出(抚恤金) */ + public void setPffFuxue(long fi_pff_fuxue) { + put("fi_pff_fuxue", fi_pff_fuxue); + } + /** 对个人和家庭补助支出(生活补助) */ + public long getPffLivingSubsidy() { + return getLong("fi_pff_living_subsidy"); + } + + /** 对个人和家庭补助支出(生活补助) */ + public void setPffLivingSubsidy(long fi_pff_living_subsidy) { + put("fi_pff_living_subsidy", fi_pff_living_subsidy); + } + /** 对个人和家庭补助支出(救济费) */ + public long getPffRelief() { + return getLong("fi_pff_relief"); + } + + /** 对个人和家庭补助支出(救济费) */ + public void setPffRelief(long fi_pff_relief) { + put("fi_pff_relief", fi_pff_relief); + } + /** 对个人和家庭补助支出(助学金) */ + public long getPffStudentGrent() { + return getLong("fi_pff_student_grent"); + } + + /** 对个人和家庭补助支出(助学金) */ + public void setPffStudentGrent(long fi_pff_student_grent) { + put("fi_pff_student_grent", fi_pff_student_grent); + } + /** 对个人和家庭补助支出(奖励金) */ + public long getPffBounty() { + return getLong("fi_pff_bounty"); + } + + /** 对个人和家庭补助支出(奖励金) */ + public void setPffBounty(long fi_pff_bounty) { + put("fi_pff_bounty", fi_pff_bounty); + } + /** 对个人和家庭补助支出(生产补贴) */ + public long getPffSubsidy() { + return getLong("fi_pff_subsidy"); + } + + /** 对个人和家庭补助支出(生产补贴) */ + public void setPffSubsidy(long fi_pff_subsidy) { + put("fi_pff_subsidy", fi_pff_subsidy); + } + /** 本年支出合计(工资福利支出) */ + public long getYcsSalary() { + return getLong("fi_ycs_salary"); + } + + /** 本年支出合计(工资福利支出) */ + public void setYcsSalary(long fi_ycs_salary) { + put("fi_ycs_salary", fi_ycs_salary); + } + /** 本年支出合计(经营支出) */ + public long getYcsOperatingExpense() { + return getLong("fi_ycs_operating_expense"); + } + + /** 本年支出合计(经营支出) */ + public void setYcsOperatingExpense(long fi_ycs_operating_expense) { + put("fi_ycs_operating_expense", fi_ycs_operating_expense); + } + /** 销售税金 */ + public long getSellFee() { + return getLong("fi_sell_fee"); + } + + /** 销售税金 */ + public void setSellFee(long fi_sell_fee) { + put("fi_sell_fee", fi_sell_fee); + } + /** 本年费用合计 */ + public long getYearSumFee() { + return getLong("fi_year_sum_fee"); + } + + /** 本年费用合计 */ + public void setYearSumFee(long fi_year_sum_fee) { + put("fi_year_sum_fee", fi_year_sum_fee); + } + /** 本年费用合计(业务活动成本) */ + public long getYsfBusinessFee() { + return getLong("fi_ysf_business_fee"); + } + + /** 本年费用合计(业务活动成本) */ + public void setYsfBusinessFee(long fi_ysf_business_fee) { + put("fi_ysf_business_fee", fi_ysf_business_fee); + } + /** 业务活动成本(人员费用) */ + public long getBfStaffCosts() { + return getLong("fi_bf_staff_costs"); + } + + /** 业务活动成本(人员费用) */ + public void setBfStaffCosts(long fi_bf_staff_costs) { + put("fi_bf_staff_costs", fi_bf_staff_costs); + } + /** 业务活动成本(日常费用) */ + public long getBfEveryDayFee() { + return getLong("fi_bf_every_day_fee"); + } + + /** 业务活动成本(日常费用) */ + public void setBfEveryDayFee(long fi_bf_every_day_fee) { + put("fi_bf_every_day_fee", fi_bf_every_day_fee); + } + /** 业务活动成本(固定资产折旧) */ + public long getBfAssets() { + return getLong("fi_bf_assets"); + } + + /** 业务活动成本(固定资产折旧) */ + public void setBfAssets(long fi_bf_assets) { + put("fi_bf_assets", fi_bf_assets); + } + /** 业务活动成本(税费) */ + public long getBfTax() { + return getLong("fi_bf_tax"); + } + + /** 业务活动成本(税费) */ + public void setBfTax(long fi_bf_tax) { + put("fi_bf_tax", fi_bf_tax); + } + /** 本年费用合计(管理费用) */ + public long getYsfMenageFee() { + return getLong("fi_ysf_menage_fee"); + } + + /** 本年费用合计(管理费用) */ + public void setYsfMenageFee(long fi_ysf_menage_fee) { + put("fi_ysf_menage_fee", fi_ysf_menage_fee); + } + /** 管理费用(人员费用) */ + public long getMfStaffCosts() { + return getLong("fi_mf_staff_costs"); + } + + /** 管理费用(人员费用) */ + public void setMfStaffCosts(long fi_mf_staff_costs) { + put("fi_mf_staff_costs", fi_mf_staff_costs); + } + /** 管理费用(日常费用) */ + public long getMfEveryDayFee() { + return getLong("fi_mf_every_day_fee"); + } + + /** 管理费用(日常费用) */ + public void setMfEveryDayFee(long fi_mf_every_day_fee) { + put("fi_mf_every_day_fee", fi_mf_every_day_fee); + } + /** 管理费用(固定资产折旧) */ + public long getMfAssets() { + return getLong("fi_mf_assets"); + } + + /** 管理费用(固定资产折旧) */ + public void setMfAssets(long fi_mf_assets) { + put("fi_mf_assets", fi_mf_assets); + } + /** 管理费用(税费) */ + public long getMfTax() { + return getLong("fi_mf_tax"); + } + + /** 管理费用(税费) */ + public void setMfTax(long fi_mf_tax) { + put("fi_mf_tax", fi_mf_tax); + } + /** 净资产变动额 */ + public long getChangeInNotAssets() { + return getLong("fi_change_in_not_assets"); + } + + /** 净资产变动额 */ + public void setChangeInNotAssets(long fi_change_in_not_assets) { + put("fi_change_in_not_assets", fi_change_in_not_assets); + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/PartyInfo.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/PartyInfo.java new file mode 100644 index 0000000..a1d7777 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/PartyInfo.java @@ -0,0 +1,154 @@ +package cc.smtweb.biz.mztb.web.base; + +import cc.smtweb.framework.core.annotation.SwTable; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.impl.DefaultEntity; + +/** + * Created by 1 at 2023-12-19 11:07:08 + * 实体【[机构信息](TB_PARTY_INFO)】的Entity类 + */ +@SwTable("TB_PARTY_INFO") +public class PartyInfo extends DefaultEntity { + public static final String ENTITY_NAME = "TB_PARTY_INFO"; + + public PartyInfo() { + super(ENTITY_NAME); + } + + /** 主键 */ + public long getId() { + return getLong("pi_id"); + } + + /** 主键 */ + public void setId(long pi_id) { + put("pi_id", pi_id); + } + /** 最后更新时间 */ + public long getUpdateAt() { + return getLong("pi_update_at"); + } + + /** 最后更新时间 */ + public void setUpdateAt(long pi_update_at) { + put("pi_update_at", pi_update_at); + } + /** 单位名称 */ + public String getPartyName() { + return getStr("pi_party_name"); + } + + /** 单位名称 */ + public void setPartyName(String pi_party_name) { + put("pi_party_name", pi_party_name); + } + /** 信用代码 */ + public String getCreditCode() { + return getStr("pi_credit_code"); + } + + /** 信用代码 */ + public void setCreditCode(String pi_credit_code) { + put("pi_credit_code", pi_credit_code); + } + /** 登记部门 */ + public String getRegDept() { + return getStr("pi_reg_dept"); + } + + /** 登记部门 */ + public void setRegDept(String pi_reg_dept) { + put("pi_reg_dept", pi_reg_dept); + } + /** 登记时间 */ + public long getRegTime() { + return getLong("pi_reg_time"); + } + + /** 登记时间 */ + public void setRegTime(long pi_reg_time) { + put("pi_reg_time", pi_reg_time); + } + /** 机构类型 */ + public String getPartyType() { + return getStr("pi_party_type"); + } + + /** 机构类型 */ + public void setPartyType(String pi_party_type) { + put("pi_party_type", pi_party_type); + } + /** 变动类型 */ + public String getChangeType() { + return getStr("pi_change_type"); + } + + /** 变动类型 */ + public void setChangeType(String pi_change_type) { + put("pi_change_type", pi_change_type); + } + /** 变动时间 */ + public long getChangeTime() { + return getLong("pi_change_time"); + } + + /** 变动时间 */ + public void setChangeTime(long pi_change_time) { + put("pi_change_time", pi_change_time); + } + /** 行政区划代码 */ + public String getAreaCode() { + return getStr("pi_area_code"); + } + + /** 行政区划代码 */ + public void setAreaCode(String pi_area_code) { + put("pi_area_code", pi_area_code); + } + /** 法定代表人 */ + public String getLegalPerson() { + return getStr("pi_legal_person"); + } + + /** 法定代表人 */ + public void setLegalPerson(String pi_legal_person) { + put("pi_legal_person", pi_legal_person); + } + /** 地址 */ + public String getAddress() { + return getStr("pi_address"); + } + + /** 地址 */ + public void setAddress(String pi_address) { + put("pi_address", pi_address); + } + /** 电话 */ + public String getPhone() { + return getStr("pi_phone"); + } + + /** 电话 */ + public void setPhone(String pi_phone) { + put("pi_phone", pi_phone); + } + /** 邮编 */ + public String getPostcode() { + return getStr("pi_postcode"); + } + + /** 邮编 */ + public void setPostcode(String pi_postcode) { + put("pi_postcode", pi_postcode); + } + /** 国民经济分类 */ + public String getNationalEconomyType() { + return getStr("pi_national_economy_type"); + } + + /** 国民经济分类 */ + public void setNationalEconomyType(String pi_national_economy_type) { + put("pi_national_economy_type", pi_national_economy_type); + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/YearEndPersons.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/YearEndPersons.java new file mode 100644 index 0000000..3016e57 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/YearEndPersons.java @@ -0,0 +1,217 @@ +package cc.smtweb.biz.mztb.web.base; + +import cc.smtweb.framework.core.annotation.SwTable; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.impl.DefaultEntity; + +/** + * Created by 1 at 2023-12-19 11:07:10 + * 实体【[年末人数信息](TB_YEAR_END_PERSONS)】的Entity类 + */ +@SwTable("TB_YEAR_END_PERSONS") +public class YearEndPersons extends DefaultEntity { + public static final String ENTITY_NAME = "TB_YEAR_END_PERSONS"; + + public YearEndPersons() { + super(ENTITY_NAME); + } + + /** 主键 */ + public long getId() { + return getLong("yep_id"); + } + + /** 主键 */ + public void setId(long yep_id) { + put("yep_id", yep_id); + } + /** 最后更新时间 */ + public long getUpdateAt() { + return getLong("yep_update_at"); + } + + /** 最后更新时间 */ + public void setUpdateAt(long yep_update_at) { + put("yep_update_at", yep_update_at); + } + /** 填报主表ID */ + public long getFoId() { + return getLong("yep_fo_id"); + } + + /** 填报主表ID */ + public void setFoId(long yep_fo_id) { + put("yep_fo_id", yep_fo_id); + } + /** 年末床位数 */ + public int getYeBed() { + return getInt("yep_ye_bed"); + } + + /** 年末床位数 */ + public void setYeBed(int yep_ye_bed) { + put("yep_ye_bed", yep_ye_bed); + } + /** 年末床位数(护理型床位) */ + public int getYeNurseBed() { + return getInt("yep_ye_nurse_bed"); + } + + /** 年末床位数(护理型床位) */ + public void setYeNurseBed(int yep_ye_nurse_bed) { + put("yep_ye_nurse_bed", yep_ye_nurse_bed); + } + /** 年在院总人天数 */ + public int getYeZrts() { + return getInt("yep_ye_zrts"); + } + + /** 年在院总人天数 */ + public void setYeZrts(int yep_ye_zrts) { + put("yep_ye_zrts", yep_ye_zrts); + } + /** 年末在院人数 */ + public int getYeNumber() { + return getInt("yep_ye_number"); + } + + /** 年末在院人数 */ + public void setYeNumber(int yep_ye_number) { + put("yep_ye_number", yep_ye_number); + } + /** 年末在院人数(女性) */ + public int getYeMissNum() { + return getInt("yep_ye_miss_num"); + } + + /** 年末在院人数(女性) */ + public void setYeMissNum(int yep_ye_miss_num) { + put("yep_ye_miss_num", yep_ye_miss_num); + } + /** 年末在院人数(其他人员) */ + public int getYeOtherNum() { + return getInt("yep_ye_other_num"); + } + + /** 年末在院人数(其他人员) */ + public void setYeOtherNum(int yep_ye_other_num) { + put("yep_ye_other_num", yep_ye_other_num); + } + /** 年末在院人数(特困人员救助供养对象) */ + public int getYePoverty() { + return getInt("yep_ye_poverty"); + } + + /** 年末在院人数(特困人员救助供养对象) */ + public void setYePoverty(int yep_ye_poverty) { + put("yep_ye_poverty", yep_ye_poverty); + } + /** 年末在院人数(自费人员) */ + public int getYeSelfPaying() { + return getInt("yep_ye_self_paying"); + } + + /** 年末在院人数(自费人员) */ + public void setYeSelfPaying(int yep_ye_self_paying) { + put("yep_ye_self_paying", yep_ye_self_paying); + } + /** 年末在院人数(老年人) */ + public int getYeOldMan() { + return getInt("yep_ye_old_man"); + } + + /** 年末在院人数(老年人) */ + public void setYeOldMan(int yep_ye_old_man) { + put("yep_ye_old_man", yep_ye_old_man); + } + /** 年末在院人数(青壮年) */ + public int getYeYoung() { + return getInt("yep_ye_young"); + } + + /** 年末在院人数(青壮年) */ + public void setYeYoung(int yep_ye_young) { + put("yep_ye_young", yep_ye_young); + } + /** 年末在院人数(儿童) */ + public int getYeChild() { + return getInt("yep_ye_child"); + } + + /** 年末在院人数(儿童) */ + public void setYeChild(int yep_ye_child) { + put("yep_ye_child", yep_ye_child); + } + /** 年末在院人数(能力完好) */ + public int getYeIntact() { + return getInt("yep_ye_intact"); + } + + /** 年末在院人数(能力完好) */ + public void setYeIntact(int yep_ye_intact) { + put("yep_ye_intact", yep_ye_intact); + } + /** 年末在院人数(部分失能) */ + public int getYePartDisability() { + return getInt("yep_ye_part_disability"); + } + + /** 年末在院人数(部分失能) */ + public void setYePartDisability(int yep_ye_part_disability) { + put("yep_ye_part_disability", yep_ye_part_disability); + } + /** 年末在院人数(完全失能) */ + public int getYeDisability() { + return getInt("yep_ye_disability"); + } + + /** 年末在院人数(完全失能) */ + public void setYeDisability(int yep_ye_disability) { + put("yep_ye_disability", yep_ye_disability); + } + /** 康复和医疗门诊人次数 */ + public int getOutpatientService() { + return getInt("yep_outpatient_service"); + } + + /** 康复和医疗门诊人次数 */ + public void setOutpatientService(int yep_outpatient_service) { + put("yep_outpatient_service", yep_outpatient_service); + } + /** 家庭寄养儿童数量 */ + public int getFosterChildren() { + return getInt("yep_foster_children"); + } + + /** 家庭寄养儿童数量 */ + public void setFosterChildren(int yep_foster_children) { + put("yep_foster_children", yep_foster_children); + } + /** 机构建筑面积(平方米) */ + public long getAcreage() { + return getLong("yep_acreage"); + } + + /** 机构建筑面积(平方米) */ + public void setAcreage(long yep_acreage) { + put("yep_acreage", yep_acreage); + } + /** 相关单位统一社会信用代码 */ + public String getUnitCreditCode() { + return getStr("yep_unit_credit_code"); + } + + /** 相关单位统一社会信用代码 */ + public void setUnitCreditCode(String yep_unit_credit_code) { + put("yep_unit_credit_code", yep_unit_credit_code); + } + /** 相关单位名称 */ + public String getUnitName() { + return getStr("yep_unit_name"); + } + + /** 相关单位名称 */ + public void setUnitName(String yep_unit_name) { + put("yep_unit_name", yep_unit_name); + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.java new file mode 100644 index 0000000..5e0812e --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.java @@ -0,0 +1,44 @@ +package cc.smtweb.biz.mztb.web.base.partyDataFill; + +import cc.smtweb.biz.mztb.web.base.FillOut; +import cc.smtweb.biz.mztb.web.tool.MztbEnum; +import cc.smtweb.framework.core.common.R; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.DbEngine; +import cc.smtweb.framework.core.db.EntityHelper; +import cc.smtweb.framework.core.mvc.service.AbstractHandler; +import cc.smtweb.framework.core.session.UserSession; + +/** + * 机构填报自定义请求类 + */ +public class PartyDataCustomHandler extends AbstractHandler { + // 逻辑删除 + public R logicDel(SwMap params, UserSession us) { + DbEngine.getInstance().update( + "update "+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME) + " set fo_state = ? where fo_id = ? " + , MztbEnum.FoState.LOGIC.value,params.readLong("id")); + return R.success(); + } + + // 确认 + public R affirm(SwMap params, UserSession us) { + DbEngine.getInstance().update( + "update "+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME) + " set fo_state = ? where fo_id = ? " + , MztbEnum.FoState.AFFIRM.value,params.readLong("id")); + return R.success(); + } + + // 取消确认 + public R cancelAffirm(SwMap params, UserSession us) { + DbEngine.getInstance().update( + "update "+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME) + " set fo_state = ? where fo_id = ? " + , MztbEnum.FoState.WAIT_AFFIRM.value,params.readLong("id")); + return R.success(); + } + + // 推送数据到前置库 + public R pushData(SwMap params, UserSession us) { + return null; + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.java new file mode 100644 index 0000000..9404f5b --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.java @@ -0,0 +1,149 @@ +package cc.smtweb.biz.mztb.web.base.partyDataFill; + +import cc.smtweb.biz.mztb.web.base.*; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.DbEngine; +import cc.smtweb.framework.core.db.EntityHelper; +import cc.smtweb.framework.core.db.impl.DefaultEntity; +import cc.smtweb.framework.core.util.DateUtil; +import cc.smtweb.framework.core.util.StringUtil; +import cc.smtweb.system.bpm.web.engine.dynPage.DynRetBean; +import cc.smtweb.system.bpm.web.engine.model.common.ModelListHandler; +import cc.smtweb.system.bpm.web.engine.model.listcard.lcms.LCMsLoadHandler; +import cc.smtweb.system.bpm.web.engine.model.listcard.lcms.LCMsSaveHandler; + +import java.util.List; + +public class PartyDataFillHandler { + + protected static FinanceInfo financeInfo; + protected static YearEndPersons yearEndPersons; + protected static BusinessInfo businessInfo; + protected static PartyInfo partyInfo; + + protected static final String YEAR_END_PERSONS_DS_NAME = "yearEndPersonsForm"; + protected static final String FINANCE_DS_NAME = "financeForm"; + protected static final String BUSINESS_DS_NAME = "businessForm"; + protected static final String PARTY_DS_NAME = "partyForm"; + + static class PartyDataFillModelSaveHandler extends LCMsSaveHandler { + @Override + public void readFromPage(SwMap pageData, SwMap filter) { + super.readFromPage(pageData, filter); + if(bean.getType() == 2) { + yearEndPersons = readBeanFromPage(YEAR_END_PERSONS_DS_NAME, pageData, filter);// yearEndPersonsForm + } + financeInfo = readBeanFromPage(FINANCE_DS_NAME, pageData, filter); + businessInfo = readBeanFromPage(BUSINESS_DS_NAME, pageData, filter); + partyInfo = readBeanFromPage(PARTY_DS_NAME, pageData, filter); + } + + @Override + public void doSave() { + super.doSave(); + if(bean.getType() == 2) { + saveBean(yearEndPersons); + } + saveBean(financeInfo); + saveBean(businessInfo); + saveBean(partyInfo); + } + } + + static class PartyDataFillModelLoadHandler extends LCMsLoadHandler { + @Override + protected void localLoad(SwMap filter) { + super.localLoad(filter); + if(bean.getType() == 2) { + loadViewBean(retMap,YEAR_END_PERSONS_DS_NAME,YearEndPersons.class," yep_fo_id = ?"); + } + loadViewBean(retMap, FINANCE_DS_NAME,FinanceInfo.class," fi_fo_id = ?"); + loadViewBean(retMap, BUSINESS_DS_NAME,BusinessInfo.class," bi_fo_id = ?"); +// loadViewBean(retMap,filter, PARTY_DS_NAME,""); + } + + // 自己处理页面数据加载 + private void loadViewBean(SwMap retMap,String dsName, Class entityClass, String sqlWhere) { + Object o = DbEngine.getInstance().findDao(entityClass).queryEntityWhere(sqlWhere, bean.getId()); + retMap.put(dsName,o); + } + + @Override + protected void afterLoad(SwMap ret) { + super.afterLoad(ret); + Object card = ret.get("card"); + SwMap beanData = this.bean.getData();// fo_task + ((DynRetBean) card).getForm().put("fo_task_text",beanData.readString("fo_task").contains("99") + ? beanData.readString("fo_task").replace("99","年") + : String.format("%d年%02d月",beanData.readLong("fo_task") / 100, beanData.readLong("fo_task") % 100)); + } + + @Override + protected void localAdd() { + super.localAdd(); + bean.setDate(DateUtil.nowDateLong()); +// bean.setUpdateAt(DateUtil.nowDateLong()); + DbEngine instance = DbEngine.getInstance(); +// bean.setUser(us.getUserId()); + if(params.readString("outOldData").equals("1")) { // 如果带出上期数据 就不执行初始化 + // 通过填报类型 找到最近填报的一条数据, + int state = params.readInt("type") == 1 ? 1 : 2; + String foIdStr = instance.queryString("select fo_id from " + + EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME)+" where fo_type = ? order by fo_date desc limit 1",state); // todo 添加机构过滤 + // 查询 关联表的数据 + if(StringUtil.isEmpty(foIdStr)) { // 如果未找到同类型的填报数据 直接构建初始化数据 + initPageDateset(); + return; + } + long foId = Long.parseLong(foIdStr); + // 将关联表数据返回到页面 + if(state == 2) { + yearEndPersons = addViewBean(retMap,YEAR_END_PERSONS_DS_NAME,new YearEndPersons(),foId," yep_fo_id = ? "); + yearEndPersons.setFoId(bean.getId()); + } + financeInfo = addViewBean(retMap,FINANCE_DS_NAME, new FinanceInfo(),foId," fi_fo_id = ? "); + financeInfo.setFoId(bean.getId()); + businessInfo = addViewBean(retMap,BUSINESS_DS_NAME,new BusinessInfo(), foId," bi_fo_id = ? "); + businessInfo.setFoId(bean.getId()); + return; + } + initPageDateset(); + } + + private void initPageDateset() { + if(params.readInt("type") == 2) { + yearEndPersons = addBean(YEAR_END_PERSONS_DS_NAME, true); + yearEndPersons.setFoId(bean.getId()); + } + financeInfo = addBean(FINANCE_DS_NAME, true); + financeInfo.setFoId(bean.getId()); + businessInfo = addBean(BUSINESS_DS_NAME, true); + businessInfo.setFoId(bean.getId()); + } + + // 选择带出数据时,自己构建初始化数据 + protected E addViewBean(SwMap retMap,String dsName,E cla ,long id,String whereSql) { + DefaultEntity entity = DbEngine.getInstance().findDao(cla.getClass()).queryEntityWhere(whereSql,id); + entity.setEntityId(DbEngine.getInstance().nextId()); + entity.setIsNew(true); + retMap.put(dsName,entity); + return (E) entity; + } + + } + + + + public static class PartyDataFillModelListHandler extends ModelListHandler { + @Override + protected void afterQuery(List listData) { + listData.forEach(temp -> { + int anInt = temp.readInt("fo_type"); + temp.put("fo_type_text",anInt == 1 ? "月报": "年报"); + temp.put("fo_task_text",temp.readString("fo_task").contains("99") ? temp.readString("fo_task").replace("99","年(年报)") + : String.format("%d年%02d月 (月报)",temp.readLong("fo_task") / 100, temp.readLong("fo_task") % 100)); + temp.put("fo_state_text",temp.readInt("fo_state") == 0 ? "待确认" : temp.readInt("fo_state") == 1 ? "已确认" : "已推送"); + }); + } + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.java new file mode 100644 index 0000000..ad55f5a --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.java @@ -0,0 +1,56 @@ +package cc.smtweb.biz.mztb.web.base.partyDataFill; + +import cc.smtweb.framework.core.annotation.SwBody; +import cc.smtweb.framework.core.annotation.SwService; +import cc.smtweb.framework.core.common.R; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.session.UserSession; +import cc.smtweb.system.bpm.web.engine.model.listcard.lcms.LCMsService; +import cc.smtweb.framework.core.mvc.service.AbstractHandler; + +/** + * Created by 1 at 2023-12-19 11:06:53 + * 页面【[机构数据填报编辑]的服务类 + */ +@SwService +public class PartyDataFillService extends LCMsService { + public final static String TYPE_CUSTOM = "custom"; + + @Override + public AbstractHandler createHandler(String type) { + switch (type) { + case TYPE_MODEL_SAVE: + return new PartyDataFillHandler.PartyDataFillModelSaveHandler(); + case TYPE_MODEL_LOAD: + return new PartyDataFillHandler.PartyDataFillModelLoadHandler(); + case TYPE_MODEL_LIST: + return new PartyDataFillHandler.PartyDataFillModelListHandler(); + case TYPE_CUSTOM: + return new PartyDataCustomHandler(); + } + return super.createHandler(type); + } + + /* demo + //自定义 + public R demo(@SwBody SwMap params, UserSession us) { + return pageHandler(params, us, TYPE_DEMO, handler -> ((DemoHandler)handler).demo()); + } + */ + public R logicDel(@SwBody SwMap params, UserSession us) { + return pageHandler(params, us, TYPE_CUSTOM, handler -> ((PartyDataCustomHandler) handler).logicDel(params, us)); + } + + public R affirm(@SwBody SwMap params, UserSession us) { + return pageHandler(params, us, TYPE_CUSTOM, handler -> ((PartyDataCustomHandler) handler).affirm(params, us)); + } + + public R cancelAffirm(@SwBody SwMap params, UserSession us) { + return pageHandler(params, us, TYPE_CUSTOM, handler -> ((PartyDataCustomHandler) handler).cancelAffirm(params, us)); + } + + public R pushData(@SwBody SwMap params, UserSession us) { + return pageHandler(params, us, TYPE_CUSTOM, handler -> ((PartyDataCustomHandler) handler).pushData(params, us)); + } + +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.java new file mode 100644 index 0000000..022dcff --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.java @@ -0,0 +1,45 @@ +package cc.smtweb.biz.mztb.web.base.prelibraryConfiguration; + +import cc.smtweb.biz.mztb.web.base.DbSourceConfig; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.DbEngine; +import cc.smtweb.framework.core.db.EntityHelper; +import cc.smtweb.framework.core.db.impl.DefaultEntity; +import cc.smtweb.framework.core.exception.BizException; +import cc.smtweb.system.bpm.web.engine.model.common.ModelListHandler; +import cc.smtweb.system.bpm.web.engine.model.common.ModelLoadHandler; +import cc.smtweb.system.bpm.web.engine.model.common.ModelSaveHandler; + +import java.util.List; + +public class PrelibraryConfigurationHandler { + static class PrelibraryConfigurationLoadHandler extends ModelLoadHandler { + + } + + static class PrelibraryConfigurationListHandler extends ModelListHandler { + + @Override + protected void afterQuery(List listData) { + super.afterQuery(listData); + listData.forEach(temp -> { + temp.put("dsc_use_state_text",temp.readInt("dsc_use_state") == 0 ? "当前使用" : "未使用"); + temp.put("dsc_password","****"); + }); + } + } + static class PrelibraryConfigurationSaveHandler extends ModelSaveHandler { + @Override + protected void checkValid(DefaultEntity vo) { + super.checkValid(vo); + if(0 == vo.getInt("dsc_use_state")) { // 当前使用 + List dbSourceConfigs = DbEngine.getInstance().findDao(DbSourceConfig.class) + .queryWhere(" dsc_id not in (?) and dsc_use_state = 0", vo.getEntityId()); + // 判断是否只有一个当前使用 + if(dbSourceConfigs != null && dbSourceConfigs.size() > 0) { + throw new BizException("只允许配置一个有效的前置库连接"); + } + } + } + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.java new file mode 100644 index 0000000..c3665f8 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.java @@ -0,0 +1,38 @@ +package cc.smtweb.biz.mztb.web.base.prelibraryConfiguration; + +import cc.smtweb.framework.core.annotation.SwBody; +import cc.smtweb.framework.core.annotation.SwService; +import cc.smtweb.framework.core.common.R; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.system.bpm.web.engine.model.listcard.single.LCSingleService; +import cc.smtweb.framework.core.mvc.service.AbstractHandler; +import cc.smtweb.framework.core.session.UserSession; + +/** + * Created by 1 at 2023-12-18 11:09:33 + * 页面【[配置前置库连接列表]的服务类 + */ +@SwService +public class PrelibraryConfigurationService extends LCSingleService { + //public final static String TYPE_DEMO = "demo"; + @Override + protected AbstractHandler createHandler(String type) { + switch (type) { + case TYPE_MODEL_LOAD: + return new PrelibraryConfigurationHandler.PrelibraryConfigurationLoadHandler(); + case TYPE_MODEL_LIST: + return new PrelibraryConfigurationHandler.PrelibraryConfigurationListHandler(); + case TYPE_MODEL_SAVE: + return new PrelibraryConfigurationHandler.PrelibraryConfigurationSaveHandler(); + } + return super.createHandler(type); + } + +/* demo + //自定义 + public R demo(@SwBody SwMap params, UserSession us) { + return pageHandler(params, us, TYPE_DEMO, handler -> ((DemoHandler)handler).demo()); + } +*/ + +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/test/Test.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/test/Test.java new file mode 100644 index 0000000..e7ff9dc --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/base/test/Test.java @@ -0,0 +1,22 @@ +package cc.smtweb.biz.mztb.web.base.test; + +import cc.smtweb.biz.mztb.web.base.DbSourceConfig; +import cc.smtweb.biz.mztb.web.domian.FillTask; +import cc.smtweb.biz.mztb.web.tool.DbUtil; +import cc.smtweb.framework.core.db.DbEngine; + +import java.util.List; + +public class Test { + public static void main(String[] args) { +// DbEngine preDbEngine = DbUtil +// .getInstance("jdbc:mysql://192.168.110.210:4418/mztb?" +// ,"root","Ncmz@2022_jjkj") +// .getDbEngine("mysql"); +// List query = preDbEngine.query(DbSourceConfig.class); +// FillTask fillTask = new FillTask(); +// fillTask.setFtId(121215646); +// fillTask.setFiTaskMonth("202303"); +// preDbEngine.findDao(FillTask.class).insertEntity(fillTask); + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/domian/FillTask.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/domian/FillTask.java new file mode 100644 index 0000000..71becbe --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/domian/FillTask.java @@ -0,0 +1,11 @@ +package cc.smtweb.biz.mztb.web.domian; + +import cc.smtweb.framework.core.annotation.SwTable; +import lombok.Data; + +@Data +@SwTable("qz_fill_task") +public class FillTask { + private long ftId; + private String fiTaskMonth; +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.java new file mode 100644 index 0000000..c4af314 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.java @@ -0,0 +1,48 @@ +package cc.smtweb.biz.mztb.web.task; + +import cc.smtweb.biz.mztb.web.base.DbSourceConfig; +import cc.smtweb.biz.mztb.web.tool.DbUtil; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.DbEngine; +import cc.smtweb.system.bpm.web.sys.base.job.BaseJob; +import com.alibaba.druid.pool.DruidPooledConnection; +import com.alibaba.druid.proxy.jdbc.ConnectionProxy; +import lombok.SneakyThrows; + +import java.lang.invoke.SwitchPoint; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.List; + +public class AddNewPartyAndAccountTask extends BaseJob { + + @Override + protected String work() { + // 查询前置库推送的机构和账号信息 + DbEngine instance = DbEngine.getInstance(); + DbSourceConfig dbSourceConfig = instance.findDao(DbSourceConfig.class).queryEntityWhere("dsc_use_state = 0"); + Connection connection = null; + ResultSet resultSet = null; + List partys = new ArrayList<>(); + try { + connection = DriverManager.getConnection(dbSourceConfig.getWholeUrl(), dbSourceConfig.getUsername(), dbSourceConfig.getPassword()); + DbUtil dbUtil = new DbUtil(connection); + resultSet = dbUtil.dbHandSql("", "query"); // 查询机构信息系 + if(resultSet != null) { + while (resultSet.next()) { + SwMap party = new SwMap(); + partys.add(party); + } + return null; + } + } catch (SQLException e) { + e.printStackTrace(); + } + + // 在当前系统 建立机构和账号数据,将账号信息写入缓存 + return null; + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.java new file mode 100644 index 0000000..e82d372 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.java @@ -0,0 +1,37 @@ +package cc.smtweb.biz.mztb.web.task; + +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.SQLException; + +public class JdbcBatchInsertExample { + public static void main(String[] args) throws SQLException { + String url = "jdbc:mysql://localhost:3306/mydatabase"; + String username = "root"; + String password = "password"; + Connection connection = DriverManager.getConnection(url, username, password); + try { + connection.setAutoCommit(false); // 关闭自动提交,开启事务 + + String sql = "INSERT INTO mytable (column1, column2) VALUES (?, ?)"; + try (PreparedStatement statement = connection.prepareStatement(sql)) { + for (int i = 1; i <= 1000; i++) { + statement.setString(1, "Value " + i); + statement.setInt(2, i); + statement.addBatch(); // 添加到批处理中 + } + statement.executeBatch(); // 执行批处理 + } + connection.commit(); // 提交事务 + } catch (SQLException e) { + e.printStackTrace(); + try { + // 如果出现异常,回滚事务 + connection.rollback(); + } catch (SQLException ex) { + ex.printStackTrace(); + } + } + } +} \ No newline at end of file diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/task/PushTask.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/task/PushTask.java new file mode 100644 index 0000000..a586d3e --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/task/PushTask.java @@ -0,0 +1,139 @@ +package cc.smtweb.biz.mztb.web.task; + +import cc.smtweb.biz.mztb.web.base.*; +import cc.smtweb.biz.mztb.web.tool.DbUtil; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.DbEngine; +import cc.smtweb.framework.core.db.EntityHelper; +import cc.smtweb.framework.core.exception.BizException; +import cc.smtweb.system.bpm.web.sys.base.job.BaseJob; + +import java.sql.*; +import java.util.*; +import java.util.stream.Collectors; + +public class PushTask extends BaseJob { + @Override + protected String work() { + DbEngine instance = DbEngine.getInstance(); + //获取前置库配置 + DbSourceConfig dbSourceConfig = instance.findDao(DbSourceConfig.class).queryEntityWhere("dsc_use_state=0"); + if (dbSourceConfig == null) { + throw new BizException("请先进行前置库配置"); + } + + // 查询已确认 还未推送的数据 + List insertSql = new ArrayList<>(); + List fillOutList = instance.query("select * from "+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME)+ " where fo_state = 1 ",SwMap.class); + if (fillOutList.size() == 0) { + return null; + } + List ids = new ArrayList<>(); + fillOutList.stream().forEach(temp -> { + ids.add(String.valueOf(temp.readLong("fo_id"))); + }); + fillOutList.forEach(temp->{ + List fields = new LinkedList<>(); + List value = new LinkedList<>(); + for (String s : temp.keySet()) { + fields.add(s); + if (s.equals("fo_id")){ + value.add(String.valueOf(instance.nextId())); + value.add(temp.readString(s)); + } + } + insertSql.add("insert into tb_fill_out ("+fields.stream().collect(Collectors.joining(","))+") VALUES ("+value.stream().collect(Collectors.joining(","))+")"); + + }); + +// List businessInfos = instance.findDao(BusinessInfo.class).queryWhere("bi_fo_id in (" + ids.stream().collect(Collectors.joining(",")) + ")"); +// Map businessInfoMap = new HashMap<>(); +// if (businessInfos.size() != 0) { +// businessInfos.forEach(temp -> { +// businessInfoMap.put(temp.getFoId(), temp); +// }); +// } + List businessInfos = instance.query("select * from "+EntityHelper.getSchemaTableName(BusinessInfo.ENTITY_NAME)+ " where bi_fo_id in (" + ids.stream().collect(Collectors.joining(",")) + ")",SwMap.class); + if (businessInfos.size() !=0){ + businessInfos.forEach(temp->{ + List fields = new LinkedList<>(); + List value = new LinkedList<>(); + for (String s : temp.keySet()) { + fields.add(s); + value.add(temp.readString(s)); + } + insertSql.add("insert into tb_business_info ("+fields.stream().collect(Collectors.joining(","))+") VALUES ("+value.stream().collect(Collectors.joining(","))+")"); + }); + } + List financeInfos = instance.query("select * from "+EntityHelper.getSchemaTableName(FinanceInfo.ENTITY_NAME)+" where fi_fo_id in (" + ids.stream().collect(Collectors.joining(",")) + ")",SwMap.class); + if (financeInfos.size() != 0){ + financeInfos.forEach(temp->{ + List fields = new LinkedList<>(); + List value = new LinkedList<>(); + for (String s : temp.keySet()) { + fields.add(s); + value.add(temp.readString(s)); + } + insertSql.add("insert into tb_finance_info ("+fields.stream().collect(Collectors.joining(","))+") VALUES ("+value.stream().collect(Collectors.joining(","))+")"); + }); + } + + + List yearEndPersons = instance.query("select * from "+EntityHelper.getSchemaTableName(YearEndPersons.ENTITY_NAME)+" where yep_fo_id in (" + ids.stream().collect(Collectors.joining(",")) + ")",SwMap.class); + if (yearEndPersons.size() != 0){ + yearEndPersons.forEach(temp->{ + List fields = new LinkedList<>(); + List value = new LinkedList<>(); + for (String s : temp.keySet()) { + fields.add(s); + value.add(temp.readString(s)); + } + insertSql.add("insert into tb_year_end_persons ("+fields.stream().collect(Collectors.joining(","))+") VALUES ("+value.stream().collect(Collectors.joining(","))+")"); + }); + } + + + Connection connection = null; + try { + connection = DriverManager.getConnection(dbSourceConfig.getWholeUrl(), dbSourceConfig.getUsername(), dbSourceConfig.getPassword()); + } catch (SQLException e) { + e.printStackTrace(); + } + if (connection == null){ + throw new BizException("连接失败!"); + } + try { + connection.setAutoCommit(false); + try (Statement statement = connection.createStatement()) { + for (int i = 0; i insertSql){ + if (connection == null){ + throw new BizException("获取连接失败!"); + } + try { + connection.setAutoCommit(false); + try (Statement statement = connection.createStatement()) { + for (int i = 0; i = lngTime) + return ""; + String s1 = String.valueOf(lngTime + "").trim(); + if (s1.length() != 14) + return ""; + return s1.substring(0, 4).concat("-").concat(s1.substring(4, 6)).concat("-").concat(s1.substring(6, 8)).concat(" ").concat(s1.substring(8, 10)).concat(":").concat(s1.substring(10, 12)).concat(":").concat(s1.substring(12)); + } + + /** + * 格式化最后修改时间 + * + * @param strTime YYYYMMDDhhmmss + * @return YYYY-MM-DD hh:mm:ss + */ + public static String getTimeFormatValue(String strTime) { + if (isEmpty(strTime)) + return ""; + return getTimeFormatValue(getTimeDbValue(strTime)); + } + + /** + * 日期格式化 YYYYMMDDHHMMSS 转 YYYY-MM-DD- HH:MM:SS + * + * @param lngTime + * @return + */ + public static String getTimeFormatValue(long lngTime) { + if (lngTime <= 0L) return ""; + String s1 = String.valueOf(lngTime + "").trim(); + if (s1.length() == 8) {//日期 + return s1.substring(0, 4).concat("-").concat(s1.substring(4, 6)).concat("-").concat(s1.substring(6, 8)); + } + if (s1.length() == 6) {//时间 + return s1.substring(0, 2).concat(":").concat(s1.substring(2, 4)).concat(":").concat(s1.substring(4, 6)); + } + if (s1.length() == 14) {//日期 + return s1.substring(0, 4).concat("-").concat(s1.substring(4, 6)).concat("-").concat(s1.substring(6, 8)).concat(" ").concat(s1.substring(8, 10)).concat(":").concat(s1.substring(10, 12)).concat(":").concat(s1.substring(12)); + } + return ""; + } + + /** + * 日期格式化 YYYY-MM-DD- HH:MM:SS 转 YYYYMMDDHHMMSS + * + * @param strTime + * @return + */ + public static long getTimeDbValue(String strTime) { + if (UtilPub.isEmptyId(strTime)) return -1L; + + return UtilPub.getLongIgnoreErr(strTime.replaceAll("-", "").replaceAll(":", "").replaceAll(" ", "")); + } + + /** + * 取最后修改时间 + * + * @return Long + */ +// public static Long getLastTime() { +// return UtilDateTime.nowDateTimeNumber(); +// } + + /** + * 取最后修改日期 + * + * @return + */ + public static Long getLastDate() { + return Long.valueOf(dLFormat2.format(new Timestamp(System.currentTimeMillis()))); + } + + public static String getAmountStr(double amount) { + return df2Format.format(amount); + } + + public static String getAmountStrEx(double amount) { + return df.format(amount); + } + + public static String getSingleAmountStr(double amount) { + return df2.format(amount); + } + + public static String getAmountStr(double amount, boolean zeroShowEmpty) { + if (zeroShowEmpty && NumberUtil.isEqualsZero(amount)) + return ""; + else + return df2Format.format(amount); + } + + public static String getIntStr(int d) { + if (d == 0) + return ""; + else + return String.valueOf(d); + } + + /** + * 截取右边的0串 + * + * @param codeStr + * @return + */ + public static String cutZero(String codeStr) { + int j = 0; + int len = codeStr.length() - 1; + for (int i = len; i > -1; i--) { + if ('0' == codeStr.charAt(i)) { + j++; + } else { + break; + } + } + return codeStr.substring(0, len - j + 1); + } + + /** + * 右边补0串 + * + * @param codeLen + * @param cutedCode + * @return + */ + public static String fillZero(int codeLen, String cutedCode) { + StringBuilder codeStr = new StringBuilder(20).append(cutedCode); + for (int len = cutedCode.length(), i = 0; i < codeLen - len; i++) { + codeStr.append("0"); + } + return codeStr.toString(); + } + + /** + * 转换为boolean + */ + public static boolean toBoolean(String v, boolean b) { + if (v == null) return b; + return "1".equals(v) || "true".equalsIgnoreCase(v) || "Y".equalsIgnoreCase(v) || "yes".equalsIgnoreCase(v); + } + + public static String getDateStr(Object _dateTime) { //yyyymmddhhMMss + if (_dateTime == null) return ""; + String dateTime = String.valueOf(_dateTime); + if (UtilPub.isEmpty(dateTime) ) { + return ""; + } else if(dateTime.length() == 8) { + return dateTime.substring(0, 4) + "-" + dateTime.substring(4, 6) + "-" + dateTime.substring(6, 8); + }else if(dateTime.length() == 6) { + return dateTime.substring(0, 4) + "年" + dateTime.substring(4, 6) + "月报"; + }else { + return ""; + } + } + + /** + * 日期转long + * + * @param dateStr YYYY-MM-DD + * @return YYYYmmDD + */ + public static long getDateLong(String dateStr) { + if (UtilPub.isEmpty(dateStr) || dateStr.length() != 10) { + return -1L; + } + String _dateTime = dateStr.replaceAll("-", ""); + return getLongIgnoreErr(_dateTime); + } + + /** + * 转日期时间long + * + * @param dateStr + * @return + */ + public static long getDateTimeLong(String dateStr) { + if (UtilPub.isEmpty(dateStr)) { + return -1L; + } + String _dateTime = dateStr.replaceAll("-", "").replaceAll(" ", "").replaceAll(":", ""); + _dateTime = StringUtil.getLeft(_dateTime + "00000000000000", 14); + return getLongIgnoreErr(_dateTime); + } + + /** + * 转日期时间long + * + * @param dateStr + * @return + */ + public static long getEndDateTimeLong(String dateStr) { + if (UtilPub.isEmpty(dateStr)) { + return -1L; + } + String _dateTime = dateStr.replaceAll("-", "").replaceAll(" ", "").replaceAll(":", ""); + _dateTime = StringUtil.getLeft(_dateTime + "00000000", 8) + "235959"; + return getLongIgnoreErr(_dateTime); + } + + public static String getDateTimeStr(Object _dateTime) { //yyyymmddhhMMss + String dateTime = String.valueOf(_dateTime); + if (UtilPub.isEmpty(dateTime) || dateTime.length() < 14) { + return ""; + } else { + String s1 = String.valueOf(dateTime); + return s1.substring(0, 4) + "-" + s1.substring(4, 6) + "-" + s1.substring(6, 8);// + " " + s1.substr(8, 10) + ":" + s1.substr(10, 12) + ":" + s1.substr(12); + } + } + + //删除除 {"0","1","2","3","4","5","6","7","8","9",".","/","-"}以外的字符 + public static String remove(String str) { + if (isEmpty(str)) return ""; + char[] charArray = str.toCharArray(); + char[] strArray = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '/', '-'}; + for (char c : charArray) { + if (!ArrayUtils.contains(strArray, c)) { + str = StringUtils.remove(str, c); + } + } + return str; + } + + //数字转字符串,如无小数,则去掉.00 + public static String getDoubleStr(double d) { + return getAmountStr(d).replaceAll(",", "").replaceAll("\\.00", ""); + } + + //将List转为sql语句in后面的常量,'XXX','XXX'格式 + public static String getSqlInstr(Collection list) { + if (UtilPub.isEmpty(list)) return ""; + StringBuilder sb = new StringBuilder(256); + Set set = new HashSet<>(); + for (String s : list) { + if (set.contains(s)) continue; + set.add(s); + if (UtilPub.isEmptyId(s)) continue; + sb.append(",'").append(s).append("'"); + } + if (sb.length() == 0) return ""; + return sb.substring(1); + } + + /** + * 将数组ID转为sql语句in后面的常量 + * + * @param ids ID数组 + * @return 返回格式:110,1002 + */ + public static String getSqlInIds(String[] ids) { + if (null == ids || ids.length < 1) return ""; + StringBuilder s = new StringBuilder(128); + Set set = new HashSet<>(); + for (String id : ids) { + if (set.contains(id)) continue; + set.add(id); + if (UtilPub.isEmptyId(id)) continue; + s.append(id).append(","); + } + if (s.length() == 0) return ""; + return s.substring(0, s.length() - 1); + } + + /** + * 将数组ID转为sql语句in后面的常量 + * + * @param ids ID数组 + * @return 返回格式:110,1002 + */ + public static String getSqlInLongIds(Collection ids) { + if (null == ids || ids.size() < 1) return ""; + StringBuilder s = new StringBuilder(128); + Set set = new HashSet<>(); + for (Long id : ids) { + if (set.contains(id)) continue; + set.add(id); + if (UtilPub.isEmptyId(id)) continue; + s.append(id).append(","); + } + if (s.length() == 0) return ""; + return s.substring(0, s.length() - 1); + } + + public static String getSqlInIds(Collection ids) { + if (null == ids || ids.size() < 1) return ""; + StringBuilder s = new StringBuilder(128); + Set set = new HashSet<>(); + for (String id : ids) { + if (set.contains(id)) continue; + set.add(id); + if (UtilPub.isEmptyId(id)) continue; + s.append(id).append(","); + } + if (s.length() == 0) return ""; + return s.substring(0, s.length() - 1); + } + + public static String getSqlInStrIds(Collection ids) { + if (null == ids || ids.size() < 1) return ""; + StringBuilder s = new StringBuilder(128); + Set set = new HashSet<>(); + for (String id : ids) { + if (set.contains(id)) continue; + set.add(id); + if (UtilPub.isEmptyId(id)) continue; + s.append("'" + id + "'").append(","); + } + if (s.length() == 0) return ""; + return s.substring(0, s.length() - 1); + } + +// public static List buildSqlIds(Collection ids) { +// List l = new ArrayList<>(); +// StringBuilder sb = new StringBuilder(); +// int count = 0; +// Set set = new HashSet<>(); +// for (String id : ids) { +// if (set.contains(id)) continue; +// set.add(id); +// if (count >= ExEnum.Consts.ORACLE_IN_LENGTH) { +// l.add(sb.substring(1)); +// sb.setLength(0); +// count = 0; +// } +// sb.append(",").append(id); +// count++; +// } +// if (sb.length() > 0) l.add(sb.substring(1)); +// return l; +// } +// +// public static List buildSqlIds(Map> map) { +// return buildSqlIds(map, ExEnum.Consts.ORACLE_IN_LENGTH); +// } +// +// +// public static List buildSqlIds(Map> map, int size) { +// List l = new ArrayList<>(); +// StringBuilder sb = new StringBuilder(); +// int count = 0; +// Set set = new HashSet<>(); +// for (String id : map.keySet()) { +// if (set.contains(id)) continue; +// set.add(id); +// if (count >= size) { +// l.add(sb.substring(1)); +// sb.setLength(0); +// count = 0; +// } +// sb.append(",").append(UtilPub.getSqlInIds(map.get(id))); +// count++; +// } +// if (sb.length() > 0) l.add(sb.substring(1)); +// return l; +// } +// +// public static List buildSqlIds(Collection ids, int size) { +// List l = new ArrayList<>(); +// StringBuilder sb = new StringBuilder(); +// int count = 0; +// Set set = new HashSet<>(); +// for (String id : ids) { +// if (set.contains(id)) continue; +// set.add(id); +// if (count >= size) { +// l.add(sb.substring(1)); +// sb.setLength(0); +// count = 0; +// } +// sb.append(",").append(id); +// count++; +// } +// if (sb.length() > 0) l.add(sb.substring(1)); +// return l; +// } +// +// public static List buildSqlIn(Collection ids) { +// List l = new ArrayList<>(); +// StringBuilder sb = new StringBuilder(); +// int count = 0; +// Set set = new HashSet<>(); +// for (String id : ids) { +// if (set.contains(id)) continue; +// set.add(id); +// if (count >= ExEnum.Consts.ORACLE_IN_LENGTH) { +// l.add(sb.substring(1)); +// sb.setLength(0); +// count = 0; +// } +// sb.append(",'").append(id).append("'"); +// count++; +// } +// if (sb.length() > 0) l.add(sb.substring(1)); +// return l; +// } +// +// /** +// * 判断字符串是否只包含unicode数字。 +// *

+// *

+// * null将返回false,空字符串""将返回 +// * true。 +// *

+// *

+// *

+// *

+//     * StringUtil.isNumeric(null)   = false
+//     * StringUtil.isNumeric("")     = true
+//     * StringUtil.isNumeric("  ")   = false
+//     * StringUtil.isNumeric("123")  = true
+//     * StringUtil.isNumeric("12 3") = false
+//     * StringUtil.isNumeric("ab2c") = false
+//     * StringUtil.isNumeric("12-3") = false
+//     * StringUtil.isNumeric("12.3") = false
+//     * 
+// * +// * @param str 要检查的字符串 +// * @return 如果字符串非null并且全由unicode数字组成,则返回true +// */ +// public static boolean isNumeric(String str) { +// if (UtilPub.isEmpty(str)) { +// return false; +// } +// +// int length = str.length(); +// +// for (int i = 0; i < length; i++) { +// if (!Character.isDigit(str.charAt(i))) { +// return false; +// } +// } +// +// return true; +// } +// +// public static boolean isDouble(String str) { +// if (null == str || "".equals(str)) { +// return false; +// } +// Pattern pattern = Pattern.compile("^[-\\+]?[.\\d]*$"); +// return pattern.matcher(str).matches(); +// +// } +// +// +// public static boolean strMatch(String regEx, String str) { +// if (str == null) return false; +// Pattern pattern = Pattern.compile(regEx); +// return pattern.matcher(str).matches(); +// } +// +// /** +// * 获得某个字符在 字符串中 出现第n次时的 下标 +// * +// * @param res +// * @param _c +// * @param index +// * @return +// */ +// public static int getIndexChar(String res, String _c, int index) { +// Matcher mh = Pattern.compile(_c).matcher(res); +// int i = 0; +// while (mh.find()) { +// i++; +// if (i == index) { +// break; +// } +// } +// return mh.start(); +// } +// +// /** +// * 将字符串转为指定字符集 +// * +// * @param str +// * @param charSet +// * @return +// */ +// public static String changeStrCharSet(String str, String charSet) { +// if (isEmptyId(str)) return str; +// String newStr = str; +// try { +// newStr = new String(str.getBytes(charSet), charSet); +// } catch (UnsupportedEncodingException e) { +// return newStr; +// } +// return newStr; +// } +// +// /** +// * 转布尔 +// * +// * @param o +// * @return +// */ +// public static boolean getBool(Object o) { +// if (o == null) return false; +// String v = o.toString(); +// return "1".equals(v) || "t".equalsIgnoreCase(v) || "true".equalsIgnoreCase(v); +// } +// +// /** +// * 返回当恰能操作系统是否为Linux +// * +// * @return boolean +// */ +// public static boolean osIsLinux() { +// String s = System.getProperty("os.name"); +// return s != null && s.equalsIgnoreCase("linux"); +// } +// +// public static boolean strAllEqual(String str) { +// if (UtilPub.isEmptyId(str)) return true; +// for (int i = 1; i < str.length(); i++) +// if (str.charAt(i) != str.charAt(0)) return false; +// return true; +// } +// +// /** +// * 对中文字段 list排序 +// * +// * @param list +// * @param fun 获取排序的值 +// * @param desc 降序 +// * @throws Exception +// */ +// +// public static void sortChineseStrList(List list, Function fun, boolean desc) { +// list.sort((T o1, T o2) -> { +// int rt = Collator.getInstance(Locale.CHINESE).compare(fun.apply(o1), fun.apply(o2)); +// if (rt < 0) { +// if (desc) { +// return 1; +// } +// return -1; +// } +// if (rt > 0) { +// if (desc) { +// return -1; +// } +// return 1; +// } +// return 0; +// }); +// } +// +// //遍历集合 +// public static void doForCollection(Collection list, IBeanWorker beanWorker) throws Exception { +// if (isEmpty(list)) return; +// for (T bean : list) { +// beanWorker.doWork(bean); +// } +// } +// +// //遍历map +// public static void doForMap(Map map, IMapEntryReader reader) throws Exception { +// if (map == null) return; +// for (Map.Entry entry : map.entrySet()) { +// reader.readEntry(entry.getKey(), entry.getValue()); +// } +// } +// +// public interface IMapEntryReader { +// void readEntry(K key, V value) throws Exception; +// } +// +// /** +// * 将数据库存的金额单位(分) 转换为页面显示的金额单位(元) +// * @param sc 分 eg:10000 (分) +// * @return ->100.0 (元) +// */ +// public static double scoreShiftYuan(long sc) { +// if(sc >= 100) { +// String s = String.valueOf(sc); +// String s1 = s.substring(s.length() - 2); +// String s2 = s.substring(0, s.length() - 2); +// String s3 = s2 + "." + s1; +// return Double.valueOf(s3); +// } +// return 0.1; +// } + + /** + * 按身份证号码获取性别 + * + * @param idNumber 身份证号码 + * @return string + */ + public static String getGenderByIdNumber(String idNumber) { + int genderCode = -1; // 性别代码 + if (idNumber.length() == 18) { // 二代身份证号码长度为18位(第17位为性别代码) + genderCode = idNumber.charAt(16); + } else if (idNumber.length() == 15) { // 一代身份证号码长度为15位(第15位为性别代码) + genderCode = idNumber.charAt(14); + } + // 两代身份证号码的性别代码都为男奇女偶 + if (genderCode % 2 == 0) { + return "女"; + } + return "男"; + } + /** + * 根据身份证的号码算出当前身份证持有者的年龄 + * + * @return + */ + public static int getAgeByIdNumber(String idNumber) { + if(idNumber.length() != 18 && idNumber.length() != 15){ + throw new IllegalArgumentException("身份证号长度错误"); + } + String year; + String yue; + String day; + if(idNumber.length() == 18){ + year = idNumber.substring(6).substring(0, 4);// 得到年份 + yue = idNumber.substring(10).substring(0, 2);// 得到月份 + day = idNumber.substring(12).substring(0,2);//得到日 + }else{ + year = "19" + idNumber.substring(6, 8);// 年份 + yue = idNumber.substring(8, 10);// 月份 + day = idNumber.substring(10, 12);//日 + } +// Date date = new Date();// 得到当前的系统时间 + java.util.Date date = new java.util.Date(); + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); + String fyear = format.format(date).substring(0, 4);// 当前年份 + String fyue = format.format(date).substring(5, 7);// 月份 + String fday=format.format(date).substring(8,10);// + int age = 0; + if(Integer.parseInt(yue) == Integer.parseInt(fyue)){//如果月份相同 + if(Integer.parseInt(day) <= Integer.parseInt(fday)){//说明已经过了生日或者今天是生日 + age = Integer.parseInt(fyear) - Integer.parseInt(year); + } else { + age = Integer.parseInt(fyear) - Integer.parseInt(year) - 1; + } + }else{ + + if(Integer.parseInt(yue) < Integer.parseInt(fyue)){ + //如果当前月份大于出生月份 + age = Integer.parseInt(fyear) - Integer.parseInt(year); + }else{ + //如果当前月份小于出生月份,说明生日还没过 + age = Integer.parseInt(fyear) - Integer.parseInt(year) - 1; + } + } + return age; + } + + + /** + * 正则校验 + * + * @param tel + * @return + */ + public static Boolean regCheckTel(String tel) { + String reg = "^1[3-9]\\d{9}$"; + Pattern pattern = Pattern.compile(reg); + Matcher matcher = pattern.matcher(tel); + boolean matches = matcher.matches(); + return matches; + } + + public static Boolean regCheckUid(String tel) { + String reg = "(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)"; + Pattern pattern = Pattern.compile(reg); + Matcher matcher = pattern.matcher(tel); + boolean matches = matcher.matches(); + return matches; + } + + public static Boolean regCheckEntUid(String tel) { + String reg = "^_IOZSVa-z\\W]{2}\\d{6}[^_IOZSVa-z\\W]{10}$"; + Pattern pattern = Pattern.compile(reg); + Matcher matcher = pattern.matcher(tel); + boolean matches = matcher.matches(); + return matches; + } + + //银行卡正则校验 + public static Boolean regCheckBank(String bank) { + String reg = "^[1-9]\\d{9,29}$"; + Pattern pattern = Pattern.compile(reg); + Matcher matcher = pattern.matcher(bank); + boolean matches = matcher.matches(); + return matches; + } + + /** + * 银行卡长度检验 + * + * @param cardNo + * @return + */ + public static Boolean regCheckBankNo(String cardNo) { + return cardNo.length() >= 15 && cardNo.length() <= 19; + } + + /** + * 数据库的金额单位为分,在前端获取时,得到元 + */ + public static String longFormatToDouble(Long num) { + return new BigDecimal(num).divide(new BigDecimal(100)).setScale(2).toString(); + } + /** + * 实际金额单位:元 转为数据库的金额单位:分 + */ + public static Long doubleFormatToLone(Double num) { + DecimalFormat df = new DecimalFormat("0"); + String format = df.format(num * 100); + return Long.parseLong(format.substring(0,format.length())); + } + /** + * 实际金额单位:万元 转为数据库的金额单位:分 + */ + public static Long doubleFormatToWanLone(Double num) { + DecimalFormat df = new DecimalFormat("0"); + String format = df.format(num * 100 * 10000); + return Long.parseLong(format.substring(0,format.length())); + } + + public static String longFormatToDouble(String str) { + if (UtilPub.isEmptyId(str)) return str; + long num = Long.parseLong(str); + return longFormatToDouble(num); + } + + /** + * 将带格式的时间转为long(固定格式->2020/2/3 15:30:00 or 2020/2/3) + * =>Long(20200203153000 , 20200203000000) + * @param oldTime + * @return longTime + */ + public static long retLongTime(String oldTime) { + SimpleDateFormat sdf; + if(oldTime.contains(" ")) { + sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + }else { + sdf = new SimpleDateFormat("yyyy-MM-dd"); + } + java.util.Date parse = null; + try { + parse = sdf.parse(oldTime); + } catch (ParseException e) { + e.printStackTrace(); + } + SimpleDateFormat sdfNew = new SimpleDateFormat("yyyyMMddHHmmss"); + String format = sdfNew.format(parse); + return Long.parseLong(format); + } + //税号校验 15或者17或者18或者20位字母、数字组成 + public static Boolean regTax(String tax) { + String reg = "^[A-Z0-9]{15}$|^[A-Z0-9]{17}$|^[A-Z0-9]{18}$|^[A-Z0-9]{20}$"; + Pattern pattern = Pattern.compile(reg); + Matcher matcher = pattern.matcher(tax); + boolean matches = matcher.matches(); + return matches; + } + + /** + * excel日期 自动识别成数字(例:45231) 格式化为对应的日期(20231101) + * @param strDate Excel日期数字 + * @return 字符串类型的日期 例:(20231101) + * */ + public static String excelStringToDateFormat(String strDate) { + if(strDate.length() == 5){ + try { + SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); + Calendar calendar = new GregorianCalendar(1900,0,-1); + java.util.Date date = DateUtils.addDays(calendar.getTime(),Integer.parseInt(strDate)); + return sdf.format(date); + }catch (Exception e){ + e.printStackTrace(); + return strDate; + } + } + return strDate; + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.java new file mode 100644 index 0000000..f462ba3 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.java @@ -0,0 +1,86 @@ +package cc.smtweb.biz.mztb.web.widgetManage; + +import cc.smtweb.biz.mztb.web.base.DbSourceConfig; +import cc.smtweb.biz.mztb.web.domian.FillTask; +import cc.smtweb.biz.mztb.web.tool.DbUtil; +import cc.smtweb.biz.mztb.web.tool.UtilPub; +import cc.smtweb.framework.core.common.R; +import cc.smtweb.framework.core.common.SwEnum; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.framework.core.db.DbEngine; +import cc.smtweb.framework.core.exception.BizException; +import cc.smtweb.framework.core.log.LogFactory; +import cc.smtweb.framework.core.mvc.service.SwListData; +import cc.smtweb.framework.core.session.UserSession; +import cc.smtweb.system.bpm.web.design.form.define.PageDataset; +import cc.smtweb.system.bpm.web.engine.dynPage.DynPageListHandler; +import cc.smtweb.system.bpm.web.engine.dynPage.DynPageLoadHandler; +import cc.smtweb.system.bpm.web.engine.dynPage.DynRetBean; + +import java.sql.*; +import java.util.ArrayList; +import java.util.List; + +public class TaskMonthHandler { + static class TaskMonthLoadHandler extends DynPageLoadHandler { + + @Override + public DynPageListHandler getListWorker(SwMap filter, PageDataset pageDataSet) { + TaskMonthListHandler taskMonthListHandler = new TaskMonthListHandler(form.getId(), filter, pageDataSet); + taskMonthListHandler.init(filter, us); + return taskMonthListHandler; + } + } + + + static class TaskMonthListHandler extends DynPageListHandler { + + @Override + public void init(SwMap params, UserSession us) { + this.params = params; + this.us = us; + } + + @Override + public SwListData buildListData() { + List listData = new ArrayList<>(); + List dbSourceConfigs = DbEngine.getInstance().queryWhere(DbSourceConfig.class, " dsc_use_state = 0"); + if(dbSourceConfigs == null || dbSourceConfigs.size() < 1) { + throw new BizException("请联系管理员配置前置库连接"); + } + DbSourceConfig dbSourceConfig = dbSourceConfigs.get(0); + getTaskMonth(dbSourceConfig,listData); + return SwListData.create(listData); + } + + public TaskMonthListHandler(long pageId, SwMap filter, PageDataset pageDataSet) { + super(pageId, filter, pageDataSet); + } + + private void getTaskMonth(DbSourceConfig dbSourceConfig, List listData) { + // 找到已填报的数据 过滤 +// DbEngine preDbEngine = DbUtil.getInstance(dbSourceConfig.getWholeUrl(),dbSourceConfig.getUsername(),dbSourceConfig.getPassword()) +// .getDbEngine(dbSourceConfig.getDbType()); + Connection connection = null; + try { + connection = DriverManager + .getConnection(dbSourceConfig.getWholeUrl(),dbSourceConfig.getUsername(),dbSourceConfig.getPassword()); + DbUtil dbUtil =new DbUtil(connection); + ResultSet query = dbUtil.dbHandSql("select * from qz_fill_task", "query"); + while (query.next()) { + SwMap swMap = new SwMap(); + swMap.put("id",query.getLong("ft_id")); + swMap.put("task",query.getString("fi_task_month")); + swMap.put("text",query.getString("fi_task_month").contains("99") ? + query.getString("fi_task_month").replace("99","年报") + : UtilPub.getDateStr(query.getString("fi_task_month"))); + listData.add(swMap); + } + } catch (SQLException e) { + e.printStackTrace(); + } + } + + + } +} diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.java b/mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.java new file mode 100644 index 0000000..91182e2 --- /dev/null +++ b/mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.java @@ -0,0 +1,33 @@ +package cc.smtweb.biz.mztb.web.widgetManage; + +import cc.smtweb.framework.core.annotation.SwBody; +import cc.smtweb.framework.core.annotation.SwService; +import cc.smtweb.framework.core.common.R; +import cc.smtweb.framework.core.common.SwMap; +import cc.smtweb.system.bpm.web.engine.dynPage.DynPageService; +import cc.smtweb.framework.core.mvc.service.AbstractHandler; +import cc.smtweb.framework.core.session.UserSession; + +/** + * Created by 1 at 2023-12-19 17:27:11 + * 页面【[任务月下拉列表]的服务类 暂时废弃 + */ +@SwService +public class TaskMonthService extends DynPageService { + //public final static String TYPE_DEMO = "demo"; + @Override + protected AbstractHandler createHandler(String type) { + if (TYPE_LOAD.equals(type)) { + return new TaskMonthHandler.TaskMonthLoadHandler(); + } + return super.createHandler(type); + } + +/* demo + //自定义 + public R demo(@SwBody SwMap params, UserSession us) { + return pageHandler(params, us, TYPE_DEMO, handler -> ((DemoHandler)handler).demo()); + } +*/ + +} diff --git a/mztb/src/main/resources/META-INF/spring.factories b/mztb/src/main/resources/META-INF/spring.factories new file mode 100644 index 0000000..f3a578b --- /dev/null +++ b/mztb/src/main/resources/META-INF/spring.factories @@ -0,0 +1,2 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ + cc.smtweb.biz.mztb.spring.MztbAutoConfiguration diff --git a/mztb/src/main/resources/config/application-dev.yaml b/mztb/src/main/resources/config/application-dev.yaml new file mode 100644 index 0000000..bb8b656 --- /dev/null +++ b/mztb/src/main/resources/config/application-dev.yaml @@ -0,0 +1,72 @@ +smtweb: + machine-id: 1 + enable-job: false + file: + #此配置用于系统底层附件上传方法配置,适用于本机上传,必须files/结尾 + local-path: D:/jujia_git/files/ + # url: ${smtweb.file.host}:${server.port}${server.servlet.context-path}/${smtweb.file.local-path} + url: 'http://127.0.0.1:8888/files/' + + #访问路径,需/结尾 + attach-http-path: 'http://bjjt.jujiatech.cn/files/' + #此配置原则上可以和local-path一致,可本机路径可ftp附件路径,需/结尾 + attach-path: D:/jujia_git/files/ + #临时文件路径,需/结尾 + attach-temp-path: D:/jujia_git/tempFile/ + #附件上传方式 sftp/ftp/local + attach-type: local + #ftp IP地址 + attach-ftp-ip: + #ftp 端口 + attach-ftp-port: 0 + #ftp 用户名 + attach-ftp-user: + #ftp 密码 + attach-ftp-pwd: + bpm: + debug: true + code-java-path: 'C:\Users\65224\Desktop\mztb-parent' + mode: 1 + db: + type: mysql + schema: mztb + default: + rule: + prefix: _smt_ + replace: smt_ + +server: + port: 38888 + servlet: + context-path: /test/ +logging: + level: + root: INFO + cc.smtweb: DEBUG +spring: + redis: + host: 127.0.0.1 + port: 6379 + password: + database: 0 + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://139.9.38.43:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://192.168.110.100/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + username: root +# password: Jujia_@)@!0427 + password: Ncmz@2022_jjkj +# password: root + servlet: + + multipart: + max-file-size: 104857600000 + max-request-size: 10485760000000 + cache: + type: caffeine + cache-names: + - core + - bpm + caffeine: + spec: maximumSize=1024,expireAfterWrite=2h diff --git a/mztb/src/main/resources/config/application-prod.yaml b/mztb/src/main/resources/config/application-prod.yaml new file mode 100644 index 0000000..40077e0 --- /dev/null +++ b/mztb/src/main/resources/config/application-prod.yaml @@ -0,0 +1,77 @@ +smtweb: + machine-id: 1 + enable-job: true + file: + #此配置用于系统底层附件上传方法配置,适用于本机上传,必须files/结尾 + local-path: /jujia_git/files/ + # url: ${smtweb.file.host}:${server.port}${server.servlet.context-path}/${smtweb.file.local-path} + url: 'http://127.0.0.1:8888/files/' + + #访问路径,需/结尾 + attach-http-path: 'http://bjjt.jujiatech.cn/files/' + #此配置原则上可以和local-path一致,可本机路径可ftp附件路径,需/结尾 + attach-path: /jujia_git/files/ + #临时文件路径,需/结尾 + attach-temp-path: /jujia_git/tempFile/ + #附件上传方式 sftp/ftp/local + attach-type: local + #ftp IP地址 + attach-ftp-ip: + #ftp 端口 + attach-ftp-port: 0 + #ftp 用户名 + attach-ftp-user: + #ftp 密码 + attach-ftp-pwd: + bpm: + debug: true + code-java-path: 'G:\jjkj\java\lrjx' + mode: 1 + db: + type: mysql + # 人大金仓 + #type: kbsql + schema: public + default: + rule: + prefix: _smt_ + replace: smt_ + +server: + # 正式 + port: 8236 + #测试 + #port: 8889 + servlet: + context-path: /lrjx +logging: + level: + root: INFO + cc.smtweb: DEBUG +spring: + redis: + host: 127.0.0.1 + port: 6379 + password: + database: 0 + datasource: + # 测试 + driver-class-name: com.mysql.cj.jdbc.Driver +# url: jdbc:mysql://172.28.123.145:4418/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://139.9.38.43:6032/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://139.9.38.43:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + url: jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + username: root + password: Ncmz@2022_jjkj + servlet: + multipart: + max-file-size: 104857600000 + max-request-size: 10485760000000 + cache: + type: caffeine + cache-names: + - core + - bpm + caffeine: + spec: maximumSize=1024,expireAfterWrite=2h diff --git a/mztb/src/main/resources/config/application.yaml b/mztb/src/main/resources/config/application.yaml new file mode 100644 index 0000000..2a84983 --- /dev/null +++ b/mztb/src/main/resources/config/application.yaml @@ -0,0 +1,40 @@ +spring: + profiles: + active: dev + include: baseparams +smtweb: + ocr: + url: '' + # 应用配置,用于前端初始化配置 + app-config: + # 应用编码 + code: mztb + # 应用名称 + name: 民政统计数据填报系统(养老机构) + # 接口地址,前后端如果部署在一起直接配置成context-path一致,否则配置成完整的后端接口服务地址 + api-url: + multi-online: true + # 登录页相关 + group: + default: + # 应用名称 + name: 民政统计数据填报系统(养老机构) + background: /static/images/login/bg.png + backgroundImg: /static/images/login/bg-img.png +# loginLogo: /static/images/login/login-logo.png + logoMain: /static/images/login/main-logo.png + ico: /static/favicon.ico + logoMainWithTitle: false + titleMainWithParty: false +logging: + level: + root: INFO + cc.smtweb: DEBUG + config: classpath:config/logback.xml +#mztb: +# map: +# centerAddr: '北京市通州区退役军人服务中心' +# ak: 's8CUBmzZTD3EDY3NZQapYUKhQOnt9Ff2' +#http-config: +# forbid: '' +# trusted-origin: 'http://localhost:3001,http://www.jujiaservice.com,https://www.jujiaservice.com,http://192.168.110.107:3001,http://localhost:8888,http://192.168.110.128:3001,http//:localhost:3000' diff --git a/mztb/src/main/resources/config/logback.xml b/mztb/src/main/resources/config/logback.xml new file mode 100644 index 0000000..53f5d37 --- /dev/null +++ b/mztb/src/main/resources/config/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + ${FILE_LOG_PATTERN} + ${FILE_LOG_CHARSET} + + ${LOG_FILE_ERROR} + + ${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.error.log.zip + ${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false} + ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-1GB} + ${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-50GB} + ${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30} + + + + ERROR + ACCEPT + DENY + + + + + + localhost + 21022 + 10000 + + + + + + + com.mysql.cj.jdbc.Driver + jdbc:mysql://192.168.110.210:4418/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + root + Ncmz@2022_jjkj + + + + + + + + + + + + + + + + + + + + diff --git a/mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillCard.js b/mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillCard.js new file mode 100644 index 0000000..aed21c9 --- /dev/null +++ b/mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillCard.js @@ -0,0 +1,58 @@ +/** + * Created by 1 at 2023-12-20 17:03:56 + * 注册事件类【机构数据填报编辑】,参看event.defaultEvent.js +*/ +window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillCard", { + setup(page){ + const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {}; + const { $$message, $$http, $$sys, $$UtilPub } = $utils || {}; + + // 示例 + const demoFunc = () => { + + }; + + $lifecycle.onLoad = () => { + if(!$params.id) { + $model.card.setFormVal("fo_type",Number($params.type)) + $model.card.setFormVal("fo_task", Number($params.type) === 2 ? Number($params.task+"99") : Number($params.task)) //如果是年报 年份后面添加标识 99 + $model.card.setFormVal("fo_task_text",$params.task_text) + } + $api.loadOne("partyForm") + if(Number($model.card.getFormVal("fo_state") === 2) || Number($model.card.getFormVal("fo_state") === 1)) { + $refs.saveButton.hide() + } + if(Number($model.card.getFormVal("fo_type")) === 1) { // 月报 + $refs.yearEnd.hide() + } + } + + Object.assign($engine, { + buildSaveParams(params) { + if(Number($model.card.getFormVal("fo_type")) === 2) { // 年报 + params.yearEndPersonsForm = { + form : $model.yearEndPersonsForm.data.form + } + } + params.financeForm = { + form : $model.financeForm.data.form + } + params.businessForm = { + form : $model.businessForm.data.form + } + params.partyForm = { + form : $model.partyForm.data.form + } + } + }) + + const loadPageCard = () => { + // $api.loadCard() + } + + + return { + demoFunc,loadPageCard + } + } +}); diff --git a/mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillList.js b/mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillList.js new file mode 100644 index 0000000..84f87b5 --- /dev/null +++ b/mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillList.js @@ -0,0 +1,96 @@ +/** + * Created by 1 at 2023-12-19 11:06:39 + * 注册事件类【机构数据填报列表】,参看event.defaultEvent.js +*/ +window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillList", { + setup(page){ + const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {}; + const { $$message, $$http, $$sys, $$UtilPub } = $utils || {}; + + // 示例 + const demoFunc = () => { + + }; + + let task; // 填报月 + let task_text; // 填报月格式化 + let type; // 填报类型(2 年报 1 月报) + + const setValue =(id,data) => { + task = data.task; + task_text = data.text; + type = data.task.includes("99") ? 2 : 1; + } + const toPageEdit = () =>{ + if($model.ds_1.data.form.task === undefined) { + $$message.notify.warning("请选择任务") + return false + } + $api.toPage("mztb.partyDataFillCard",{ + $fromAction: 'button:add' + ,task:$model.ds_1.data.form.task + ,type: $model.ds_1.data.form.month + ,task_text : $model.ds_1.data.form.task_text + ,outOldData : $model.ds_1.data.form.outOldData }) + } + + const selectHide =(data) => { + if(Number(data) === 1) { //月报 + $refs.year.hide(); + $refs.month1.show(); + }else { // 年报 + $refs.month1.hide(); + $refs.year.show(); + } + } + + const setTypeDef =()=> { + $model.ds_1.data.form.month = 1 + } + + // 按钮显示隐藏 + const edit_del_affirm_Hide = (data) => { // 编辑 删除 确认 + return Number(data.scope.row.fo_state) === 0 + } + const affirm_push_CancelHide= (data) => { // 取消确认 推送 + return Number(data.scope.row.fo_state) === 1 + } + + // 自定义请求 逻辑删除 填报主表 + const logicDel = async (data) => { + const rt = await $$http.post("mztb/partyDataFill/logicDel", {id: data.row.fo_id}) + if (rt.code === 0) { + $api.loadList() + $$message.notify.success("删除完成") + } + } + // 自定义请求 确认 + const affirm = async (data) => { + const rt =await $$http.post("mztb/partyDataFill/affirm",{id : data.row.fo_id}) + if(rt.code === 0) { + $api.loadList() + $$message.notify.success("已确认") + } + } + // 自定义请求 取消确认 + const cancelAffirm =async (data) => { + const rt = await $$http.post("mztb/partyDataFill/cancelAffirm",{id : data.row.fo_id}) + if(rt.code === 0) { + $api.loadList() + $$message.notify.success("已取消确认") + } + } + // 自定义请求推送 数据 + const pushData = (data) => { + const rt = $$http.post("mztb/partyDataFill/pushData",{id : data.row.fo_id}) + if(rt.code === 0) { + $api.loadList() + } + } + + return { + demoFunc,setValue,toPageEdit,selectHide,setTypeDef,edit_del_affirm_Hide,affirm_push_CancelHide + ,logicDel,affirm,cancelAffirm,pushData + } + } +}); diff --git a/mztb/src/main/resources/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js b/mztb/src/main/resources/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js new file mode 100644 index 0000000..9ec6429 --- /dev/null +++ b/mztb/src/main/resources/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js @@ -0,0 +1,18 @@ +/** + * Created by 1 at 2023-12-18 11:09:35 + * 注册事件类【配置前置库连接列表】,参看event.defaultEvent.js +*/ +window.$swEvent.setup("mztb.base.prelibraryConfiguration.prelibraryConfigurationList", { + setup(page){ + const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {}; + const { $$message, $$http, $$sys, $$UtilPub } = $utils || {}; + + // 示例 + const demoFunc = () => { + + }; + return { + demoFunc, + } + } +}); diff --git a/mztb/src/main/resources/static/favicon.ico b/mztb/src/main/resources/static/favicon.ico new file mode 100644 index 0000000..91e4132 Binary files /dev/null and b/mztb/src/main/resources/static/favicon.ico differ diff --git a/mztb/src/main/resources/static/images/login/bg-img.png b/mztb/src/main/resources/static/images/login/bg-img.png new file mode 100644 index 0000000..eb69ce5 Binary files /dev/null and b/mztb/src/main/resources/static/images/login/bg-img.png differ diff --git a/mztb/src/main/resources/static/images/login/bg.png b/mztb/src/main/resources/static/images/login/bg.png new file mode 100644 index 0000000..1d0f0a4 Binary files /dev/null and b/mztb/src/main/resources/static/images/login/bg.png differ diff --git a/mztb/src/main/resources/static/images/login/main-logo.png b/mztb/src/main/resources/static/images/login/main-logo.png new file mode 100644 index 0000000..68c5df3 Binary files /dev/null and b/mztb/src/main/resources/static/images/login/main-logo.png differ diff --git a/mztb/target/classes/META-INF/spring.factories b/mztb/target/classes/META-INF/spring.factories new file mode 100644 index 0000000..f3a578b --- /dev/null +++ b/mztb/target/classes/META-INF/spring.factories @@ -0,0 +1,2 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ + cc.smtweb.biz.mztb.spring.MztbAutoConfiguration diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/MztbApplication.class b/mztb/target/classes/cc/smtweb/biz/mztb/MztbApplication.class new file mode 100644 index 0000000..767ccfa Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/MztbApplication.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.class b/mztb/target/classes/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.class new file mode 100644 index 0000000..cdce2b9 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/MztbStartedListener.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/MztbStartedListener.class new file mode 100644 index 0000000..fb685e8 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/MztbStartedListener.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/BusinessInfo.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/BusinessInfo.class new file mode 100644 index 0000000..218e7d2 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/BusinessInfo.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/DbSourceConfig.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/DbSourceConfig.class new file mode 100644 index 0000000..d936272 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/DbSourceConfig.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/FillOut.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/FillOut.class new file mode 100644 index 0000000..a9f6b88 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/FillOut.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/FinanceInfo.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/FinanceInfo.class new file mode 100644 index 0000000..88c5c09 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/FinanceInfo.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/PartyInfo.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/PartyInfo.class new file mode 100644 index 0000000..e29c49a Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/PartyInfo.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/YearEndPersons.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/YearEndPersons.class new file mode 100644 index 0000000..9220ee7 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/YearEndPersons.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.class new file mode 100644 index 0000000..939838f Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelListHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelListHandler.class new file mode 100644 index 0000000..7c2cbca Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelListHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelLoadHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelLoadHandler.class new file mode 100644 index 0000000..665447d Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelLoadHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelSaveHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelSaveHandler.class new file mode 100644 index 0000000..fc30696 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelSaveHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.class new file mode 100644 index 0000000..1b5dab0 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.class new file mode 100644 index 0000000..bacab67 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationListHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationListHandler.class new file mode 100644 index 0000000..5975272 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationListHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationLoadHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationLoadHandler.class new file mode 100644 index 0000000..8234715 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationLoadHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationSaveHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationSaveHandler.class new file mode 100644 index 0000000..f7c31f9 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationSaveHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.class new file mode 100644 index 0000000..2c3de25 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.class new file mode 100644 index 0000000..5c2611e Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/base/test/Test.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/test/Test.class new file mode 100644 index 0000000..6b9b352 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/base/test/Test.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/domian/FillTask.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/domian/FillTask.class new file mode 100644 index 0000000..49f5e47 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/domian/FillTask.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.class new file mode 100644 index 0000000..f4ce4f5 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.class new file mode 100644 index 0000000..1d7e68d Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/task/PushTask.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/task/PushTask.class new file mode 100644 index 0000000..aef7561 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/task/PushTask.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/DbUtil.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/DbUtil.class new file mode 100644 index 0000000..6f423b0 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/DbUtil.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum$FoState.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum$FoState.class new file mode 100644 index 0000000..100e5ca Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum$FoState.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum.class new file mode 100644 index 0000000..0b7f2df Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/UtilPub.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/UtilPub.class new file mode 100644 index 0000000..eb32661 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/tool/UtilPub.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthListHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthListHandler.class new file mode 100644 index 0000000..4eaa029 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthListHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthLoadHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthLoadHandler.class new file mode 100644 index 0000000..38a9911 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthLoadHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.class new file mode 100644 index 0000000..e38fb67 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.class differ diff --git a/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.class b/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.class new file mode 100644 index 0000000..f19eac6 Binary files /dev/null and b/mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.class differ diff --git a/mztb/target/classes/config/application-dev.yaml b/mztb/target/classes/config/application-dev.yaml new file mode 100644 index 0000000..bb8b656 --- /dev/null +++ b/mztb/target/classes/config/application-dev.yaml @@ -0,0 +1,72 @@ +smtweb: + machine-id: 1 + enable-job: false + file: + #此配置用于系统底层附件上传方法配置,适用于本机上传,必须files/结尾 + local-path: D:/jujia_git/files/ + # url: ${smtweb.file.host}:${server.port}${server.servlet.context-path}/${smtweb.file.local-path} + url: 'http://127.0.0.1:8888/files/' + + #访问路径,需/结尾 + attach-http-path: 'http://bjjt.jujiatech.cn/files/' + #此配置原则上可以和local-path一致,可本机路径可ftp附件路径,需/结尾 + attach-path: D:/jujia_git/files/ + #临时文件路径,需/结尾 + attach-temp-path: D:/jujia_git/tempFile/ + #附件上传方式 sftp/ftp/local + attach-type: local + #ftp IP地址 + attach-ftp-ip: + #ftp 端口 + attach-ftp-port: 0 + #ftp 用户名 + attach-ftp-user: + #ftp 密码 + attach-ftp-pwd: + bpm: + debug: true + code-java-path: 'C:\Users\65224\Desktop\mztb-parent' + mode: 1 + db: + type: mysql + schema: mztb + default: + rule: + prefix: _smt_ + replace: smt_ + +server: + port: 38888 + servlet: + context-path: /test/ +logging: + level: + root: INFO + cc.smtweb: DEBUG +spring: + redis: + host: 127.0.0.1 + port: 6379 + password: + database: 0 + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://139.9.38.43:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://192.168.110.100/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + username: root +# password: Jujia_@)@!0427 + password: Ncmz@2022_jjkj +# password: root + servlet: + + multipart: + max-file-size: 104857600000 + max-request-size: 10485760000000 + cache: + type: caffeine + cache-names: + - core + - bpm + caffeine: + spec: maximumSize=1024,expireAfterWrite=2h diff --git a/mztb/target/classes/config/application-prod.yaml b/mztb/target/classes/config/application-prod.yaml new file mode 100644 index 0000000..40077e0 --- /dev/null +++ b/mztb/target/classes/config/application-prod.yaml @@ -0,0 +1,77 @@ +smtweb: + machine-id: 1 + enable-job: true + file: + #此配置用于系统底层附件上传方法配置,适用于本机上传,必须files/结尾 + local-path: /jujia_git/files/ + # url: ${smtweb.file.host}:${server.port}${server.servlet.context-path}/${smtweb.file.local-path} + url: 'http://127.0.0.1:8888/files/' + + #访问路径,需/结尾 + attach-http-path: 'http://bjjt.jujiatech.cn/files/' + #此配置原则上可以和local-path一致,可本机路径可ftp附件路径,需/结尾 + attach-path: /jujia_git/files/ + #临时文件路径,需/结尾 + attach-temp-path: /jujia_git/tempFile/ + #附件上传方式 sftp/ftp/local + attach-type: local + #ftp IP地址 + attach-ftp-ip: + #ftp 端口 + attach-ftp-port: 0 + #ftp 用户名 + attach-ftp-user: + #ftp 密码 + attach-ftp-pwd: + bpm: + debug: true + code-java-path: 'G:\jjkj\java\lrjx' + mode: 1 + db: + type: mysql + # 人大金仓 + #type: kbsql + schema: public + default: + rule: + prefix: _smt_ + replace: smt_ + +server: + # 正式 + port: 8236 + #测试 + #port: 8889 + servlet: + context-path: /lrjx +logging: + level: + root: INFO + cc.smtweb: DEBUG +spring: + redis: + host: 127.0.0.1 + port: 6379 + password: + database: 0 + datasource: + # 测试 + driver-class-name: com.mysql.cj.jdbc.Driver +# url: jdbc:mysql://172.28.123.145:4418/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://139.9.38.43:6032/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://139.9.38.43:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false +# url: jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + url: jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + username: root + password: Ncmz@2022_jjkj + servlet: + multipart: + max-file-size: 104857600000 + max-request-size: 10485760000000 + cache: + type: caffeine + cache-names: + - core + - bpm + caffeine: + spec: maximumSize=1024,expireAfterWrite=2h diff --git a/mztb/target/classes/config/application.yaml b/mztb/target/classes/config/application.yaml new file mode 100644 index 0000000..2a84983 --- /dev/null +++ b/mztb/target/classes/config/application.yaml @@ -0,0 +1,40 @@ +spring: + profiles: + active: dev + include: baseparams +smtweb: + ocr: + url: '' + # 应用配置,用于前端初始化配置 + app-config: + # 应用编码 + code: mztb + # 应用名称 + name: 民政统计数据填报系统(养老机构) + # 接口地址,前后端如果部署在一起直接配置成context-path一致,否则配置成完整的后端接口服务地址 + api-url: + multi-online: true + # 登录页相关 + group: + default: + # 应用名称 + name: 民政统计数据填报系统(养老机构) + background: /static/images/login/bg.png + backgroundImg: /static/images/login/bg-img.png +# loginLogo: /static/images/login/login-logo.png + logoMain: /static/images/login/main-logo.png + ico: /static/favicon.ico + logoMainWithTitle: false + titleMainWithParty: false +logging: + level: + root: INFO + cc.smtweb: DEBUG + config: classpath:config/logback.xml +#mztb: +# map: +# centerAddr: '北京市通州区退役军人服务中心' +# ak: 's8CUBmzZTD3EDY3NZQapYUKhQOnt9Ff2' +#http-config: +# forbid: '' +# trusted-origin: 'http://localhost:3001,http://www.jujiaservice.com,https://www.jujiaservice.com,http://192.168.110.107:3001,http://localhost:8888,http://192.168.110.128:3001,http//:localhost:3000' diff --git a/mztb/target/classes/config/logback.xml b/mztb/target/classes/config/logback.xml new file mode 100644 index 0000000..53f5d37 --- /dev/null +++ b/mztb/target/classes/config/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + ${FILE_LOG_PATTERN} + ${FILE_LOG_CHARSET} + + ${LOG_FILE_ERROR} + + ${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.error.log.zip + ${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false} + ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-1GB} + ${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-50GB} + ${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30} + + + + ERROR + ACCEPT + DENY + + + + + + localhost + 21022 + 10000 + + + + + + + com.mysql.cj.jdbc.Driver + jdbc:mysql://192.168.110.210:4418/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + root + Ncmz@2022_jjkj + + + + + + + + + + + + + + + + + + + + diff --git a/mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillCard.js b/mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillCard.js new file mode 100644 index 0000000..aed21c9 --- /dev/null +++ b/mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillCard.js @@ -0,0 +1,58 @@ +/** + * Created by 1 at 2023-12-20 17:03:56 + * 注册事件类【机构数据填报编辑】,参看event.defaultEvent.js +*/ +window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillCard", { + setup(page){ + const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {}; + const { $$message, $$http, $$sys, $$UtilPub } = $utils || {}; + + // 示例 + const demoFunc = () => { + + }; + + $lifecycle.onLoad = () => { + if(!$params.id) { + $model.card.setFormVal("fo_type",Number($params.type)) + $model.card.setFormVal("fo_task", Number($params.type) === 2 ? Number($params.task+"99") : Number($params.task)) //如果是年报 年份后面添加标识 99 + $model.card.setFormVal("fo_task_text",$params.task_text) + } + $api.loadOne("partyForm") + if(Number($model.card.getFormVal("fo_state") === 2) || Number($model.card.getFormVal("fo_state") === 1)) { + $refs.saveButton.hide() + } + if(Number($model.card.getFormVal("fo_type")) === 1) { // 月报 + $refs.yearEnd.hide() + } + } + + Object.assign($engine, { + buildSaveParams(params) { + if(Number($model.card.getFormVal("fo_type")) === 2) { // 年报 + params.yearEndPersonsForm = { + form : $model.yearEndPersonsForm.data.form + } + } + params.financeForm = { + form : $model.financeForm.data.form + } + params.businessForm = { + form : $model.businessForm.data.form + } + params.partyForm = { + form : $model.partyForm.data.form + } + } + }) + + const loadPageCard = () => { + // $api.loadCard() + } + + + return { + demoFunc,loadPageCard + } + } +}); diff --git a/mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillList.js b/mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillList.js new file mode 100644 index 0000000..84f87b5 --- /dev/null +++ b/mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillList.js @@ -0,0 +1,96 @@ +/** + * Created by 1 at 2023-12-19 11:06:39 + * 注册事件类【机构数据填报列表】,参看event.defaultEvent.js +*/ +window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillList", { + setup(page){ + const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {}; + const { $$message, $$http, $$sys, $$UtilPub } = $utils || {}; + + // 示例 + const demoFunc = () => { + + }; + + let task; // 填报月 + let task_text; // 填报月格式化 + let type; // 填报类型(2 年报 1 月报) + + const setValue =(id,data) => { + task = data.task; + task_text = data.text; + type = data.task.includes("99") ? 2 : 1; + } + const toPageEdit = () =>{ + if($model.ds_1.data.form.task === undefined) { + $$message.notify.warning("请选择任务") + return false + } + $api.toPage("mztb.partyDataFillCard",{ + $fromAction: 'button:add' + ,task:$model.ds_1.data.form.task + ,type: $model.ds_1.data.form.month + ,task_text : $model.ds_1.data.form.task_text + ,outOldData : $model.ds_1.data.form.outOldData }) + } + + const selectHide =(data) => { + if(Number(data) === 1) { //月报 + $refs.year.hide(); + $refs.month1.show(); + }else { // 年报 + $refs.month1.hide(); + $refs.year.show(); + } + } + + const setTypeDef =()=> { + $model.ds_1.data.form.month = 1 + } + + // 按钮显示隐藏 + const edit_del_affirm_Hide = (data) => { // 编辑 删除 确认 + return Number(data.scope.row.fo_state) === 0 + } + const affirm_push_CancelHide= (data) => { // 取消确认 推送 + return Number(data.scope.row.fo_state) === 1 + } + + // 自定义请求 逻辑删除 填报主表 + const logicDel = async (data) => { + const rt = await $$http.post("mztb/partyDataFill/logicDel", {id: data.row.fo_id}) + if (rt.code === 0) { + $api.loadList() + $$message.notify.success("删除完成") + } + } + // 自定义请求 确认 + const affirm = async (data) => { + const rt =await $$http.post("mztb/partyDataFill/affirm",{id : data.row.fo_id}) + if(rt.code === 0) { + $api.loadList() + $$message.notify.success("已确认") + } + } + // 自定义请求 取消确认 + const cancelAffirm =async (data) => { + const rt = await $$http.post("mztb/partyDataFill/cancelAffirm",{id : data.row.fo_id}) + if(rt.code === 0) { + $api.loadList() + $$message.notify.success("已取消确认") + } + } + // 自定义请求推送 数据 + const pushData = (data) => { + const rt = $$http.post("mztb/partyDataFill/pushData",{id : data.row.fo_id}) + if(rt.code === 0) { + $api.loadList() + } + } + + return { + demoFunc,setValue,toPageEdit,selectHide,setTypeDef,edit_del_affirm_Hide,affirm_push_CancelHide + ,logicDel,affirm,cancelAffirm,pushData + } + } +}); diff --git a/mztb/target/classes/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js b/mztb/target/classes/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js new file mode 100644 index 0000000..9ec6429 --- /dev/null +++ b/mztb/target/classes/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js @@ -0,0 +1,18 @@ +/** + * Created by 1 at 2023-12-18 11:09:35 + * 注册事件类【配置前置库连接列表】,参看event.defaultEvent.js +*/ +window.$swEvent.setup("mztb.base.prelibraryConfiguration.prelibraryConfigurationList", { + setup(page){ + const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {}; + const { $$message, $$http, $$sys, $$UtilPub } = $utils || {}; + + // 示例 + const demoFunc = () => { + + }; + return { + demoFunc, + } + } +}); diff --git a/mztb/target/classes/static/favicon.ico b/mztb/target/classes/static/favicon.ico new file mode 100644 index 0000000..91e4132 Binary files /dev/null and b/mztb/target/classes/static/favicon.ico differ diff --git a/mztb/target/classes/static/images/login/bg-img.png b/mztb/target/classes/static/images/login/bg-img.png new file mode 100644 index 0000000..eb69ce5 Binary files /dev/null and b/mztb/target/classes/static/images/login/bg-img.png differ diff --git a/mztb/target/classes/static/images/login/bg.png b/mztb/target/classes/static/images/login/bg.png new file mode 100644 index 0000000..1d0f0a4 Binary files /dev/null and b/mztb/target/classes/static/images/login/bg.png differ diff --git a/mztb/target/classes/static/images/login/main-logo.png b/mztb/target/classes/static/images/login/main-logo.png new file mode 100644 index 0000000..68c5df3 Binary files /dev/null and b/mztb/target/classes/static/images/login/main-logo.png differ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..68d22c9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,16 @@ + + + 4.0.0 + + cc.smtweb + mztb-parent + pom + 1.0-SNAPSHOT + + mztb + + + + \ No newline at end of file