Commit ac418c19 authored by shiyu's avatar shiyu

完成订单结款计算2

parent 6ff04b0d
......@@ -237,8 +237,8 @@ public class SysFinanceServiceImpl implements SysFinanceService {
public Result exportUserBillDetail(UserAccountDetailRequestDto dto) {
try {
UserBillRequestDto userBillRequestDto = new UserBillRequestDto();
dto.setUserId(dto.getUserId());
dto.setAccountPeriod(dto.getAccountPeriod());
userBillRequestDto.setUserId(dto.getUserId());
userBillRequestDto.setAccountPeriod(dto.getAccountPeriod());
//查询某一个藏家的账单
Result result = findUserBill(userBillRequestDto);
if (!result.getSuccess()) {
......
......@@ -16,6 +16,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
......@@ -39,6 +40,7 @@ public class SysUserBillServiceImpl implements SysUserBillService {
@Autowired
DistributorProfitDao distributorProfitDao;
@Transactional(propagation = Propagation.REQUIRES_NEW)
@Override
public Result finishCalculate(DistributionOrder distributionOrder) throws Exception{
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment