feat: 产品中心

This commit is contained in:
曹鹏飞 2025-06-25 13:35:02 +08:00
parent 5cab10402c
commit b16f982650
4 changed files with 11 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import lombok.Data;
import java.time.LocalDate; import java.time.LocalDate;
import java.util.List; import java.util.List;
import java.util.Objects;
@Data @Data
public class ProductHonorAddRequest { public class ProductHonorAddRequest {
@ -15,6 +16,13 @@ public class ProductHonorAddRequest {
*/ */
private LocalDate obtainingTime; private LocalDate obtainingTime;
public LocalDate getObtainingTime() {
if(Objects.isNull(obtainingTime)){
return null;
}
return obtainingTime.plusDays(1);
}
/** /**
* 批次号 * 批次号
*/ */

View File

@ -19,7 +19,7 @@
AND pi.publish_time<=#{request.endTime} AND pi.publish_time<=#{request.endTime}
</if> </if>
</where> </where>
ORDER BY pi.state,pi.sort,pi.dictionary_item_id DESC,pi.publish_time DESC,pi.id DESC ORDER BY pi.state,pi.publish_time DESC,pi.dictionary_item_id DESC,pi.id DESC
</select> </select>
<select id="get" resultType="com.nflg.mobilebroken.common.pojo.vo.ProductIntroVO"> <select id="get" resultType="com.nflg.mobilebroken.common.pojo.vo.ProductIntroVO">

View File

@ -40,7 +40,7 @@
AND pm.no LIKE CONCAT('%', #{request.no}, '%') AND pm.no LIKE CONCAT('%', #{request.no}, '%')
</if> </if>
</where> </where>
ORDER BY pm.state,pm.sort,pm.publish_time DESC ORDER BY pm.state,pm.publish_time DESC,pm.series_number,pm.type_number,pm.id DESC
</select> </select>
<select id="get" resultType="com.nflg.mobilebroken.common.pojo.vo.ProductModelVO"> <select id="get" resultType="com.nflg.mobilebroken.common.pojo.vo.ProductModelVO">

View File

@ -30,7 +30,7 @@
AND pt.name LIKE CONCAT('%', #{request.name}, '%') AND pt.name LIKE CONCAT('%', #{request.name}, '%')
</if> </if>
</where> </where>
ORDER BY pt.state,pt.sort,pt.series_number,pt.name,pt.publish_time DESC ORDER BY pt.state,pt.publish_time DESC,pt.series_number,pt.id DESC
</select> </select>
<select id="get" resultType="com.nflg.mobilebroken.common.pojo.vo.ProductTypeVO"> <select id="get" resultType="com.nflg.mobilebroken.common.pojo.vo.ProductTypeVO">