@@ -15,18 +15,19 @@ import cc.smtweb.system.bpm.web.engine.model.listcard.lcms.LCMsSaveHandler; | |||
import cc.smtweb.system.bpm.web.sys.user.user.UserCache; | |||
import java.util.List; | |||
import java.util.Map; | |||
public class PartyDataFillHandler { | |||
protected static FinanceInfo financeInfo; | |||
protected static YearEndPersons yearEndPersons; | |||
protected static BusinessInfo businessInfo; | |||
protected static PartyInfo partyInfo; | |||
// 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"; | |||
// protected static final String PARTY_DS_NAME = "partyForm"; | |||
static class PartyDataFillModelSaveHandler extends LCMsSaveHandler<FillOut> { | |||
@Override | |||
@@ -37,7 +38,7 @@ public class PartyDataFillHandler { | |||
} | |||
financeInfo = readBeanFromPage(FINANCE_DS_NAME, pageData, filter); | |||
businessInfo = readBeanFromPage(BUSINESS_DS_NAME, pageData, filter); | |||
partyInfo = readBeanFromPage(PARTY_DS_NAME, pageData, filter); | |||
// partyInfo = readBeanFromPage(PARTY_DS_NAME, pageData, filter); | |||
} | |||
@Override | |||
@@ -48,7 +49,7 @@ public class PartyDataFillHandler { | |||
} | |||
saveBean(financeInfo); | |||
saveBean(businessInfo); | |||
saveBean(partyInfo); | |||
// saveBean(partyInfo); | |||
} | |||
} | |||
@@ -90,9 +91,21 @@ public class PartyDataFillHandler { | |||
super.localAdd(); | |||
bean.setDate(DateUtil.nowDateLong()); | |||
bean.setPartyId(params.readLong("CUR_PARTY_ID")); | |||
// bean.setUser(UserCache.getInstance().getNameById(us.getUserId())); | |||
// bean.setUpdateAt(DateUtil.nowDateLong()); | |||
bean.setUser(UserCache.getInstance().getNameById(us.getUserId())); | |||
DbEngine instance = DbEngine.getInstance(); | |||
// 将机构表数据同步到填报主表机构信息中 | |||
PartyInfo partyInfo = instance.queryEntity(PartyInfo.class, params.readLong("CUR_PARTY_ID")); | |||
SwMap partyInfoData = partyInfo.getData(); | |||
partyInfoData.remove("pi_update_at"); | |||
partyInfoData.remove("pi_sys_party_id"); | |||
partyInfoData.remove("_def_table_name"); | |||
SwMap partyInfoFillOutData = new SwMap(); | |||
// 处理字段 | |||
for (Map.Entry<String, Object> entry : partyInfoData.entrySet()) { | |||
partyInfoFillOutData.put("fo_"+entry.getKey(),partyInfoData.readString(entry.getKey())); | |||
} | |||
bean.getData().putAll(partyInfoFillOutData); | |||
// bean.setUser(us.getUserId()); | |||
if(params.readString("outOldData").equals("1")) { // 如果带出上期数据,并且能找到最近的数据 就不执行初始化 | |||
// 通过填报类型 找到当前机构最近填报的一条数据, | |||
@@ -0,0 +1,70 @@ | |||
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 | |||
servlet: | |||
context-path: /mztb | |||
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 | |||
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 |
@@ -0,0 +1,70 @@ | |||
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: 8552 | |||
servlet: | |||
context-path: /mztbcs | |||
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 | |||
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 |
@@ -0,0 +1,74 @@ | |||
<?xml version="1.0" encoding="UTF-8" ?> | |||
<configuration> | |||
<property name="LOG_PATH" value="/logs"/> | |||
<property name="LOG_FILE" value="${LOG_PATH}/smt.log"/> | |||
<property name="LOG_FILE_ERROR" value="${LOG_PATH}/smt_error.log"/> | |||
<property name="FILE_LOG_CHARSET" value="UTF-8"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN" value="${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.log.zip"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE" value="1GB"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP" value="50GB"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_MAX_HISTORY" value="30"/> | |||
<!--springboot基础配置--> | |||
<include resource="org/springframework/boot/logging/logback/defaults.xml" /> | |||
<include resource="org/springframework/boot/logging/logback/console-appender.xml" /> | |||
<include resource="org/springframework/boot/logging/logback/file-appender.xml" /> | |||
<!--错误日志--> | |||
<appender name="FILE-ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |||
<encoder> | |||
<pattern>${FILE_LOG_PATTERN}</pattern> | |||
<charset>${FILE_LOG_CHARSET}</charset> | |||
</encoder> | |||
<file>${LOG_FILE_ERROR}</file> | |||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | |||
<fileNamePattern>${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.error.log.zip</fileNamePattern> | |||
<cleanHistoryOnStart>${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}</cleanHistoryOnStart> | |||
<maxFileSize>${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-1GB}</maxFileSize> | |||
<totalSizeCap>${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-50GB}</totalSizeCap> | |||
<maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30}</maxHistory> | |||
</rollingPolicy> | |||
<!-- 只打印ERROR日志 --> | |||
<filter class="ch.qos.logback.classic.filter.LevelFilter"> | |||
<level>ERROR</level> | |||
<onMatch>ACCEPT</onMatch> | |||
<onMismatch>DENY</onMismatch> | |||
</filter> | |||
</appender> | |||
<!--远程日志--> | |||
<appender name="SOCKET" class="cc.smtweb.framework.core.log.appender.SmtSocketAppender"> | |||
<remoteHost>localhost</remoteHost> | |||
<port>21022</port> | |||
<reconnectionDelay>10000</reconnectionDelay> | |||
</appender> | |||
<!--数据库日志--> | |||
<!--ch.qos.logback.classic.db.DBAppender--> | |||
<appender name="DB" class="cc.smtweb.framework.core.log.appender.SmtDBAppender"> | |||
<connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource"> | |||
<driverClass>com.mysql.cj.jdbc.Driver</driverClass> | |||
<url>jdbc:mysql://192.168.110.210:4418/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false</url> | |||
<user>root</user> | |||
<password>Ncmz@2022_jjkj</password> | |||
<!-- <url>jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false</url>--> | |||
<!-- <user>root</user>--> | |||
<!-- <password>Jujia_@)@!0427</password>--> | |||
</connectionSource> | |||
<filter class="cc.smtweb.framework.core.log.filter.DBFilter"/> | |||
</appender> | |||
<!--显示JDBC日志--> | |||
<logger name="org.springframework.jdbc.core" additivity="false" level="DEBUG" > | |||
<appender-ref ref="CONSOLE" /> | |||
</logger> | |||
<root level="INFO"> | |||
<appender-ref ref="CONSOLE" /> | |||
<appender-ref ref="FILE" /> | |||
<appender-ref ref="FILE-ERROR" /> | |||
<appender-ref ref="SOCKET" /> | |||
<appender-ref ref="DB" /> | |||
</root> | |||
</configuration> |
@@ -0,0 +1,74 @@ | |||
<?xml version="1.0" encoding="UTF-8" ?> | |||
<configuration> | |||
<property name="LOG_PATH" value="/logs"/> | |||
<property name="LOG_FILE" value="${LOG_PATH}/smt.log"/> | |||
<property name="LOG_FILE_ERROR" value="${LOG_PATH}/smt_error.log"/> | |||
<property name="FILE_LOG_CHARSET" value="UTF-8"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN" value="${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.log.zip"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE" value="1GB"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP" value="50GB"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_MAX_HISTORY" value="30"/> | |||
<!--springboot基础配置--> | |||
<include resource="org/springframework/boot/logging/logback/defaults.xml" /> | |||
<include resource="org/springframework/boot/logging/logback/console-appender.xml" /> | |||
<include resource="org/springframework/boot/logging/logback/file-appender.xml" /> | |||
<!--错误日志--> | |||
<appender name="FILE-ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |||
<encoder> | |||
<pattern>${FILE_LOG_PATTERN}</pattern> | |||
<charset>${FILE_LOG_CHARSET}</charset> | |||
</encoder> | |||
<file>${LOG_FILE_ERROR}</file> | |||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | |||
<fileNamePattern>${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.error.log.zip</fileNamePattern> | |||
<cleanHistoryOnStart>${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}</cleanHistoryOnStart> | |||
<maxFileSize>${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-1GB}</maxFileSize> | |||
<totalSizeCap>${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-50GB}</totalSizeCap> | |||
<maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30}</maxHistory> | |||
</rollingPolicy> | |||
<!-- 只打印ERROR日志 --> | |||
<filter class="ch.qos.logback.classic.filter.LevelFilter"> | |||
<level>ERROR</level> | |||
<onMatch>ACCEPT</onMatch> | |||
<onMismatch>DENY</onMismatch> | |||
</filter> | |||
</appender> | |||
<!--远程日志--> | |||
<appender name="SOCKET" class="cc.smtweb.framework.core.log.appender.SmtSocketAppender"> | |||
<remoteHost>localhost</remoteHost> | |||
<port>21022</port> | |||
<reconnectionDelay>10000</reconnectionDelay> | |||
</appender> | |||
<!--数据库日志--> | |||
<!--ch.qos.logback.classic.db.DBAppender--> | |||
<appender name="DB" class="cc.smtweb.framework.core.log.appender.SmtDBAppender"> | |||
<connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource"> | |||
<driverClass>com.mysql.cj.jdbc.Driver</driverClass> | |||
<url>jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false</url> | |||
<user>root</user> | |||
<password>Ncmz@2022_jjkj</password> | |||
<!-- <url>jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false</url>--> | |||
<!-- <user>root</user>--> | |||
<!-- <password>Jujia_@)@!0427</password>--> | |||
</connectionSource> | |||
<filter class="cc.smtweb.framework.core.log.filter.DBFilter"/> | |||
</appender> | |||
<!--显示JDBC日志--> | |||
<logger name="org.springframework.jdbc.core" additivity="false" level="DEBUG" > | |||
<appender-ref ref="CONSOLE" /> | |||
</logger> | |||
<root level="INFO"> | |||
<appender-ref ref="CONSOLE" /> | |||
<appender-ref ref="FILE" /> | |||
<appender-ref ref="FILE-ERROR" /> | |||
<appender-ref ref="SOCKET" /> | |||
<appender-ref ref="DB" /> | |||
</root> | |||
</configuration> |
@@ -0,0 +1,74 @@ | |||
<?xml version="1.0" encoding="UTF-8" ?> | |||
<configuration> | |||
<property name="LOG_PATH" value="/logs"/> | |||
<property name="LOG_FILE" value="${LOG_PATH}/smt.log"/> | |||
<property name="LOG_FILE_ERROR" value="${LOG_PATH}/smt_error.log"/> | |||
<property name="FILE_LOG_CHARSET" value="UTF-8"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN" value="${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.log.zip"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE" value="1GB"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP" value="50GB"/> | |||
<property name="LOGBACK_ROLLINGPOLICY_MAX_HISTORY" value="30"/> | |||
<!--springboot基础配置--> | |||
<include resource="org/springframework/boot/logging/logback/defaults.xml" /> | |||
<include resource="org/springframework/boot/logging/logback/console-appender.xml" /> | |||
<include resource="org/springframework/boot/logging/logback/file-appender.xml" /> | |||
<!--错误日志--> | |||
<appender name="FILE-ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |||
<encoder> | |||
<pattern>${FILE_LOG_PATTERN}</pattern> | |||
<charset>${FILE_LOG_CHARSET}</charset> | |||
</encoder> | |||
<file>${LOG_FILE_ERROR}</file> | |||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | |||
<fileNamePattern>${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.error.log.zip</fileNamePattern> | |||
<cleanHistoryOnStart>${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}</cleanHistoryOnStart> | |||
<maxFileSize>${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-1GB}</maxFileSize> | |||
<totalSizeCap>${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-50GB}</totalSizeCap> | |||
<maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30}</maxHistory> | |||
</rollingPolicy> | |||
<!-- 只打印ERROR日志 --> | |||
<filter class="ch.qos.logback.classic.filter.LevelFilter"> | |||
<level>ERROR</level> | |||
<onMatch>ACCEPT</onMatch> | |||
<onMismatch>DENY</onMismatch> | |||
</filter> | |||
</appender> | |||
<!--远程日志--> | |||
<appender name="SOCKET" class="cc.smtweb.framework.core.log.appender.SmtSocketAppender"> | |||
<remoteHost>localhost</remoteHost> | |||
<port>21022</port> | |||
<reconnectionDelay>10000</reconnectionDelay> | |||
</appender> | |||
<!--数据库日志--> | |||
<!--ch.qos.logback.classic.db.DBAppender--> | |||
<appender name="DB" class="cc.smtweb.framework.core.log.appender.SmtDBAppender"> | |||
<connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource"> | |||
<driverClass>com.mysql.cj.jdbc.Driver</driverClass> | |||
<url>jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false</url> | |||
<user>root</user> | |||
<password>Ncmz@2022_jjkj</password> | |||
<!-- <url>jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false</url>--> | |||
<!-- <user>root</user>--> | |||
<!-- <password>Jujia_@)@!0427</password>--> | |||
</connectionSource> | |||
<filter class="cc.smtweb.framework.core.log.filter.DBFilter"/> | |||
</appender> | |||
<!--显示JDBC日志--> | |||
<logger name="org.springframework.jdbc.core" additivity="false" level="DEBUG" > | |||
<appender-ref ref="CONSOLE" /> | |||
</logger> | |||
<root level="INFO"> | |||
<appender-ref ref="CONSOLE" /> | |||
<appender-ref ref="FILE" /> | |||
<appender-ref ref="FILE-ERROR" /> | |||
<appender-ref ref="SOCKET" /> | |||
<appender-ref ref="DB" /> | |||
</root> | |||
</configuration> |
@@ -18,7 +18,8 @@ window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillCard", { | |||
$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") | |||
withRegisterDeptTypeDisable($model.card.getFormVal("fo_pi_reg_dept")); | |||
// $api.loadOne("partyForm") | |||
if (Number($model.card.getFormVal("fo_state") === 2) || Number($model.card.getFormVal("fo_state") === 1)) { | |||
$refs.saveButton.hide() | |||
} | |||
@@ -27,14 +28,6 @@ window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillCard", { | |||
} | |||
} | |||
$lifecycle.onLoadOne = (dataSet) => { | |||
// 加载机构后 通过不同的登记部门 对字段进行禁用处理 | |||
if (dataSet === "partyForm") { | |||
// 不同登记部门 可填写字段不同 | |||
withRegisterDeptTypeDisable($model.partyForm.getFormVal("pi_reg_dept")); | |||
} | |||
} | |||
// 聚合数据集操作 | |||
Object.assign($engine, { | |||
buildSaveParams(params) {// 将需要保存的数据集 构建到参数里面 | |||
@@ -49,9 +42,9 @@ window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillCard", { | |||
params.businessForm = { | |||
form: $model.businessForm.data.form | |||
} | |||
params.partyForm = { | |||
form: $model.partyForm.data.form | |||
} | |||
// params.partyForm = { | |||
// form: $model.partyForm.data.form | |||
// } | |||
} | |||
}) | |||