耗材管理
This commit is contained in:
parent
5076cc5808
commit
4d15bb4961
|
|
@ -1,6 +1,7 @@
|
|||
package com.czg.controller.admin;
|
||||
|
||||
import com.czg.log.annotation.OperationLog;
|
||||
import com.czg.product.dto.ConsStockFlowDTO;
|
||||
import com.czg.product.param.ConsCheckStockParam;
|
||||
import com.czg.product.param.ConsInOutStockHeadParam;
|
||||
import com.czg.product.param.ConsReportDamageParam;
|
||||
|
|
@ -89,4 +90,15 @@ public class ConsStockFlowController {
|
|||
consStockFlowService.reportDamage(param);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 耗材库存变动记录
|
||||
*/
|
||||
@GetMapping("flow")
|
||||
@OperationLog("耗材库存变动记录")
|
||||
//@SaAdminCheckPermission("consStockFlow:flow")
|
||||
public CzgResult<Page<ConsStockFlowDTO>> stockFlow(@RequestParam Long conId) {
|
||||
Page<ConsStockFlowDTO> data = consStockFlowService.findConsStockFlowPage(conId);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +1,15 @@
|
|||
|
||||
package com.czg.order.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Date;
|
||||
import java.io.Serial;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Date;
|
||||
|
||||
/**
|
||||
* 实体类。
|
||||
*
|
||||
|
|
@ -62,7 +63,7 @@ public class ShopOrderStatisticDTO implements Serializable {
|
|||
private Long wechatPayCount;
|
||||
|
||||
/**
|
||||
* 位置支付金额
|
||||
* 微信支付金额
|
||||
*/
|
||||
private BigDecimal wechatPayAmount;
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public class ShopOrderStatistic implements Serializable {
|
|||
private Long wechatPayCount = 0L;
|
||||
|
||||
/**
|
||||
* 位置支付金额
|
||||
* 微信支付金额
|
||||
*/
|
||||
private BigDecimal wechatPayAmount = BigDecimal.ZERO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.czg.product.service;
|
||||
|
||||
import com.czg.product.dto.ConsStockFlowDTO;
|
||||
import com.czg.product.entity.ConsStockFlow;
|
||||
import com.czg.product.param.ConsCheckStockParam;
|
||||
import com.czg.product.param.ConsInOutStockHeadParam;
|
||||
|
|
@ -62,5 +63,10 @@ public interface ConsStockFlowService extends IService<ConsStockFlow> {
|
|||
*/
|
||||
void reportDamage(ConsReportDamageParam param);
|
||||
|
||||
|
||||
/**
|
||||
* 获取耗材库存变动记录
|
||||
* @param conId 耗材id
|
||||
* @return 分页数据
|
||||
*/
|
||||
Page<ConsStockFlowDTO> findConsStockFlowPage(Long conId);
|
||||
}
|
||||
|
|
@ -202,4 +202,10 @@ public class ConsStockFlowServiceImpl extends ServiceImpl<ConsStockFlowMapper, C
|
|||
consInfoMapper.update(consInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Page<ConsStockFlowDTO> findConsStockFlowPage(Long conId) {
|
||||
Long shopId = StpKit.USER.getShopId(0L);
|
||||
return pageAs(PageUtil.buildPage(), query().eq(ConsStockFlow::getShopId, shopId).eq(ConsStockFlow::getConId, conId).orderBy(ConsStockFlow::getId, false), ConsStockFlowDTO.class);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue