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

优化

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