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
2c625c90
Commit
2c625c90
authored
Oct 23, 2020
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Aidea product update by Strive Date 2020-10-23
parent
a6125e31
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
19 deletions
+49
-19
ConsultSheetMapper.xml
...lasses/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
+35
-18
WaybillMapper.java
...e/src/main/java/com/cftech/waybill/dao/WaybillMapper.java
+6
-0
WaybillServiceImpl.java
...a/com/cftech/waybill/service/impl/WaybillServiceImpl.java
+1
-1
GenericService.java
...src/main/java/com/cftech/core/generic/GenericService.java
+7
-0
No files found.
aidea-modules/consult-module/target/classes/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
View file @
2c625c90
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
<result
column=
"consult_id"
property=
"consultId"
/>
<result
column=
"consult_id"
property=
"consultId"
/>
<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=
"benebit_id"
property=
"benebitId"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"iphone"
property=
"iPhone"
/>
<result
column=
"iphone"
property=
"iPhone"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
<result
column=
"past_records"
property=
"pastRecords"
/>
...
@@ -62,11 +61,10 @@
...
@@ -62,11 +61,10 @@
<sql
id=
"sqlColumns"
>
<sql
id=
"sqlColumns"
>
a.id,
a.id,
a.consult_id,
a.consult_id,
a.user_name,
CONVERT(AES_DECRYPT(a.user_name,'aideakey') USING UTF8),
a.number_id,
CONVERT(AES_DECRYPT(a.number_id,'aideakey') USING UTF8),
a.benebit_id,
a.sex,
a.sex,
a.iphone
,
CONVERT(AES_DECRYPT(a.iphone,'aideakey') USING UTF8)
,
a.past_records,
a.past_records,
a.prescription,
a.prescription,
a.doctor_id,
a.doctor_id,
...
@@ -101,14 +99,13 @@
...
@@ -101,14 +99,13 @@
)
)
values
values
(
(
#{id, jdbcType=BIGINT},
#{id, jdbcType=BIGINT}
#{consultId, jdbcType=VARCHAR},
#{consultId, jdbcType=VARCHAR},
#{userName, jdbcType=VARCHAR}
,
AES_ENCRYPT(#{userName, jdbcType=VARBINARY},'aideakey')
,
#{numberId, jdbcType=VARCHAR}
,
AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey')
,
now(),
now(),
#{sex, jdbcType=BIGINT},
#{sex, jdbcType=BIGINT},
#{iPhone, jdbcType=VARCHAR}
,
AES_ENCRYPT(#{iPhone, jdbcType=VARBINARY},'aideakey')
,
#{pastRecords, jdbcType=VARCHAR},
#{pastRecords, jdbcType=VARCHAR},
#{Prescription, jdbcType=VARCHAR},
#{Prescription, jdbcType=VARCHAR},
#{doctorId, jdbcType=BIGINT},
#{doctorId, jdbcType=BIGINT},
...
@@ -158,9 +155,8 @@
...
@@ -158,9 +155,8 @@
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
LEFT JOIN `user` u ON u.userid = b.id
<include
refid=
"sqlWhere"
/>
<include
refid=
"sqlWhere"
/>
<if
test=
"id!=null"
>
${id} = b.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>
...
@@ -176,19 +172,18 @@
...
@@ -176,19 +172,18 @@
consult_id = #{consultId, jdbcType=VARCHAR},
consult_id = #{consultId, jdbcType=VARCHAR},
</if>
</if>
<if
test=
"userName != null"
>
<if
test=
"userName != null"
>
user_name = #{userName, jdbcType=VARCHAR},
user_name = AES_ENCRYPT( #{userName, jdbcType=VARBINARY},'aideakey'),
</if>
</if>
<if
test=
"numberId != null"
>
<if
test=
"numberId != null"
>
number_id = #{numberId, jdbcType=VARCHAR},
number_id = AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
</if>
<if
test=
"benebitId != null"
>
benebit_id = #{benebitId, jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"sex != null"
>
<if
test=
"sex != null"
>
sex = #{sex, jdbcType=BIGINT},
sex = #{sex, jdbcType=BIGINT},
</if>
</if>
<if
test=
"iPhone != null"
>
<if
test=
"iPhone != null"
>
iphone =
#{iPhone, jdbcType=VARCHAR}
,
iphone =
AES_ENCRYPT(#{iPhone, jdbcType=VARBINARY},'aideakey')
,
</if>
</if>
<if
test=
"pastRecords != null"
>
<if
test=
"pastRecords != null"
>
past_records = #{pastRecords, jdbcType=VARCHAR},
past_records = #{pastRecords, jdbcType=VARCHAR},
...
@@ -254,6 +249,28 @@
...
@@ -254,6 +249,28 @@
<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 t_aidea_consult_sheet
<set>
<if
test=
"status !=null"
>
status = #{status},
</if>
<if
test=
"description !=null"
>
description = #{description}
</if>
</set>
where consult_id = #{consultId}
</update>
<update
id=
"updateStatus"
>
update t_aidea_consult_sheet
<set>
<if
test=
"status !=null"
>
status = #{status}
</if>
</set>
where consult_id = #{consultId}
</update>
</mapper>
</mapper>
aidea-modules/waybill-module/src/main/java/com/cftech/waybill/dao/WaybillMapper.java
View file @
2c625c90
...
@@ -11,4 +11,10 @@ import com.cftech.core.generic.GenericDao;
...
@@ -11,4 +11,10 @@ import com.cftech.core.generic.GenericDao;
*/
*/
public
interface
WaybillMapper
extends
GenericDao
<
Waybill
>
{
public
interface
WaybillMapper
extends
GenericDao
<
Waybill
>
{
/**
* 查询物流数据(联查)
* @param id
* @return
*/
Waybill
fetchByWayBillId
(
String
id
);
}
}
\ No newline at end of file
aidea-modules/waybill-module/src/main/java/com/cftech/waybill/service/impl/WaybillServiceImpl.java
View file @
2c625c90
...
@@ -30,6 +30,6 @@ public class WaybillServiceImpl extends GenericServiceImpl<Waybill> implements W
...
@@ -30,6 +30,6 @@ public class WaybillServiceImpl extends GenericServiceImpl<Waybill> implements W
@Override
@Override
public
Waybill
fetchByWayBillId
(
String
id
)
{
public
Waybill
fetchByWayBillId
(
String
id
)
{
return
getGenericMapper
()
.
fetchByWayBillId
(
id
);
return
waybillMapper
.
fetchByWayBillId
(
id
);
}
}
}
}
\ No newline at end of file
cftech-common/src/main/java/com/cftech/core/generic/GenericService.java
View file @
2c625c90
...
@@ -79,4 +79,11 @@ public interface GenericService<T> {
...
@@ -79,4 +79,11 @@ public interface GenericService<T> {
*/
*/
int
count
(
Conds
conds
);
int
count
(
Conds
conds
);
/**
* 根据删除对象
*
* @param id
* @return
*/
boolean
delete
(
Serializable
id
);
}
}
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