下单备注问题/后台发单不允许小数点存在
This commit is contained in:
parent
f3c0419987
commit
1cebda3074
|
|
@ -149,6 +149,11 @@ public class OrderController extends BaseController {
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public AjaxResult sysOrder(@RequestBody SysOrderAssignRequest request) {
|
public AjaxResult sysOrder(@RequestBody SysOrderAssignRequest request) {
|
||||||
|
|
||||||
|
// 判断传递价格是否有小数
|
||||||
|
if (new BigDecimal(request.getPrice().intValue()).compareTo(request.getPrice())!=0){
|
||||||
|
return AjaxResult.error("后台发单金额不能含有小数!");
|
||||||
|
}
|
||||||
|
|
||||||
// 判断是否有客户
|
// 判断是否有客户
|
||||||
SysUser sysUser = getSysUser();
|
SysUser sysUser = getSysUser();
|
||||||
Long deptId = sysUser.getDept().getDeptId();
|
Long deptId = sysUser.getDept().getDeptId();
|
||||||
|
|
@ -198,6 +203,7 @@ public class OrderController extends BaseController {
|
||||||
goods.setGoodsVideoUrl(request.getVideoUrl());
|
goods.setGoodsVideoUrl(request.getVideoUrl());
|
||||||
goods.setDeptGoodsCategoryId(request.getCategoryId3());
|
goods.setDeptGoodsCategoryId(request.getCategoryId3());
|
||||||
goods.setStatus(1);
|
goods.setStatus(1);
|
||||||
|
goods.setRemark(request.getRemark());
|
||||||
goodsService.insertGoods(goods);
|
goodsService.insertGoods(goods);
|
||||||
|
|
||||||
List<GoodsStandard> goodsStandards = new ArrayList<>();
|
List<GoodsStandard> goodsStandards = new ArrayList<>();
|
||||||
|
|
|
||||||
|
|
@ -658,7 +658,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$.modal.msgError("请求失败")
|
$.modal.msgError(result.msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -683,7 +683,7 @@
|
||||||
if (result.code == web_status.SUCCESS) {
|
if (result.code == web_status.SUCCESS) {
|
||||||
$.modal.msgSuccess("提交成功")
|
$.modal.msgSuccess("提交成功")
|
||||||
} else {
|
} else {
|
||||||
$.modal.msgError("请求失败")
|
$.modal.msgError(result.msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -52,4 +52,6 @@ public class SysOrderAssignRequest {
|
||||||
|
|
||||||
private String payMode;
|
private String payMode;
|
||||||
|
|
||||||
|
private String remark;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue