feat: 药品出入库明细、汇总、入账库

workplace
chenhc 11 months ago
parent 4d6291d1f3
commit a4a05d4756

@ -135,5 +135,9 @@ public class FilterInvProductRequest extends ListPageRequest {
private Integer highValue;
/**
* 1: 2:
*/
private Integer productsType = 1;//默认是耗材
}

@ -1,8 +1,10 @@
package com.glxp.api.res.inv;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* VO
@ -137,4 +139,88 @@ public class InvProductResponse {
*
*/
private String thrCode;
/**
* 1: 2:
*/
@TableField(value = "productsType")
private Integer productsType;
/**
*
*/
@TableField(value = "levelUnit")
private String levelUnit;
/**
*
*/
@TableField(value = "prepnUnit")
private String prepnUnit;
/**
*
*/
@TableField(value = "packMatrial")
private String packMatrial;
/**
* 使
*/
@TableField(value = "useAttribute")
private String useAttribute;
/**
*
*/
@TableField(value = "transportCondition")
private String transportCondition;
/**
*
*/
@TableField(value = "storageCondition")
private String storageCondition;
/**
*
*/
@TableField(value = "specialCode")
private String specialCode;
/**
* 使
*/
@TableField(value = "indate")
private Date indate;
/**
* () 1239
*/
@TableField(value = "physicType")
private Integer physicType;
/**
*
*/
@TableField(value = "prepnSpec")
private String prepnSpec;
/**
*
*/
@TableField(value = "majorType")
private Integer majorType;
/**
* 1:;2:;3:
*/
@TableField(value = "medicareType")
private Integer medicareType;
}

@ -28,7 +28,21 @@
ip.deptCode,
ip.invCode,
as.name spaceName,
ip.price
ip.price,
bp.productsType,
bp.levelUnit,
bp.prepnUnit,
bp.prepnSpec,
bp.specialCode,
bp.storageCondition,
bp.transportCondition,
bp.indate,
bp.useAttribute,
bp.packMatrial,
bp.majorType,
bp.majorStatus,
bp.physicType,
bp.medicareType
from inv_product ip
inner join basic_udirel on ip.relIdFk = basic_udirel.id
inner join basic_products bp on basic_udirel.uuid = bp.uuid
@ -37,6 +51,9 @@
left join auth_warehouse on auth_warehouse.code = ip.invCode
left join auth_space `as` on ip.invSpaceCode = `as`.code
<where>
<if test="productsType != null ">
AND bp.productsType = #{productsType}
</if>
<if test="cpmctymc != null and cpmctymc != ''">
AND bp.cpmctymc like concat('%', #{cpmctymc}, '%')
</if>

@ -27,7 +27,21 @@
ipp.deptCode,
ipp.invCode,
ipp.invSpaceCode,
ipp.code as code
ipp.code as code,
bp.productsType,
bp.levelUnit,
bp.prepnUnit,
bp.prepnSpec,
bp.specialCode,
bp.storageCondition,
bp.transportCondition,
bp.indate,
bp.useAttribute,
bp.packMatrial,
bp.majorType,
bp.majorStatus,
bp.physicType,
bp.medicareType
from inv_product_detail ipp
inner join basic_udirel on ipp.relId = basic_udirel.id
inner join basic_products bp on basic_udirel.uuid = bp.uuid
@ -45,6 +59,9 @@
<if test="relIdFk != null and relIdFk != ''">
AND ipp.relId = #{relIdFk}
</if>
<if test="productsType != null ">
AND bp.productsType = #{productsType}
</if>
<if test="ggxh != null and ggxh != ''">
AND bp.ggxh like concat('%', #{ggxh}, '%')
</if>

@ -3877,7 +3877,7 @@ CREATE TABLE IF NOT EXISTS `sys_workplace`
CALL Pro_Temp_ColumnWork('basic_products', 'productsType',
' tinyint NULL DEFAULT NULL COMMENT ''产品类型 1:药品 2:耗材''',
' tinyint NULL DEFAULT b''1'' COMMENT ''产品类型 1:耗材 2:药品''',
1);

Loading…
Cancel
Save