|
@ -42,6 +42,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
import javax.annotation.Resource; |
|
|
|
|
|
import java.math.BigDecimal; |
|
|
import java.util.Collections; |
|
|
import java.util.Collections; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
@ -59,11 +60,12 @@ public class AppOtherOutApplyService { |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
WmsOtheroutApplyDetailsVo data = wmsOtherOutApplyFeign.fetchDetailsBySid(sid).getData(); |
|
|
WmsOtheroutApplyDetailsVo data = wmsOtherOutApplyFeign.fetchDetailsBySid(sid).getData(); |
|
|
AppOtheroutApplyDetailsVo appOtheroutApplyDetailsVo = new AppOtheroutApplyDetailsVo(); |
|
|
AppOtheroutApplyDetailsVo appOtheroutApplyDetailsVo = new AppOtheroutApplyDetailsVo(); |
|
|
|
|
|
appOtheroutApplyDetailsVo.setProcInsId(data.getProcInstId()); |
|
|
BeanUtil.copyProperties(data,appOtheroutApplyDetailsVo); |
|
|
BeanUtil.copyProperties(data,appOtheroutApplyDetailsVo); |
|
|
List<AppOtheroutDetailDetailsVo> otheroutDetailList = appOtheroutApplyDetailsVo.getOtheroutDetailList(); |
|
|
List<AppOtheroutDetailDetailsVo> otheroutDetailList = appOtheroutApplyDetailsVo.getOtheroutDetailList(); |
|
|
for (AppOtheroutDetailDetailsVo appOtheroutDetailDetailsVo : otheroutDetailList) { |
|
|
for (AppOtheroutDetailDetailsVo appOtheroutDetailDetailsVo : otheroutDetailList) { |
|
|
appOtheroutDetailDetailsVo.setWarehouseRackName(appOtheroutDetailDetailsVo.getWarehouseRackCode()); |
|
|
appOtheroutDetailDetailsVo.setWarehouseRackName(appOtheroutDetailDetailsVo.getWarehouseRackCode()); |
|
|
appOtheroutDetailDetailsVo.setAmount(appOtheroutDetailDetailsVo.getOutCount().multiply(appOtheroutDetailDetailsVo.getInCost())); |
|
|
appOtheroutDetailDetailsVo.setAmount(appOtheroutDetailDetailsVo.getOutCount().multiply(appOtheroutDetailDetailsVo.getInCost()).setScale(2, BigDecimal.ROUND_HALF_UP)); |
|
|
} |
|
|
} |
|
|
return rb.success().setData(appOtheroutApplyDetailsVo); |
|
|
return rb.success().setData(appOtheroutApplyDetailsVo); |
|
|
} |
|
|
} |
|
|