Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
pms
Commits
f17699c8
提交
f17699c8
authored
7月 03, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Service(update)
上级
ddb9ed74
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
4 行删除
+13
-4
ServiceDO.java
src/main/java/com/mmc/pms/entity/ServiceDO.java
+4
-0
ServiceVO.java
src/main/java/com/mmc/pms/model/work/vo/ServiceVO.java
+3
-0
BackstageTaskServiceDao.xml
src/main/resources/mapper/work/BackstageTaskServiceDao.xml
+6
-4
没有找到文件。
src/main/java/com/mmc/pms/entity/ServiceDO.java
浏览文件 @
f17699c8
...
...
@@ -61,6 +61,9 @@ public class ServiceDO implements Serializable {
@ApiModelProperty
(
value
=
"逻辑删除字段"
)
private
Integer
isDeleted
;
@ApiModelProperty
(
value
=
"单位id"
)
private
Integer
unitId
;
public
ServiceDO
(
ServiceVO
param
,
Integer
accountId
)
{
this
(
param
);
this
.
accountId
=
accountId
;
...
...
@@ -76,6 +79,7 @@ public class ServiceDO implements Serializable {
this
.
shareCard
=
param
.
getShareCard
();
this
.
video
=
param
.
getVideo
();
this
.
serviceIntroduction
=
param
.
getServiceIntroduction
();
this
.
unitId
=
param
.
getUnitId
();
}
public
ServiceDO
(
Integer
id
,
Integer
accountId
)
{
...
...
src/main/java/com/mmc/pms/model/work/vo/ServiceVO.java
浏览文件 @
f17699c8
...
...
@@ -67,4 +67,7 @@ public class ServiceVO implements Serializable {
@ApiModelProperty
(
value
=
"服务介绍"
)
private
String
serviceIntroduction
;
@ApiModelProperty
(
value
=
"单位id"
)
private
Integer
unitId
;
}
src/main/resources/mapper/work/BackstageTaskServiceDao.xml
浏览文件 @
f17699c8
...
...
@@ -106,9 +106,9 @@
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
parameterType=
"com.mmc.pms.entity.ServiceDO"
>
insert into service(service_name, application_id, industry_id, display_state, cover_plan, share_card, video,
service_introduction, account_id)
service_introduction, account_id
,unit_id
)
values (#{serviceName}, #{applicationId}, #{industryId}, #{displayState}, #{coverPlan}, #{shareCard},
#{video}, #{serviceIntroduction}, #{accountId})
#{video}, #{serviceIntroduction}, #{accountId}
,#{unitId}
)
</insert>
<!--通过主键修改数据-->
...
...
@@ -148,6 +148,9 @@
<if
test=
"accountId != null"
>
account_id = #{accountId},
</if>
<if
test=
"unitId != null"
>
unit_id = #{unitId},
</if>
</set>
where id = #{id}
</update>
...
...
@@ -283,4 +286,4 @@
</if>
</where>
</select>
</mapper>
\ No newline at end of file
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论