Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
app-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
back-end
app-service
Commits
ff59b294
Commit
ff59b294
authored
Jun 03, 2020
by
zhangzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加账单功能
parent
a5426261
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
583 additions
and
13 deletions
+583
-13
OwnerBillInterface.java
...in/java/com/esv/freight/app/feign/OwnerBillInterface.java
+42
-0
OwnerBillController.java
...eight/app/module/bill/controller/OwnerBillController.java
+154
-0
BillQueryForm.java
...a/com/esv/freight/app/module/bill/form/BillQueryForm.java
+47
-0
OwnerBillDetailPojo.java
...esv/freight/app/module/bill/pojo/OwnerBillDetailPojo.java
+115
-0
BillDetailVO.java
...java/com/esv/freight/app/module/bill/vo/BillDetailVO.java
+116
-0
BillListItemVO.java
...va/com/esv/freight/app/module/bill/vo/BillListItemVO.java
+49
-0
BillListVO.java
...n/java/com/esv/freight/app/module/bill/vo/BillListVO.java
+43
-0
OwnerEvaluateForm.java
...v/freight/app/module/evaluate/form/OwnerEvaluateForm.java
+1
-1
OrderController.java
.../freight/app/module/order/controller/OrderController.java
+1
-0
OrderForm.java
...java/com/esv/freight/app/module/order/form/OrderForm.java
+7
-4
DriverWaybillController.java
...pp/module/waybill/controller/DriverWaybillController.java
+8
-8
No files found.
src/main/java/com/esv/freight/app/feign/OwnerBillInterface.java
0 → 100644
View file @
ff59b294
package
com
.
esv
.
freight
.
app
.
feign
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
/**
* @description:
* @project: freight-app-service
* @name: com.esv.freight.app.feign.OwnerComplaintInterface
* @author: 张志臣
* @email: zhangzhichen@esvtek.com
* @createTime: 2020/05/28 14:20
* @version:1.0
*/
@FeignClient
(
value
=
"freight-bill-service"
)
public
interface
OwnerBillInterface
{
/**
* 分页查询
* @param bodyJson
* @return
*/
@PostMapping
(
value
=
"bill/verify/recvbill/list/app"
)
JSONObject
listBillOwner
(
JSONObject
bodyJson
);
/**
* 账单详情
* @param bodyJson
* @return
*/
@PostMapping
(
value
=
"bill/verify/recvbill/detail/app"
)
JSONObject
billOwnerDetail
(
JSONObject
bodyJson
);
/**
* 确认对账
* @param bodyJson
* @return
*/
@PostMapping
(
value
=
"bill/verify/recvbill/confirmBill"
)
JSONObject
confirmBill
(
JSONObject
bodyJson
);
}
src/main/java/com/esv/freight/app/module/bill/controller/OwnerBillController.java
0 → 100644
View file @
ff59b294
package
com
.
esv
.
freight
.
app
.
module
.
bill
.
controller
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.esv.freight.app.common.response.EResponse
;
import
com.esv.freight.app.common.util.FeignUtils
;
import
com.esv.freight.app.common.validator.groups.ValidatorDetail
;
import
com.esv.freight.app.common.validator.groups.ValidatorList
;
import
com.esv.freight.app.feign.OwnerBillInterface
;
import
com.esv.freight.app.module.account.pojo.DriverAccountInfoPojo
;
import
com.esv.freight.app.module.bill.form.BillQueryForm
;
import
com.esv.freight.app.module.bill.pojo.OwnerBillDetailPojo
;
import
com.esv.freight.app.module.bill.vo.BillDetailVO
;
import
com.esv.freight.app.module.bill.vo.BillListItemVO
;
import
com.esv.freight.app.module.bill.vo.BillListVO
;
import
com.esv.freight.app.module.evaluate.form.OwnerEvaluateForm
;
import
com.esv.freight.app.module.evaluate.vo.EvaluateListItemVO
;
import
com.esv.freight.app.module.evaluate.vo.EvaluateListVO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @description: 货主账单Controller
* @project: freight-app-service
* @name: com.esv.freight.app.module.bill.controller.OwnerBillController
* @author: 张志臣
* @email: zhangzhichen@esvtek.com
* @createTime: 2020/06/02 17:40
* @version:1.0
*/
@RestController
@RequestMapping
(
"/ownerBackend/bill"
)
@Slf4j
@Validated
public
class
OwnerBillController
{
private
OwnerBillInterface
ownerBillInterface
;
@Autowired
public
OwnerBillController
(
OwnerBillInterface
ownerBillInterface
)
{
this
.
ownerBillInterface
=
ownerBillInterface
;
}
/**
* description 获取对账详情
* param complaintForm
* return com.esv.freight.common.response.EResponse
* author 张志臣
* createTime 2020/06/03 13:30
**/
@PostMapping
(
"/confirmBill"
)
public
EResponse
confirmBill
(
@RequestBody
(
required
=
false
)
@Validated
(
ValidatorDetail
.
class
)
BillQueryForm
billQueryForm
)
{
// 调用确认账单接口
JSONObject
reqJson
=
new
JSONObject
();
reqJson
.
put
(
"id"
,
billQueryForm
.
getId
());
log
.
info
(
reqJson
.
toJSONString
());
JSONObject
result
=
ownerBillInterface
.
confirmBill
(
reqJson
);
log
.
info
(
result
.
toJSONString
());
if
(!
FeignUtils
.
isFeignSuccess
(
result
))
{
return
FeignUtils
.
getFeignEResponse
(
result
);
}
return
EResponse
.
ok
();
}
/**
* description 获取对账详情
* param complaintForm
* return com.esv.freight.common.response.EResponse
* author 张志臣
* createTime 2020/06/03 13:30
**/
@PostMapping
(
"/detail"
)
public
EResponse
detail
(
@RequestBody
(
required
=
false
)
@Validated
(
ValidatorDetail
.
class
)
BillQueryForm
billQueryForm
)
{
// 调用账单详情接口
JSONObject
reqJson
=
new
JSONObject
();
reqJson
.
put
(
"id"
,
billQueryForm
.
getId
());
log
.
info
(
reqJson
.
toJSONString
());
JSONObject
result
=
ownerBillInterface
.
billOwnerDetail
(
reqJson
);
log
.
info
(
result
.
toJSONString
());
if
(!
FeignUtils
.
isFeignSuccess
(
result
))
{
return
FeignUtils
.
getFeignEResponse
(
result
);
}
BillDetailVO
billDetailVO
=
new
BillDetailVO
();
OwnerBillDetailPojo
ownerBillDetailPojo
=
JSONObject
.
toJavaObject
(
FeignUtils
.
getFeignDataJson
(
result
),
OwnerBillDetailPojo
.
class
);
BeanUtils
.
copyProperties
(
ownerBillDetailPojo
,
billDetailVO
);
billDetailVO
.
setBillNo
(
ownerBillDetailPojo
.
getRecvBillNo
());
billDetailVO
.
setBillState
(
ownerBillDetailPojo
.
getRecvBillState
());
return
EResponse
.
ok
(
billDetailVO
);
}
/**
* description 获取对账列表
* param complaintForm
* return com.esv.freight.common.response.EResponse
* author 张志臣
* createTime 2020/06/02 18:00
**/
@PostMapping
(
"/list"
)
public
EResponse
list
(
@RequestBody
(
required
=
false
)
@Validated
(
ValidatorList
.
class
)
BillQueryForm
billQueryForm
)
{
// 调用评价列表分页查询接口
JSONObject
reqJson
=
new
JSONObject
();
reqJson
.
put
(
"goodsOwnerId"
,
billQueryForm
.
getUserId
());
reqJson
.
put
(
"pageNum"
,
billQueryForm
.
getPageNum
());
reqJson
.
put
(
"pageSize"
,
billQueryForm
.
getPageSize
());
log
.
info
(
reqJson
.
toJSONString
());
JSONObject
result
=
ownerBillInterface
.
listBillOwner
(
reqJson
);
log
.
info
(
result
.
toJSONString
());
if
(!
FeignUtils
.
isFeignSuccess
(
result
))
{
return
FeignUtils
.
getFeignEResponse
(
result
);
}
BillListVO
pageResultVO
=
new
BillListVO
();
JSONObject
data
=
result
.
getJSONObject
(
"data"
);
pageResultVO
.
setPageSize
(
data
.
getLong
(
"pageSize"
));
pageResultVO
.
setPageNum
(
data
.
getLong
(
"pageNum"
));
pageResultVO
.
setTotal
(
data
.
getLong
(
"total"
));
pageResultVO
.
setRecordSize
(
data
.
getLong
(
"recordSize"
));
if
(
pageResultVO
.
getRecordSize
()
>
0
)
{
JSONArray
items
=
data
.
getJSONArray
(
"records"
);
List
<
BillListItemVO
>
records
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
items
.
size
();
++
i
)
{
BillListItemVO
vo
=
new
BillListItemVO
();
JSONObject
object
=
items
.
getJSONObject
(
i
);
vo
.
setId
(
object
.
getLong
(
"id"
));
vo
.
setBillNo
(
object
.
getString
(
"recvBillNo"
));
vo
.
setBillState
(
object
.
getInteger
(
"recvBillState"
));
vo
.
setBillTimeBucketStart
(
object
.
getDate
(
"billTimeBucketStart"
));
vo
.
setBillTimeBucketEnd
(
object
.
getDate
(
"billTimeBucketEnd"
));
vo
.
setTotalMoney
(
object
.
getBigDecimal
(
"totalMoney"
));
records
.
add
(
vo
);
}
pageResultVO
.
setRecord
(
records
);
}
return
EResponse
.
ok
(
pageResultVO
);
}
}
src/main/java/com/esv/freight/app/module/bill/form/BillQueryForm.java
0 → 100644
View file @
ff59b294
package
com
.
esv
.
freight
.
app
.
module
.
bill
.
form
;
import
com.esv.freight.app.common.validator.groups.ValidatorDetail
;
import
com.esv.freight.app.common.validator.groups.ValidatorList
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Range
;
import
javax.validation.constraints.NotNull
;
/**
* @description:
* @project: freight-app-service
* @name: com.esv.freight.app.module.bill.form.BillQueryForm
* @author: 张志臣
* @email: zhangzhichen@esvtek.com
* @createTime: 2020/06/02 17:25
* @version:1.0
*/
@Data
public
class
BillQueryForm
{
/**
*
*/
@NotNull
(
message
=
"参数id不能为空"
,
groups
=
{
ValidatorDetail
.
class
})
private
Long
id
;
/**
* 账号ID
*/
@NotNull
(
message
=
"参数userId不能为空"
,
groups
=
{
ValidatorList
.
class
})
private
Long
userId
;
/**
* 当前页数
*/
@Range
(
min
=
1
,
max
=
65535
,
message
=
"无效的pageNum"
,
groups
=
{
ValidatorList
.
class
})
@NotNull
(
message
=
"参数pageNum不能为空"
,
groups
=
{
ValidatorList
.
class
})
private
Long
pageNum
;
/**
* 每页显示记录数
*/
@Range
(
min
=
1
,
max
=
1000
,
message
=
"pageSize"
,
groups
=
{
ValidatorList
.
class
})
@NotNull
(
message
=
"参数pageSize不能为空"
,
groups
=
{
ValidatorList
.
class
})
private
Long
pageSize
;
}
src/main/java/com/esv/freight/app/module/bill/pojo/OwnerBillDetailPojo.java
0 → 100644
View file @
ff59b294
package
com
.
esv
.
freight
.
app
.
module
.
bill
.
pojo
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @description:
* @project: freight-app-service
* @name: com.esv.freight.app.module.bill.pojo.OwnerBillDetailPojo
* @author: 张志臣
* @email: zhangzhichen@esvtek.com
* @createTime: 2020/06/03 14:10
* @version:1.0
*/
@Data
public
class
OwnerBillDetailPojo
{
/**
* 主键
*/
private
Long
id
;
/**
* 对账单号
*/
private
String
recvBillNo
;
/**
* 对账开始时间
*/
private
Date
billTimeBucketStart
;
/**
* 账单结束时间
*/
private
Date
billTimeBucketEnd
;
/**
* 运费
*/
private
BigDecimal
freightPrice
=
BigDecimal
.
ZERO
;
/**
* 亏吨
*/
private
BigDecimal
less
=
BigDecimal
.
ZERO
;
/**
* 涨吨
*/
private
BigDecimal
more
=
BigDecimal
.
ZERO
;
/**
* 信息费
*/
private
BigDecimal
info
=
BigDecimal
.
ZERO
;
/**
* 内保费
*/
private
BigDecimal
inprotect
=
BigDecimal
.
ZERO
;
/**
* 抹零
*/
private
BigDecimal
smallChange
=
BigDecimal
.
ZERO
;
/**
* 罚款
*/
private
BigDecimal
punish
=
BigDecimal
.
ZERO
;
/**
* 装卸费
*/
private
BigDecimal
handling
=
BigDecimal
.
ZERO
;
/**
* 奖金
*/
private
BigDecimal
bonus
=
BigDecimal
.
ZERO
;
/**
* 补贴费
*/
private
BigDecimal
subsidy
=
BigDecimal
.
ZERO
;
/**
* 总计费用
*/
private
BigDecimal
totalMoney
=
BigDecimal
.
ZERO
;
/**
* 应收对账状态:1-核实中;2-已对账;3-已开票;4-已回款
*/
private
Integer
recvBillState
;
/**
* 回款时间
*/
private
Date
topUrgent
;
/**
* 创建时间
*/
private
Date
createTime
;
@Override
public
String
toString
()
{
return
ToStringBuilder
.
reflectionToString
(
this
,
ToStringStyle
.
JSON_STYLE
);
}
}
src/main/java/com/esv/freight/app/module/bill/vo/BillDetailVO.java
0 → 100644
View file @
ff59b294
package
com
.
esv
.
freight
.
app
.
module
.
bill
.
vo
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @description:
* @project: freight-app-service
* @name: com.esv.freight.app.module.bill.vo.BillDetailVO
* @author: 张志臣
* @email: zhangzhichen@esvtek.com
* @createTime: 2020/06/03 14:05
* @version:1.0
*/
@Data
public
class
BillDetailVO
{
/**
* 主键
*/
private
Long
id
;
/**
* 对账单号
*/
private
String
billNo
;
/**
* 对账开始时间
*/
private
Date
billTimeBucketStart
;
/**
* 账单结束时间
*/
private
Date
billTimeBucketEnd
;
/**
* 运费
*/
private
BigDecimal
freightPrice
=
BigDecimal
.
ZERO
;
/**
* 亏吨
*/
private
BigDecimal
less
=
BigDecimal
.
ZERO
;
/**
* 涨吨
*/
private
BigDecimal
more
=
BigDecimal
.
ZERO
;
/**
* 信息费
*/
private
BigDecimal
info
=
BigDecimal
.
ZERO
;
/**
* 内保费
*/
private
BigDecimal
inprotect
=
BigDecimal
.
ZERO
;
/**
* 抹零
*/
private
BigDecimal
smallChange
=
BigDecimal
.
ZERO
;
/**
* 罚款
*/
private
BigDecimal
punish
=
BigDecimal
.
ZERO
;
/**
* 装卸费
*/
private
BigDecimal
handling
=
BigDecimal
.
ZERO
;
/**
* 奖金
*/
private
BigDecimal
bonus
=
BigDecimal
.
ZERO
;
/**
* 补贴费
*/
private
BigDecimal
subsidy
=
BigDecimal
.
ZERO
;
/**
* 总计费用
*/
private
BigDecimal
totalMoney
=
BigDecimal
.
ZERO
;
/**
* 应收对账状态:1-核实中;2-已对账;3-已开票;4-已回款
*/
private
Integer
billState
;
/**
* 回款时间
*/
private
Date
topUrgent
;
/**
* 创建时间
*/
private
Date
createTime
;
@Override
public
String
toString
()
{
return
ToStringBuilder
.
reflectionToString
(
this
,
ToStringStyle
.
JSON_STYLE
);
}
}
src/main/java/com/esv/freight/app/module/bill/vo/BillListItemVO.java
0 → 100644
View file @
ff59b294
package
com
.
esv
.
freight
.
app
.
module
.
bill
.
vo
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @description:
* @project: freight-app-service
* @name: com.esv.freight.app.module.bill.vo.BillListItemVO
* @author: 张志臣
* @email: zhangzhichen@esvtek.com
* @createTime: 2020/06/02 18:00
* @version:1.0
*/
@Data
public
class
BillListItemVO
{
/**
* 对账ID
*/
private
Long
id
;
/**
* 对账单号
*/
private
String
billNo
;
/**
* 对账状态
*/
private
Integer
billState
;
/**
* 对账开始时间
*/
private
Date
billTimeBucketStart
;
/**
* 账单结束时间
*/
private
Date
billTimeBucketEnd
;
/**
* 总计费用
*/
private
BigDecimal
totalMoney
;
}
src/main/java/com/esv/freight/app/module/bill/vo/BillListVO.java
0 → 100644
View file @
ff59b294
package
com
.
esv
.
freight
.
app
.
module
.
bill
.
vo
;
import
lombok.Data
;
import
java.util.List
;
/**
* @description:
* @project: freight-app-service
* @name: com.esv.freight.app.module.bill.vo.BillListVO
* @author: 张志臣
* @email: zhangzhichen@esvtek.com
* @createTime: 2020/06/02 18:00
* @version:1.0
*/
@Data
public
class
BillListVO
{
/**
* 每页记录条数
**/
private
Long
pageSize
;
/**
* 当前页码
**/
private
Long
pageNum
;
/**
* 总记录条数
**/
private
Long
total
;
/**
* 当前页的记录条数
**/
private
Long
recordSize
;
/**
* 数据
**/
private
List
<
BillListItemVO
>
record
;
}
src/main/java/com/esv/freight/app/module/evaluate/form/OwnerEvaluateForm.java
View file @
ff59b294
...
@@ -90,7 +90,7 @@ public class OwnerEvaluateForm {
...
@@ -90,7 +90,7 @@ public class OwnerEvaluateForm {
/**
/**
* 每页显示记录数
* 每页显示记录数
*/
*/
@Range
(
min
=
1
,
max
=
100
,
message
=
"pageSize"
,
groups
=
{
ValidatorList
.
class
})
@Range
(
min
=
1
,
max
=
100
0
,
message
=
"pageSize"
,
groups
=
{
ValidatorList
.
class
})
@NotNull
(
message
=
"参数pageSize不能为空"
,
groups
=
{
ValidatorList
.
class
})
@NotNull
(
message
=
"参数pageSize不能为空"
,
groups
=
{
ValidatorList
.
class
})
private
Long
pageSize
;
private
Long
pageSize
;
}
}
src/main/java/com/esv/freight/app/module/order/controller/OrderController.java
View file @
ff59b294
...
@@ -170,6 +170,7 @@ public class OrderController {
...
@@ -170,6 +170,7 @@ public class OrderController {
reqJson
.
put
(
"vehicleLength"
,
orderForm
.
getVehicleLength
());
reqJson
.
put
(
"vehicleLength"
,
orderForm
.
getVehicleLength
());
reqJson
.
put
(
"orderSource"
,
2
);
reqJson
.
put
(
"orderSource"
,
2
);
reqJson
.
put
(
"remark"
,
orderForm
.
getRemark
());
reqJson
.
put
(
"remark"
,
orderForm
.
getRemark
());
// reqJson.put("signData", orderForm.getSignData());
log
.
info
(
reqJson
.
toJSONString
());
log
.
info
(
reqJson
.
toJSONString
());
JSONObject
result
=
tmsInterface
.
addOrderOwner
(
reqJson
);
JSONObject
result
=
tmsInterface
.
addOrderOwner
(
reqJson
);
log
.
info
(
result
.
toJSONString
());
log
.
info
(
result
.
toJSONString
());
...
...
src/main/java/com/esv/freight/app/module/order/form/OrderForm.java
View file @
ff59b294
...
@@ -10,10 +10,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
...
@@ -10,10 +10,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.Range
;
import
org.hibernate.validator.constraints.Range
;
import
javax.validation.constraints.DecimalMax
;
import
javax.validation.constraints.*
;
import
javax.validation.constraints.DecimalMin
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Positive
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
/**
/**
...
@@ -35,6 +32,12 @@ public class OrderForm {
...
@@ -35,6 +32,12 @@ public class OrderForm {
@NotNull
(
message
=
"参数id不能为空"
,
groups
=
{
ValidatorUpdate
.
class
,
ValidatorDelete
.
class
})
@NotNull
(
message
=
"参数id不能为空"
,
groups
=
{
ValidatorUpdate
.
class
,
ValidatorDelete
.
class
})
private
Long
id
;
private
Long
id
;
/**
* 货主签名数据
*/
@NotBlank
(
message
=
"参数signData不能为空"
,
groups
=
{
ValidatorInsert
.
class
})
private
String
signData
;
/**
/**
* 货主id
* 货主id
*/
*/
...
...
src/main/java/com/esv/freight/app/module/waybill/controller/DriverWaybillController.java
View file @
ff59b294
...
@@ -194,16 +194,16 @@ public class DriverWaybillController {
...
@@ -194,16 +194,16 @@ public class DriverWaybillController {
reqJson
.
put
(
"waybillId"
,
uploadEvidenceForm
.
getWaybillId
());
reqJson
.
put
(
"waybillId"
,
uploadEvidenceForm
.
getWaybillId
());
reqJson
.
put
(
"goodsAmount"
,
uploadEvidenceForm
.
getGoodsAmount
());
reqJson
.
put
(
"goodsAmount"
,
uploadEvidenceForm
.
getGoodsAmount
());
reqJson
.
put
(
"deliveryTime"
,
uploadEvidenceForm
.
getOccurrenceTime
());
reqJson
.
put
(
"deliveryTime"
,
uploadEvidenceForm
.
getOccurrenceTime
());
if
(
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl01
()))
{
if
(
!
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl01
()))
{
reqJson
.
put
(
"pictureUrl01"
,
uploadEvidenceForm
.
getPictureUrl01
());
reqJson
.
put
(
"pictureUrl01"
,
uploadEvidenceForm
.
getPictureUrl01
());
}
}
if
(
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl02
()))
{
if
(
!
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl02
()))
{
reqJson
.
put
(
"pictureUrl02"
,
uploadEvidenceForm
.
getPictureUrl02
());
reqJson
.
put
(
"pictureUrl02"
,
uploadEvidenceForm
.
getPictureUrl02
());
}
}
if
(
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl03
()))
{
if
(
!
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl03
()))
{
reqJson
.
put
(
"pictureUrl03"
,
uploadEvidenceForm
.
getPictureUrl03
());
reqJson
.
put
(
"pictureUrl03"
,
uploadEvidenceForm
.
getPictureUrl03
());
}
}
if
(
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl04
()))
{
if
(
!
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl04
()))
{
reqJson
.
put
(
"pictureUrl04"
,
uploadEvidenceForm
.
getPictureUrl04
());
reqJson
.
put
(
"pictureUrl04"
,
uploadEvidenceForm
.
getPictureUrl04
());
}
}
log
.
info
(
reqJson
.
toJSONString
());
log
.
info
(
reqJson
.
toJSONString
());
...
@@ -232,16 +232,16 @@ public class DriverWaybillController {
...
@@ -232,16 +232,16 @@ public class DriverWaybillController {
reqJson
.
put
(
"waybillId"
,
uploadEvidenceForm
.
getWaybillId
());
reqJson
.
put
(
"waybillId"
,
uploadEvidenceForm
.
getWaybillId
());
reqJson
.
put
(
"goodsAmount"
,
uploadEvidenceForm
.
getGoodsAmount
());
reqJson
.
put
(
"goodsAmount"
,
uploadEvidenceForm
.
getGoodsAmount
());
reqJson
.
put
(
"receiveTime"
,
uploadEvidenceForm
.
getOccurrenceTime
());
reqJson
.
put
(
"receiveTime"
,
uploadEvidenceForm
.
getOccurrenceTime
());
if
(
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl01
()))
{
if
(
!
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl01
()))
{
reqJson
.
put
(
"pictureUrl01"
,
uploadEvidenceForm
.
getPictureUrl01
());
reqJson
.
put
(
"pictureUrl01"
,
uploadEvidenceForm
.
getPictureUrl01
());
}
}
if
(
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl02
()))
{
if
(
!
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl02
()))
{
reqJson
.
put
(
"pictureUrl02"
,
uploadEvidenceForm
.
getPictureUrl02
());
reqJson
.
put
(
"pictureUrl02"
,
uploadEvidenceForm
.
getPictureUrl02
());
}
}
if
(
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl03
()))
{
if
(
!
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl03
()))
{
reqJson
.
put
(
"pictureUrl03"
,
uploadEvidenceForm
.
getPictureUrl03
());
reqJson
.
put
(
"pictureUrl03"
,
uploadEvidenceForm
.
getPictureUrl03
());
}
}
if
(
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl04
()))
{
if
(
!
StringUtils
.
isEmpty
(
uploadEvidenceForm
.
getPictureUrl04
()))
{
reqJson
.
put
(
"pictureUrl04"
,
uploadEvidenceForm
.
getPictureUrl04
());
reqJson
.
put
(
"pictureUrl04"
,
uploadEvidenceForm
.
getPictureUrl04
());
}
}
log
.
info
(
reqJson
.
toJSONString
());
log
.
info
(
reqJson
.
toJSONString
());
...
...
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