master
jevononlie 6 months ago committed by siontion
parent aa46281274
commit e70f703c7a

@ -39,7 +39,7 @@ public class ClientUpdateVO {
private Integer gender; private Integer gender;
@ApiModelProperty(value = "生日", required = false, example = "2024-02-28 00:00:00") @ApiModelProperty(value = "生日", required = false, example = "2024-02-28 00:00:00")
@Past(message = "生日范围不正确,生日必须是今天以前的") // @Past(message = "生日范围不正确,生日必须是今天以前的")
private LocalDateTime birthday; private LocalDateTime birthday;
@ApiModelProperty(value = "发票抬头", required = false, example = "中铁建工集团有限公司") @ApiModelProperty(value = "发票抬头", required = false, example = "中铁建工集团有限公司")

@ -22,6 +22,9 @@ import java.math.BigDecimal;
@Accessors(chain = true) @Accessors(chain = true)
public class ProductSimpleVO { public class ProductSimpleVO {
@ApiModelProperty("废品id")
private String id;
@ApiModelProperty("废品编码") @ApiModelProperty("废品编码")
private String code; private String code;

@ -23,23 +23,23 @@
</select> </select>
<select id="getStationInfoByStationId" resultType="cc.yunxi.domain.vo.priceproduct.ProductRespVO"> <select id="getStationInfoByStationId" resultType="cc.yunxi.domain.vo.priceproduct.ProductRespVO">
select id,name,photo,parent_id, 0 recovery_price from nx_product as f where exists( select distinct id,name,photo,parent_id, 0 recovery_price from nx_product as f where exists(
select e.parent_id select e.parent_id
from nx_enterprise_recycle_station as a from nx_enterprise_recycle_station as a
left join nx_price_recycle as b on a.id=b.recycle_id left join nx_price_recycle as b on a.id=b.recycle_id
left join nx_price_product as c on b.price_id= c.price_id left join nx_price_product as c on b.price_id= c.price_id
left join nx_price as d on d.id=b.price_id left join nx_price as d on d.id=b.price_id
left join nx_product as e on e.id=c.product_id left join nx_product as e on e.id=c.product_id
where a.id=#{stationId} and e.parent_id=f.id where a.id=#{stationId} and e.parent_id=f.id
) )
union all union all
select e.id,e.name,e.photo,e.parent_id, c.recovery_price select distinct e.id,e.name,e.photo,e.parent_id, c.recovery_price
from nx_enterprise_recycle_station as a from nx_enterprise_recycle_station as a
left join nx_price_recycle as b on a.id=b.recycle_id left join nx_price_recycle as b on a.id=b.recycle_id
left join nx_price_product as c on b.price_id= c.price_id left join nx_price_product as c on b.price_id= c.price_id
left join nx_price as d on d.id=b.price_id left join nx_price as d on d.id=b.price_id
left join nx_product as e on e.id=c.product_id left join nx_product as e on e.id=c.product_id
where a.id=#{stationId} where a.id=#{stationId} and isnull(e.parent_id)=false
</select> </select>
<select id="getStationInfoFirstByStationId" resultType="cc.yunxi.domain.vo.priceproduct.ProductRespVO"> <select id="getStationInfoFirstByStationId" resultType="cc.yunxi.domain.vo.priceproduct.ProductRespVO">

Loading…
Cancel
Save