Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sa_aidea
Aidea
Commits
ac37690f
Commit
ac37690f
authored
Sep 24, 2020
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init aidea products by 20200922
parent
d65c82f6
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
447 additions
and
437 deletions
+447
-437
ConsultSheetMapper.xml
...n/java/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
+109
-109
ConsultSheetMapper.xml
...lasses/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
+113
-113
common-test.properties
cftech-common-web/src/main/resources/common-test.properties
+3
-3
ueditor.config.js
...sets/adminlte/plugins/ueditor-min-1.4.3/ueditor.config.js
+1
-1
OKHttpUtils.java
...ommon/src/main/java/com/cftech/core/util/OKHttpUtils.java
+1
-1
materialUploadform.html
.../main/webapp/WEB-INF/views/upload/materialUploadform.html
+3
-0
pom.xml
portal-web/pom.xml
+6
-0
web.xml
portal-web/src/main/webapp/WEB-INF/web.xml
+1
-1
orgunitadd.html
.../main/webapp/WEB-INF/views/managerorgunit/orgunitadd.html
+13
-13
OrgUnitController.java
.../main/java/com/cftech/base/org/web/OrgUnitController.java
+22
-23
QyTokenUtil.java
...odule/src/main/java/com/cftech/core/util/QyTokenUtil.java
+175
-173
No files found.
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
View file @
ac37690f
...
...
@@ -3,27 +3,27 @@
<mapper
namespace=
"com.cftech.consultsheet.dao.ConsultSheetMapper"
>
<resultMap
id=
"resultMap"
type=
"com.cftech.consultsheet.model.ConsultSheet"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"consult_id"
property=
"consultId"
/>
<result
column=
"user_name"
property=
"userName"
/>
<result
column=
"number_id"
property=
"numberId"
/>
<result
column=
"benebit_id"
property=
"benebitId"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"iphone"
property=
"iPhone"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
<result
column=
"prescription"
property=
"Prescription"
/>
<result
column=
"doctor_id"
property=
"doctorId"
/>
<result
column=
"customer_id"
property=
"customerId"
/>
<result
column=
"illness"
property=
"illness"
/>
<result
column=
"accounts_id"
property=
"accountsId"
/>
<result
column=
"del_flag"
property=
"delFlag"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"description"
property=
"description"
/>
<result
column=
"create_by"
property=
"createBy"
/>
<result
column=
"update_by"
property=
"updateBy"
/>
</resultMap>
<id
column=
"id"
property=
"id"
/>
<result
column=
"consult_id"
property=
"consultId"
/>
<result
column=
"user_name"
property=
"userName"
/>
<result
column=
"number_id"
property=
"numberId"
/>
<result
column=
"benebit_id"
property=
"benebitId"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"iphone"
property=
"iPhone"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
<result
column=
"prescription"
property=
"Prescription"
/>
<result
column=
"doctor_id"
property=
"doctorId"
/>
<result
column=
"customer_id"
property=
"customerId"
/>
<result
column=
"illness"
property=
"illness"
/>
<result
column=
"accounts_id"
property=
"accountsId"
/>
<result
column=
"del_flag"
property=
"delFlag"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"description"
property=
"description"
/>
<result
column=
"create_by"
property=
"createBy"
/>
<result
column=
"update_by"
property=
"updateBy"
/>
</resultMap>
<sql
id=
"sqlWhere"
>
<if
test=
"conds!=null"
>
...
...
@@ -75,7 +75,7 @@
update_by
</sql>
<insert
id=
"save"
parameterType=
"com.cftech.consultsheet.model.ConsultSheet"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into t_aidea_consult_sheet
...
...
@@ -84,28 +84,28 @@
)
values
(
#{id, jdbcType=BIGINT},
#{id, jdbcType=BIGINT},
#{consultId, jdbcType=BIGINT},
#{userName, jdbcType=VARCHAR},
#{numberId, jdbcType=VARCHAR},
now(),
#{sex, jdbcType=BIGINT},
#{iPhone, jdbcType=VARCHAR},
#{pastRecords, jdbcType=VARCHAR},
#{Prescription, jdbcType=VARCHAR},
#{doctorId, jdbcType=BIGINT},
#{customerId, jdbcType=BIGINT},
#{illness, jdbcType=BIGINT},
#{accountsId, jdbcType=BIGINT},
#{delFlag, jdbcType=TINYINT},
#{status, jdbcType=VARCHAR},
now(),
now(),
#{description, jdbcType=VARCHAR},
#{createBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT}
)
#{consultId, jdbcType=BIGINT},
#{userName, jdbcType=VARCHAR},
#{numberId, jdbcType=VARCHAR},
now(),
#{sex, jdbcType=BIGINT},
#{iPhone, jdbcType=VARCHAR},
#{pastRecords, jdbcType=VARCHAR},
#{Prescription, jdbcType=VARCHAR},
#{doctorId, jdbcType=BIGINT},
#{customerId, jdbcType=BIGINT},
#{illness, jdbcType=BIGINT},
#{accountsId, jdbcType=BIGINT},
#{delFlag, jdbcType=TINYINT},
#{status, jdbcType=VARCHAR},
now(),
now(),
#{description, jdbcType=VARCHAR},
#{createBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT}
)
</insert>
<select
id=
"fetchById"
parameterType=
"java.lang.Long"
resultMap=
"resultMap"
>
...
...
@@ -116,82 +116,82 @@
</select>
<select
id=
"count"
parameterType=
"java.util.Map"
resultType=
"java.lang.Integer"
>
SELECT COUNT(1) FROM t_aidea_consult_sheet
<include
refid=
"sqlWhere"
/>
SELECT COUNT(1) FROM t_aidea_consult_sheet
<include
refid=
"sqlWhere"
/>
</select>
<select
id=
"fetchSearchByPage"
parameterType=
"java.util.Map"
resultMap=
"resultMap"
>
SELECT
<include
refid=
"sqlColumns"
/>
FROM t_aidea_consult_sheet
<include
refid=
"sqlWhere"
/>
<if
test=
"sort!=null"
>
ORDER BY ${sort.param} ${sort.type}
</if>
SELECT
<include
refid=
"sqlColumns"
/>
FROM t_aidea_consult_sheet
<include
refid=
"sqlWhere"
/>
<if
test=
"sort!=null"
>
ORDER BY ${sort.param} ${sort.type}
</if>
<if
test=
"limit>0"
>
limit #{offset},#{limit}
</if>
</select>
<update
id=
"update"
parameterType=
"com.cftech.consultsheet.model.ConsultSheet"
>
update t_aidea_consult_sheet
<set>
<if
test=
"id != null"
>
id = #{id, jdbcType=BIGINT},
</if>
<if
test=
"id != null"
>
id = #{id, jdbcType=BIGINT},
</if>
<if
test=
"consultId != null"
>
consult_id = #{consultId, jdbcType=BIGINT},
</if>
<if
test=
"userName != null"
>
user_name = #{userName, jdbcType=VARCHAR},
</if>
<if
test=
"numberId != null"
>
number_id = #{numberId, jdbcType=VARCHAR},
</if>
<if
test=
"benebitId != null"
>
benebit_id = #{benebitId, jdbcType=TIMESTAMP},
</if>
<if
test=
"sex != null"
>
sex = #{sex, jdbcType=BIGINT},
</if>
<if
test=
"iPhone != null"
>
i_phone = #{iPhone, jdbcType=VARCHAR},
</if>
<if
test=
"pastRecords != null"
>
past_records = #{pastRecords, jdbcType=VARCHAR},
</if>
<if
test=
"Prescription != null"
>
prescription = #{Prescription, jdbcType=VARCHAR},
</if>
<if
test=
"doctorId != null"
>
doctor_id = #{doctorId, jdbcType=BIGINT},
</if>
<if
test=
"customerId != null"
>
customer_id = #{customerId, jdbcType=BIGINT},
</if>
<if
test=
"illness != null"
>
illness = #{illness, jdbcType=BIGINT},
</if>
<if
test=
"accountsId != null"
>
accounts_id = #{accountsId, jdbcType=BIGINT},
</if>
<if
test=
"delFlag != null"
>
del_flag = #{delFlag, jdbcType=TINYINT},
</if>
<if
test=
"status != null"
>
status = #{status, jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime, jdbcType=TIMESTAMP},
</if>
<if
test=
"description != null"
>
description = #{description, jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy, jdbcType=BIGINT},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy, jdbcType=BIGINT},
</if>
</set>
<if
test=
"consultId != null"
>
consult_id = #{consultId, jdbcType=BIGINT},
</if>
<if
test=
"userName != null"
>
user_name = #{userName, jdbcType=VARCHAR},
</if>
<if
test=
"numberId != null"
>
number_id = #{numberId, jdbcType=VARCHAR},
</if>
<if
test=
"benebitId != null"
>
benebit_id = #{benebitId, jdbcType=TIMESTAMP},
</if>
<if
test=
"sex != null"
>
sex = #{sex, jdbcType=BIGINT},
</if>
<if
test=
"iPhone != null"
>
i_phone = #{iPhone, jdbcType=VARCHAR},
</if>
<if
test=
"pastRecords != null"
>
past_records = #{pastRecords, jdbcType=VARCHAR},
</if>
<if
test=
"Prescription != null"
>
prescription = #{Prescription, jdbcType=VARCHAR},
</if>
<if
test=
"doctorId != null"
>
doctor_id = #{doctorId, jdbcType=BIGINT},
</if>
<if
test=
"customerId != null"
>
customer_id = #{customerId, jdbcType=BIGINT},
</if>
<if
test=
"illness != null"
>
illness = #{illness, jdbcType=BIGINT},
</if>
<if
test=
"accountsId != null"
>
accounts_id = #{accountsId, jdbcType=BIGINT},
</if>
<if
test=
"delFlag != null"
>
del_flag = #{delFlag, jdbcType=TINYINT},
</if>
<if
test=
"status != null"
>
status = #{status, jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime, jdbcType=TIMESTAMP},
</if>
<if
test=
"description != null"
>
description = #{description, jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy, jdbcType=BIGINT},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy, jdbcType=BIGINT},
</if>
</set>
where id=#{id,jdbcType=BIGINT}
</update>
...
...
aidea-modules/consult-module/target/classes/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
View file @
ac37690f
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.cftech.consult
S
heet.dao.ConsultSheetMapper"
>
<mapper
namespace=
"com.cftech.consult
s
heet.dao.ConsultSheetMapper"
>
<resultMap
id=
"resultMap"
type=
"com.cftech.consult
S
heet.model.ConsultSheet"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"consult_id"
property=
"consultId"
/>
<result
column=
"user_name"
property=
"userName"
/>
<result
column=
"number_id"
property=
"numberId"
/>
<result
column=
"benebit_id"
property=
"benebitId"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"iphone"
property=
"iPhone"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
<result
column=
"prescription"
property=
"Prescription"
/>
<result
column=
"doctor_id"
property=
"doctorId"
/>
<result
column=
"customer_id"
property=
"customerId"
/>
<result
column=
"illness"
property=
"illness"
/>
<result
column=
"accounts_id"
property=
"accountsId"
/>
<result
column=
"del_flag"
property=
"delFlag"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"description"
property=
"description"
/>
<result
column=
"create_by"
property=
"createBy"
/>
<result
column=
"update_by"
property=
"updateBy"
/>
</resultMap>
<resultMap
id=
"resultMap"
type=
"com.cftech.consult
s
heet.model.ConsultSheet"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"consult_id"
property=
"consultId"
/>
<result
column=
"user_name"
property=
"userName"
/>
<result
column=
"number_id"
property=
"numberId"
/>
<result
column=
"benebit_id"
property=
"benebitId"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"iphone"
property=
"iPhone"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
<result
column=
"prescription"
property=
"Prescription"
/>
<result
column=
"doctor_id"
property=
"doctorId"
/>
<result
column=
"customer_id"
property=
"customerId"
/>
<result
column=
"illness"
property=
"illness"
/>
<result
column=
"accounts_id"
property=
"accountsId"
/>
<result
column=
"del_flag"
property=
"delFlag"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"description"
property=
"description"
/>
<result
column=
"create_by"
property=
"createBy"
/>
<result
column=
"update_by"
property=
"updateBy"
/>
</resultMap>
<sql
id=
"sqlWhere"
>
<if
test=
"conds!=null"
>
...
...
@@ -75,8 +75,8 @@
update_by
</sql>
<insert
id=
"save"
parameterType=
"com.cftech.consult
S
heet.model.ConsultSheet"
useGeneratedKeys=
"true"
<insert
id=
"save"
parameterType=
"com.cftech.consult
s
heet.model.ConsultSheet"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into t_aidea_consult_sheet
(
...
...
@@ -84,28 +84,28 @@
)
values
(
#{id, jdbcType=BIGINT},
#{id, jdbcType=BIGINT},
#{consultId, jdbcType=BIGINT},
#{userName, jdbcType=VARCHAR},
#{numberId, jdbcType=VARCHAR},
now(),
#{sex, jdbcType=BIGINT},
#{iPhone, jdbcType=VARCHAR},
#{pastRecords, jdbcType=VARCHAR},
#{Prescription, jdbcType=VARCHAR},
#{doctorId, jdbcType=BIGINT},
#{customerId, jdbcType=BIGINT},
#{illness, jdbcType=BIGINT},
#{accountsId, jdbcType=BIGINT},
#{delFlag, jdbcType=TINYINT},
#{status, jdbcType=VARCHAR},
now(),
now(),
#{description, jdbcType=VARCHAR},
#{createBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT}
)
#{consultId, jdbcType=BIGINT},
#{userName, jdbcType=VARCHAR},
#{numberId, jdbcType=VARCHAR},
now(),
#{sex, jdbcType=BIGINT},
#{iPhone, jdbcType=VARCHAR},
#{pastRecords, jdbcType=VARCHAR},
#{Prescription, jdbcType=VARCHAR},
#{doctorId, jdbcType=BIGINT},
#{customerId, jdbcType=BIGINT},
#{illness, jdbcType=BIGINT},
#{accountsId, jdbcType=BIGINT},
#{delFlag, jdbcType=TINYINT},
#{status, jdbcType=VARCHAR},
now(),
now(),
#{description, jdbcType=VARCHAR},
#{createBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT}
)
</insert>
<select
id=
"fetchById"
parameterType=
"java.lang.Long"
resultMap=
"resultMap"
>
...
...
@@ -116,82 +116,82 @@
</select>
<select
id=
"count"
parameterType=
"java.util.Map"
resultType=
"java.lang.Integer"
>
SELECT COUNT(1) FROM t_aidea_consult_sheet
<include
refid=
"sqlWhere"
/>
SELECT COUNT(1) FROM t_aidea_consult_sheet
<include
refid=
"sqlWhere"
/>
</select>
<select
id=
"fetchSearchByPage"
parameterType=
"java.util.Map"
resultMap=
"resultMap"
>
SELECT
<include
refid=
"sqlColumns"
/>
FROM t_aidea_consult_sheet
<include
refid=
"sqlWhere"
/>
<if
test=
"sort!=null"
>
ORDER BY ${sort.param} ${sort.type}
</if>
SELECT
<include
refid=
"sqlColumns"
/>
FROM t_aidea_consult_sheet
<include
refid=
"sqlWhere"
/>
<if
test=
"sort!=null"
>
ORDER BY ${sort.param} ${sort.type}
</if>
<if
test=
"limit>0"
>
limit #{offset},#{limit}
</if>
</select>
<update
id=
"update"
parameterType=
"com.cftech.consult
S
heet.model.ConsultSheet"
>
<update
id=
"update"
parameterType=
"com.cftech.consult
s
heet.model.ConsultSheet"
>
update t_aidea_consult_sheet
<set>
<if
test=
"id != null"
>
id = #{id, jdbcType=BIGINT},
</if>
<if
test=
"id != null"
>
id = #{id, jdbcType=BIGINT},
</if>
<if
test=
"consultId != null"
>
consult_id = #{consultId, jdbcType=BIGINT},
</if>
<if
test=
"userName != null"
>
user_name = #{userName, jdbcType=VARCHAR},
</if>
<if
test=
"numberId != null"
>
number_id = #{numberId, jdbcType=VARCHAR},
</if>
<if
test=
"benebitId != null"
>
benebit_id = #{benebitId, jdbcType=TIMESTAMP},
</if>
<if
test=
"sex != null"
>
sex = #{sex, jdbcType=BIGINT},
</if>
<if
test=
"iPhone != null"
>
i_phone = #{iPhone, jdbcType=VARCHAR},
</if>
<if
test=
"pastRecords != null"
>
past_records = #{pastRecords, jdbcType=VARCHAR},
</if>
<if
test=
"Prescription != null"
>
prescription = #{Prescription, jdbcType=VARCHAR},
</if>
<if
test=
"doctorId != null"
>
doctor_id = #{doctorId, jdbcType=BIGINT},
</if>
<if
test=
"customerId != null"
>
customer_id = #{customerId, jdbcType=BIGINT},
</if>
<if
test=
"illness != null"
>
illness = #{illness, jdbcType=BIGINT},
</if>
<if
test=
"accountsId != null"
>
accounts_id = #{accountsId, jdbcType=BIGINT},
</if>
<if
test=
"delFlag != null"
>
del_flag = #{delFlag, jdbcType=TINYINT},
</if>
<if
test=
"status != null"
>
status = #{status, jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime, jdbcType=TIMESTAMP},
</if>
<if
test=
"description != null"
>
description = #{description, jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy, jdbcType=BIGINT},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy, jdbcType=BIGINT},
</if>
</set>
<if
test=
"consultId != null"
>
consult_id = #{consultId, jdbcType=BIGINT},
</if>
<if
test=
"userName != null"
>
user_name = #{userName, jdbcType=VARCHAR},
</if>
<if
test=
"numberId != null"
>
number_id = #{numberId, jdbcType=VARCHAR},
</if>
<if
test=
"benebitId != null"
>
benebit_id = #{benebitId, jdbcType=TIMESTAMP},
</if>
<if
test=
"sex != null"
>
sex = #{sex, jdbcType=BIGINT},
</if>
<if
test=
"iPhone != null"
>
i_phone = #{iPhone, jdbcType=VARCHAR},
</if>
<if
test=
"pastRecords != null"
>
past_records = #{pastRecords, jdbcType=VARCHAR},
</if>
<if
test=
"Prescription != null"
>
prescription = #{Prescription, jdbcType=VARCHAR},
</if>
<if
test=
"doctorId != null"
>
doctor_id = #{doctorId, jdbcType=BIGINT},
</if>
<if
test=
"customerId != null"
>
customer_id = #{customerId, jdbcType=BIGINT},
</if>
<if
test=
"illness != null"
>
illness = #{illness, jdbcType=BIGINT},
</if>
<if
test=
"accountsId != null"
>
accounts_id = #{accountsId, jdbcType=BIGINT},
</if>
<if
test=
"delFlag != null"
>
del_flag = #{delFlag, jdbcType=TINYINT},
</if>
<if
test=
"status != null"
>
status = #{status, jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime, jdbcType=TIMESTAMP},
</if>
<if
test=
"description != null"
>
description = #{description, jdbcType=VARCHAR},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy, jdbcType=BIGINT},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy, jdbcType=BIGINT},
</if>
</set>
where id=#{id,jdbcType=BIGINT}
</update>
...
...
cftech-common-web/src/main/resources/common-test.properties
View file @
ac37690f
...
...
@@ -39,8 +39,8 @@ WOEK_TEMPLATE_MESSAGE=8m-_tt_EqoQO-wsE6_JLJdn3nO15_hgUp9mLTujz5RU
userfiles.imgdir
=
E:
\\
fileResource
#\u56FE\u7247\u8BBF\u95EE\u5730\u5740
IMAGEURL
=
/schaeffler/mobile/qybase/showPic?picFileName={PICFILENAME}
ROOT_ORG_NAME
=
\u
4E1C
\u
660C
\u
96C6
\u
56E2
ROOT_ORG_NAME
=
\u
827E
\u
8FEA
\u
836F
\u
4E1A
IMAGEURL
=
/aidea/mobile/qybase/showPic?picFileName={PICFILENAME}
ROOT_PAPERCATEGORY_NAME
=
\u
95EE
\u5377\u
7C7B
\u
578B
ROOT_QUESTIONSCATEGORY_NAME
=
\u
95EE
\u9898\u
7C7B
\u
522B
ROOT_MATERIALCATEGORY_NAME
=
\u
7D20
\u6750\u
7C7B
\u
522B
...
...
@@ -106,7 +106,7 @@ orderDeliverGoodsTemplateId=TH3I5prFYPC54M14zFJfgN4gvjx8SpJayctIHmzThwg
#\u670D\u52A1\u5B8C\u6210\u901A\u77E5
serverEndTemplateId
=
7L1KIroXNxejxotFTzll-dVLdo1xbmqoiAo7UmDKWcc
PRODUCT_CLASSIFY_FATHER_NAME
=
Ʒ
PRODUCT_CLASSIFY_FATHER_NAME
=
\u
FFFD
\u
FFFD
\u
01B7
\u
FFFD
\u
FFFD
\u
FFFD
\u
FFFD
#\u54C1\u724C\u7533\u8BF7\u6D88\u606F\u6A21\u677F
brandApplyCommTemplateId
=
82ByH2tkWI1-jlYiWr_-CIihWsgjrvLdFvuO771FwBo
...
...
cftech-common-web/src/main/webapp/assets/adminlte/plugins/ueditor-min-1.4.3/ueditor.config.js
View file @
ac37690f
...
...
@@ -21,7 +21,7 @@
*/
//var URL = base + '/ueditor-min-1.4.3/';
//var URL = 'plugins/ueditor-min-1.4.3/';
var
URL
=
'/
schaeffler
/assets/adminlte/plugins/ueditor-min-1.4.3/'
;
var
URL
=
'/
aidea
/assets/adminlte/plugins/ueditor-min-1.4.3/'
;
/**
* 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。
...
...
cftech-common/src/main/java/com/cftech/core/util/OKHttpUtils.java
View file @
ac37690f
...
...
@@ -18,7 +18,7 @@ public class OKHttpUtils {
static
OkHttpClient
client
;
static
{
OkHttpClient
.
Builder
builder
=
new
OkHttpClient
.
Builder
();
OkHttpClient
.
Builder
builder
=
new
OkHttpClient
.
Builder
();
Dispatcher
dispatcher
=
new
Dispatcher
();
dispatcher
.
setMaxRequests
(
100
);
dispatcher
.
setMaxRequestsPerHost
(
50
);
...
...
cos-modules/cos-upload-module-web/src/main/webapp/WEB-INF/views/upload/materialUploadform.html
View file @
ac37690f
...
...
@@ -242,6 +242,9 @@
#if($cosconfig.cosType == "qiniu")
<option
value=
"$cosconfig.id"
>
七牛
</option>
#end
#if($cosconfig.cosType == "local")
<option
value=
"$cosconfig.id"
>
本地
</option>
#end
#end
</select>
</div>
...
...
portal-web/pom.xml
View file @
ac37690f
...
...
@@ -238,6 +238,12 @@
<version>
1.0-SNAPSHOT
</version>
<type>
war
</type>
</dependency>
<dependency>
<groupId>
com.cftech
</groupId>
<artifactId>
product-classify-module-web
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<type>
war
</type>
</dependency>
<!--<dependency>
<groupId>com.cftech</groupId>
<artifactId>fours-job-module</artifactId>
...
...
portal-web/src/main/webapp/WEB-INF/web.xml
View file @
ac37690f
...
...
@@ -38,7 +38,7 @@
<context-param>
<param-name>
webAppRootKey
</param-name>
<param-value>
schaeffler
</param-value>
<param-value>
aidea
</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
...
...
qy-modules/qy-orgunit-module-web/src/main/webapp/WEB-INF/views/managerorgunit/orgunitadd.html
View file @
ac37690f
...
...
@@ -112,19 +112,19 @@
maxlength=
"50"
placeholder=
"组织名称"
required=
"required"
value=
"$!{data.orgName}"
>
</div>
<
div
class=
"form-group form-md-line-input"
>
<
label>
组织分类
</label
>
<
div
class=
"input-group"
>
<
input
type=
"text"
id=
"orgtypeId"
name=
"orgtypeId"
value=
"$!{data.orgtypeId}"
class=
"form-control"
style=
"display: none"
>
<
input
type=
"text"
id=
"orgtypeName"
name=
"orgtypeName"
value=
"$!{orgtypeName}"
class=
"form-control"
disabled
>
<
span
class=
"input-group-btn"
>
<
button
type=
"button"
id=
"orgtypeSelect"
class=
"btn btn-info btn-flat"
>
选择
</button
>
<
/span
>
<
/div
>
<
/div
>
<
!--<div class="form-group form-md-line-input">--
>
<
!--<label>组织分类</label>--
>
<
!--<div class="input-group">--
>
<
!--<input type="text" id="orgtypeId" name="orgtypeId" value="$!{data.orgtypeId}"-->
<!--class="form-control" style="display: none">--
>
<
!--<input type="text" id="orgtypeName" name="orgtypeName" value="$!{orgtypeName}"-->
<!--class="form-control" disabled>--
>
<
!--<span class="input-group-btn">--
>
<
!--<button type="button" id="orgtypeSelect"-->
<!--class="btn btn-info btn-flat">选择</button>--
>
<
!--</span>--
>
<
!--</div>--
>
<
!--</div>--
>
<!--<div class="checkbox">-->
<!--<label>-->
<!--<input type="checkbox" id="isAdminUnit" name="isAdminUnit"-->
...
...
qy-modules/qy-orgunit-module/src/main/java/com/cftech/base/org/web/OrgUnitController.java
View file @
ac37690f
...
...
@@ -105,7 +105,7 @@ public class OrgUnitController {
//提交编辑页面(新增、修改)
@RequiresPermissions
(
value
=
PermissionSign
.
ORGUNIT_EDIT
)
@RequestMapping
(
value
=
"/formData"
,
method
=
{
RequestMethod
.
POST
}
)
@RequestMapping
(
value
=
"/formData"
)
@ResponseBody
public
JSONObject
formData
(
OrgUnit
orgUnit
,
Model
model
,
HttpServletRequest
request
)
{
Long
accountsId
=
UserUtils
.
getmpaccounts
(
request
);
...
...
@@ -123,20 +123,20 @@ public class OrgUnitController {
orgUnit
.
setParentIds
(
"0,"
+
orgUnit
.
getId
()
+
","
);
}
// 2017-10-27 取消同步企业号,组织功能
//
if (StringUtils.isEmpty(orgUnit.getWxorgId())) {
//
int wxorgid = qyOrgUtil.create(orgUnit, parentOrgUnit);
//
if (wxorgid == -1) {
//
log.error("同步微信端出错," + orgUnit.toString());
//
} else {
//
orgUnit.setWxorgId("" + wxorgid);
//
//
}
//
} else {
//
if (!qyOrgUtil.update(orgUnit)) {
//
log.error("同步微信端出错," + orgUnit.toString());
//
}
//
}
//同步至企业号
if
(
StringUtils
.
isEmpty
(
orgUnit
.
getWxorgId
()))
{
int
wxorgid
=
qyOrgUtil
.
create
(
orgUnit
,
parentOrgUnit
);
if
(
wxorgid
==
-
1
)
{
log
.
error
(
"同步微信端出错,"
+
orgUnit
.
toString
());
}
else
{
orgUnit
.
setWxorgId
(
""
+
wxorgid
);
}
}
else
{
if
(!
qyOrgUtil
.
update
(
orgUnit
))
{
log
.
error
(
"同步微信端出错,"
+
orgUnit
.
toString
());
}
}
orgUnitService
.
updateCache
(
orgUnit
);
rtnJson
.
put
(
"errorNo"
,
0
);
...
...
@@ -157,14 +157,13 @@ public class OrgUnitController {
orgUnit
.
setUpdateBy
(
UserUtils
.
getUser
().
getId
());
orgUnitService
.
saveCache
(
orgUnit
);
// 2017-10-27 取消同步企业号,组织功能
// int wxorgid = qyOrgUtil.create(orgUnit, parentOrgUnit);
// if (wxorgid == -1 || wxorgid == 0) {
// rtnJson.put("errorNo", 1);
// throw new Exception("同步微信端出错");
// } else {
// orgUnit.setWxorgId("" + wxorgid);
// }
int
wxorgid
=
qyOrgUtil
.
create
(
orgUnit
,
parentOrgUnit
);
if
(
wxorgid
==
-
1
||
wxorgid
==
0
)
{
rtnJson
.
put
(
"errorNo"
,
1
);
throw
new
Exception
(
"同步微信端出错"
);
}
else
{
orgUnit
.
setWxorgId
(
""
+
wxorgid
);
}
orgUnit
.
setParentIds
(
orgUnit
.
getParentIds
()
+
orgUnit
.
getId
()
+
","
);
orgUnitService
.
updateCache
(
orgUnit
);
...
...
token-module/src/main/java/com/cftech/core/util/QyTokenUtil.java
View file @
ac37690f
...
...
@@ -23,183 +23,185 @@ import java.util.concurrent.TimeUnit;
/**
* 企业号 ACCESS TOKEN 管理
* @author Neil
*
* @author Neil
*/
@Slf4j
@Component
public
class
QyTokenUtil
{
@Autowired
private
MpAccountsService
accountService
;
@Autowired
private
RedisTemplate
<
String
,
String
>
redisTemplate
;
// @Autowired
// private WebHttpInterface webHttpInterface;
private
RedisTemplate
<
String
,
String
>
getConfig
()
{
StringRedisSerializer
stringSerializer
=
new
StringRedisSerializer
();
redisTemplate
.
setKeySerializer
(
stringSerializer
);
//redisTemplate.setValueSerializer(stringSerializer);
redisTemplate
.
setHashKeySerializer
(
stringSerializer
);
redisTemplate
.
setHashValueSerializer
(
stringSerializer
);
return
redisTemplate
;
}
/**
*
* 通过企业号corpid刷新最新的token,并返回
* @return
*/
public
String
getToken
(
Long
accountId
)
//更新token
{
MpAccountsEntity
accountsEntity
=
searchAccountsById
(
accountId
);
if
(
accountsEntity
==
null
)
{
return
null
;
}
// accesstoken的key
String
key
=
"CORPID_"
+
accountsEntity
.
getAppid
();
// jstoken的key
String
jskey
=
"CORPIDJS_"
+
accountsEntity
.
getAppid
();
if
(
getConfig
().
hasKey
(
key
))
{
return
getConfig
().
opsForValue
().
get
(
key
);
}
// 请求企业号认证信息
String
url
=
WxApiConstants
.
TOKEN_GET
.
replace
(
"CORPID"
,
accountsEntity
.
getAppid
())
.
replace
(
"SECRECT"
,
accountsEntity
.
getSecret
());
// String retStr = OKHttpUtils.getJSON(url);
// JSONObject retObj = JSON.parseObject(retStr);
// String token = retObj.getString("access_token");// 缓存token至redis
String
token
=
"1"
;
// webHttpInterface.getValue(url,"access_token");
getConfig
().
opsForValue
().
set
(
key
,
token
);
getConfig
().
expire
(
key
,
6000
,
TimeUnit
.
SECONDS
);
// 继续缓存jsticket
url
=
WxApiConstants
.
JSAPI_TICKET_GET
.
replace
(
"ACCESS_TOKEN"
,
token
);
// retStr = OKHttpUtils.getJSON(url);
// retObj = JSON.parseObject(retStr);
// String jsTicket = retObj.getString("ticket");
String
jsTicket
=
"1"
;
// webHttpInterface.getValue(url,"ticket");
// 缓存token至redis
getConfig
().
opsForValue
().
set
(
jskey
,
jsTicket
);
getConfig
().
expire
(
jskey
,
6000
,
TimeUnit
.
SECONDS
);
return
token
;
}
public
String
getToken
(
MpAccountsEntity
accountsEntity
)
//更新token
{
if
(
accountsEntity
==
null
)
{
return
null
;
}
// accesstoken的key
String
key
=
"CORPID_"
+
accountsEntity
.
getAppid
();
// jstoken的key
String
jskey
=
"CORPIDJS_"
+
accountsEntity
.
getAppid
();
if
(
getConfig
().
hasKey
(
key
))
{
return
getConfig
().
opsForValue
().
get
(
key
);
}
// 请求企业号认证信息
String
url
=
WxApiConstants
.
TOKEN_GET
.
replace
(
"CORPID"
,
accountsEntity
.
getAppid
())
.
replace
(
"SECRECT"
,
accountsEntity
.
getSecret
());
try
{
String
retStr
=
OKHttpUtils
.
getJSON
(
url
);
JSONObject
retObj
=
JSON
.
parseObject
(
retStr
);
String
token
=
retObj
.
getString
(
"access_token"
);
// 缓存token至redis
getConfig
().
opsForValue
().
set
(
key
,
token
);
getConfig
().
expire
(
key
,
6000
,
TimeUnit
.
SECONDS
);
// 继续缓存jsticket
url
=
WxApiConstants
.
JSAPI_TICKET_GET
.
replace
(
"ACCESS_TOKEN"
,
token
);
retStr
=
OKHttpUtils
.
getJSON
(
url
);
retObj
=
JSON
.
parseObject
(
retStr
);
String
jsTicket
=
retObj
.
getString
(
"ticket"
);
// 缓存token至redis
getConfig
().
opsForValue
().
set
(
jskey
,
jsTicket
);
getConfig
().
expire
(
jskey
,
6000
,
TimeUnit
.
SECONDS
);
return
token
;
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
public
String
getJSTicket
(
Long
accountId
)
{
MpAccountsEntity
accountsEntity
=
searchAccountsById
(
accountId
);
// jstoken的key
String
jskey
=
"CORPIDJS_"
+
accountsEntity
.
getAppid
();
return
getConfig
().
opsForValue
().
get
(
jskey
);
}
public
String
getJSTicket
(
MpAccountsEntity
accountsEntity
)
{
// jstoken的key
String
jskey
=
"CORPIDJS_"
+
accountsEntity
.
getAppid
();
return
getConfig
().
opsForValue
().
get
(
jskey
);
}
/**
* 通过主键ID,获取公众号实体
*/
public
MpAccountsEntity
searchAccountsById
(
Long
id
){
MpAccountsEntity
accountsEntity
=
accountService
.
getDetail
(
id
);
return
accountsEntity
;
}
/**
* 通过appid,获取公众号实体
*/
public
MpAccountsEntity
searchAccounts
(
String
appid
){
MpAccountsEntity
accountsEntity
=
accountService
.
getMpAccountsAppid
(
appid
);
return
accountsEntity
;
}
/**
* 做SHA-1签名
*
* @param jsapiTicket
* @param noncestr
* @param timestamp
* @param url
* @return
*/
public
static
String
sign
(
String
jsapiTicket
,
String
noncestr
,
String
timestamp
,
String
url
)
{
StringBuffer
sb
=
new
StringBuffer
();
sb
.
append
(
"jsapi_ticket="
);
sb
.
append
(
jsapiTicket
);
sb
.
append
(
"&"
);
sb
.
append
(
"noncestr="
);
sb
.
append
(
noncestr
);
sb
.
append
(
"&"
);
sb
.
append
(
"timestamp="
);
sb
.
append
(
timestamp
);
sb
.
append
(
"&"
);
sb
.
append
(
"url="
);
sb
.
append
(
url
);
try
{
MessageDigest
crypt
=
MessageDigest
.
getInstance
(
"SHA-1"
);
crypt
.
reset
();
crypt
.
update
(
sb
.
toString
().
getBytes
(
"UTF-8"
));
return
byteToHex
(
crypt
.
digest
());
}
catch
(
NoSuchAlgorithmException
e
)
{
log
.
error
(
"QyTokenUtil sign error: {}"
,
e
.
getMessage
());
return
""
;
}
catch
(
UnsupportedEncodingException
e
)
{
log
.
error
(
"QyTokenUtil sign error: {}"
,
e
.
getMessage
());
return
""
;
}
}
private
static
String
byteToHex
(
final
byte
[]
hash
)
{
Formatter
formatter
=
new
Formatter
();
for
(
byte
b
:
hash
)
{
formatter
.
format
(
"%02x"
,
b
);
}
String
result
=
formatter
.
toString
();
formatter
.
close
();
return
result
;
}
@Autowired
private
MpAccountsService
accountService
;
@Autowired
private
RedisTemplate
<
String
,
String
>
redisTemplate
;
private
RedisTemplate
<
String
,
String
>
getConfig
()
{
StringRedisSerializer
stringSerializer
=
new
StringRedisSerializer
();
redisTemplate
.
setKeySerializer
(
stringSerializer
);
//redisTemplate.setValueSerializer(stringSerializer);
redisTemplate
.
setHashKeySerializer
(
stringSerializer
);
redisTemplate
.
setHashValueSerializer
(
stringSerializer
);
return
redisTemplate
;
}
/**
* 通过企业号corpid刷新最新的token,并返回
*
* @return
*/
public
String
getToken
(
Long
accountId
)
//更新token
{
MpAccountsEntity
accountsEntity
=
searchAccountsById
(
accountId
);
if
(
accountsEntity
==
null
)
{
return
null
;
}
// accesstoken的key
String
key
=
"CORPID_"
+
accountsEntity
.
getAppid
();
// jstoken的key
String
jskey
=
"CORPIDJS_"
+
accountsEntity
.
getAppid
();
if
(
getConfig
().
hasKey
(
key
))
{
return
getConfig
().
opsForValue
().
get
(
key
);
}
String
token
=
null
;
try
{
// 请求企业号认证信息
String
url
=
WxApiConstants
.
TOKEN_GET
.
replace
(
"CORPID"
,
accountsEntity
.
getAppid
())
.
replace
(
"SECRECT"
,
accountsEntity
.
getSecret
());
String
retStr
=
OKHttpUtils
.
getJSON
(
url
);
JSONObject
retObj
=
JSON
.
parseObject
(
retStr
);
token
=
retObj
.
getString
(
"access_token"
);
// 缓存token至redis
getConfig
().
opsForValue
().
set
(
key
,
token
);
getConfig
().
expire
(
key
,
6000
,
TimeUnit
.
SECONDS
);
// 继续缓存jsticket
url
=
WxApiConstants
.
JSAPI_TICKET_GET
.
replace
(
"ACCESS_TOKEN"
,
token
);
retStr
=
OKHttpUtils
.
getJSON
(
url
);
retObj
=
JSON
.
parseObject
(
retStr
);
String
jsTicket
=
retObj
.
getString
(
"ticket"
);
// 缓存token至redis
getConfig
().
opsForValue
().
set
(
jskey
,
jsTicket
);
getConfig
().
expire
(
jskey
,
6000
,
TimeUnit
.
SECONDS
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
return
token
;
}
public
String
getToken
(
MpAccountsEntity
accountsEntity
)
//更新token
{
if
(
accountsEntity
==
null
)
{
return
null
;
}
// accesstoken的key
String
key
=
"CORPID_"
+
accountsEntity
.
getAppid
();
// jstoken的key
String
jskey
=
"CORPIDJS_"
+
accountsEntity
.
getAppid
();
if
(
getConfig
().
hasKey
(
key
))
{
return
getConfig
().
opsForValue
().
get
(
key
);
}
// 请求企业号认证信息
String
url
=
WxApiConstants
.
TOKEN_GET
.
replace
(
"CORPID"
,
accountsEntity
.
getAppid
())
.
replace
(
"SECRECT"
,
accountsEntity
.
getSecret
());
try
{
String
retStr
=
OKHttpUtils
.
getJSON
(
url
);
JSONObject
retObj
=
JSON
.
parseObject
(
retStr
);
String
token
=
retObj
.
getString
(
"access_token"
);
// 缓存token至redis
getConfig
().
opsForValue
().
set
(
key
,
token
);
getConfig
().
expire
(
key
,
6000
,
TimeUnit
.
SECONDS
);
// 继续缓存jsticket
url
=
WxApiConstants
.
JSAPI_TICKET_GET
.
replace
(
"ACCESS_TOKEN"
,
token
);
retStr
=
OKHttpUtils
.
getJSON
(
url
);
retObj
=
JSON
.
parseObject
(
retStr
);
String
jsTicket
=
retObj
.
getString
(
"ticket"
);
// 缓存token至redis
getConfig
().
opsForValue
().
set
(
jskey
,
jsTicket
);
getConfig
().
expire
(
jskey
,
6000
,
TimeUnit
.
SECONDS
);
return
token
;
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
public
String
getJSTicket
(
Long
accountId
)
{
MpAccountsEntity
accountsEntity
=
searchAccountsById
(
accountId
);
// jstoken的key
String
jskey
=
"CORPIDJS_"
+
accountsEntity
.
getAppid
();
return
getConfig
().
opsForValue
().
get
(
jskey
);
}
public
String
getJSTicket
(
MpAccountsEntity
accountsEntity
)
{
// jstoken的key
String
jskey
=
"CORPIDJS_"
+
accountsEntity
.
getAppid
();
return
getConfig
().
opsForValue
().
get
(
jskey
);
}
/**
* 通过主键ID,获取公众号实体
*/
public
MpAccountsEntity
searchAccountsById
(
Long
id
)
{
MpAccountsEntity
accountsEntity
=
accountService
.
getDetail
(
id
);
return
accountsEntity
;
}
/**
* 通过appid,获取公众号实体
*/
public
MpAccountsEntity
searchAccounts
(
String
appid
)
{
MpAccountsEntity
accountsEntity
=
accountService
.
getMpAccountsAppid
(
appid
);
return
accountsEntity
;
}
/**
* 做SHA-1签名
*
* @param jsapiTicket
* @param noncestr
* @param timestamp
* @param url
* @return
*/
public
static
String
sign
(
String
jsapiTicket
,
String
noncestr
,
String
timestamp
,
String
url
)
{
StringBuffer
sb
=
new
StringBuffer
();
sb
.
append
(
"jsapi_ticket="
);
sb
.
append
(
jsapiTicket
);
sb
.
append
(
"&"
);
sb
.
append
(
"noncestr="
);
sb
.
append
(
noncestr
);
sb
.
append
(
"&"
);
sb
.
append
(
"timestamp="
);
sb
.
append
(
timestamp
);
sb
.
append
(
"&"
);
sb
.
append
(
"url="
);
sb
.
append
(
url
);
try
{
MessageDigest
crypt
=
MessageDigest
.
getInstance
(
"SHA-1"
);
crypt
.
reset
();
crypt
.
update
(
sb
.
toString
().
getBytes
(
"UTF-8"
));
return
byteToHex
(
crypt
.
digest
());
}
catch
(
NoSuchAlgorithmException
e
)
{
log
.
error
(
"QyTokenUtil sign error: {}"
,
e
.
getMessage
());
return
""
;
}
catch
(
UnsupportedEncodingException
e
)
{
log
.
error
(
"QyTokenUtil sign error: {}"
,
e
.
getMessage
());
return
""
;
}
}
private
static
String
byteToHex
(
final
byte
[]
hash
)
{
Formatter
formatter
=
new
Formatter
();
for
(
byte
b
:
hash
)
{
formatter
.
format
(
"%02x"
,
b
);
}
String
result
=
formatter
.
toString
();
formatter
.
close
();
return
result
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment