添加耗材功能
This commit is contained in:
parent
93322cbd7f
commit
83b3cee384
|
|
@ -45,6 +45,12 @@ public class TbConsInfoFlow implements Serializable {
|
||||||
@ApiModelProperty(value = "耗材id")
|
@ApiModelProperty(value = "耗材id")
|
||||||
private Integer consId;
|
private Integer consId;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Column(name = "`pro_sku_id`")
|
||||||
|
@ApiModelProperty(value = "规格id")
|
||||||
|
private Integer proSkuId;
|
||||||
|
|
||||||
@Column(name = "`con_name`")
|
@Column(name = "`con_name`")
|
||||||
@ApiModelProperty(value = "耗材名称")
|
@ApiModelProperty(value = "耗材名称")
|
||||||
private String conName;
|
private String conName;
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,11 @@ public interface TbConsInfoFlowRepository extends JpaRepository<TbConsInfoFlow,
|
||||||
|
|
||||||
|
|
||||||
@Query(value = "SELECT\n" +
|
@Query(value = "SELECT\n" +
|
||||||
"\tp.`name`\n" +
|
"\tp.`name` \n" +
|
||||||
"FROM\n" +
|
"FROM\n" +
|
||||||
" tb_prosku_con i \n" +
|
"\ttb_cons_info_flow i\n" +
|
||||||
"\tleft join tb_product_sku s on i.product_sku_id=s.id\n" +
|
"\tLEFT JOIN tb_product_sku s ON i.pro_sku_id = s.id\n" +
|
||||||
"\tleft join tb_product p on s.product_id=p.id\n" +
|
"\tLEFT JOIN tb_product p ON s.product_id = p.id\n" +
|
||||||
"\twhere i.con_info_id=?1 limit 1",nativeQuery = true)
|
"\twhere i.pro_sku_id=?1 limit 1",nativeQuery = true)
|
||||||
String selectByPskId(Integer skuId);
|
String selectByPskId(Integer skuId);
|
||||||
}
|
}
|
||||||
|
|
@ -32,6 +32,8 @@ public class TbConsInfoFlowDto implements Serializable {
|
||||||
/** 耗材id */
|
/** 耗材id */
|
||||||
private Integer consId;
|
private Integer consId;
|
||||||
|
|
||||||
|
private Integer proSkuId;
|
||||||
|
|
||||||
/** 耗材名称 */
|
/** 耗材名称 */
|
||||||
private String conName;
|
private String conName;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue