拦截器
This commit is contained in:
@@ -32,7 +32,7 @@ public class BssGoods implements Serializable {
|
||||
private Long id;
|
||||
private String name;
|
||||
// 数量
|
||||
private Integer num;
|
||||
private Double num;
|
||||
// 细节金额
|
||||
@Column(name = "detail_amount")
|
||||
private BigDecimal detailAmount;
|
||||
|
||||
@@ -72,7 +72,7 @@ public class User implements Serializable {
|
||||
private BssPlatform bssPlatform;
|
||||
|
||||
|
||||
@ManyToMany(fetch = FetchType.LAZY)
|
||||
@ManyToMany(fetch = FetchType.EAGER)
|
||||
@JoinTable(name = "sys_user_role",
|
||||
joinColumns = @JoinColumn(name="user_id"),
|
||||
inverseJoinColumns = @JoinColumn(name = "role_id"))
|
||||
|
||||
+2
-2
@@ -86,7 +86,7 @@ public class ApiBizServiceImpl implements ApiBizService{
|
||||
good.setUnit(commodityUnits.get(i).getWord());
|
||||
}
|
||||
if (ToolUtil.checkListSize(commodityNums) && !StringUtil.isBlank(commodityNums.get(i).getWord())) {
|
||||
good.setNum(Integer.valueOf(commodityNums.get(i).getWord()));
|
||||
good.setNum(Double.valueOf(commodityNums.get(i).getWord()));
|
||||
}
|
||||
if (ToolUtil.checkListSize(commodityPrices) && commodityPrices.size() > i && !StringUtil.isBlank(commodityPrices.get(i).getWord())) {
|
||||
good.setUnitPrice(commodityPrices.get(i).getWord());
|
||||
@@ -128,7 +128,7 @@ public class ApiBizServiceImpl implements ApiBizService{
|
||||
BssGoods good = new BssGoods();
|
||||
good.setName(InvoiceTypeEnum.TRAIN_INVOICE.getName());
|
||||
good.setDetailAmount(new BigDecimal(wordsResult.getTicketRates()));
|
||||
good.setNum(1);
|
||||
good.setNum(1d);
|
||||
good.setUnit("张");
|
||||
good.setUnitPrice(wordsResult.getTicketRates());
|
||||
goods.add(good);
|
||||
|
||||
Reference in New Issue
Block a user