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
13b79a44
Commit
13b79a44
authored
Mar 10, 2021
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Submit by Strive
Submit Date 2021/03/10
parent
bba6ff3c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
50 additions
and
34 deletions
+50
-34
InvoiceMapper.xml
...le/src/main/java/com/cftech/invoice/dao/InvoiceMapper.xml
+3
-3
orderlist.html
...le-web/src/main/webapp/WEB-INF/views/order/orderlist.html
+1
-1
OrderMapper.xml
...module/src/main/java/com/cftech/order/dao/OrderMapper.xml
+19
-20
OrderServiceImpl.java
.../java/com/cftech/order/service/impl/OrderServiceImpl.java
+4
-1
InvoiceUtil.java
...ule/src/main/java/com/cftech/order/utils/InvoiceUtil.java
+11
-3
OrderController.java
...e/src/main/java/com/cftech/order/web/OrderController.java
+5
-4
productform.html
...eb/src/main/webapp/WEB-INF/views/product/productform.html
+0
-2
ProductController.java
...c/main/java/com/cftech/product/web/ProductController.java
+7
-0
No files found.
aidea-modules/invoice-module/src/main/java/com/cftech/invoice/dao/InvoiceMapper.xml
View file @
13b79a44
...
...
@@ -229,9 +229,9 @@
i.create_time invoiceCreateTime,
i.invoice_code invoiceCode,
i.invoice_num invoiceNum,
t
.order_amount orderAmount,
t
.image_url imageUrl,
t
.pdf_url pdfUrl
o
.order_amount orderAmount,
i
.image_url imageUrl,
i
.pdf_url pdfUrl
FROM
t_order o
LEFT JOIN t_order_details d ON d.order_id = o.id
...
...
aidea-modules/order-module-web/src/main/webapp/WEB-INF/views/order/orderlist.html
View file @
13b79a44
...
...
@@ -276,7 +276,7 @@
<th>
咨询单编码
</th>
<th>
产品名称
</th>
<th>
订单金额
</th>
<th>
付款
金额
</th>
<th>
原
金额
</th>
<th>
昵称
</th>
<th>
别名
</th>
<!--<th>openid</th>-->
...
...
aidea-modules/order-module/src/main/java/com/cftech/order/dao/OrderMapper.xml
View file @
13b79a44
...
...
@@ -298,7 +298,7 @@
</select>
<select
id=
"count"
parameterType=
"java.util.Map"
resultType=
"java.lang.Integer"
>
SELECT
IFNULL(SUM(col), 0
)
SELECT
COUNT(1
)
FROM (
SELECT COUNT(1) col
FROM t_order o
...
...
@@ -313,25 +313,24 @@
LEFT JOIN t_aidea_waybill aw ON o.id = aw.order_id
<include
refid=
"sqlWhere"
/>
<if
test=
"userid != null"
>
AND (o.service_id = ${userid} or o.doctor_id =${userid} or o.clerk_id = ${userid})
</if>
<if
test=
"userid != null"
>
AND (o.service_id = ${userid} or o.doctor_id =${userid} or o.clerk_id = ${userid})
</if>
GROUP BY o.id
<if
test=
"orderAmount != null or payAmount != null"
>
HAVING 1=1
<choose>
<when
test=
"orderAmount == 6"
>
AND drugsNum >= ${orderAmount}
</when>
<when
test=
"payAmount == 6"
>
AND drugsNum >= ${payAmount}
</when>
<when
test=
"orderAmount != 6"
>
AND drugsNum = ${orderAmount}
</when>
<when
test=
"payAmount != 6"
>
AND drugsNum = ${payAmount}
</when>
</choose>
</if>
GROUP BY o.id
<if
test=
"orderAmount != null or payAmount != null"
>
HAVING 1=1
<choose>
<when
test=
"orderAmount == 6"
>
AND drugsNum >= ${orderAmount}
</when>
<when
test=
"payAmount == 6"
>
AND drugsNum >= ${payAmount}
</when>
<when
test=
"orderAmount != 6"
>
AND drugsNum = ${orderAmount}
</when>
<when
test=
"payAmount != 6"
>
AND drugsNum = ${payAmount}
</when>
</choose>
</if>
) duals
</select>
...
...
aidea-modules/order-module/src/main/java/com/cftech/order/service/impl/OrderServiceImpl.java
View file @
13b79a44
...
...
@@ -542,7 +542,10 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order
order
.
setPayTime
(
date
);
}
if
(
orderMapper
.
update
(
order
)
>
0
)
{
couponrecordService
.
sendCouponRecord
(
order
.
getOpenid
(),
order
.
getAccountsId
());
//非三期用户才能发券
if
(
isThreeUsers
(
order
.
getOpenid
())
==
0
)
{
couponrecordService
.
sendCouponRecord
(
order
.
getOpenid
(),
order
.
getAccountsId
());
}
sendQyWechatMassage
(
order
.
getId
());
return
WechatPayUtils
.
retSucXml
;
}
...
...
aidea-modules/order-module/src/main/java/com/cftech/order/utils/InvoiceUtil.java
View file @
13b79a44
...
...
@@ -66,7 +66,8 @@ public class InvoiceUtil {
JSONObject
order
=
new
JSONObject
();
order
.
put
(
"terminalNumber"
,
""
);
//终端号(开票终端号,只能 为空或数字)
//购方电话 非必传
order
.
put
(
"buyerTel"
,
orderObj
.
getMemberPhone
());
order
.
put
(
"buyerTel"
,
StringUtils
.
isNoneBlank
(
orderObj
.
getMemberPhone
())
?
""
:
//
orderObj
.
getMemberPhone
().
substring
(
0
,
3
)
+
"****"
+
orderObj
.
getMemberPhone
().
substring
(
7
,
orderObj
.
getMemberPhone
().
length
()));
//清单标志:非清单:0;清单:1,默认:0 非必传
order
.
put
(
"listFlag"
,
"0"
);
//推送方式:-1,不推送;0,邮箱;1,手机(默认);2,邮箱、手机 非必填
...
...
@@ -82,7 +83,8 @@ public class InvoiceUtil {
//收款人 非必填
order
.
put
(
"payee"
,
SystemConfig
.
p
.
getProperty
(
"PAYEE"
));
//购方地址 非必填
order
.
put
(
"buyerAddress"
,
orderObj
.
getAddressDes
());
order
.
put
(
"buyerAddress"
,
StringUtils
.
isNoneBlank
(
orderObj
.
getAddressDes
())
?
""
:
//
orderObj
.
getAddressDes
().
substring
(
0
,
3
)
+
"****"
+
orderObj
.
getAddressDes
().
substring
(
7
,
orderObj
.
getMemberPhone
().
length
()));
//购方税号(企业要填,个人可为空)
if
(
StringUtils
.
isNotBlank
(
unitTax
)){
order
.
put
(
"buyerTaxNum"
,
unitTax
);
...
...
@@ -107,7 +109,7 @@ public class InvoiceUtil {
if
(
type
.
equals
(
"0"
)){
order
.
put
(
"buyerName"
,
"个人"
);
}
else
{
order
.
put
(
"buyerName"
,
"企业名称"
);
order
.
put
(
"buyerName"
,
invoiceTitle
);
}
// 订单时间 必填
order
.
put
(
"invoiceDate"
,
orderObj
.
getCreateTimeStr
());
...
...
@@ -200,4 +202,10 @@ public class InvoiceUtil {
return
result
;
}
public
static
void
main
(
String
[]
args
)
{
String
aaa
=
"15800815547"
;
aaa
=
aaa
.
substring
(
0
,
3
)
+
"****"
+
aaa
.
substring
(
7
,
aaa
.
length
());
System
.
out
.
println
(
aaa
);
}
}
aidea-modules/order-module/src/main/java/com/cftech/order/web/OrderController.java
View file @
13b79a44
...
...
@@ -273,10 +273,8 @@ public class OrderController {
if
(
StringUtils
.
equals
(
"-1"
,
order
.
getStatus
()))
{
conds
.
in
(
"o.status"
,
new
String
[]{
"0"
,
"1"
});
}
else
if
(
StringUtils
.
isNoneBlank
(
order
.
getStatus
()))
{
}
else
if
(
StringUtils
.
isNoneBlank
(
order
.
getStatus
())
&&
!
StringUtils
.
equals
(
order
.
getStatus
(),
"all"
)
)
{
conds
.
equal
(
"o.status"
,
order
.
getStatus
());
}
else
if
(
StringUtils
.
equals
(
"all"
,
order
.
getStatus
()))
{
}
//三期患者
...
...
@@ -581,7 +579,10 @@ public class OrderController {
try
{
OrderFromVO
orderFromVO
=
orderService
.
fetchId
(
id
);
if
(
orderFromVO
!=
null
&&
StringUtils
.
isNoneBlank
(
orderFromVO
.
getOpenid
()))
{
couponrecordService
.
sendCouponRecord
(
orderFromVO
.
getOpenid
(),
accountId
);
//非三期用户才能发券
if
(
orderService
.
isThreeUsers
(
orderFromVO
.
getOpenid
())
==
0
)
{
couponrecordService
.
sendCouponRecord
(
orderFromVO
.
getOpenid
(),
accountId
);
}
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
...
...
aidea-modules/product-module-web/src/main/webapp/WEB-INF/views/product/productform.html
View file @
13b79a44
...
...
@@ -332,8 +332,6 @@
}
$
().
ready
(
function
()
{
let
redingType
=
$
(
"#redingType"
).
val
();
let
redingYes
=
$
(
"#redingYes"
).
val
();
if
(
redingType
==
redingYes
){
...
...
aidea-modules/product-module/src/main/java/com/cftech/product/web/ProductController.java
View file @
13b79a44
...
...
@@ -100,6 +100,13 @@ public class ProductController {
if
(
StringUtils
.
isNotBlank
(
product
.
getDescription
()))
{
product
.
setDescription
(
product
.
getDescription
().
replace
(
"\n"
,
"<br/>"
));
}
if
(
StringUtils
.
isNoneBlank
(
product
.
getDescription
()))
{
String
htmlStr
=
product
.
getDescription
()
//
.
replaceAll
(
"\r\n"
,
"<br>"
)
.
replaceAll
(
"\n"
,
"<br>"
);
product
.
setDescription
(
htmlStr
);
}
if
(
product
!=
null
&&
product
.
getId
()
!=
null
)
{
product
.
setUpdateBy
(
UserUtils
.
getUser
().
getId
());
productService
.
update
(
product
);
...
...
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