From 9c69441b741cb73862c270678296d516b27b5f86 Mon Sep 17 00:00:00 2001 From: 李林 <z1292839451@163.com> Date: 星期一, 18 三月 2024 01:04:51 +0800 Subject: [PATCH] 功能大调整 --- inspect-server/src/main/java/com/yuanchu/mom/mapper/InsReportMapper.java | 18 ++++ inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsProductServiceImpl.java | 25 ++++++ inspect-server/src/main/resources/mapper/InsReportMapper.xml | 28 +++++++ inspect-server/src/main/java/com/yuanchu/mom/service/InsProductService.java | 15 +++ inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java | 22 +++++ inspect-server/src/main/java/com/yuanchu/mom/pojo/InsReport.java | 76 +++++++++++++++++++ inspect-server/src/main/java/com/yuanchu/mom/service/InsReportService.java | 13 +++ 7 files changed, 197 insertions(+), 0 deletions(-) diff --git a/inspect-server/src/main/java/com/yuanchu/mom/mapper/InsReportMapper.java b/inspect-server/src/main/java/com/yuanchu/mom/mapper/InsReportMapper.java new file mode 100644 index 0000000..f5a93a3 --- /dev/null +++ b/inspect-server/src/main/java/com/yuanchu/mom/mapper/InsReportMapper.java @@ -0,0 +1,18 @@ +package com.yuanchu.mom.mapper; + +import com.yuanchu.mom.pojo.InsReport; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** +* @author Administrator +* @description 閽堝琛ㄣ�恑ns_report(妫�楠屾姤鍛�)銆戠殑鏁版嵁搴撴搷浣淢apper +* @createDate 2024-03-17 22:10:02 +* @Entity com.yuanchu.mom.pojo.InsReport +*/ +public interface InsReportMapper extends BaseMapper<InsReport> { + +} + + + + diff --git a/inspect-server/src/main/java/com/yuanchu/mom/pojo/InsReport.java b/inspect-server/src/main/java/com/yuanchu/mom/pojo/InsReport.java new file mode 100644 index 0000000..248dfae --- /dev/null +++ b/inspect-server/src/main/java/com/yuanchu/mom/pojo/InsReport.java @@ -0,0 +1,76 @@ +package com.yuanchu.mom.pojo; + +import com.baomidou.mybatisplus.annotation.*; + +import java.io.Serializable; +import java.time.LocalDateTime; +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 妫�楠屾姤鍛� + * @TableName ins_report + */ +@TableName(value ="ins_report") +@Data +public class InsReport implements Serializable { + /** + * + */ + @TableId(type = IdType.AUTO) + private Integer id; + + /** + * 澶栭敭锛氭楠屽崟id + */ + private Integer insOrderId; + + /** + * 绯荤粺鐢熸垚鎶ュ憡鍦板潃 + */ + private String url; + + /** + * 鎵嬪姩涓婁紶鎶ュ憡鍦板潃 + */ + private String urlS; + + /** + * 1锛氭壒鍑� 0锛氭湭鎵瑰噯 + */ + private Integer isRatify; + + /** + * 1锛氬鏍� 0锛氭湭瀹℃牳 + */ + private Integer isExamine; + + /** + * 澶栭敭锛氱敤鎴穒d锛堟壒鍑嗕汉锛� + */ + private Integer ratifyUserId; + + /** + * 澶栭敭锛氱敤鎴穒d锛堝鏍镐汉锛� + */ + private Integer examineUserId; + + @TableField(fill = FieldFill.INSERT) + private Integer createUser; + + @ApiModelProperty("鍒涘缓鏃堕棿") + @TableField(fill = FieldFill.INSERT) + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDateTime createTime; + + @TableField(fill = FieldFill.INSERT_UPDATE) + private Integer updateUser; + + @ApiModelProperty("淇敼鏃堕棿") + @TableField(fill = FieldFill.INSERT_UPDATE) + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDateTime updateTime; +} \ No newline at end of file diff --git a/inspect-server/src/main/java/com/yuanchu/mom/service/InsProductService.java b/inspect-server/src/main/java/com/yuanchu/mom/service/InsProductService.java new file mode 100644 index 0000000..3b34c9d --- /dev/null +++ b/inspect-server/src/main/java/com/yuanchu/mom/service/InsProductService.java @@ -0,0 +1,15 @@ +package com.yuanchu.mom.service; + +import com.yuanchu.mom.pojo.InsProduct; +import com.baomidou.mybatisplus.extension.service.IService; + +/** +* @author Administrator +* @description 閽堝琛ㄣ�恑ns_product(妫�楠岄」鐩�)銆戠殑鏁版嵁搴撴搷浣淪ervice +* @createDate 2024-03-17 23:57:39 +*/ +public interface InsProductService extends IService<InsProduct> { + + int selectOrderManDay(Integer orderId); + +} diff --git a/inspect-server/src/main/java/com/yuanchu/mom/service/InsReportService.java b/inspect-server/src/main/java/com/yuanchu/mom/service/InsReportService.java new file mode 100644 index 0000000..ef82d2d --- /dev/null +++ b/inspect-server/src/main/java/com/yuanchu/mom/service/InsReportService.java @@ -0,0 +1,13 @@ +package com.yuanchu.mom.service; + +import com.yuanchu.mom.pojo.InsReport; +import com.baomidou.mybatisplus.extension.service.IService; + +/** +* @author Administrator +* @description 閽堝琛ㄣ�恑ns_report(妫�楠屾姤鍛�)銆戠殑鏁版嵁搴撴搷浣淪ervice +* @createDate 2024-03-17 22:10:02 +*/ +public interface InsReportService extends IService<InsReport> { + +} diff --git a/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsProductServiceImpl.java b/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsProductServiceImpl.java new file mode 100644 index 0000000..d3a347f --- /dev/null +++ b/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsProductServiceImpl.java @@ -0,0 +1,25 @@ +package com.yuanchu.mom.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.yuanchu.mom.mapper.InsProductMapper; +import com.yuanchu.mom.pojo.InsProduct; +import com.yuanchu.mom.service.InsProductService; +import lombok.AllArgsConstructor; +import org.springframework.stereotype.Service; + +@Service +@AllArgsConstructor +public class InsProductServiceImpl extends ServiceImpl<InsProductMapper, InsProduct> + implements InsProductService { + + private InsProductMapper insProductMapper; + + @Override + public int selectOrderManDay(Integer orderId) { + return insProductMapper.selectOrderManDay(orderId); + } +} + + + + diff --git a/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java b/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java new file mode 100644 index 0000000..d114de5 --- /dev/null +++ b/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java @@ -0,0 +1,22 @@ +package com.yuanchu.mom.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.yuanchu.mom.pojo.InsReport; +import com.yuanchu.mom.service.InsReportService; +import com.yuanchu.mom.mapper.InsReportMapper; +import org.springframework.stereotype.Service; + +/** +* @author Administrator +* @description 閽堝琛ㄣ�恑ns_report(妫�楠屾姤鍛�)銆戠殑鏁版嵁搴撴搷浣淪ervice瀹炵幇 +* @createDate 2024-03-17 22:10:02 +*/ +@Service +public class InsReportServiceImpl extends ServiceImpl<InsReportMapper, InsReport> + implements InsReportService{ + +} + + + + diff --git a/inspect-server/src/main/resources/mapper/InsReportMapper.xml b/inspect-server/src/main/resources/mapper/InsReportMapper.xml new file mode 100644 index 0000000..8bde742 --- /dev/null +++ b/inspect-server/src/main/resources/mapper/InsReportMapper.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.yuanchu.mom.mapper.InsReportMapper"> + + <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.InsReport"> + <id property="id" column="id" jdbcType="INTEGER"/> + <result property="insOrderId" column="ins_order_id" jdbcType="INTEGER"/> + <result property="url" column="url" jdbcType="VARCHAR"/> + <result property="urlS" column="url_s" jdbcType="VARCHAR"/> + <result property="isRatify" column="is_ratify" jdbcType="INTEGER"/> + <result property="isExamine" column="is_examine" jdbcType="INTEGER"/> + <result property="ratifyUserId" column="ratify_user_id" jdbcType="INTEGER"/> + <result property="examineUserId" column="examine_user_id" jdbcType="INTEGER"/> + <result property="createUser" column="create_user" jdbcType="INTEGER"/> + <result property="updateUser" column="update_user" jdbcType="INTEGER"/> + <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> + <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> + </resultMap> + + <sql id="Base_Column_List"> + id,ins_order_id,url, + url_s,is_ratify,is_examine, + ratify_user_id,examine_user_id,create_user, + update_user,create_time,update_time + </sql> +</mapper> -- Gitblit v1.9.3