Commit 18039ee8 by 吴迪

【修改】提交代码

parent c1036d3b
......@@ -783,9 +783,212 @@ update news set showtime= replace(showtime,'/','-');
alter table index_carousel_manage add is_show varchar(2) not null default (1);
/*
Navicat Premium Data Transfer
Source Server : 中国编码官网
Source Server Type : SQL Server
Source Server Version : 14003223
Source Host : 118.190.181.128,51433:1433
Source Catalog : gs108
Source Schema : dbo
Target Server Type : SQL Server
Target Server Version : 14003223
File Encoding : 65001
Date: 22/12/2021 21:28:44
*/
-- ----------------------------
-- Table structure for user_function_binding
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[user_function_binding]') AND type IN ('U'))
DROP TABLE [dbo].[user_function_binding]
GO
CREATE TABLE [dbo].[user_function_binding] (
[id] int IDENTITY NOT NULL,
[user_id] int NOT NULL,
[func_id] int NOT NULL
)
GO
ALTER TABLE [dbo].[user_function_binding] SET (LOCK_ESCALATION = TABLE)
GO
-- ----------------------------
-- Records of [user_function_binding]
-- ----------------------------
SET IDENTITY_INSERT [dbo].[user_function_binding] ON
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'16', N'1', N'1')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'17', N'1', N'2')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'18', N'1', N'3')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'19', N'1', N'4')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'20', N'1', N'5')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'21', N'1', N'6')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'22', N'1', N'7')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'23', N'1', N'8')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'24', N'1', N'9')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'34', N'9', N'1')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'35', N'9', N'2')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'36', N'9', N'3')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'37', N'9', N'4')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'38', N'9', N'5')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'39', N'9', N'6')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'40', N'9', N'7')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'41', N'9', N'8')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'42', N'9', N'9')
GO
SET IDENTITY_INSERT [dbo].[user_function_binding] OFF
GO
/*
Navicat Premium Data Transfer
Source Server : 中国编码官网
Source Server Type : SQL Server
Source Server Version : 14003223
Source Host : 118.190.181.128,51433:1433
Source Catalog : gs108
Source Schema : dbo
Target Server Type : SQL Server
Target Server Version : 14003223
File Encoding : 65001
Date: 22/12/2021 21:28:44
*/
-- ----------------------------
-- Table structure for user_function_binding
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[user_function_binding]') AND type IN ('U'))
DROP TABLE [dbo].[user_function_binding]
GO
CREATE TABLE [dbo].[user_function_binding] (
[id] int IDENTITY NOT NULL,
[user_id] int NOT NULL,
[func_id] int NOT NULL
)
GO
ALTER TABLE [dbo].[user_function_binding] SET (LOCK_ESCALATION = TABLE)
GO
-- ----------------------------
-- Records of [user_function_binding]
-- ----------------------------
SET IDENTITY_INSERT [dbo].[user_function_binding] ON
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'16', N'1', N'1')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'17', N'1', N'2')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'18', N'1', N'3')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'19', N'1', N'4')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'20', N'1', N'5')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'21', N'1', N'6')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'22', N'1', N'7')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'23', N'1', N'8')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'24', N'1', N'9')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'34', N'9', N'1')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'35', N'9', N'2')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'36', N'9', N'3')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'37', N'9', N'4')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'38', N'9', N'5')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'39', N'9', N'6')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'40', N'9', N'7')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'41', N'9', N'8')
GO
INSERT INTO [dbo].[user_function_binding] ([id], [user_id], [func_id]) VALUES (N'42', N'9', N'9')
GO
SET IDENTITY_INSERT [dbo].[user_function_binding] OFF
GO
视图/零售的表
物流的表
gs1_standard /
##文件夹内容上传 2021-12-18 Movie ./redis-server.exe redis.windows.conf ./redis-server.exe redis.windows-service.conf
......@@ -800,3 +1003,9 @@ https://www.gds.org.cn/
http://www.gds.org.cn/login.aspx更换成了:
https://www.gds.org.cn/
培训计划表做数据清洗
官网旧用户手机号有问题
......@@ -23,7 +23,7 @@
<java.version>1.8</java.version>
<mybatisplus.version>3.3.1</mybatisplus.version>
<mysql.version>8.0.17</mysql.version>
<mssql.version>4.0</mssql.version>
<mssql.version>3.0</mssql.version>
<oracle.version>11.2.0.3</oracle.version>
<druid.version>1.1.13</druid.version>
<quartz.version>2.3.0</quartz.version>
......@@ -109,9 +109,9 @@
</dependency>
<!--mssql驱动-->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<groupId>com.microsoft</groupId>
<artifactId>sqljdbc4</artifactId>
<version>${mssql.version}</version>
<version>3.0</version>
</dependency>
<!--postgresql驱动-->
<dependency>
......
......@@ -30,6 +30,9 @@ public class DomainListController {
@Autowired
private DomainListProperties domainListProperties;
@Value("${file.request.prefix}")
private String fileRequestPrefix;
@RequestMapping("/api/list")
// @RequiresPermissions("manage:doc:list")
......@@ -38,5 +41,12 @@ public class DomainListController {
return R.ok().put("data", domainListProperties.getDomain());
}
@RequestMapping("/api/filePath")
// @RequiresPermissions("manage:doc:list")
public R filePath() {
return R.ok().put("data", fileRequestPrefix);
}
}
......@@ -5,8 +5,10 @@ import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import io.office.modules.app.annotation.Login;
import io.office.modules.sys.controller.AbstractController;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -121,8 +123,16 @@ public class MemberController extends AbstractController {
public R update(@RequestBody MemberEntity member){
MemberEntity memberUser = getMemberUser();
System.out.println(memberUser);
memberService.updateById(member);
MemberEntity memberUpdate = new MemberEntity();
//System.out.println(memberUser);
UpdateWrapper<MemberEntity> memberEntityUpdateWrapper = new UpdateWrapper<>();
if(StringUtils.isNoneBlank(member.getEmail())) {
memberEntityUpdateWrapper.eq("id",member.getId());
memberUpdate.setEmail(member.getEmail());
}
memberService.update(memberUpdate,memberEntityUpdateWrapper);
return R.ok();
}
......
package io.office.modules.manage.dao;
import io.office.datasource.annotation.DataSource;
import io.office.modules.manage.entity.BikefirmEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.office.modules.manage.vo.request.BikeFirmVo;
......@@ -18,6 +19,7 @@ import java.util.List;
public interface BikefirmDao extends BaseMapper<BikefirmEntity> {
@DataSource("slave1")
List<BikeFirmVo> getBikeFirm(BikeFirmVo bikeFirmVo);
}
package io.office.modules.manage.dao;
import io.office.modules.manage.entity.LogLoginEntity;
import io.office.modules.manage.entity.MemberEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.office.modules.manage.entity.MemberEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.data.repository.query.Param;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESKeySpec;
import java.io.*;
import java.security.SecureRandom;
import java.util.Scanner;
/**
* ${comments}
*
......
package io.office.modules.manage.utils;
/**
*
* 
 @description:
*
* @author wudi
* @date 12:50 2022/11/8
*/
public class SqlUtil {
public static void main(String[] args) {
}
}
......@@ -52,9 +52,9 @@ dynamic:
datasource:
slave1:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://192.168.0.85:1433;DatabaseName=center_sync
username: test
password: test123
url: jdbc:sqlserver://219.232.114.86:1433;DatabaseName=prd
username: prd_login
password: ryr@3647we
slave2:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://192.168.0.85:1433;DatabaseName=gs1cn_db
......
......@@ -14,7 +14,7 @@ spring:
name: GS1OfficeWebSit
# 环境 dev|test|prod
profiles:
active: prod
active: dev
# jackson时间格式化
jackson:
time-zone: GMT+8
......
......@@ -57,7 +57,7 @@
and b.code= #{code}
</if>
<if test="firmName!='' and firmName!=null">
and firm_name_real like concat('%',#{firmName},'%')
and firm_name_real like '%'+#{firmName}+'%'
</if>
order by id desc
</select>
......
......@@ -11,14 +11,13 @@ import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class JwtTest {
@Autowired
private JwtUtils jwtUtils;
@Test
public void test() {
String token = jwtUtils.generateToken(1);
System.out.println(token);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment