3 Commits

Author SHA1 Message Date
apple
c6d15d8094 docs: 数据迁移说明 — 统一为「数据清理」并补充日志表规则
- company-data-imgration.md:self/share/coupon 日志保留范围说明;去掉过时分支任务句
- company-czc231-data-imgration.md:章节标题与鹏然文档对齐

Made-with: Cursor
2026-04-05 12:46:04 +08:00
apple
75b5339540 docs: 宝应晨召春商贸数据迁移与清理说明(czc231)
- 规范日志表表述;补充 wa_order / wa_merchandise 与库字段对应说明

Made-with: Cursor
2026-04-05 12:31:01 +08:00
apple
f5e8652539 feat(czc231): 宝应晨召春商贸环境
- 新增 application-czc231.yml(front/admin),指向 8.136.120.231
- 默认 profile=czc231;合同 PDF sign_contract_chenzhaochun,域名 chenzhaochun.com
- uniapp / 后台 Vue / deploy.conf 同步文档域名与目录
- h5/static/configs.js:寄卖与积分 URL(sn_id、appStr 需部署时填写)
- 已在库内 wa_options.system_config 写入标题实体与 deploy 段落(远程库)

Made-with: Cursor
2026-04-05 11:11:01 +08:00
19 changed files with 265 additions and 17 deletions

View File

@@ -8,8 +8,11 @@ ENV = 'development'
# VUE_APP_BASE_API = 'http://jfanyueadmin.szxingming.com' # VUE_APP_BASE_API = 'http://jfanyueadmin.szxingming.com'
# VUE_APP_BASE_API = 'http://jfadmin.wenjinhui.com' # VUE_APP_BASE_API = 'http://jfadmin.wenjinhui.com'
# VUE_APP_BASE_API = 'http://jfadmin-bsy.bosenyuan.com' # VUE_APP_BASE_API = 'http://jfadmin-bsy.bosenyuan.com'
# czc231 项目(宝应晨召春商贸)
VUE_APP_BASE_API = 'https://admin.chenzhaochun.com'
# hapr191 项目(淮安鹏然商贸) # hapr191 项目(淮安鹏然商贸)
VUE_APP_BASE_API = 'http://jfadmin.hapengran.com' # VUE_APP_BASE_API = 'http://jfadmin.hapengran.com'
# shccd159 项目 # shccd159 项目
# VUE_APP_BASE_API = 'http://ccd-jfadmin.cichude.com' # VUE_APP_BASE_API = 'http://ccd-jfadmin.cichude.com'

View File

@@ -8,8 +8,11 @@ ENV = 'production'
# miao33 项目 # miao33 项目
# VUE_APP_BASE_API = 'http://jfadmin.xiashengjun.com' # VUE_APP_BASE_API = 'http://jfadmin.xiashengjun.com'
# czc231 项目(宝应晨召春商贸)
VUE_APP_BASE_API = 'https://admin.chenzhaochun.com'
# hapr191 项目(淮安鹏然商贸) # hapr191 项目(淮安鹏然商贸)
VUE_APP_BASE_API = 'http://jfadmin.hapengran.com' # VUE_APP_BASE_API = 'http://jfadmin.hapengran.com'
# shccd159 项目 # shccd159 项目
# VUE_APP_BASE_API = 'http://ccd-jfadmin.cichude.com' # VUE_APP_BASE_API = 'http://ccd-jfadmin.cichude.com'

View File

@@ -0,0 +1,59 @@
# CRMEB 相关配置
crmeb:
captchaOn: false # 是否开启行为验证码
asyncConfig: true #是否同步config表数据到redis
server:
port: 30032
sync:
source-id: shop_e
target-mer-id: 7
spring:
datasource:
name: yangtangyoupin
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://8.136.120.231:3306/${spring.datasource.name}?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8
username: yangtangyoupin
password: 5Fn8eWrbYFtAhCZw
redis:
host: 8.136.120.231 #地址
port: 6379 #端口
password: '123456'
timeout: 10000 # 连接超时时间(毫秒)
database: 2 #默认数据库
jedis:
pool:
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 0 # 连接池中的最小空闲连接
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
second:
database: 2 # 微信accessToken存储库
debug: true
logging:
level:
io.swagger.*: error
com.zbjk.crmeb: debug
org.springframework.boot.autoconfigure: ERROR
config: classpath:logback-spring.xml
file:
path: ./logs
# mybatis 配置
mybatis-plus:
# 配置sql打印日志
configuration:
log-impl:
#swagger 配置
swagger:
basic:
enable: true #是否开启界面
check: false #是否打开验证
username: crmeb #访问swagger的账号
password: crmeb.com #访问swagger的密码

View File

@@ -38,7 +38,7 @@ server:
spring: spring:
profiles: profiles:
active: hapr191 active: czc231
servlet: servlet:
multipart: multipart:
max-file-size: 50MB #设置单个文件大小 max-file-size: 50MB #设置单个文件大小

View File

@@ -73,7 +73,7 @@ public class WaUserController {
FileInputStream fileInputStream = null; FileInputStream fileInputStream = null;
try { try {
// 读取模板PDF文件 // 读取模板PDF文件
Resource resource = new ClassPathResource("pdf/sign_contract_pengran.pdf"); Resource resource = new ClassPathResource("pdf/sign_contract_chenzhaochun.pdf");
InputStream pdfInputStream = resource.getInputStream(); InputStream pdfInputStream = resource.getInputStream();
document = PDDocument.load(pdfInputStream); document = PDDocument.load(pdfInputStream);
pdfInputStream.close(); pdfInputStream.close();
@@ -199,7 +199,7 @@ public class WaUserController {
// user.setContract("https://anyue.szxingming.com/"+pdfResultVo.getUrl()); // user.setContract("https://anyue.szxingming.com/"+pdfResultVo.getUrl());
// user.setContract("https://xiashengjun.com/"+pdfResultVo.getUrl()); // user.setContract("https://xiashengjun.com/"+pdfResultVo.getUrl());
// user.setContract("https://ccd.cichude.com/"+pdfResultVo.getUrl()); // user.setContract("https://ccd.cichude.com/"+pdfResultVo.getUrl());
user.setContract("https://hapengran.com/"+pdfResultVo.getUrl()); user.setContract("https://chenzhaochun.com/"+pdfResultVo.getUrl());
waUsersDao.updateById(user); waUsersDao.updateById(user);
} }
return CommonResult.success(pdfResultVo); return CommonResult.success(pdfResultVo);

View File

@@ -0,0 +1,54 @@
crmeb:
imagePath: /www/wwwroot/chenzhaochun.com/ # 晨召春商贸服务器图片路径 斜杠结尾
asyncConfig: true #是否同步config表数据到redis
server:
port: 30031
spring:
datasource:
name: yangtangyoupin
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://8.136.120.231:3306/${spring.datasource.name}?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8
username: yangtangyoupin
password: 5Fn8eWrbYFtAhCZw
redis:
host: 8.136.120.231 #地址
port: 6379 #端口
password: '123456'
timeout: 10000 # 连接超时时间(毫秒)
database: 2 #默认数据库
jedis:
pool:
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 0 # 连接池中的最小空闲连接
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
second:
database: 3 # 微信accessToken存储库
debug: true
logging:
level:
io.swagger.*: error
com.zbjk.crmeb: debug
org.springframework.boot.autoconfigure: ERROR
config: classpath:logback-spring.xml
file:
path: ./logs
# mybatis 配置
mybatis-plus:
# 配置sql打印日志
configuration:
log-impl:
#swagger 配置
swagger:
basic:
enable: true #是否开启界面
check: false #是否打开验证
username: crmeb #访问swagger的账号
password: crmeb.com #访问swagger的密码

View File

@@ -32,7 +32,7 @@ server:
spring: spring:
profiles: profiles:
active: hapr191 active: czc231
servlet: servlet:
multipart: multipart:
max-file-size: 50MB #设置单个文件大小 max-file-size: 50MB #设置单个文件大小

View File

@@ -97,3 +97,20 @@ REMOTE_DIR_ADMIN=/www/wwwroot/jfadmin.hapengran.com
REMOTE_DIR_FRONT=/www/wwwroot/jf.hapengran.com REMOTE_DIR_FRONT=/www/wwwroot/jf.hapengran.com
czc231:
spring:
profiles:
active: czc231
SERVER_HOST=8.136.120.231
SERVER_USER=root
SERVER_PORT=22
REMOTE_DIR_JAR=/www/wwwroot/javaapi
FRONT_LOCAL_PORT=30031
FRONT_JAR_NAME=miao-front-2.2.jar
ADMIN_LOCAL_PORT=30032
ADMIN_JAR_NAME=miao-admin-2.2.jar
REMOTE_DIR_ADMIN=/www/wwwroot/admin.chenzhaochun.com
REMOTE_DIR_FRONT=/www/wwwroot/jf.chenzhaochun.com

View File

@@ -0,0 +1,35 @@
# 公司名称:宝应晨召春商贸
## mysql数据库配置信息
host ip: 8.136.120.231
datasource:
name: yangtangyoupin
username: yangtangyoupin
password: 5Fn8eWrbYFtAhCZw
## 数据清理任务
- 保留的**用户数据范围**wa_users.id in (92485,92494,92815,93125,92917,92322,92807,92599,92991,93048,93089,93180,93187,93185,93147,92806,92871,93184,93017,93023,93109,93177,93202,93086,93156,93197,93050,93058,93112,93210,93115,93195,93203,93192,93188,93183,93181,93178,93175,93174),删除其余用户数据
- wa_order
只保留“created_at >= 2026-03-31”并且 user_id 在用户数据范围的订单,删除其余数据
(库表对应 `seller_id` / `buyer_id`,任一侧在保留用户集合内即保留该订单。)
- wa_merchandise
只保留“created_at >= 2026-03-31”并且seller_id或buyer_id在用户数据范围的寄售商品删除其余数据
(当前库表字段为 `user_id` 表示卖家,实现时按 `user_id` 与日期条件过滤。)
- wa_selfbonus_log
只保留 `user_id` 在用户数据范围内的记录,删除其余数据
- wa_sharebonus_log
只保留 `user_id` 在用户数据范围内的记录,删除其余数据
- wa_coupon_log
只保留 `user_id` 在用户数据范围内的记录,删除其余数据
## 相关文件
- company-info.md

View File

@@ -9,7 +9,7 @@ datasource:
username: yangtangyoupin username: yangtangyoupin
password: 5Fn8eWrbYFtAhCZw password: 5Fn8eWrbYFtAhCZw
## 数据删除任务 ## 数据清理任务
- 保留的**用户数据范围**wa_users.id in (91956,92474,92540,92824,93208,92576,92809,93182,92905,93080,93099,93113,93132,93164,93133,93142,93194,93204,93111,93139,93100,93158,93161,93163,93176,92476,93123,93108,93193,93165,93162,93159),删除其余用户数据 - 保留的**用户数据范围**wa_users.id in (91956,92474,92540,92824,93208,92576,92809,93182,92905,93080,93099,93113,93132,93164,93133,93142,93194,93204,93111,93139,93100,93158,93161,93163,93176,92476,93123,93108,93193,93165,93162,93159),删除其余用户数据
@@ -21,14 +21,14 @@ datasource:
- wa_selfbonus_log - wa_selfbonus_log
只保留 `user_id` 在用户数据范围内的记录,删除其余数据
- wa_sharebonus_log - wa_sharebonus_log
只保留 `user_id` 在用户数据范围内的记录,删除其余数据
- wa_coupon_log - wa_coupon_log
只保留 `user_id` 在用户数据范围内的记录,删除其余数据
- 新建hapr191分支合并shjjy153分支的最新代码到该分支并根据上述信息修改相关需要变更项使符合该新公司项目环境
## 相关文件 ## 相关文件

59
company-info-czc231.md Normal file
View File

@@ -0,0 +1,59 @@
## 公司名称:宝应晨召春商贸
host ip: 8.136.120.231
### 数据库 wa_options`name` = `system_config`
-`value`JSON中的站点 **title** 改为公司名称的 **HTML 十进制实体**,
- 同步修改 JSON 内与各环境相关的 URL / 路径项,与下文部署信息一致(寄卖 API、后台、H5、积分商城域名及服务器目录等
### `h5/static/configs.js` 中与租户绑定的项
- **sn_id**、**appStr**:须与当前晨召春商贸环境一致(积分商城租户 / `wa_options` 与寄卖后台 `APP_SECRET` 等)。
| 配置项 | 示例 / 说明 |
|--------|-------------|
| A. 寄卖商城 API | `https://admin.chenzhaochun.com/api` |
| B. 寄卖商城后台 | `https://admin.chenzhaochun.com` |
| C. 寄卖 H5 | `https://chenzhaochun.com/` |
| D. 积分商城 | `https://jf.chenzhaochun.com` |
| E. 服务器积分商城目录 | `/www/wwwroot/jf.chenzhaochun.com` |
| F. 服务器寄卖 H5 目录 | `/www/wwwroot/chenzhaochun.com` |
| G. 服务器寄卖后台目录 | `/www/wwwroot/admin.chenzhaochun.com` |
### crmeb-front模块变更
- 1. profile: czc231
- 2. profile file: application-czc231.yml
- 3. **PDF合同模板文件路径**pdf/sign_contract_chenzhaochun.pdf
- 4. 用户PDF合同url地址前缀/落库域名https://chenzhaochun.com/
- 5. imagePath: /www/wwwroot/chenzhaochun.com/
### uniapp前端配置变更
- 1. 积分商城domainhttps://jf.chenzhaochun.com
- 2. 抢购页面跳转地址https://chenzhaochun.com
- 2. **PDF合同预览文件路径** /static/sign_contract_chenzhaochun.pdf
### **修改任务**
- 新建czc231分支合并hapr191分支的最新代码到该分支并根据上述信息修改相关需要变更项使符合该新公司项目环境
## 相关文件
- change-list-shjjy153.md
- compare-shjjy153-shccd159.md
、、、启动积分商城api服务
cd /www/wwwroot/javaapi
nohup java -Xms128m -Xmx256m -jar miao-front-2.2.jar > front.log & tail -f front.log
、、、

View File

@@ -6,7 +6,8 @@
// let domain = 'https://jfanyue.szxingming.com' // let domain = 'https://jfanyue.szxingming.com'
// let domain = 'https://jf.wenjinhui.com' // let domain = 'https://jf.wenjinhui.com'
// let domain = 'https://jjy-jf.fwxgpt.com' // let domain = 'https://jjy-jf.fwxgpt.com'
let domain = 'https://jf.hapengran.com' let domain = 'https://jf.chenzhaochun.com'
// let domain = 'https://jf.hapengran.com'
// let domain = 'https://jjy-jf.uj345.com' // let domain = 'https://jjy-jf.uj345.com'
// let domain = 'https://ccd-jf.cichude.com' // let domain = 'https://ccd-jf.cichude.com'
@@ -16,7 +17,7 @@ module.exports = {
// HTTP_REQUEST_URL:'', // HTTP_REQUEST_URL:'',
HTTP_REQUEST_URL: domain, HTTP_REQUEST_URL: domain,
// H5商城地址 // H5商城地址
HTTP_H5_URL: 'https://jf.hapengran.com', HTTP_H5_URL: 'https://jf.chenzhaochun.com',
// #endif // #endif
// #ifdef H5 // #ifdef H5
HTTP_REQUEST_URL:domain, HTTP_REQUEST_URL:domain,

View File

@@ -0,0 +1,17 @@
/**
* 宝应晨召春商贸 · 积分商城 H5 静态配置(部署目录见 company-info-czc231.md
*
* sn_id、appStr 必须与当前租户一致(寄卖 wa_options / 后台 APP_SECRET 等),
* 上线前请在后台核对后填写,切勿留空。
*/
var sn_id = '';
var appStr = '';
/** A. 寄卖商城 API */
var CONSIGNMENT_API = 'https://admin.chenzhaochun.com/api';
/** B. 寄卖商城后台 */
var CONSIGNMENT_ADMIN = 'https://admin.chenzhaochun.com';
/** C. 寄卖 H5 */
var CONSIGNMENT_H5 = 'https://chenzhaochun.com/';
/** D. 积分商城 */
var INTEGRAL_MALL = 'https://jf.chenzhaochun.com';

View File

@@ -34,7 +34,7 @@
export default { export default {
data() { data() {
return { return {
pdfUrl: '/static/sign_contract_pengran.pdf', pdfUrl: '/static/sign_contract_chenzhaochun.pdf',
userId: '', userId: '',
isMobile: false, isMobile: false,
usePdfJs: false, usePdfJs: false,

View File

@@ -338,7 +338,7 @@ export default {
// 跳转到抢购页面 // 跳转到抢购页面
goToRushBuy() { goToRushBuy() {
// #ifdef H5 // #ifdef H5
window.location.href = 'https://hapengran.com/?#/pages/personal/index' window.location.href = 'https://chenzhaochun.com/?#/pages/personal/index'
// window.location.href = 'https://ccd.cichude.com/?#/pages/personal/index' // window.location.href = 'https://ccd.cichude.com/?#/pages/personal/index'
// window.location.href = 'https://shop.wenjinhui.com/?#/pages/personal/index' // window.location.href = 'https://shop.wenjinhui.com/?#/pages/personal/index'
//window.location.href = 'https://anyue.szxingming.com/?#/pages/personal/index' //window.location.href = 'https://anyue.szxingming.com/?#/pages/personal/index'
@@ -347,7 +347,7 @@ export default {
// #endif // #endif
// #ifndef H5 // #ifndef H5
uni.navigateTo({ uni.navigateTo({
url: '/pages/web-view/index?url=' + encodeURIComponent('https://hapengran.com/?#/pages/personal/index') url: '/pages/web-view/index?url=' + encodeURIComponent('https://chenzhaochun.com/?#/pages/personal/index')
}) })
// #endif // #endif
}, },

View File

@@ -16,7 +16,7 @@ export default {
}, },
onLoad(options) { onLoad(options) {
const url = options && options.url ? decodeURIComponent(options.url) : '/static/sign_contract_pengran.pdf' const url = options && options.url ? decodeURIComponent(options.url) : '/static/sign_contract_chenzhaochun.pdf'
this.pdfUrl = url this.pdfUrl = url
}, },

View File

@@ -360,7 +360,7 @@ export default {
}); });
// 返回 // 返回
setTimeout(() => { setTimeout(() => {
window.location.href = 'https://hapengran.com/?#/pages/rushing/index' + (this.userId ? ('?user_id=' + this.userId) : '') window.location.href = 'https://chenzhaochun.com/?#/pages/rushing/index' + (this.userId ? ('?user_id=' + this.userId) : '')
// window.location.href = 'https://shop.wenjinhui.com/?#/pages/rushing/index' + (this.userId ? ('?user_id=' + this.userId) : '') // window.location.href = 'https://shop.wenjinhui.com/?#/pages/rushing/index' + (this.userId ? ('?user_id=' + this.userId) : '')
// window.location.href = 'https://anyue.szxingming.com/?#/pages/rushing/index' + (this.userId ? ('?user_id=' + this.userId) : '') // window.location.href = 'https://anyue.szxingming.com/?#/pages/rushing/index' + (this.userId ? ('?user_id=' + this.userId) : '')
// window.location.href = 'https://xiashengjun.com/?#/pages/rushing/index' + (this.userId ? ('?user_id=' + this.userId) : '') // window.location.href = 'https://xiashengjun.com/?#/pages/rushing/index' + (this.userId ? ('?user_id=' + this.userId) : '')