Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
5fec5113
Commit
5fec5113
authored
Sep 26, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ys-应急):应急预案管理
parent
19c03574
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
122 additions
and
25 deletions
+122
-25
YsEmergencyPlanDto.java
...ejoin/amos/boot/module/ys/api/dto/YsEmergencyPlanDto.java
+6
-3
YsEmergencyPlan.java
...ejoin/amos/boot/module/ys/api/entity/YsEmergencyPlan.java
+2
-2
YsEmergencyPlanMapper.java
...amos/boot/module/ys/api/mapper/YsEmergencyPlanMapper.java
+7
-1
IYsEmergencyPlanService.java
...s/boot/module/ys/api/service/IYsEmergencyPlanService.java
+14
-1
YsEmergencyPlanMapper.xml
...s-api/src/main/resources/mapper/YsEmergencyPlanMapper.xml
+22
-0
YsEmergencyPlanController.java
...t/module/ys/biz/controller/YsEmergencyPlanController.java
+21
-16
YsEmergencyPlanServiceImpl.java
...odule/ys/biz/service/impl/YsEmergencyPlanServiceImpl.java
+50
-2
No files found.
amos-boot-system-tzs/amos-boot-module-ys/amos-boot-module-ys-api/src/main/java/com/yeejoin/amos/boot/module/ys/api/dto/YsEmergencyPlanDto.java
View file @
5fec5113
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ys
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ys
.
api
.
dto
;
import
com.alibaba.fastjson.JSONArray
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -23,7 +25,7 @@ public class YsEmergencyPlanDto extends BaseDto {
...
@@ -23,7 +25,7 @@ public class YsEmergencyPlanDto extends BaseDto {
@ApiModelProperty
(
value
=
"关联对象id"
)
@ApiModelProperty
(
value
=
"关联对象id"
)
private
Integer
businessId
;
private
String
businessId
;
@ApiModelProperty
(
value
=
"关联对象类型"
)
@ApiModelProperty
(
value
=
"关联对象类型"
)
private
String
type
;
private
String
type
;
...
@@ -38,12 +40,13 @@ public class YsEmergencyPlanDto extends BaseDto {
...
@@ -38,12 +40,13 @@ public class YsEmergencyPlanDto extends BaseDto {
private
String
planName
;
private
String
planName
;
@ApiModelProperty
(
value
=
"预案文件"
)
@ApiModelProperty
(
value
=
"预案文件"
)
private
String
planFile
;
private
JSONArray
planFile
;
@ApiModelProperty
(
value
=
"预案类别id"
)
@ApiModelProperty
(
value
=
"预案类别id"
)
private
Integer
planCategoryId
;
private
String
planCategoryId
;
@ApiModelProperty
(
value
=
"预案时间"
)
@ApiModelProperty
(
value
=
"预案时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
planTime
;
private
Date
planTime
;
@ApiModelProperty
(
value
=
"创建时间"
)
@ApiModelProperty
(
value
=
"创建时间"
)
...
...
amos-boot-system-tzs/amos-boot-module-ys/amos-boot-module-ys-api/src/main/java/com/yeejoin/amos/boot/module/ys/api/entity/YsEmergencyPlan.java
View file @
5fec5113
...
@@ -27,7 +27,7 @@ public class YsEmergencyPlan extends BaseEntity {
...
@@ -27,7 +27,7 @@ public class YsEmergencyPlan extends BaseEntity {
* 关联对象id
* 关联对象id
*/
*/
@TableField
(
"business_id"
)
@TableField
(
"business_id"
)
private
Integer
businessId
;
private
String
businessId
;
/**
/**
* 关联对象类型
* 关联对象类型
...
@@ -63,7 +63,7 @@ public class YsEmergencyPlan extends BaseEntity {
...
@@ -63,7 +63,7 @@ public class YsEmergencyPlan extends BaseEntity {
* 预案类别id
* 预案类别id
*/
*/
@TableField
(
"plan_category_id"
)
@TableField
(
"plan_category_id"
)
private
Integer
planCategoryId
;
private
String
planCategoryId
;
/**
/**
* 预案时间
* 预案时间
...
...
amos-boot-system-tzs/amos-boot-module-ys/amos-boot-module-ys-api/src/main/java/com/yeejoin/amos/boot/module/ys/api/mapper/YsEmergencyPlanMapper.java
View file @
5fec5113
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ys
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ys
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.ys.api.entity.YsEmergencyPlan
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.ys.api.dto.YsEmergencyPlanDto
;
import
com.yeejoin.amos.boot.module.ys.api.entity.YsEmergencyPlan
;
import
org.springframework.data.repository.query.Param
;
/**
/**
* 应急预案管理 Mapper 接口
* 应急预案管理 Mapper 接口
...
@@ -11,4 +14,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -11,4 +14,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
*/
public
interface
YsEmergencyPlanMapper
extends
BaseMapper
<
YsEmergencyPlan
>
{
public
interface
YsEmergencyPlanMapper
extends
BaseMapper
<
YsEmergencyPlan
>
{
Page
<
YsEmergencyPlanDto
>
queryForYsEmergencyPlanPage
(
@Param
(
value
=
"page"
)
Page
<
YsEmergencyPlanDto
>
page
,
@Param
(
value
=
"dto"
)
YsEmergencyPlanDto
dto
);
}
}
amos-boot-system-tzs/amos-boot-module-ys/amos-boot-module-ys-api/src/main/java/com/yeejoin/amos/boot/module/ys/api/service/IYsEmergencyPlanService.java
View file @
5fec5113
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ys
.
api
.
service
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ys
.
api
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.ys.api.dto.YsEmergencyPlanDto
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
/**
/**
* 应急预案管理接口类
* 应急预案管理接口类
*
*
* @author system_generator
* @author system_generator
* @date 2024-09-24
* @date 2024-09-24
*/
*/
public
interface
IYsEmergencyPlanService
{}
public
interface
IYsEmergencyPlanService
{
Page
<
YsEmergencyPlanDto
>
queryForYsEmergencyPlanPage
(
Page
<
YsEmergencyPlanDto
>
page
,
YsEmergencyPlanDto
dto
);
Boolean
saveOrUpdate
(
YsEmergencyPlanDto
dto
,
AgencyUserModel
userModel
);
YsEmergencyPlanDto
detailBySeq
(
String
sequenceNbr
);
Boolean
deleteBySeq
(
String
sequenceNbr
);
}
amos-boot-system-tzs/amos-boot-module-ys/amos-boot-module-ys-api/src/main/resources/mapper/YsEmergencyPlanMapper.xml
View file @
5fec5113
...
@@ -2,4 +2,26 @@
...
@@ -2,4 +2,26 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.ys.api.mapper.YsEmergencyPlanMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.ys.api.mapper.YsEmergencyPlanMapper"
>
<select
id=
"queryForYsEmergencyPlanPage"
resultType=
"com.yeejoin.amos.boot.module.ys.api.dto.YsEmergencyPlanDto"
>
select
*
FROM tzs_ys_emergency_plan tyep
<where>
tyep.is_delete = 0
<if
test=
"dto != null "
>
<if
test=
"dto.planName != null and dto.planName != ''"
>
AND tyep.plan_name LIKE CONCAT('%', #{dto.planName}, '%')
</if>
<if
test=
"dto.planCategory != null and dto.planCategory != ''"
>
AND tyep.plan_category LIKE CONCAT('%', #{dto.planCategory}, '%')
</if>
<if
test=
"dto.planType != null and dto.planType != ''"
>
AND tyep.plan_type LIKE CONCAT('%', #{dto.planType}, '%')
</if>
</if>
</where>
ORDER BY
tyep.create_date DESC
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-ys/amos-boot-module-ys-biz/src/main/java/com/yeejoin/amos/boot/module/ys/biz/controller/YsEmergencyPlanController.java
View file @
5fec5113
...
@@ -3,7 +3,9 @@ package com.yeejoin.amos.boot.module.ys.biz.controller;
...
@@ -3,7 +3,9 @@ package com.yeejoin.amos.boot.module.ys.biz.controller;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.ys.api.dto.YsEmergencyPlanDto
;
import
com.yeejoin.amos.boot.module.ys.api.dto.YsEmergencyPlanDto
;
import
com.yeejoin.amos.boot.module.ys.api.service.IYsEmergencyPlanService
;
import
com.yeejoin.amos.boot.module.ys.biz.service.impl.YsEmergencyPlanServiceImpl
;
import
com.yeejoin.amos.boot.module.ys.biz.service.impl.YsEmergencyPlanServiceImpl
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -13,7 +15,6 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
...
@@ -13,7 +15,6 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -27,19 +28,22 @@ import java.util.List;
...
@@ -27,19 +28,22 @@ import java.util.List;
public
class
YsEmergencyPlanController
extends
BaseController
{
public
class
YsEmergencyPlanController
extends
BaseController
{
@Autowired
@Autowired
IYsEmergencyPlanService
iYsEmergencyPlanService
;
@Autowired
YsEmergencyPlanServiceImpl
ysEmergencyPlanServiceImpl
;
YsEmergencyPlanServiceImpl
ysEmergencyPlanServiceImpl
;
/**
/**
* 新增
* 新增
或者更新接口
*
*
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save
OrUpdate
"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增
"
,
notes
=
"新增
"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增
或者更新接口"
,
notes
=
"新增或者更新接口
"
)
public
ResponseModel
<
YsEmergencyPlanDto
>
sav
e
(
@RequestBody
YsEmergencyPlanDto
model
)
{
public
ResponseModel
<
Boolean
>
saveOrUpdat
e
(
@RequestBody
YsEmergencyPlanDto
model
)
{
model
=
ysEmergencyPlanServiceImpl
.
createWithModel
(
model
);
AgencyUserModel
userModel
=
getSelectedOrgInfo
().
getUserModel
(
);
return
ResponseHelper
.
buildResponse
(
model
);
return
ResponseHelper
.
buildResponse
(
iYsEmergencyPlanService
.
saveOrUpdate
(
model
,
userModel
)
);
}
}
/**
/**
...
@@ -63,10 +67,10 @@ public class YsEmergencyPlanController extends BaseController {
...
@@ -63,10 +67,10 @@ public class YsEmergencyPlanController extends BaseController {
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/
{sequenceNbr}
"
)
@DeleteMapping
(
value
=
"/
deleteBySeq
"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除"
,
notes
=
"根据sequenceNbr删除"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除"
,
notes
=
"根据sequenceNbr删除"
)
public
ResponseModel
<
Boolean
>
deleteBySeq
uenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Lo
ng
sequenceNbr
){
public
ResponseModel
<
Boolean
>
deleteBySeq
(
@RequestParam
(
value
=
"sequenceNbr"
)
Stri
ng
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
ysEmergencyPlanServiceImpl
.
removeById
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
iYsEmergencyPlanService
.
deleteBySeq
(
sequenceNbr
));
}
}
/**
/**
...
@@ -76,10 +80,10 @@ public class YsEmergencyPlanController extends BaseController {
...
@@ -76,10 +80,10 @@ public class YsEmergencyPlanController extends BaseController {
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/
{sequenceNbr}
"
)
@GetMapping
(
value
=
"/
detailBySeq
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
YsEmergencyPlanDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
public
ResponseModel
<
YsEmergencyPlanDto
>
detailBySeq
(
@RequestParam
(
value
=
"sequenceNbr"
)
String
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
ysEmergencyPlanServiceImpl
.
query
BySeq
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
iYsEmergencyPlanService
.
detail
BySeq
(
sequenceNbr
));
}
}
/**
/**
...
@@ -92,12 +96,13 @@ public class YsEmergencyPlanController extends BaseController {
...
@@ -92,12 +96,13 @@ public class YsEmergencyPlanController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
YsEmergencyPlanDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
Page
<
YsEmergencyPlanDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
(
value
=
"size"
)
int
size
)
{
@RequestParam
(
value
=
"size"
)
int
size
,
YsEmergencyPlanDto
dto
)
{
Page
<
YsEmergencyPlanDto
>
page
=
new
Page
<
YsEmergencyPlanDto
>();
Page
<
YsEmergencyPlanDto
>
page
=
new
Page
<
YsEmergencyPlanDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
ysEmergencyPlanServiceImpl
.
queryForYsEmergencyPlanPage
(
page
));
return
ResponseHelper
.
buildResponse
(
iYsEmergencyPlanService
.
queryForYsEmergencyPlanPage
(
page
,
dto
));
}
}
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-ys/amos-boot-module-ys-biz/src/main/java/com/yeejoin/amos/boot/module/ys/biz/service/impl/YsEmergencyPlanServiceImpl.java
View file @
5fec5113
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ys
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ys
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.ys.api.dto.YsEmergencyPlanDto
;
import
com.yeejoin.amos.boot.module.ys.api.dto.YsEmergencyPlanDto
;
import
com.yeejoin.amos.boot.module.ys.api.entity.YsEmergencyPlan
;
import
com.yeejoin.amos.boot.module.ys.api.entity.YsEmergencyPlan
;
import
com.yeejoin.amos.boot.module.ys.api.mapper.YsEmergencyPlanMapper
;
import
com.yeejoin.amos.boot.module.ys.api.mapper.YsEmergencyPlanMapper
;
import
com.yeejoin.amos.boot.module.ys.api.service.IYsEmergencyPlanService
;
import
com.yeejoin.amos.boot.module.ys.api.service.IYsEmergencyPlanService
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -17,7 +24,11 @@ import java.util.List;
...
@@ -17,7 +24,11 @@ import java.util.List;
* @date 2024-09-24
* @date 2024-09-24
*/
*/
@Service
@Service
public
class
YsEmergencyPlanServiceImpl
extends
BaseService
<
YsEmergencyPlanDto
,
YsEmergencyPlan
,
YsEmergencyPlanMapper
>
implements
IYsEmergencyPlanService
{
public
class
YsEmergencyPlanServiceImpl
extends
BaseService
<
YsEmergencyPlanDto
,
YsEmergencyPlan
,
YsEmergencyPlanMapper
>
implements
IYsEmergencyPlanService
{
@Autowired
private
YsEmergencyPlanMapper
ysEmergencyPlanMapper
;
/**
/**
* 分页查询
* 分页查询
*/
*/
...
@@ -29,6 +40,42 @@ public class YsEmergencyPlanServiceImpl extends BaseService<YsEmergencyPlanDto,Y
...
@@ -29,6 +40,42 @@ public class YsEmergencyPlanServiceImpl extends BaseService<YsEmergencyPlanDto,Y
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
YsEmergencyPlanDto
>
queryForYsEmergencyPlanList
()
{
public
List
<
YsEmergencyPlanDto
>
queryForYsEmergencyPlanList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
@Override
public
Page
<
YsEmergencyPlanDto
>
queryForYsEmergencyPlanPage
(
Page
<
YsEmergencyPlanDto
>
page
,
YsEmergencyPlanDto
dto
)
{
return
ysEmergencyPlanMapper
.
queryForYsEmergencyPlanPage
(
page
,
dto
);
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
saveOrUpdate
(
YsEmergencyPlanDto
dto
,
AgencyUserModel
userModel
)
{
YsEmergencyPlan
emergencyPlan
=
new
YsEmergencyPlan
();
if
(
ValidationUtil
.
isEmpty
(
dto
.
getSequenceNbr
()))
{
//新增
dto
.
setCreateDate
(
new
Date
());
dto
.
setCreateUserId
(
userModel
.
getUserId
());
dto
.
setCreateUserName
(
userModel
.
getUserName
());
}
emergencyPlan
.
setPlanFile
(
JSON
.
toJSONString
(
dto
.
getPlanFile
()));
BeanUtils
.
copyProperties
(
dto
,
emergencyPlan
);
return
this
.
saveOrUpdate
(
emergencyPlan
);
}
@Override
public
YsEmergencyPlanDto
detailBySeq
(
String
sequenceNbr
)
{
YsEmergencyPlanDto
emergencyPlanDto
=
new
YsEmergencyPlanDto
();
YsEmergencyPlan
emergencyPlan
=
this
.
baseMapper
.
selectById
(
sequenceNbr
);
BeanUtils
.
copyProperties
(
emergencyPlan
,
emergencyPlanDto
);
emergencyPlanDto
.
setPlanFile
(
JSON
.
parseArray
(
emergencyPlan
.
getPlanFile
()));
return
emergencyPlanDto
;
}
@Override
public
Boolean
deleteBySeq
(
String
sequenceNbr
)
{
YsEmergencyPlan
emergencyPlan
=
new
YsEmergencyPlan
();
emergencyPlan
.
setSequenceNbr
(
Long
.
valueOf
(
sequenceNbr
));
emergencyPlan
.
setIsDelete
(
Boolean
.
TRUE
);
return
this
.
baseMapper
.
updateById
(
emergencyPlan
)
>
0
;
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment