no message

This commit is contained in:
cb 2025-05-28 16:43:40 +08:00
parent ecd9a76eeb
commit 36767a00bf
6 changed files with 14 additions and 12 deletions

View File

@ -1,6 +1,8 @@
package com.ghy.web.controller.order;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -146,11 +148,10 @@ public class OrderAttachmentRecordController extends BaseController
/**
* 删除附件费 根据子单id
*/
@Log(title = "附件费", businessType = BusinessType.DELETE)
@PostMapping( "/deleteByDetailId")
@ResponseBody
public AjaxResult deleteByDetailId(Long id)
public AjaxResult deleteByDetailId(@RequestParam Long orderDetailId)
{
return toAjax(orderAttachmentRecordService.deleteOrderAttachmentRecordByOrderDetailId(id));
return toAjax(orderAttachmentRecordService.deleteOrderAttachmentRecordByOrderDetailId(orderDetailId));
}
}

View File

@ -811,13 +811,13 @@ public class OrderMasterController extends BaseController {
if (financialMaster.getPayStatus()==1){
paymentMoney=paymentMoney.add(financialMaster.getTotalMoney());
}
List<FinancialChangeRecord> financialChangeRecords=financialChangeRecordService.selectByMasterId(orderMaster.getId());
List<FinancialChangeRecord> financialChangeRecords=financialChangeRecordService.selectByMasterId(master.getId());
BigDecimal changePaymentMoney =financialChangeRecords.stream()
.filter(record->record.getPayStatus()==1)
.map(FinancialChangeRecord::getChangeMoney)
.reduce(BigDecimal.ZERO, BigDecimal::add);
paymentMoney=paymentMoney.add(changePaymentMoney);
logger.info("加价费已支付{}加价列表{}主单id为{}",changePaymentMoney,financialChangeRecords,orderMaster.getId());
logger.info("加价费已支付{}加价列表{}主单id为{}",changePaymentMoney,financialChangeRecords,master.getId());
for (OrderDetail detail : detailList) {
// 查询子单加价记录
@ -1353,7 +1353,8 @@ public class OrderMasterController extends BaseController {
for (FinancialDetail financialDetail : financialDetailList) {
finalRecvMoney = finalRecvMoney.add(financialDetail.getPayMoney());
}
BigDecimal serverMoney =financialMaster.getServerMoney();
BigDecimal serverMoney =BigDecimal.ZERO;
serverMoney=serverMoney.add(financialMaster.getServerMoney());
serverMoney=serverMoney.add(leaderMoney);
logger.info("大师傅的服务金额{}大师傅的分成{}",serverMoney,leaderMoney);
// 编辑返回属性

View File

@ -2,6 +2,7 @@ package com.ghy.order.mapper;
import java.util.List;
import com.ghy.order.domain.OrderAttachmentRecord;
import org.apache.ibatis.annotations.Param;
/**
* 附件费Mapper接口
@ -66,5 +67,5 @@ public interface OrderAttachmentRecordMapper
* @param id 子单id
* @return 结果
*/
public int deleteOrderAttachmentRecordByOrderDetailId(Long id);
public int deleteOrderAttachmentRecordByOrderDetailId(Long orderDetailId);
}

View File

@ -59,5 +59,5 @@ public interface IOrderAttachmentRecordService
*/
public int deleteOrderAttachmentRecordById(Long id);
int deleteOrderAttachmentRecordByOrderDetailId(Long id);
int deleteOrderAttachmentRecordByOrderDetailId(Long orderDetailId);
}

View File

@ -95,12 +95,11 @@ public class OrderAttachmentRecordServiceImpl implements IOrderAttachmentRecordS
/**
* 删除附件费信息 根据子单id
*
* @param id 附件费主键
* @return 结果
*/
@Override
public int deleteOrderAttachmentRecordByOrderDetailId(Long id)
public int deleteOrderAttachmentRecordByOrderDetailId(Long orderDetailId)
{
return orderAttachmentRecordMapper.deleteOrderAttachmentRecordByOrderDetailId(id);
return orderAttachmentRecordMapper.deleteOrderAttachmentRecordByOrderDetailId(orderDetailId);
}
}

View File

@ -77,6 +77,6 @@
</delete>
<delete id="deleteOrderAttachmentRecordByOrderDetailId" parameterType="Long">
delete from order_attachment_record where order_detail_id = #{id}
delete from order_attachment_record where order_detail_id = #{orderDetailId}
</delete>
</mapper>