完善订单页面
This commit is contained in:
		| @@ -0,0 +1,60 @@ | ||||
| package com.ruoyi.custom.domain; | ||||
|  | ||||
| import com.ruoyi.common.core.domain.BaseEntity; | ||||
|  | ||||
| import java.io.Serializable; | ||||
|  | ||||
| public class CusUserPost implements Serializable { | ||||
|  | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     private Long userId; | ||||
|  | ||||
|     private String userName; | ||||
|  | ||||
|     private String postCode; | ||||
|  | ||||
|     private String postId; | ||||
|  | ||||
|     public String getPostCode() { | ||||
|         return postCode; | ||||
|     } | ||||
|  | ||||
|     public Long getUserId() { | ||||
|         return userId; | ||||
|     } | ||||
|  | ||||
|     public String getUserName() { | ||||
|         return userName; | ||||
|     } | ||||
|  | ||||
|     public void setPostCode(String postCode) { | ||||
|         this.postCode = postCode; | ||||
|     } | ||||
|  | ||||
|     public void setUserId(Long userId) { | ||||
|         this.userId = userId; | ||||
|     } | ||||
|  | ||||
|     public void setUserName(String userName) { | ||||
|         this.userName = userName; | ||||
|     } | ||||
|  | ||||
|     public String getPostId() { | ||||
|         return postId; | ||||
|     } | ||||
|  | ||||
|     public void setPostId(String postId) { | ||||
|         this.postId = postId; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "UserPostOption{" + | ||||
|                 "userId=" + userId + | ||||
|                 ", userName='" + userName + '\'' + | ||||
|                 ", postCode='" + postCode + '\'' + | ||||
|                 ", postid='" + postId + '\'' + | ||||
|                 '}'; | ||||
|     } | ||||
| } | ||||
| @@ -100,11 +100,34 @@ public class SysOrder extends BaseEntity | ||||
|     @Excel(name = "推荐人") | ||||
|     private String recommender; | ||||
|  | ||||
|     /** 服务月数 */ | ||||
|     @Excel(name = "服务月数") | ||||
|     private String serveMonth; | ||||
|  | ||||
|     @Excel(name = "审核状态", dictType = "cus_review_status") | ||||
|     private String reviewStatus; | ||||
|  | ||||
|     /** 成交日期 */ | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||||
|     @Excel(name = "成交日期", width = 30, dateFormat = "yyyy-MM-dd") | ||||
|     private Date orderTime; | ||||
|  | ||||
|     public String getReviewStatus() { | ||||
|         return reviewStatus; | ||||
|     } | ||||
|  | ||||
|     public void setReviewStatus(String reviewStatus) { | ||||
|         this.reviewStatus = reviewStatus; | ||||
|     } | ||||
|  | ||||
|     public void setServeMonth(String serveMonth) { | ||||
|         this.serveMonth = serveMonth; | ||||
|     } | ||||
|  | ||||
|     public String getServeMonth() { | ||||
|         return serveMonth; | ||||
|     } | ||||
|  | ||||
|     public void setOrderId(Long orderId) | ||||
|     { | ||||
|         this.orderId = orderId; | ||||
| @@ -354,6 +377,8 @@ public class SysOrder extends BaseEntity | ||||
|                 .append("operator", getOperator()) | ||||
|                 .append("recommender", getRecommender()) | ||||
|                 .append("orderTime", getOrderTime()) | ||||
|                 .append("serveMonth", getServeMonth()) | ||||
|                 .append("reviewStatus", getReviewStatus()) | ||||
|                 .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,9 @@ | ||||
| package com.ruoyi.custom.mapper; | ||||
|  | ||||
| import com.ruoyi.custom.domain.CusUserPost; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| public interface CusUserPostMapper { | ||||
|     public List<CusUserPost> selectAllCusUserPost(); | ||||
| } | ||||
| @@ -0,0 +1,10 @@ | ||||
| package com.ruoyi.custom.service; | ||||
|  | ||||
| import com.ruoyi.custom.domain.CusUserPost; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| public interface ICusUserPostService { | ||||
|  | ||||
|     public List<CusUserPost> selectAllCusUserPost(); | ||||
| } | ||||
| @@ -0,0 +1,21 @@ | ||||
| package com.ruoyi.custom.service.impl; | ||||
|  | ||||
| import com.ruoyi.custom.domain.CusUserPost; | ||||
| import com.ruoyi.custom.mapper.CusUserPostMapper; | ||||
| import com.ruoyi.custom.service.ICusUserPostService; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.stereotype.Service; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| @Service | ||||
| public class CusUserPostImpl implements ICusUserPostService { | ||||
|  | ||||
|     @Autowired | ||||
|     private CusUserPostMapper cusUserPostMapper; | ||||
|  | ||||
|     @Override | ||||
|     public List<CusUserPost> selectAllCusUserPost() { | ||||
|         return cusUserPostMapper.selectAllCusUserPost(); | ||||
|     } | ||||
| } | ||||
| @@ -54,6 +54,7 @@ public class SysOrderServiceImpl implements ISysOrderService | ||||
|     public int insertSysOrder(SysOrder sysOrder) | ||||
|     { | ||||
|         sysOrder.setCreateTime(DateUtils.getNowDate()); | ||||
|         sysOrder.setOrderTime(DateUtils.getNowDate()); | ||||
|         return sysOrderMapper.insertSysOrder(sysOrder); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user