|
@@ -147,21 +147,21 @@ public class NormChargeLogic {
|
|
|
// BigDecimal outWorkerAmount = BigDecimal.ZERO;
|
|
|
// BigDecimal outWebsitAmount = BigDecimal.ZERO;
|
|
|
|
|
|
- if (bean.getSelfWorkerAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- if (bean.getSelfWorkerAmount().compareTo(bean.getNormAmount()) > 0) {
|
|
|
- if (bean.getNormType().equals(NormTypeEnum.M.getKey())) {
|
|
|
- throw new RemoteServiceException("自有库存师傅分账金额不能大于收费标准");
|
|
|
- } else {
|
|
|
- throw new RemoteServiceException("师傅分账金额不能大于收费标准");
|
|
|
- }
|
|
|
- }
|
|
|
+// if (bean.getSelfWorkerAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
+// if (bean.getSelfWorkerAmount().compareTo(bean.getNormAmount()) > 0) {
|
|
|
+// if (bean.getNormType().equals(NormTypeEnum.M.getKey())) {
|
|
|
+// throw new RemoteServiceException("自有库存师傅分账金额不能大于收费标准");
|
|
|
+// } else {
|
|
|
+// throw new RemoteServiceException("师傅分账金额不能大于收费标准");
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
// selWorkerAmount = bean.getSelfWorkerAmount();
|
|
|
selWorkerAmount = bean.getNormAmount();
|
|
|
selWebsitAmount = bean.getNormAmount().subtract(selWorkerAmount);
|
|
|
- } else {
|
|
|
- selWebsitAmount = bean.getNormAmount();
|
|
|
- }
|
|
|
+// } else {
|
|
|
+// selWebsitAmount = bean.getNormAmount();
|
|
|
+// }
|
|
|
|
|
|
// if (bean.getOutWorkerAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
// if (bean.getOutWorkerAmount().compareTo(bean.getNormAmount()) > 0) {
|