提交 e483d18c 作者: zhenjie 提交者: 余乾开

优化

上级 e1b173e8
...@@ -50,7 +50,7 @@ public class RequirementsInfoVO implements Serializable { ...@@ -50,7 +50,7 @@ public class RequirementsInfoVO implements Serializable {
@NotNull(message = "需求描述不能为空", groups = {Insert.class}) @NotNull(message = "需求描述不能为空", groups = {Insert.class})
private String requireDescription; private String requireDescription;
@ApiModelProperty(value = "是否已解决") @ApiModelProperty(value = "是否已解决")
private Integer solved; private Boolean solved;
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Date createTime; private Date createTime;
@ApiModelProperty(value = "更新时间") @ApiModelProperty(value = "更新时间")
......
package com.mmc.csf.release.dao; package com.mmc.csf.release.dao;
import com.mmc.csf.infomation.qo.IndustryCaseQO; import com.mmc.csf.infomation.qo.IndustryCaseQO;
import com.mmc.csf.release.entity.IndustryCaseDO; import com.mmc.csf.release.entity.information.IndustryCaseDO;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
......
...@@ -2,8 +2,7 @@ package com.mmc.csf.release.dao; ...@@ -2,8 +2,7 @@ package com.mmc.csf.release.dao;
import com.mmc.csf.infomation.qo.IndustryCaseQO; import com.mmc.csf.infomation.qo.IndustryCaseQO;
import com.mmc.csf.infomation.qo.IndustryNewsQO; import com.mmc.csf.infomation.qo.IndustryNewsQO;
import com.mmc.csf.infomation.vo.IndustryNewsVO; import com.mmc.csf.release.entity.information.IndustryNewsDO;
import com.mmc.csf.release.entity.IndustryNewsDO;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
......
...@@ -27,7 +27,8 @@ public class RequirementsInfoDO implements Serializable { ...@@ -27,7 +27,8 @@ public class RequirementsInfoDO implements Serializable {
private String publishPhone; private String publishPhone;
private String requireDescription; private String requireDescription;
private Integer deleted; private Integer deleted;
private Integer solved; //是否解决
private Boolean solved;
private Date createTime; private Date createTime;
private Date updateTime; private Date updateTime;
......
...@@ -9,6 +9,7 @@ import java.io.Serializable; ...@@ -9,6 +9,7 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
/** /**
* @description 需求类型 用枚举
* @author: zj * @author: zj
* @Date: 2023/5/18 15:02 * @Date: 2023/5/18 15:02
*/ */
......
package com.mmc.csf.release.entity; package com.mmc.csf.release.entity.information;
import com.mmc.csf.infomation.vo.IndustryCaseVO; import com.mmc.csf.infomation.vo.IndustryCaseVO;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
...@@ -9,6 +9,7 @@ import java.io.Serializable; ...@@ -9,6 +9,7 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
/** /**
* @description 项目案例
* @author: zj * @author: zj
* @Date: 2023/5/19 11:27 * @Date: 2023/5/19 11:27
*/ */
...@@ -20,6 +21,7 @@ public class IndustryCaseDO implements Serializable { ...@@ -20,6 +21,7 @@ public class IndustryCaseDO implements Serializable {
private Integer id; private Integer id;
private String caseTitle; private String caseTitle;
private String caseAuthor; private String caseAuthor;
//发布者id
private Integer userAccountId; private Integer userAccountId;
private String surfaceImg; private String surfaceImg;
private String caseContents; private String caseContents;
......
package com.mmc.csf.release.entity; package com.mmc.csf.release.entity.information;
import com.mmc.csf.infomation.vo.IndustryNewsDTO; import com.mmc.csf.infomation.vo.IndustryNewsDTO;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
...@@ -11,6 +11,7 @@ import java.io.Serializable; ...@@ -11,6 +11,7 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
/** /**
* @description 行业新闻
* @author: zj * @author: zj
* @Date: 2023/5/19 11:20 * @Date: 2023/5/19 11:20
*/ */
......
...@@ -7,7 +7,7 @@ import com.mmc.csf.infomation.vo.IndustryCaseVO; ...@@ -7,7 +7,7 @@ import com.mmc.csf.infomation.vo.IndustryCaseVO;
import com.mmc.csf.release.auth.dto.LoginSuccessDTO; import com.mmc.csf.release.auth.dto.LoginSuccessDTO;
import com.mmc.csf.release.constant.TokenConstant; import com.mmc.csf.release.constant.TokenConstant;
import com.mmc.csf.release.dao.IndustryCaseDao; import com.mmc.csf.release.dao.IndustryCaseDao;
import com.mmc.csf.release.entity.IndustryCaseDO; import com.mmc.csf.release.entity.information.IndustryCaseDO;
import com.mmc.csf.release.feign.UserAppApi; import com.mmc.csf.release.feign.UserAppApi;
import com.mmc.csf.release.service.IndustryCaseService; import com.mmc.csf.release.service.IndustryCaseService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
...@@ -9,7 +9,7 @@ import com.mmc.csf.infomation.vo.IndustryNewsDTO; ...@@ -9,7 +9,7 @@ import com.mmc.csf.infomation.vo.IndustryNewsDTO;
import com.mmc.csf.infomation.vo.IndustryNewsVO; import com.mmc.csf.infomation.vo.IndustryNewsVO;
import com.mmc.csf.release.constant.TokenConstant; import com.mmc.csf.release.constant.TokenConstant;
import com.mmc.csf.release.dao.IndustryNewsDao; import com.mmc.csf.release.dao.IndustryNewsDao;
import com.mmc.csf.release.entity.IndustryNewsDO; import com.mmc.csf.release.entity.information.IndustryNewsDO;
import com.mmc.csf.release.feign.UserAppApi; import com.mmc.csf.release.feign.UserAppApi;
import com.mmc.csf.release.service.IndustryNewsService; import com.mmc.csf.release.service.IndustryNewsService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mmc.csf.release.dao.IndustryCaseDao"> <mapper namespace="com.mmc.csf.release.dao.IndustryCaseDao">
<insert id="insertIndustryCase" parameterType="com.mmc.csf.release.entity.IndustryCaseDO" useGeneratedKeys="true" keyProperty="id"> <insert id="insertIndustryCase" parameterType="com.mmc.csf.release.entity.information.IndustryCaseDO" useGeneratedKeys="true" keyProperty="id">
insert into industry_case(case_title, case_author, user_account_id, surface_img, case_contents, origin, create_time) insert into industry_case(case_title, case_author, user_account_id, surface_img, case_contents, origin, create_time)
values(#{caseTitle}, #{caseAuthor}, #{userAccountId}, #{surfaceImg}, #{caseContents}, #{origin}, NOW()) values(#{caseTitle}, #{caseAuthor}, #{userAccountId}, #{surfaceImg}, #{caseContents}, #{origin}, NOW())
</insert> </insert>
<update id="updateCase" parameterType="com.mmc.csf.release.entity.IndustryCaseDO"> <update id="updateCase" parameterType="com.mmc.csf.release.entity.information.IndustryCaseDO">
update industry_case update industry_case
<set> <set>
<if test="caseTitle != null"> <if test="caseTitle != null">
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</if> </if>
</select> </select>
<select id="listCasePage" resultType="com.mmc.csf.release.entity.IndustryCaseDO" parameterType="com.mmc.csf.infomation.qo.IndustryCaseQO"> <select id="listCasePage" resultType="com.mmc.csf.release.entity.information.IndustryCaseDO" parameterType="com.mmc.csf.infomation.qo.IndustryCaseQO">
select id, select id,
case_title, case_title,
case_author, case_author,
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
limit #{pageNo}, #{pageSize} limit #{pageNo}, #{pageSize}
</select> </select>
<select id="details" resultType="com.mmc.csf.release.entity.IndustryCaseDO"> <select id="details" resultType="com.mmc.csf.release.entity.information.IndustryCaseDO">
select id, select id,
case_title, case_title,
case_author, case_author,
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</if> </if>
</select> </select>
<select id="listNewsPage" resultType="com.mmc.csf.release.entity.IndustryNewsDO" <select id="listNewsPage" resultType="com.mmc.csf.release.entity.information.IndustryNewsDO"
parameterType="com.mmc.csf.infomation.qo.IndustryCaseQO"> parameterType="com.mmc.csf.infomation.qo.IndustryCaseQO">
select id, select id,
news_title, news_title,
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
limit #{pageNo}, #{pageSize} limit #{pageNo}, #{pageSize}
</select> </select>
<select id="details" resultType="com.mmc.csf.release.entity.IndustryNewsDO"> <select id="details" resultType="com.mmc.csf.release.entity.information.IndustryNewsDO">
select id, select id,
news_title, news_title,
news_author, news_author,
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
where is_deleted = 0 where is_deleted = 0
and id = #{id} and id = #{id}
</select> </select>
<select id="count" resultType="java.lang.Integer" parameterType="com.mmc.csf.release.entity.IndustryNewsDO"> <select id="count" resultType="java.lang.Integer" parameterType="com.mmc.csf.release.entity.information.IndustryNewsDO">
select count(*) select count(*)
from industry_news from industry_news
<where> <where>
...@@ -84,14 +84,14 @@ ...@@ -84,14 +84,14 @@
</where> </where>
</select> </select>
<insert id="insert" parameterType="com.mmc.csf.release.entity.IndustryNewsDO" useGeneratedKeys="true" <insert id="insert" parameterType="com.mmc.csf.release.entity.information.IndustryNewsDO" useGeneratedKeys="true"
keyColumn="id"> keyColumn="id">
insert into industry_news(news_title, news_author, user_account_id, surface_img, news_contents, origin, insert into industry_news(news_title, news_author, user_account_id, surface_img, news_contents, origin,
create_time) create_time)
values (#{newsTitle}, #{newsAuthor}, #{userAccountId}, #{surfaceImg}, #{newsContents}, #{origin}, now()) values (#{newsTitle}, #{newsAuthor}, #{userAccountId}, #{surfaceImg}, #{newsContents}, #{origin}, now())
</insert> </insert>
<update id="update" parameterType="com.mmc.csf.release.entity.IndustryNewsDO"> <update id="update" parameterType="com.mmc.csf.release.entity.information.IndustryNewsDO">
update industry_news update industry_news
<set> <set>
<if test="newsTitle != null and newsTitle != ''"> <if test="newsTitle != null and newsTitle != ''">
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
</select> </select>
<select id="backgroundListNewsPage" parameterType="com.mmc.csf.infomation.qo.IndustryNewsQO" <select id="backgroundListNewsPage" parameterType="com.mmc.csf.infomation.qo.IndustryNewsQO"
resultType="com.mmc.csf.release.entity.IndustryNewsDO"> resultType="com.mmc.csf.release.entity.information.IndustryNewsDO">
select id, select id,
news_title, news_title,
news_author, news_author,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论