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
95be5746
Commit
95be5746
authored
Oct 29, 2020
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Aidea product update by Strive Date 2020-10-29
parent
749b5b27
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
752 additions
and
605 deletions
+752
-605
consultSheetform.html
...n/webapp/WEB-INF/views/consultSheet/consultSheetform.html
+244
-171
consultSheetlist.html
...n/webapp/WEB-INF/views/consultSheet/consultSheetlist.html
+2
-2
ConsultSheetMapper.xml
...n/java/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
+106
-85
ConsultSheet.java
...main/java/com/cftech/consultsheet/model/ConsultSheet.java
+13
-13
ConsultSheetVO.java
...in/java/com/cftech/consultsheet/model/ConsultSheetVO.java
+1
-1
ConsultSheetService.java
.../com/cftech/consultsheet/service/ConsultSheetService.java
+1
-0
ConsultSheetServiceImpl.java
...ch/consultsheet/service/impl/ConsultSheetServiceImpl.java
+13
-7
ConsultSheetController.java
...a/com/cftech/consultsheet/web/ConsultSheetController.java
+5
-9
ConsultSheetMapper.xml
...lasses/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
+106
-85
common-test.properties
cftech-common-web/src/main/resources/common-test.properties
+1
-3
useradd.js
...bapp/assets/adminlte/pages/scripts/usermanager/useradd.js
+19
-15
materialUploadform.html
.../main/webapp/WEB-INF/views/upload/materialUploadform.html
+17
-17
MaterialUploadController.java
...com/cftech/cos/uploader/web/MaterialUploadController.java
+80
-78
MemberServiceImpl.java
...ava/com/cftech/member/service/impl/MemberServiceImpl.java
+48
-46
userupdate.html
.../src/main/webapp/WEB-INF/views/manageuser/userupdate.html
+96
-73
No files found.
aidea-modules/consult-module-web/src/main/webapp/WEB-INF/views/consultSheet/consultSheetform.html
View file @
95be5746
This diff is collapsed.
Click to expand it.
aidea-modules/consult-module-web/src/main/webapp/WEB-INF/views/consultSheet/consultSheetlist.html
View file @
95be5746
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
<th>
药师姓名
</th>
<th>
药师姓名
</th>
<th>
客服姓名
</th>
<th>
客服姓名
</th>
<th>
审核状态
</th>
<th>
审核状态
</th>
<th>
备注(审核未通过原因)
</th>
<th>
拒绝原由
</th>
<th>
操作
</th>
<th>
操作
</th>
</tr>
</tr>
...
@@ -221,7 +221,7 @@
...
@@ -221,7 +221,7 @@
"mData"
:
"sex"
"mData"
:
"sex"
},
},
{
{
"mData"
:
"
i
phone"
"mData"
:
"phone"
},
},
{
{
"mData"
:
"pastRecords"
"mData"
:
"pastRecords"
...
...
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
View file @
95be5746
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
<result
column=
"user_name"
property=
"userName"
/>
<result
column=
"user_name"
property=
"userName"
/>
<result
column=
"number_id"
property=
"numberId"
/>
<result
column=
"number_id"
property=
"numberId"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"
iphone"
property=
"iP
hone"
/>
<result
column=
"
phone"
property=
"p
hone"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
<result
column=
"prescription"
property=
"
P
rescription"
/>
<result
column=
"prescription"
property=
"
p
rescription"
/>
<result
column=
"doctor_id"
property=
"doctorId"
/>
<result
column=
"doctor_id"
property=
"doctorId"
/>
<result
column=
"customer_id"
property=
"customerId"
/>
<result
column=
"customer_id"
property=
"customerId"
/>
<result
column=
"illness"
property=
"illness"
/>
<result
column=
"illness"
property=
"illness"
/>
...
@@ -59,75 +59,96 @@
...
@@ -59,75 +59,96 @@
</sql>
</sql>
<sql
id=
"sqlColumns"
>
<sql
id=
"sqlColumns"
>
a.id,
a.id,
a.consult_id,
a.consult_id,
CONVERT(AES_DECRYPT(a.user_name,'aideakey') USING UTF8) ,
CONVERT(AES_DECRYPT(a.user_name,'aideakey') USING UTF8) user_name,
CONVERT(AES_DECRYPT(a.number_id,'aideakey') USING UTF8) ,
CONVERT(AES_DECRYPT(a.number_id,'aideakey') USING UTF8) number_id,
a.sex,
a.sex,
CONVERT(AES_DECRYPT(a.iphone,'aideakey') USING UTF8) ,
CONVERT(AES_DECRYPT(a.phone,'aideakey') USING UTF8) phone,
a.past_records,
a.past_records,
a.prescription,
a.prescription,
a.doctor_id,
a.doctor_id,
a.customer_id,
a.customer_id,
a.illness,
a.illness,
a.accounts_id,
a.accounts_id,
a.del_flag,
a.del_flag,
a.STATUS,
a.STATUS,
a.create_time,
a.create_time,
a.update_time,
a.update_time,
a.description,
a.description,
a.create_by,
a.create_by,
a.update_by,
a.update_by,
a.allergy,
a.allergy,
a.symptom,
a.symptom,
a.diagnosis,
a.diagnosis,
a.open_id,
a.open_id,
a.drugs_id,
a.drugs_id,
a.member_id,
a.member_id,
a.order_id,
a.order_id,
b.`name` pharmaName,
b.`name` pharmaName,
c.`name` customerName
c.`name` customerName
</sql>
</sql>
<insert
id=
"save"
parameterType=
"com.cftech.consultsheet.model.ConsultSheet"
useGeneratedKeys=
"true"
<insert
id=
"save"
parameterType=
"com.cftech.consultsheet.model.ConsultSheet"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
keyProperty=
"id"
>
insert into t_aidea_consult_sheet
insert into t_aidea_consult_sheet
(
(
<include
refid=
"sqlColumns"
/>
id,
consult_id,
user_name ,
number_id,
sex,
phone,
past_records,
prescription,
doctor_id,
customer_id,
illness,
accounts_id,
del_flag,
STATUS,
create_time,
update_time,
description,
create_by,
update_by,
allergy,
symptom,
diagnosis,
open_id,
drugs_id,
member_id,
order_id
)
)
values
values
(
(
#{id, jdbcType=BIGINT}
#{id, jdbcType=BIGINT},
#{consultId, jdbcType=VARCHAR},
#{consultId, jdbcType=VARCHAR},
AES_ENCRYPT(#{userName, jdbcType=VARBINARY},'aideakey'),
AES_ENCRYPT(#{userName, jdbcType=VARBINARY},'aideakey'),
AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
now(),
#{sex, jdbcType=BIGINT},
#{sex, jdbcType=BIGINT},
AES_ENCRYPT(#{phone, jdbcType=VARBINARY},'aideakey'),
AES_ENCRYPT(#{iPhone, jdbcType=VARBINARY},'aideakey'),
#{pastRecords, jdbcType=VARCHAR},
#{pastRecords, jdbcType=VARCHAR},
#{prescription, jdbcType=VARCHAR},
#{Prescription, jdbcType=VARCHAR},
#{doctorId, jdbcType=BIGINT},
#{doctorId, jdbcType=BIGINT},
#{customerId, jdbcType=BIGINT},
#{customerId, jdbcType=BIGINT},
#{illness, jdbcType=BIGINT},
#{illness, jdbcType=BIGINT},
#{accountsId, jdbcType=BIGINT},
#{accountsId, jdbcType=BIGINT},
#{delFlag, jdbcType=TINYINT},
#{delFlag, jdbcType=TINYINT},
#{status, jdbcType=VARCHAR},
#{status, jdbcType=VARCHAR},
now(),
now(),
now(),
now(),
#{description, jdbcType=VARCHAR},
#{description, jdbcType=VARCHAR},
#{createBy, jdbcType=BIGINT},
#{createBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT},
#{allergy, jdbcType=VARCHAR},
#{allergy, jdbcType=VARCHAR},
#{symptom, jdbcType=VARCHAR},
#{updateBy, jdbcType=VARCHAR},
#{diagnosis,jdbcType=BIGINT},
#{diagnosis,jdbcType=BIGINT}
#{openId, jdbcType=VARCHAR},
#{doctorName, jdbcType=VARCHAR},
#{drugsId,jdbcType=BIGINT},
#{customerName,jdbcType=BIGINT},
#{memberId,jdbcType=BIGINT},
#{openId,jdbcType=VARCHAR},
#{orderId,jdbcType=BIGINT}
#{drugsId,jdbcType=BIGINT},
#{memberId,jdbcType=BIGINT},
#{orderId,jdbcType=BIGINT}
)
)
</insert>
</insert>
...
@@ -135,28 +156,28 @@
...
@@ -135,28 +156,28 @@
SELECT
SELECT
<include
refid=
"sqlColumns"
/>
<include
refid=
"sqlColumns"
/>
FROM t_aidea_consult_sheet a
FROM t_aidea_consult_sheet a
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser c
ON c.id = a.customer_id
LEFT JOIN t_qyuser c ON c.id = a.customer_id
WHERE a.id=#{id}
WHERE a.id=#{id}
</select>
</select>
<select
id=
"count"
parameterType=
"java.util.Map"
resultType=
"java.lang.Integer"
>
<select
id=
"count"
parameterType=
"java.util.Map"
resultType=
"java.lang.Integer"
>
SELECT COUNT(1) FROM t_aidea_consult_sheet a
SELECT COUNT(1) FROM t_aidea_consult_sheet a
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser c
ON c.id = a.customer_id
LEFT JOIN t_qyuser c ON c.id = a.customer_id
LEFT JOIN `user` u ON u.userid = b.id
LEFT JOIN `user` u ON u.userid = b.id
<include
refid=
"sqlWhere"
/>
<include
refid=
"sqlWhere"
/>
</select>
</select>
<select
id=
"fetchSearchByPage"
parameterType=
"java.util.Map"
resultMap=
"resultMap"
>
<select
id=
"fetchSearchByPage"
parameterType=
"java.util.Map"
resultMap=
"resultMap"
>
SELECT
SELECT
<include
refid=
"sqlColumns"
/>
<include
refid=
"sqlColumns"
/>
FROM
t_aidea_consult_sheet a
FROM t_aidea_consult_sheet a
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser c
ON c.id = a.customer_id
LEFT JOIN t_qyuser c ON c.id = a.customer_id
<include
refid=
"sqlWhere"
/>
<include
refid=
"sqlWhere"
/>
<if
test=
"id!=null"
>
and (a.doctor_id = ${id} or a.customer_id =${id} )
</if>
<if
test=
"id!=null"
>
and (a.doctor_id = ${id} or a.customer_id =${id} )
</if>
<if
test=
"sort!=null"
>
ORDER BY ${sort.param} ${sort.type}
</if>
<if
test=
"sort!=null"
>
ORDER BY ${sort.param} ${sort.type}
</if>
<if
test=
"limit>0"
>
limit #{offset},#{limit}
</if>
<if
test=
"limit>0"
>
limit #{offset},#{limit}
</if>
</select>
</select>
...
@@ -167,13 +188,11 @@
...
@@ -167,13 +188,11 @@
<if
test=
"id != null"
>
<if
test=
"id != null"
>
id = #{id, jdbcType=BIGINT},
id = #{id, jdbcType=BIGINT},
</if>
</if>
<if
test=
"consultId != null"
>
<if
test=
"consultId != null"
>
consult_id = #{consultId, jdbcType=VARCHAR},
consult_id = #{consultId, jdbcType=VARCHAR},
</if>
</if>
<if
test=
"userName != null"
>
<if
test=
"userName != null"
>
user_name = AES_ENCRYPT(#{userName, jdbcType=VARBINARY},'aideakey'),
user_name = AES_ENCRYPT( #{userName, jdbcType=VARBINARY},'aideakey'),
</if>
</if>
<if
test=
"numberId != null"
>
<if
test=
"numberId != null"
>
number_id = AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
number_id = AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
...
@@ -182,14 +201,14 @@
...
@@ -182,14 +201,14 @@
<if
test=
"sex != null"
>
<if
test=
"sex != null"
>
sex = #{sex, jdbcType=BIGINT},
sex = #{sex, jdbcType=BIGINT},
</if>
</if>
<if
test=
"
iP
hone != null"
>
<if
test=
"
p
hone != null"
>
iphone = AES_ENCRYPT(#{iP
hone, jdbcType=VARBINARY},'aideakey'),
phone = AES_ENCRYPT(#{p
hone, jdbcType=VARBINARY},'aideakey'),
</if>
</if>
<if
test=
"pastRecords != null"
>
<if
test=
"pastRecords != null"
>
past_records = #{pastRecords, jdbcType=VARCHAR},
past_records = #{pastRecords, jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
P
rescription != null"
>
<if
test=
"
p
rescription != null"
>
prescription = #{
P
rescription, jdbcType=VARCHAR},
prescription = #{
p
rescription, jdbcType=VARCHAR},
</if>
</if>
<if
test=
"doctorId != null"
>
<if
test=
"doctorId != null"
>
doctor_id = #{doctorId, jdbcType=BIGINT},
doctor_id = #{doctorId, jdbcType=BIGINT},
...
@@ -249,18 +268,20 @@
...
@@ -249,18 +268,20 @@
<update
id=
"delete"
parameterType=
"java.lang.Long"
>
<update
id=
"delete"
parameterType=
"java.lang.Long"
>
update t_aidea_consult_sheet set del_flag=1 where id=#{id,jdbcType=BIGINT}
update t_aidea_consult_sheet set del_flag=1 where id=#{id,jdbcType=BIGINT}
</update>
</update>
<update
id=
"updateDate"
>
<update
id=
"updateDate"
>
update t_aidea_consult_sheet
update t_aidea_consult_sheet
<set>
<set>
<if
test=
"status !=null"
>
<if
test=
"status !=null"
>
status = #{status},
status = #{status},
</if>
</if>
<if
test=
"description !=null"
>
<if
test=
"description !=null"
>
description = #{description}
description = #{description}
</if>
</if>
</set>
</set>
where consult_id = #{consultId}
where consult_id = #{consultId}
</update>
</update>
<update
id=
"updateStatus"
>
<update
id=
"updateStatus"
>
update t_aidea_consult_sheet
update t_aidea_consult_sheet
<set>
<set>
...
...
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/model/ConsultSheet.java
View file @
95be5746
...
@@ -30,31 +30,28 @@ public class ConsultSheet extends UserSheet implements Serializable {
...
@@ -30,31 +30,28 @@ public class ConsultSheet extends UserSheet implements Serializable {
private
String
userName
;
private
String
userName
;
/* 身份证号 */
/* 身份证号 */
private
String
numberId
;
private
String
numberId
;
// /* 出生年月 */
// @JSONField(format = "yyyy-MM-dd")
// private Date benebitId;
/* 性别 */
/* 性别 */
@ExportConfig
(
value
=
"性别"
,
width
=
100
,
showLevel
=
1
)
@ExportConfig
(
value
=
"性别"
,
width
=
100
,
showLevel
=
1
)
private
Long
sex
;
private
Long
sex
;
/* 手机号 */
/* 手机号 */
@ExportConfig
(
value
=
"联系电话"
,
width
=
100
,
showLevel
=
1
)
@ExportConfig
(
value
=
"联系电话"
,
width
=
100
,
showLevel
=
1
)
private
Long
iP
hone
;
private
String
p
hone
;
/* 疾病史 */
/* 疾病史 */
@ExportConfig
(
value
=
"疾病史"
,
width
=
100
,
showLevel
=
1
)
@ExportConfig
(
value
=
"疾病史"
,
width
=
100
,
showLevel
=
1
)
private
String
pastRecords
;
private
String
pastRecords
;
/* 过敏史 */
@ExportConfig
(
value
=
"过敏史"
,
width
=
100
,
showLevel
=
1
)
private
String
allergy
;
/* 病情描述 */
@ExportConfig
(
value
=
"病情描述"
,
width
=
100
,
showLevel
=
1
)
private
String
illness
;
/* 处方单 */
/* 处方单 */
@ExportConfig
(
value
=
"处方单"
,
width
=
100
,
showLevel
=
1
)
@ExportConfig
(
value
=
"处方单"
,
width
=
100
,
showLevel
=
1
)
private
String
P
rescription
;
private
String
p
rescription
;
/* 药师id */
/* 药师id */
private
Long
doctorId
;
private
Long
doctorId
;
/* 客服id */
/* 客服id */
private
Long
customerId
;
private
Long
customerId
;
/* 病情描述 */
@ExportConfig
(
value
=
"病情描述"
,
width
=
100
,
showLevel
=
1
)
private
String
illness
;
/* 过敏史 */
@ExportConfig
(
value
=
"过敏史"
,
width
=
100
,
showLevel
=
1
)
private
String
allergy
;
/* 本次确认症状 */
/* 本次确认症状 */
private
String
symptom
;
private
String
symptom
;
/*是否已在医院确诊*/
/*是否已在医院确诊*/
...
@@ -70,16 +67,19 @@ public class ConsultSheet extends UserSheet implements Serializable {
...
@@ -70,16 +67,19 @@ public class ConsultSheet extends UserSheet implements Serializable {
private
Date
createTime
;
private
Date
createTime
;
/* 更新时间 */
/* 更新时间 */
private
Date
updateTime
;
private
Date
updateTime
;
/*
备注
*/
/*
是否勾选处方单真实性声明 0:未勾选 1:勾选
*/
private
String
description
;
private
String
description
;
/* 创建人 */
/* 创建人 */
private
Long
createBy
;
private
Long
createBy
;
/* 更新人 */
/* 更新人 */
private
Long
updateBy
;
private
Long
updateBy
;
/* 粉丝id */
private
String
openId
;
private
String
openId
;
/* 药品id */
private
Long
drugsId
;
private
Long
drugsId
;
/* 会员id */
private
Long
memberId
;
private
Long
memberId
;
/* 订单id */
private
Long
orderId
;
private
Long
orderId
;
public
ConsultSheet
()
{
public
ConsultSheet
()
{
...
...
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/model/ConsultSheetVO.java
View file @
95be5746
...
@@ -27,7 +27,7 @@ public class ConsultSheetVO {
...
@@ -27,7 +27,7 @@ public class ConsultSheetVO {
/* 手机号 */
/* 手机号 */
@ExportConfig
(
value
=
"联系电话"
,
width
=
100
,
showLevel
=
1
)
@ExportConfig
(
value
=
"联系电话"
,
width
=
100
,
showLevel
=
1
)
private
Lo
ng
phone
;
private
Stri
ng
phone
;
/* 疾病史 */
/* 疾病史 */
@ExportConfig
(
value
=
"疾病史"
,
width
=
100
,
showLevel
=
1
)
@ExportConfig
(
value
=
"疾病史"
,
width
=
100
,
showLevel
=
1
)
...
...
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/service/ConsultSheetService.java
View file @
95be5746
...
@@ -26,4 +26,5 @@ public interface ConsultSheetService extends GenericService<ConsultSheet> {
...
@@ -26,4 +26,5 @@ public interface ConsultSheetService extends GenericService<ConsultSheet> {
* @param consultSheet
* @param consultSheet
*/
*/
JSONObject
pollingConsultSheet
(
ConsultSheet
consultSheet
);
JSONObject
pollingConsultSheet
(
ConsultSheet
consultSheet
);
}
}
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/service/impl/ConsultSheetServiceImpl.java
View file @
95be5746
...
@@ -2,6 +2,7 @@ package com.cftech.consultsheet.service.impl;
...
@@ -2,6 +2,7 @@ package com.cftech.consultsheet.service.impl;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cftech.base.codingrule.utils.CodingruleUtils
;
import
com.cftech.base.org.model.Qyuser
;
import
com.cftech.base.org.model.Qyuser
;
import
com.cftech.base.org.service.QyuserService
;
import
com.cftech.base.org.service.QyuserService
;
import
com.cftech.consultsheet.dao.ConsultSheetMapper
;
import
com.cftech.consultsheet.dao.ConsultSheetMapper
;
...
@@ -17,11 +18,9 @@ import com.cftech.core.util.StringUtils;
...
@@ -17,11 +18,9 @@ import com.cftech.core.util.StringUtils;
import
com.cftech.member.model.Member
;
import
com.cftech.member.model.Member
;
import
com.cftech.member.service.MemberService
;
import
com.cftech.member.service.MemberService
;
import
com.cftech.order.service.OrderService
;
import
com.cftech.order.service.OrderService
;
import
com.cftech.sys.model.User
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -49,6 +48,9 @@ public class ConsultSheetServiceImpl extends GenericServiceImpl<ConsultSheet> im
...
@@ -49,6 +48,9 @@ public class ConsultSheetServiceImpl extends GenericServiceImpl<ConsultSheet> im
@Autowired
@Autowired
private
QyuserService
qyuserService
;
private
QyuserService
qyuserService
;
@Autowired
private
CodingruleUtils
codingruleUtils
;
@Override
@Override
public
GenericDao
<
ConsultSheet
>
getGenericMapper
()
{
public
GenericDao
<
ConsultSheet
>
getGenericMapper
()
{
return
consultSheetMapper
;
return
consultSheetMapper
;
...
@@ -78,19 +80,23 @@ public class ConsultSheetServiceImpl extends GenericServiceImpl<ConsultSheet> im
...
@@ -78,19 +80,23 @@ public class ConsultSheetServiceImpl extends GenericServiceImpl<ConsultSheet> im
return
consultSheetMapper
.
fetchSearchByPage
(
params
);
return
consultSheetMapper
.
fetchSearchByPage
(
params
);
}
}
@Transactional
@Override
@Override
public
JSONObject
pollingConsultSheet
(
ConsultSheet
consultSheet
)
{
public
JSONObject
pollingConsultSheet
(
ConsultSheet
consultSheet
)
{
JSONObject
retObj
=
new
JSONObject
();
JSONObject
retObj
=
new
JSONObject
();
try
{
try
{
//consultSheet.setNumberId(codingruleUtils.getNumber(consultSheet.getAccountsId(), ConsultSheet.class.getName()));
consultSheet
.
setConsultId
(
codingruleUtils
.
getNumber
(
consultSheet
.
getAccountsId
(),
ConsultSheet
.
class
.
getName
()));
if
(
consultSheetMapper
.
save
(
consultSheet
)
>
0
)
{
if
(
consultSheetMapper
.
save
(
consultSheet
)
>
0
)
{
memberProcess
(
consultSheet
.
getOpenId
(),
consultSheet
);
retObj
.
put
(
"errerNo"
,
0
);
retObj
.
put
(
"errerMsg"
,
"咨询单提交成功,请等待药师审核"
);
//memberProcess(consultSheet.getOpenId(), consultSheet);
}
else
{
retObj
.
put
(
"errrNo"
,
1
);
retObj
.
put
(
"errorMsg"
,
"咨询单保存失败"
);
}
}
retObj
.
put
(
"errerNo"
,
0
);
retObj
.
put
(
"data"
,
0
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
retObj
.
put
(
"errrNo"
,
1
);
retObj
.
put
(
"errrNo"
,
1
);
retObj
.
put
(
"errorMsg"
,
"提交咨询单"
+
e
.
getMessage
());
retObj
.
put
(
"errorMsg"
,
"提交咨询单"
+
e
.
getMessage
());
}
}
...
...
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/web/ConsultSheetController.java
View file @
95be5746
...
@@ -109,18 +109,16 @@ public class ConsultSheetController {
...
@@ -109,18 +109,16 @@ public class ConsultSheetController {
@ResponseBody
@ResponseBody
public
JSONObject
updateData
(
String
consultId
,
String
status
,
String
description
,
HttpServletRequest
request
)
{
public
JSONObject
updateData
(
String
consultId
,
String
status
,
String
description
,
HttpServletRequest
request
)
{
JSONObject
rtnJson
=
new
JSONObject
();
JSONObject
rtnJson
=
new
JSONObject
();
Conds
conds
=
new
Conds
();
try
{
try
{
if
(!
StringUtils
.
isEmpty
(
consultId
)
&&
!
StringUtils
.
isEmpty
(
status
)
&&
!
StringUtils
.
isEmpty
(
description
))
{
if
(!
StringUtils
.
isEmpty
(
consultId
)
&&
!
StringUtils
.
isEmpty
(
status
)
&&
!
StringUtils
.
isEmpty
(
description
))
{
Integer
integer
=
consultSheetService
.
updateDate
(
consultId
,
status
,
description
);
Integer
integer
=
consultSheetService
.
updateDate
(
consultId
,
status
,
description
);
if
(
integer
>
0
){
if
(
integer
>
0
){
rtnJson
.
put
(
"errorNo"
,
1
);
rtnJson
.
put
(
"errorNo"
,
0
);
}
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
rtnJson
.
put
(
"errorNo"
,
0
);
rtnJson
.
put
(
"errorNo"
,
1
);
}
}
return
rtnJson
;
return
rtnJson
;
}
}
...
@@ -130,18 +128,16 @@ public class ConsultSheetController {
...
@@ -130,18 +128,16 @@ public class ConsultSheetController {
@ResponseBody
@ResponseBody
public
JSONObject
updateStatus
(
String
consultId
,
String
status
,
HttpServletRequest
request
)
{
public
JSONObject
updateStatus
(
String
consultId
,
String
status
,
HttpServletRequest
request
)
{
JSONObject
rtnJson
=
new
JSONObject
();
JSONObject
rtnJson
=
new
JSONObject
();
Conds
conds
=
new
Conds
();
try
{
try
{
if
(!
StringUtils
.
isEmpty
(
consultId
)
&&
!
StringUtils
.
isEmpty
(
status
)
)
{
if
(!
StringUtils
.
isEmpty
(
consultId
)
&&
!
StringUtils
.
isEmpty
(
status
)
)
{
Integer
integer
=
consultSheetService
.
updateStatus
(
consultId
,
status
);
Integer
integer
=
consultSheetService
.
updateStatus
(
consultId
,
status
);
if
(
integer
>
0
){
if
(
integer
>
0
){
rtnJson
.
put
(
"errorNo"
,
1
);
rtnJson
.
put
(
"errorNo"
,
0
);
}
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
rtnJson
.
put
(
"errorNo"
,
0
);
rtnJson
.
put
(
"errorNo"
,
1
);
}
}
return
rtnJson
;
return
rtnJson
;
}
}
...
@@ -207,7 +203,7 @@ public class ConsultSheetController {
...
@@ -207,7 +203,7 @@ public class ConsultSheetController {
consultSheetVO
.
setConsultId
(
consultSheet
.
getConsultId
());
consultSheetVO
.
setConsultId
(
consultSheet
.
getConsultId
());
consultSheetVO
.
setUserName
(
consultSheet
.
getUserName
());
consultSheetVO
.
setUserName
(
consultSheet
.
getUserName
());
consultSheetVO
.
setSex
(
consultSheet
.
getSex
()
==
1
?
"男"
:
"女"
);
consultSheetVO
.
setSex
(
consultSheet
.
getSex
()
==
1
?
"男"
:
"女"
);
consultSheetVO
.
setPhone
(
consultSheet
.
get
I
Phone
());
consultSheetVO
.
setPhone
(
consultSheet
.
getPhone
());
consultSheetVO
.
setPastRecords
(
consultSheet
.
getPastRecords
());
consultSheetVO
.
setPastRecords
(
consultSheet
.
getPastRecords
());
consultSheetVO
.
setIllness
(
consultSheet
.
getIllness
());
consultSheetVO
.
setIllness
(
consultSheet
.
getIllness
());
consultSheetVO
.
setAllergy
(
consultSheet
.
getAllergy
());
consultSheetVO
.
setAllergy
(
consultSheet
.
getAllergy
());
...
...
aidea-modules/consult-module/target/classes/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
View file @
95be5746
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
<result
column=
"user_name"
property=
"userName"
/>
<result
column=
"user_name"
property=
"userName"
/>
<result
column=
"number_id"
property=
"numberId"
/>
<result
column=
"number_id"
property=
"numberId"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"
iphone"
property=
"iP
hone"
/>
<result
column=
"
phone"
property=
"p
hone"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
<result
column=
"prescription"
property=
"
P
rescription"
/>
<result
column=
"prescription"
property=
"
p
rescription"
/>
<result
column=
"doctor_id"
property=
"doctorId"
/>
<result
column=
"doctor_id"
property=
"doctorId"
/>
<result
column=
"customer_id"
property=
"customerId"
/>
<result
column=
"customer_id"
property=
"customerId"
/>
<result
column=
"illness"
property=
"illness"
/>
<result
column=
"illness"
property=
"illness"
/>
...
@@ -59,75 +59,96 @@
...
@@ -59,75 +59,96 @@
</sql>
</sql>
<sql
id=
"sqlColumns"
>
<sql
id=
"sqlColumns"
>
a.id,
a.id,
a.consult_id,
a.consult_id,
CONVERT(AES_DECRYPT(a.user_name,'aideakey') USING UTF8) ,
CONVERT(AES_DECRYPT(a.user_name,'aideakey') USING UTF8) user_name,
CONVERT(AES_DECRYPT(a.number_id,'aideakey') USING UTF8) ,
CONVERT(AES_DECRYPT(a.number_id,'aideakey') USING UTF8) number_id,
a.sex,
a.sex,
CONVERT(AES_DECRYPT(a.iphone,'aideakey') USING UTF8) ,
CONVERT(AES_DECRYPT(a.phone,'aideakey') USING UTF8) phone,
a.past_records,
a.past_records,
a.prescription,
a.prescription,
a.doctor_id,
a.doctor_id,
a.customer_id,
a.customer_id,
a.illness,
a.illness,
a.accounts_id,
a.accounts_id,
a.del_flag,
a.del_flag,
a.STATUS,
a.STATUS,
a.create_time,
a.create_time,
a.update_time,
a.update_time,
a.description,
a.description,
a.create_by,
a.create_by,
a.update_by,
a.update_by,
a.allergy,
a.allergy,
a.symptom,
a.symptom,
a.diagnosis,
a.diagnosis,
a.open_id,
a.open_id,
a.drugs_id,
a.drugs_id,
a.member_id,
a.member_id,
a.order_id,
a.order_id,
b.`name` pharmaName,
b.`name` pharmaName,
c.`name` customerName
c.`name` customerName
</sql>
</sql>
<insert
id=
"save"
parameterType=
"com.cftech.consultsheet.model.ConsultSheet"
useGeneratedKeys=
"true"
<insert
id=
"save"
parameterType=
"com.cftech.consultsheet.model.ConsultSheet"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
keyProperty=
"id"
>
insert into t_aidea_consult_sheet
insert into t_aidea_consult_sheet
(
(
<include
refid=
"sqlColumns"
/>
id,
consult_id,
user_name ,
number_id,
sex,
phone,
past_records,
prescription,
doctor_id,
customer_id,
illness,
accounts_id,
del_flag,
STATUS,
create_time,
update_time,
description,
create_by,
update_by,
allergy,
symptom,
diagnosis,
open_id,
drugs_id,
member_id,
order_id
)
)
values
values
(
(
#{id, jdbcType=BIGINT}
#{id, jdbcType=BIGINT},
#{consultId, jdbcType=VARCHAR},
#{consultId, jdbcType=VARCHAR},
AES_ENCRYPT(#{userName, jdbcType=VARBINARY},'aideakey'),
AES_ENCRYPT(#{userName, jdbcType=VARBINARY},'aideakey'),
AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
now(),
#{sex, jdbcType=BIGINT},
#{sex, jdbcType=BIGINT},
AES_ENCRYPT(#{phone, jdbcType=VARBINARY},'aideakey'),
AES_ENCRYPT(#{iPhone, jdbcType=VARBINARY},'aideakey'),
#{pastRecords, jdbcType=VARCHAR},
#{pastRecords, jdbcType=VARCHAR},
#{prescription, jdbcType=VARCHAR},
#{Prescription, jdbcType=VARCHAR},
#{doctorId, jdbcType=BIGINT},
#{doctorId, jdbcType=BIGINT},
#{customerId, jdbcType=BIGINT},
#{customerId, jdbcType=BIGINT},
#{illness, jdbcType=BIGINT},
#{illness, jdbcType=BIGINT},
#{accountsId, jdbcType=BIGINT},
#{accountsId, jdbcType=BIGINT},
#{delFlag, jdbcType=TINYINT},
#{delFlag, jdbcType=TINYINT},
#{status, jdbcType=VARCHAR},
#{status, jdbcType=VARCHAR},
now(),
now(),
now(),
now(),
#{description, jdbcType=VARCHAR},
#{description, jdbcType=VARCHAR},
#{createBy, jdbcType=BIGINT},
#{createBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT},
#{allergy, jdbcType=VARCHAR},
#{allergy, jdbcType=VARCHAR},
#{symptom, jdbcType=VARCHAR},
#{updateBy, jdbcType=VARCHAR},
#{diagnosis,jdbcType=BIGINT},
#{diagnosis,jdbcType=BIGINT}
#{openId, jdbcType=VARCHAR},
#{doctorName, jdbcType=VARCHAR},
#{drugsId,jdbcType=BIGINT},
#{customerName,jdbcType=BIGINT},
#{memberId,jdbcType=BIGINT},
#{openId,jdbcType=VARCHAR},
#{orderId,jdbcType=BIGINT}
#{drugsId,jdbcType=BIGINT},
#{memberId,jdbcType=BIGINT},
#{orderId,jdbcType=BIGINT}
)
)
</insert>
</insert>
...
@@ -135,28 +156,28 @@
...
@@ -135,28 +156,28 @@
SELECT
SELECT
<include
refid=
"sqlColumns"
/>
<include
refid=
"sqlColumns"
/>
FROM t_aidea_consult_sheet a
FROM t_aidea_consult_sheet a
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser c
ON c.id = a.customer_id
LEFT JOIN t_qyuser c ON c.id = a.customer_id
WHERE a.id=#{id}
WHERE a.id=#{id}
</select>
</select>
<select
id=
"count"
parameterType=
"java.util.Map"
resultType=
"java.lang.Integer"
>
<select
id=
"count"
parameterType=
"java.util.Map"
resultType=
"java.lang.Integer"
>
SELECT COUNT(1) FROM t_aidea_consult_sheet a
SELECT COUNT(1) FROM t_aidea_consult_sheet a
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser c
ON c.id = a.customer_id
LEFT JOIN t_qyuser c ON c.id = a.customer_id
LEFT JOIN `user` u ON u.userid = b.id
LEFT JOIN `user` u ON u.userid = b.id
<include
refid=
"sqlWhere"
/>
<include
refid=
"sqlWhere"
/>
</select>
</select>
<select
id=
"fetchSearchByPage"
parameterType=
"java.util.Map"
resultMap=
"resultMap"
>
<select
id=
"fetchSearchByPage"
parameterType=
"java.util.Map"
resultMap=
"resultMap"
>
SELECT
SELECT
<include
refid=
"sqlColumns"
/>
<include
refid=
"sqlColumns"
/>
FROM
t_aidea_consult_sheet a
FROM t_aidea_consult_sheet a
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser b
ON b.id = a.doctor_id
LEFT JOIN t_qyuser c
ON c.id = a.customer_id
LEFT JOIN t_qyuser c ON c.id = a.customer_id
<include
refid=
"sqlWhere"
/>
<include
refid=
"sqlWhere"
/>
<if
test=
"id!=null"
>
and (a.doctor_id = ${id} or a.customer_id =${id} )
</if>
<if
test=
"id!=null"
>
and (a.doctor_id = ${id} or a.customer_id =${id} )
</if>
<if
test=
"sort!=null"
>
ORDER BY ${sort.param} ${sort.type}
</if>
<if
test=
"sort!=null"
>
ORDER BY ${sort.param} ${sort.type}
</if>
<if
test=
"limit>0"
>
limit #{offset},#{limit}
</if>
<if
test=
"limit>0"
>
limit #{offset},#{limit}
</if>
</select>
</select>
...
@@ -167,13 +188,11 @@
...
@@ -167,13 +188,11 @@
<if
test=
"id != null"
>
<if
test=
"id != null"
>
id = #{id, jdbcType=BIGINT},
id = #{id, jdbcType=BIGINT},
</if>
</if>
<if
test=
"consultId != null"
>
<if
test=
"consultId != null"
>
consult_id = #{consultId, jdbcType=VARCHAR},
consult_id = #{consultId, jdbcType=VARCHAR},
</if>
</if>
<if
test=
"userName != null"
>
<if
test=
"userName != null"
>
user_name = AES_ENCRYPT(#{userName, jdbcType=VARBINARY},'aideakey'),
user_name = AES_ENCRYPT( #{userName, jdbcType=VARBINARY},'aideakey'),
</if>
</if>
<if
test=
"numberId != null"
>
<if
test=
"numberId != null"
>
number_id = AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
number_id = AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
...
@@ -182,14 +201,14 @@
...
@@ -182,14 +201,14 @@
<if
test=
"sex != null"
>
<if
test=
"sex != null"
>
sex = #{sex, jdbcType=BIGINT},
sex = #{sex, jdbcType=BIGINT},
</if>
</if>
<if
test=
"
iP
hone != null"
>
<if
test=
"
p
hone != null"
>
iphone = AES_ENCRYPT(#{iP
hone, jdbcType=VARBINARY},'aideakey'),
phone = AES_ENCRYPT(#{p
hone, jdbcType=VARBINARY},'aideakey'),
</if>
</if>
<if
test=
"pastRecords != null"
>
<if
test=
"pastRecords != null"
>
past_records = #{pastRecords, jdbcType=VARCHAR},
past_records = #{pastRecords, jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
P
rescription != null"
>
<if
test=
"
p
rescription != null"
>
prescription = #{
P
rescription, jdbcType=VARCHAR},
prescription = #{
p
rescription, jdbcType=VARCHAR},
</if>
</if>
<if
test=
"doctorId != null"
>
<if
test=
"doctorId != null"
>
doctor_id = #{doctorId, jdbcType=BIGINT},
doctor_id = #{doctorId, jdbcType=BIGINT},
...
@@ -249,18 +268,20 @@
...
@@ -249,18 +268,20 @@
<update
id=
"delete"
parameterType=
"java.lang.Long"
>
<update
id=
"delete"
parameterType=
"java.lang.Long"
>
update t_aidea_consult_sheet set del_flag=1 where id=#{id,jdbcType=BIGINT}
update t_aidea_consult_sheet set del_flag=1 where id=#{id,jdbcType=BIGINT}
</update>
</update>
<update
id=
"updateDate"
>
<update
id=
"updateDate"
>
update t_aidea_consult_sheet
update t_aidea_consult_sheet
<set>
<set>
<if
test=
"status !=null"
>
<if
test=
"status !=null"
>
status = #{status},
status = #{status},
</if>
</if>
<if
test=
"description !=null"
>
<if
test=
"description !=null"
>
description = #{description}
description = #{description}
</if>
</if>
</set>
</set>
where consult_id = #{consultId}
where consult_id = #{consultId}
</update>
</update>
<update
id=
"updateStatus"
>
<update
id=
"updateStatus"
>
update t_aidea_consult_sheet
update t_aidea_consult_sheet
<set>
<set>
...
...
cftech-common-web/src/main/resources/common-test.properties
View file @
95be5746
...
@@ -24,9 +24,7 @@ AIDEA_QY_ACCOUNTS=349
...
@@ -24,9 +24,7 @@ AIDEA_QY_ACCOUNTS=349
#\u56FE\u7247\u8BBF\u95EE\u5730\u5740
#\u56FE\u7247\u8BBF\u95EE\u5730\u5740
IMAGEURL
=
/aidea/mobile/qybase/showPic?picFileName={PICFILENAME}
IMAGEURL
=
/aidea/mobile/qybase/showPic?picFileName={PICFILENAME}
ROOT_PAPERCATEGORY_NAME
=
\u
95EE
\u5377\u
7C7B
\u
578B
ROOT_MATERIALCATEGORY_NAME
=
\u
7D20
\u6750\u
7C7B
\u
578B
ROOT_QUESTIONSCATEGORY_NAME
=
\u
95EE
\u9898\u
7C7B
\u
522B
ROOT_MATERIALCATEGORY_NAME
=
\u
7D20
\u6750\u
7C7B
\u
522B
ARTICLEDETAILURL
=
http://www.changfu-tech.com/schaeffler/static/mp/dc/buy-car/dc-news-detail.html?appid={APPID}&articleId={ID}
ARTICLEDETAILURL
=
http://www.changfu-tech.com/schaeffler/static/mp/dc/buy-car/dc-news-detail.html?appid={APPID}&articleId={ID}
ARTICLEDETAILPICURL
=
http://localhost:8080/schaeffler/static/article/picDetail.html?accountsid={ACCOUNTSID}&id={ID}
ARTICLEDETAILPICURL
=
http://localhost:8080/schaeffler/static/article/picDetail.html?accountsid={ACCOUNTSID}&id={ID}
LOG_URL
=
http://www.michang-tech.com.cn:6989/log/addlog
LOG_URL
=
http://www.michang-tech.com.cn:6989/log/addlog
...
...
cftech-common-web/src/main/webapp/assets/adminlte/pages/scripts/usermanager/useradd.js
View file @
95be5746
...
@@ -106,21 +106,24 @@ var UserAdd = function () {
...
@@ -106,21 +106,24 @@ var UserAdd = function () {
$
(
"#table tbody tr"
).
each
(
function
(
i
,
val
){
$
(
"#table tbody tr"
).
each
(
function
(
i
,
val
){
// var dealerNo=$(this).find("td:eq(1) select option[data-attr='sys:dealer']").val()//获取为经销商编码的ID
// var dealerNo=$(this).find("td:eq(1) select option[data-attr='sys:dealer']").val()//获取为经销商编码的ID
formdata
[
"account"
+
i
]
=
$
(
this
).
find
(
"td:first select"
).
val
();
// formdata["account"+i]=$(this).find("td:first select").val();
formdata
[
"roles"
+
i
]
=
$
(
this
).
find
(
"td:eq(1) select"
).
val
();
// formdata["roles"+i]=$(this).find("td:eq(1) select").val();
if
(
accountId
.
indexOf
(
","
+
$
(
this
).
find
(
"td:first select"
).
val
()
+
","
)
>=
0
){
formdata
[
"account"
+
i
]
=
"348"
;
Cfapp
.
alert
({
formdata
[
"roles"
+
i
]
=
$
(
this
).
find
(
"td:first select"
).
val
();
message
:
"存在重复公众号,请重新选择"
,
btntext
:
"确认"
,
// if(accountId.indexOf(","+$(this).find("td:first select").val()+",")>=0){
success
:
function
()
{
// Cfapp.alert({
}
// message: "存在重复公众号,请重新选择",
});
// btntext: "确认",
issubmit
=
false
;
// success: function () {
return
false
;
// }
}
else
{
// });
accountId
+=
","
+
$
(
this
).
find
(
"td:first select"
).
val
()
+
","
;
// issubmit=false;
}
// return false;
// }else{
// accountId+=","+$(this).find("td:first select").val()+",";
// }
});
});
accountId
=
""
;
accountId
=
""
;
...
@@ -153,6 +156,7 @@ var UserAdd = function () {
...
@@ -153,6 +156,7 @@ var UserAdd = function () {
}
}
});
});
defaultAccountId
=
"348"
;
if
(
!
defaultAccountId
||
defaultAccountId
==
''
)
{
if
(
!
defaultAccountId
||
defaultAccountId
==
''
)
{
Cfapp
.
alert
({
Cfapp
.
alert
({
message
:
"请选择默认的账号"
,
message
:
"请选择默认的账号"
,
...
...
cos-modules/cos-upload-module-web/src/main/webapp/WEB-INF/views/upload/materialUploadform.html
View file @
95be5746
...
@@ -228,23 +228,23 @@
...
@@ -228,23 +228,23 @@
>
>
</div>
</div>
<
div
class=
"form-group form-md-line-input"
>
<
!--<div class="form-group form-md-line-input">--
>
<
label>
素材存储位置
</label
>
<
!--<label>素材存储位置</label>--
>
<
select
name=
"cosconfigId"
class=
"form-control"
>
<
!--<select name="cosconfigId" class="form-control">--
>
<!--
<option value="0">本地</option>
-->
<!--
<!–<option value="0">本地</option>–>
-->
#foreach($cosconfig in $cosconfigList)
<!--#foreach($cosconfig in $cosconfigList)-->
#if($cosconfig.cosType == "qcloud")
<!--#if($cosconfig.cosType == "qcloud")-->
<
option
value=
"$cosconfig.id"
>
腾讯
</option
>
<
!--<option value="$cosconfig.id">腾讯</option>--
>
#end
<!--#end-->
#if($cosconfig.cosType == "ali")
<!--#if($cosconfig.cosType == "ali")-->
<
option
value=
"$cosconfig.id"
>
阿里
</option
>
<
!--<option value="$cosconfig.id">阿里</option>--
>
#end
<!--#end-->
#if($cosconfig.cosType == "qiniu")
<!--#if($cosconfig.cosType == "qiniu")-->
<
option
value=
"$cosconfig.id"
>
七牛
</option
>
<
!--<option value="$cosconfig.id">七牛</option>--
>
#end
<!--#end-->
#end
<!--#end-->
<
/select
>
<
!--</select>--
>
<
/div
>
<
!--</div>--
>
<div
id=
"fine-uploader-manual-trigger"
></div>
<div
id=
"fine-uploader-manual-trigger"
></div>
<!--<div class="box-footer">
<!--<div class="box-footer">
#if($shiro.hasPermission("material:edit"))
#if($shiro.hasPermission("material:edit"))
...
...
cos-modules/cos-upload-module/src/main/java/com/cftech/cos/uploader/web/MaterialUploadController.java
View file @
95be5746
This diff is collapsed.
Click to expand it.
membercard-modules/member-module/src/main/java/com/cftech/member/service/impl/MemberServiceImpl.java
View file @
95be5746
...
@@ -65,17 +65,19 @@ public class MemberServiceImpl extends GenericServiceImpl<Member> implements Mem
...
@@ -65,17 +65,19 @@ public class MemberServiceImpl extends GenericServiceImpl<Member> implements Mem
}
}
@Override
@Override
public
List
<
MemberDto
>
selectmemberDto
(
Conds
conds
,
Sort
sort
,
int
page
,
int
pageSize
){
public
List
<
MemberDto
>
selectmemberDto
(
Conds
conds
,
Sort
sort
,
int
page
,
int
pageSize
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"conds"
,
conds
);
params
.
put
(
"conds"
,
conds
);
params
.
put
(
"offset"
,
page
>
0
?
page
:
0
);
params
.
put
(
"offset"
,
page
>
0
?
page
:
0
);
params
.
put
(
"limit"
,
pageSize
>
0
?
pageSize
:
0
);
params
.
put
(
"limit"
,
pageSize
>
0
?
pageSize
:
0
);
params
.
put
(
"sort"
,
sort
);
params
.
put
(
"sort"
,
sort
);
return
memberMapper
.
selectmemberDto
(
params
);
return
memberMapper
.
selectmemberDto
(
params
);
};
}
;
@Override
@Override
public
int
selectmemberDtoCount
(
Conds
conds
)
{
public
int
selectmemberDtoCount
(
Conds
conds
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"conds"
,
conds
);
params
.
put
(
"conds"
,
conds
);
return
memberMapper
.
selectmemberDtoCount
(
params
);
return
memberMapper
.
selectmemberDtoCount
(
params
);
...
@@ -85,19 +87,19 @@ public class MemberServiceImpl extends GenericServiceImpl<Member> implements Mem
...
@@ -85,19 +87,19 @@ public class MemberServiceImpl extends GenericServiceImpl<Member> implements Mem
public
JSONObject
memberFormation
(
Long
id
)
{
public
JSONObject
memberFormation
(
Long
id
)
{
JSONObject
rtnJson
=
new
JSONObject
();
JSONObject
rtnJson
=
new
JSONObject
();
try
{
try
{
if
(
org
.
springframework
.
util
.
StringUtils
.
isEmpty
(
id
)){
if
(
org
.
springframework
.
util
.
StringUtils
.
isEmpty
(
id
))
{
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorMsg"
,
"id不能为空"
);
rtnJson
.
put
(
"errorMsg"
,
"id不能为空"
);
}
}
List
<
MemberVO
>
memberVOS
=
memberMapper
.
memberFormation
(
id
);
List
<
MemberVO
>
memberVOS
=
memberMapper
.
memberFormation
(
id
);
Log
.
info
(
"返回值"
+
memberVOS
);
Log
.
info
(
"返回值"
+
memberVOS
);
rtnJson
.
put
(
"errorNo"
,
"0"
);
rtnJson
.
put
(
"errorNo"
,
"0"
);
rtnJson
.
put
(
"data"
,
memberVOS
);
rtnJson
.
put
(
"data"
,
memberVOS
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorNo"
,
"1"
);
}
}
return
rtnJson
;
return
rtnJson
;
}
}
...
@@ -106,67 +108,67 @@ public class MemberServiceImpl extends GenericServiceImpl<Member> implements Mem
...
@@ -106,67 +108,67 @@ public class MemberServiceImpl extends GenericServiceImpl<Member> implements Mem
public
JSONObject
updateMember
(
MemberVO
memberVO
)
{
public
JSONObject
updateMember
(
MemberVO
memberVO
)
{
JSONObject
rtnJson
=
new
JSONObject
();
JSONObject
rtnJson
=
new
JSONObject
();
try
{
try
{
SimpleDateFormat
sdf1
=
new
SimpleDateFormat
(
"yy-MM-dd"
,
Locale
.
CHINA
);
SimpleDateFormat
sdf1
=
new
SimpleDateFormat
(
"yy-MM-dd"
,
Locale
.
CHINA
);
String
format
=
sdf1
.
format
(
memberVO
.
getBirthday
());
String
format
=
sdf1
.
format
(
memberVO
.
getBirthday
());
Date
date
=
sdf1
.
parse
(
format
);
Date
date
=
sdf1
.
parse
(
format
);
memberVO
.
setBirthday
(
date
);
memberVO
.
setBirthday
(
date
);
if
(
StringUtils
.
isEmpty
(
memberVO
.
getMemberName
())){
if
(
StringUtils
.
isEmpty
(
memberVO
.
getMemberName
()))
{
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorMsg"
,
"姓名不能为空"
);
rtnJson
.
put
(
"errorMsg"
,
"姓名不能为空"
);
return
rtnJson
;
return
rtnJson
;
}
}
if
(
StringUtils
.
isEmpty
(
memberVO
.
getMailbox
())){
if
(
StringUtils
.
isEmpty
(
memberVO
.
getMailbox
()))
{
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorMsg"
,
"邮箱不能为空"
);
rtnJson
.
put
(
"errorMsg"
,
"邮箱不能为空"
);
return
rtnJson
;
return
rtnJson
;
}
}
if
(
StringUtils
.
isEmpty
(
memberVO
.
getPhone
())){
if
(
StringUtils
.
isEmpty
(
memberVO
.
getPhone
()))
{
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorMsg"
,
"联系方式不能为空"
);
rtnJson
.
put
(
"errorMsg"
,
"联系方式不能为空"
);
return
rtnJson
;
return
rtnJson
;
}
}
int
i
=
memberMapper
.
updateMember
(
memberVO
);
int
i
=
memberMapper
.
updateMember
(
memberVO
);
if
(
i
>
0
)
{
if
(
i
>
0
)
{
rtnJson
.
put
(
"errorNo"
,
"0"
);
rtnJson
.
put
(
"errorNo"
,
"0"
);
rtnJson
.
put
(
"errorMsg"
,
"修改成功"
);
rtnJson
.
put
(
"errorMsg"
,
"修改成功"
);
}
else
{
}
else
{
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorMsg"
,
"修改失败"
);
rtnJson
.
put
(
"errorMsg"
,
"修改失败"
);
return
rtnJson
;
return
rtnJson
;
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorNo"
,
"1"
);
rtnJson
.
put
(
"errorMsg"
,
"系统异常"
);
rtnJson
.
put
(
"errorMsg"
,
"系统异常"
);
}
}
return
rtnJson
;
return
rtnJson
;
}
}
@Override
@Override
public
void
updateworkshop
(
Member
member
,
String
invitcode
)
{
public
void
updateworkshop
(
Member
member
,
String
invitcode
)
{
if
(
member
!=
null
)
{
if
(
member
!=
null
)
{
Conds
conds1
=
new
Conds
();
Conds
conds1
=
new
Conds
();
conds1
.
equal
(
"invitcode"
,
invitcode
);
conds1
.
equal
(
"invitcode"
,
invitcode
);
Sort
sort1
=
new
Sort
(
"create_time"
,
OrderType
.
DESC
);
Sort
sort1
=
new
Sort
(
"create_time"
,
OrderType
.
DESC
);
List
<
Workshop
>
list1
=
workshopService
.
selectworkshop
(
conds1
,
sort1
,
0
,
0
);
List
<
Workshop
>
list1
=
workshopService
.
selectworkshop
(
conds1
,
sort1
,
0
,
0
);
if
(
list1
!=
null
&&
list1
.
size
()>
0
)
{
if
(
list1
!=
null
&&
list1
.
size
()
>
0
)
{
Workshop
workshop
=
list1
.
get
(
0
);
Workshop
workshop
=
list1
.
get
(
0
);
if
(
member
.
getSurname
().
equals
(
workshop
.
getSurname
())&&
member
.
getName
().
equals
(
workshop
.
getFirst_name
())&&
member
.
getPhone
().
equals
(
""
))
{
if
(
member
.
getSurname
().
equals
(
workshop
.
getSurname
())
&&
member
.
getName
().
equals
(
workshop
.
getFirst_name
())
&&
member
.
getPhone
().
equals
(
""
))
{
member
.
setPhone
(
workshop
.
getPhone
());
member
.
setPhone
(
workshop
.
getPhone
());
memberMapper
.
save
(
member
);
//注册成功会员表里面添加一条数据
memberMapper
.
save
(
member
);
//注册成功会员表里面添加一条数据
}
else
{
}
else
{
memberMapper
.
save
(
member
);
//注册成功会员表里面添加一条数据
memberMapper
.
save
(
member
);
//注册成功会员表里面添加一条数据
}
}
}
}
//把memberuid 插入到预导入名单表里面
//把memberuid 插入到预导入名单表里面
if
(
StringUtils
.
isNoneBlank
(
invitcode
))
{
if
(
StringUtils
.
isNoneBlank
(
invitcode
))
{
Conds
conds
=
new
Conds
();
Conds
conds
=
new
Conds
();
conds
.
equal
(
"invitcode"
,
invitcode
);
conds
.
equal
(
"invitcode"
,
invitcode
);
Sort
sort
=
new
Sort
(
"create_time"
,
OrderType
.
DESC
);
Sort
sort
=
new
Sort
(
"create_time"
,
OrderType
.
DESC
);
List
<
Workshop
>
list
=
workshopService
.
selectworkshop
(
conds
,
sort
,
0
,
0
);
List
<
Workshop
>
list
=
workshopService
.
selectworkshop
(
conds
,
sort
,
0
,
0
);
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
for
(
Workshop
workshop
:
list
)
{
for
(
Workshop
workshop
:
list
)
{
//workshop.setMember_uid(member.getMember_uid());
//workshop.setMember_uid(member.getMember_uid());
workshopService
.
update
(
workshop
);
workshopService
.
update
(
workshop
);
}
}
...
...
sys-module-web/src/main/webapp/WEB-INF/views/manageuser/userupdate.html
View file @
95be5746
...
@@ -291,7 +291,6 @@
...
@@ -291,7 +291,6 @@
onText
:
'默认'
,
onText
:
'默认'
,
offText
:
'否'
,
offText
:
'否'
,
state
:
false
state
:
false
});
});
};
};
...
@@ -299,74 +298,98 @@
...
@@ -299,74 +298,98 @@
var
qyUserRoles
=
eval
(
$
{
qyUserRoles
});
var
qyUserRoles
=
eval
(
$
{
qyUserRoles
});
var
defaultAccid
=
"${user.defaultAccId}"
;
//
var defaultAccid = "${user.defaultAccId}";
for
(
var
i
=
0
;
i
<
userRoles
.
length
;
i
++
)
{
if
(
userRoles
.
length
==
0
)
{
var
accounthtml
=
$
(
".account"
).
html
();
var
rolehtml
=
$
(
".role"
).
html
();
var
rolehtml
=
$
(
".role"
).
html
();
var
html
=
""
;
var
html
=
""
;
html
+=
"<tr class='trEle'>"
;
html
+=
"<tr class='trEle'>"
;
// html += "
<
td
>
";
//
html += "
<
td
>
";
// html += "
<
select
class
=
'form-control select2 account'
data
-
placeholder
=
'请选择公众号'
>
" + accounthtml;
//
html += "
<
select
class
=
'form-control select2 account'
data
-
placeholder
=
'请选择公众号'
>
" + accounthtml;
// html += "
<
/select></
td
>
";
//
html += "
<
/select></
td
>
";
html += "
<
td
>
";
html += "
<
td
>
";
html += "
<
select
class
=
'form-control select2 role'
style
=
'width:100%;'
multiple
=
'multiple'
data
-
placeholder
=
'请选择角色'
>
";
html += "
<
select
class
=
'form-control select2 role'
style
=
'width:100%;'
multiple
=
'multiple'
data
-
placeholder
=
'请选择角色'
>
";
html += rolehtml;
html += rolehtml;
html += '</select></td>' +
html += '</select></td>' +
'<td>' +
'<td>' +
'<div class="
switch
">' +
//
'<div class="
switch
">' +
'<input type="
radio
" id="
' + userRoles[i]['
accountsId
'] + '
-
sel
" name="
isdefault
"/>' +
// '<input type="
radio
" name="
isdefault
"/>' +
'</div>' +
//
'</div>' +
'<button type="
button
" class="
btn
btn
-
danger
delAccounts
">删除</button>' +
//
'<button type="
button
" class="
btn
btn
-
danger
delAccounts
">删除</button>' +
'</td></tr>';
'</td></tr>';
$("
#
table
tbody
").append(html);
$("
#
table
tbody
").append(html);
$("
#
table
tbody
tr
:
last
select
:
first
option
").each(function (k, val) {
bindSwitch();
if ($(this).val() == userRoles[i]['accountsId']) {
$(this).attr("
selected
", true);
}
})
$("
#
table
tbody
tr
:
last
select
:
last
option
").each(function (k, val) {
if (userRoles[i]['roles'].indexOf("
,
" + $(this).val() + "
,
") >= 0) {
$(this).attr("
selected
", true);
}
})
$("
.
select2
").select2();
$("
.
select2
").select2();
} else {
for (var i = 0; i < userRoles.length; i++) {
var accounthtml = $("
.
account
").html();
var rolehtml = $("
.
role
").html();
var html = "";
html += "
<
tr
class
=
'trEle'
>
";
// html += "
<
td
>
";
// html += "
<
select
class
=
'form-control select2 account'
data
-
placeholder
=
'请选择公众号'
>
" + accounthtml;
// html += "
<
/select></
td
>
";
html += "
<
td
>
";
html += "
<
select
class
=
'form-control select2 role'
style
=
'width:100%;'
multiple
=
'multiple'
data
-
placeholder
=
'请选择角色'
>
";
html += rolehtml;
html += '</select></td>' +
'<td>' +
// '<div class="
switch
">' +
// '<input type="
radio
" id="
' + userRoles[i]['
accountsId
'] + '
-
sel
" name="
isdefault
"/>' +
// '</div>' +
// '<button type="
button
" class="
btn
btn
-
danger
delAccounts
">删除</button>' +
'</td></tr>';
$("
#
table
tbody
").append(html);
$("
#
table
tbody
tr
:
last
select
:
first
option
").each(function (k, val) {
if ($(this).val() == userRoles[i]['accountsId']) {
$(this).attr("
selected
", true);
}
})
$("
#
table
tbody
tr
:
last
select
:
last
option
").each(function (k, val) {
if (userRoles[i]['roles'].indexOf("
,
" + $(this).val() + "
,
") >= 0) {
$(this).attr("
selected
", true);
}
})
$("
.
select2
").select2();
}
}
}
for (var i = 0; i < qyUserRoles.length; i++) {
var accounthtml = $("
.
qyaccount
").html();
var rolehtml = $("
.
qyrole
").html();
var html = "";
// for (var i = 0; i < qyUserRoles.length; i++) {
html += "
<
tr
class
=
'trEle'
>
";
// var accounthtml = $("
.
qyaccount
").html();
// var rolehtml = $("
.
qyrole
").html();
// var html = "";
// html += "
<
tr
class
=
'trEle'
>
";
// html += "
<
td
>
";
// html += "
<
td
>
";
// html += "
<
select
class
=
'form-control select2 qyaccount'
data
-
placeholder
=
'请选择公众号'
>
" + accounthtml;
// html += "
<
select
class
=
'form-control select2 qyaccount'
data
-
placeholder
=
'请选择公众号'
>
" + accounthtml;
// html += "
<
/select></
td
>
";
// html += "
<
/select></
td
>
";
html += "
<
td
>
";
//
html += "
<
td
>
";
html += "
<
select
class
=
'form-control select2 qyrole'
style
=
'width:100%;'
multiple
=
'multiple'
data
-
placeholder
=
'请选择角色'
>
";
//
html += "
<
select
class
=
'form-control select2 qyrole'
style
=
'width:100%;'
multiple
=
'multiple'
data
-
placeholder
=
'请选择角色'
>
";
html += rolehtml;
//
html += rolehtml;
html += '</select></td>' +
//
html += '</select></td>' +
'<td>' +
//
'<td>' +
'<div class="
switch
">' +
//
'<div class="
switch
">' +
'<input type="
radio
" id="
' + qyUserRoles[i]['
accountsId
'] + '
-
sel
" name="
isdefault
"/>' +
//
'<input type="
radio
" id="
' + qyUserRoles[i]['
accountsId
'] + '
-
sel
" name="
isdefault
"/>' +
'</div>' +
//
'</div>' +
'<button type="
button
" class="
btn
btn
-
danger
delAccounts
">删除</button>' +
//
'<button type="
button
" class="
btn
btn
-
danger
delAccounts
">删除</button>' +
'</td></tr>';
//
'</td></tr>';
$("
#
qytable
tbody
").append(html);
//
$("
#
qytable
tbody
").append(html);
$("
#
qytable
tbody
tr
:
last
select
:
first
option
").each(function (k, val) {
//
$("
#
qytable
tbody
tr
:
last
select
:
first
option
").each(function (k, val) {
if ($(this).val() == qyUserRoles[i]['accountsId']) {
//
if ($(this).val() == qyUserRoles[i]['accountsId']) {
$(this).attr("
selected
", true);
//
$(this).attr("
selected
", true);
}
//
}
})
//
})
$("
#
qytable
tbody
tr
:
last
select
:
last
option
").each(function (k, val) {
//
$("
#
qytable
tbody
tr
:
last
select
:
last
option
").each(function (k, val) {
if (qyUserRoles[i]['roles'].indexOf("
,
" + $(this).val() + "
,
") >= 0) {
//
if (qyUserRoles[i]['roles'].indexOf("
,
" + $(this).val() + "
,
") >= 0) {
$(this).attr("
selected
", true);
//
$(this).attr("
selected
", true);
}
//
}
})
//
})
$("
.
select2
").select2();
//
$("
.
select2
").select2();
}
//
}
bindSwitch();
bindSwitch();
$('#' + defaultAccid + '-sel').bootstrapSwitch('toggleState');
//
$('#' + defaultAccid + '-sel').bootstrapSwitch('toggleState');
jQuery(document).ready(function () {
jQuery(document).ready(function () {
...
@@ -400,38 +423,38 @@
...
@@ -400,38 +423,38 @@
html += rolehtml;
html += rolehtml;
html += '</select></td>' +
html += '</select></td>' +
'<td>' +
'<td>' +
'<div class="
switch
">' +
//
'<div class="
switch
">' +
'<input type="
radio
" name="
isdefault
"/>' +
//
'<input type="
radio
" name="
isdefault
"/>' +
'</div>' +
//
'</div>' +
'<button type="
button
" class="
btn
btn
-
danger
delAccounts
">删除</button>' +
//
'<button type="
button
" class="
btn
btn
-
danger
delAccounts
">删除</button>' +
'</td></tr>';
'</td></tr>';
$("
#
table
tbody
").append(html);
$("
#
table
tbody
").append(html);
bindSwitch();
bindSwitch();
$("
.
select2
").select2();
$("
.
select2
").select2();
});
});
$("
#
addQyAccounts
").click(function () {
//
$("
#
addQyAccounts
").click(function () {
var accounthtml = $("
.
qyaccount
").html();
//
var accounthtml = $("
.
qyaccount
").html();
var rolehtml = $("
.
qyrole
").html();
//
var rolehtml = $("
.
qyrole
").html();
var html = "";
//
var html = "";
html += "
<
tr
class
=
'trEle'
>
";
//
html += "
<
tr
class
=
'trEle'
>
";
// html += "
<
td
>
";
// html += "
<
td
>
";
// html += "
<
select
class
=
'form-control select2 qyaccount'
data
-
placeholder
=
'请选择企业号'
>
" + accounthtml;
// html += "
<
select
class
=
'form-control select2 qyaccount'
data
-
placeholder
=
'请选择企业号'
>
" + accounthtml;
// html += "
<
/select></
td
>
";
// html += "
<
/select></
td
>
";
// html += "
<
td
>
";
// html += "
<
td
>
";
html += "
<
select
class
=
'form-control select2 qyrole'
style
=
'width:100%;'
multiple
=
'multiple'
data
-
placeholder
=
'请选择角色'
>
";
//
html += "
<
select
class
=
'form-control select2 qyrole'
style
=
'width:100%;'
multiple
=
'multiple'
data
-
placeholder
=
'请选择角色'
>
";
html += rolehtml;
//
html += rolehtml;
html += '</select></td>' +
//
html += '</select></td>' +
'<td>' +
//
'<td>' +
'<div class="
switch
">' +
//
'<div class="
switch
">' +
'<input type="
radio
" name="
isdefault
"/>' +
//
'<input type="
radio
" name="
isdefault
"/>' +
'</div>' +
//
'</div>' +
'<button type="
button
" class="
btn
btn
-
danger
delAccounts
">删除</button>' +
//
'<button type="
button
" class="
btn
btn
-
danger
delAccounts
">删除</button>' +
'</td></tr>';
//
'</td></tr>';
$("
#
qytable
tbody
").append(html);
//
$("
#
qytable
tbody
").append(html);
bindSwitch();
//
bindSwitch();
$("
.
select2
").select2();
//
$("
.
select2
").select2();
})
//
})
var sQyUserSource = "
#
springUrl
(
'/a/qyuser/listData'
)
";
var sQyUserSource = "
#
springUrl
(
'/a/qyuser/listData'
)
";
$('#orgtypeSelect').on('click',
$('#orgtypeSelect').on('click',
...
...
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