Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RuoYi-Vue-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
AI算法平台
RuoYi-Vue-master
Commits
be44a071
Commit
be44a071
authored
May 16, 2023
by
周昊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 公司测试环境4.221
parents
34ae82ca
2a734e5d
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
172 additions
and
47 deletions
+172
-47
ruoyi-admin/src/main/java/com/ruoyi/algorithm/controller/AlgorithmBaseController.java
...m/ruoyi/algorithm/controller/AlgorithmBaseController.java
+6
-6
ruoyi-admin/src/main/java/com/ruoyi/algorithm/controller/AlgorithmPieceBaseController.java
...yi/algorithm/controller/AlgorithmPieceBaseController.java
+7
-7
ruoyi-admin/src/main/java/com/ruoyi/algorithm/domain/AlgorithmPieceVariable.java
...va/com/ruoyi/algorithm/domain/AlgorithmPieceVariable.java
+1
-1
ruoyi-admin/src/main/java/com/ruoyi/algorithm/domain/dto/AlgorithmBaseListDto.java
.../com/ruoyi/algorithm/domain/dto/AlgorithmBaseListDto.java
+3
-0
ruoyi-admin/src/main/java/com/ruoyi/algorithm/domain/dto/AlgorithmPieceListDto.java
...com/ruoyi/algorithm/domain/dto/AlgorithmPieceListDto.java
+3
-0
ruoyi-admin/src/main/java/com/ruoyi/algorithm/mapper/AlgorithmPieceBaseMapper.java
.../com/ruoyi/algorithm/mapper/AlgorithmPieceBaseMapper.java
+4
-1
ruoyi-admin/src/main/java/com/ruoyi/algorithm/service/IAlgorithmBaseService.java
...va/com/ruoyi/algorithm/service/IAlgorithmBaseService.java
+5
-1
ruoyi-admin/src/main/java/com/ruoyi/algorithm/service/IAlgorithmPieceBaseService.java
...m/ruoyi/algorithm/service/IAlgorithmPieceBaseService.java
+7
-1
ruoyi-admin/src/main/java/com/ruoyi/algorithm/service/impl/AlgorithmBaseServiceImpl.java
...uoyi/algorithm/service/impl/AlgorithmBaseServiceImpl.java
+62
-26
ruoyi-admin/src/main/java/com/ruoyi/algorithm/service/impl/AlgorithmPieceBaseServiceImpl.java
...algorithm/service/impl/AlgorithmPieceBaseServiceImpl.java
+50
-0
ruoyi-admin/src/main/resources/mapper/system/AlgorithmBaseMapper.xml
.../src/main/resources/mapper/system/AlgorithmBaseMapper.xml
+1
-1
ruoyi-admin/src/main/resources/mapper/system/AlgorithmPieceBaseMapper.xml
...main/resources/mapper/system/AlgorithmPieceBaseMapper.xml
+23
-3
No files found.
ruoyi-admin/src/main/java/com/ruoyi/algorithm/controller/AlgorithmBaseController.java
View file @
be44a071
...
...
@@ -61,9 +61,9 @@ public class AlgorithmBaseController extends BaseController {
@PreAuthorize
(
"@ss.hasPermi('system:algorithmBase:add')"
)
@Log
(
title
=
"算法"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
AlgorithmBase
algorithmBase
)
{
algorithmBase
.
setCreateBy
(
getUsername
());
return
toAjax
(
algorithmBaseService
.
insertAlgorithmBase
(
algorithmBase
));
public
AjaxResult
add
(
@RequestBody
AlgorithmBase
ListDto
algorithmBaseListDto
)
{
algorithmBase
ListDto
.
setCreateBy
(
getUsername
());
return
toAjax
(
algorithmBaseService
.
insertAlgorithmBase
ListDto
(
algorithmBaseListDto
));
}
/**
...
...
@@ -72,9 +72,9 @@ public class AlgorithmBaseController extends BaseController {
@PreAuthorize
(
"@ss.hasPermi('system:algorithmBase:edit')"
)
@Log
(
title
=
"算法"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
AlgorithmBase
algorithmBase
)
{
algorithmBase
.
setUpdateBy
(
getUsername
());
return
toAjax
(
algorithmBaseService
.
updateAlgorithmBase
(
algorithmBase
));
public
AjaxResult
edit
(
@RequestBody
AlgorithmBase
ListDto
algorithmBaseListDto
)
{
algorithmBase
ListDto
.
setUpdateBy
(
getUsername
());
return
toAjax
(
algorithmBaseService
.
updateAlgorithmBase
ListDto
(
algorithmBaseListDto
));
}
/**
...
...
ruoyi-admin/src/main/java/com/ruoyi/algorithm/controller/AlgorithmPieceBaseController.java
View file @
be44a071
...
...
@@ -65,7 +65,7 @@ public class AlgorithmPieceBaseController extends BaseController
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
algorithmPieceBaseService
.
selectAlgorithmPiece
Base
ById
(
id
));
return
success
(
algorithmPieceBaseService
.
selectAlgorithmPiece
ListDto
ById
(
id
));
}
/**
...
...
@@ -74,10 +74,10 @@ public class AlgorithmPieceBaseController extends BaseController
@PreAuthorize
(
"@ss.hasPermi('system:algorithmPiece:add')"
)
@Log
(
title
=
"策略算法块"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
AlgorithmPiece
Base
algorithmPieceBase
)
public
AjaxResult
add
(
@RequestBody
AlgorithmPiece
ListDto
algorithmPieceListDto
)
{
algorithmPiece
Base
.
setCreateBy
(
getUsername
());
return
toAjax
(
algorithmPieceBaseService
.
insertAlgorithmPiece
Base
(
algorithmPieceBase
));
algorithmPiece
ListDto
.
setCreateBy
(
getUsername
());
return
toAjax
(
algorithmPieceBaseService
.
insertAlgorithmPiece
ListDto
(
algorithmPieceListDto
));
}
/**
...
...
@@ -86,10 +86,10 @@ public class AlgorithmPieceBaseController extends BaseController
@PreAuthorize
(
"@ss.hasPermi('system:algorithmPiece:edit')"
)
@Log
(
title
=
"策略算法块"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
AlgorithmPiece
Base
algorithmPieceBase
)
public
AjaxResult
edit
(
@RequestBody
AlgorithmPiece
ListDto
algorithmPieceListDto
)
{
algorithmPiece
Base
.
setUpdateBy
(
getUsername
());
return
toAjax
(
algorithmPieceBaseService
.
updateAlgorithmPiece
Base
(
algorithmPieceBase
));
algorithmPiece
ListDto
.
setUpdateBy
(
getUsername
());
return
toAjax
(
algorithmPieceBaseService
.
updateAlgorithmPiece
ListDto
(
algorithmPieceListDto
));
}
/**
...
...
ruoyi-admin/src/main/java/com/ruoyi/algorithm/domain/AlgorithmPieceVariable.java
View file @
be44a071
...
...
@@ -11,7 +11,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi
* @date 2023-04-26
*/
public
class
AlgorithmPieceVariable
extends
BaseEntity
public
class
AlgorithmPieceVariable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
ruoyi-admin/src/main/java/com/ruoyi/algorithm/domain/dto/AlgorithmBaseListDto.java
View file @
be44a071
...
...
@@ -29,6 +29,9 @@ public class AlgorithmBaseListDto{
/** 创建时间 */
private
Date
createTime
;
/** 更新者 */
private
String
updateBy
;
/** 排序 */
private
Long
sort
;
...
...
ruoyi-admin/src/main/java/com/ruoyi/algorithm/domain/dto/AlgorithmPieceListDto.java
View file @
be44a071
...
...
@@ -22,6 +22,9 @@ public class AlgorithmPieceListDto {
/** 创建者 */
private
String
createBy
;
/** 更新者 */
private
String
updateBy
;
/** 创建时间 */
private
Date
createTime
;
...
...
ruoyi-admin/src/main/java/com/ruoyi/algorithm/mapper/AlgorithmPieceBaseMapper.java
View file @
be44a071
...
...
@@ -3,6 +3,7 @@ package com.ruoyi.algorithm.mapper;
import
java.util.List
;
import
com.ruoyi.algorithm.domain.AlgorithmPieceBase
;
import
com.ruoyi.algorithm.domain.dto.AlgorithmPieceListDto
;
import
org.apache.ibatis.annotations.Param
;
/**
* 策略算法块Mapper接口
...
...
@@ -60,5 +61,7 @@ public interface AlgorithmPieceBaseMapper
*/
public
int
deleteAlgorithmPieceBaseByIds
(
Long
[]
ids
);
List
<
AlgorithmPieceListDto
>
selectAlgorithmPieceListDto
(
AlgorithmPieceBase
algorithmPieceBase
);
public
List
<
AlgorithmPieceListDto
>
selectAlgorithmPieceListDto
(
AlgorithmPieceBase
algorithmPieceBase
);
public
AlgorithmPieceListDto
selectAlgorithmPieceListDtoById
(
@Param
(
"id"
)
Long
id
);
}
ruoyi-admin/src/main/java/com/ruoyi/algorithm/service/IAlgorithmBaseService.java
View file @
be44a071
...
...
@@ -68,5 +68,9 @@ public interface IAlgorithmBaseService
*/
public
List
<
AlgorithmBaseListDto
>
selectAlgorithmBaseListDto
(
AlgorithmBase
algorithmBase
);
AlgorithmBaseListDto
selectAlgorithmBaseListDtoById
(
Long
id
);
public
AlgorithmBaseListDto
selectAlgorithmBaseListDtoById
(
Long
id
);
public
int
insertAlgorithmBaseListDto
(
AlgorithmBaseListDto
algorithmBaseListDto
);
public
int
updateAlgorithmBaseListDto
(
AlgorithmBaseListDto
algorithmBaseListDto
);
}
ruoyi-admin/src/main/java/com/ruoyi/algorithm/service/IAlgorithmPieceBaseService.java
View file @
be44a071
...
...
@@ -60,5 +60,11 @@ public interface IAlgorithmPieceBaseService
*/
public
int
deleteAlgorithmPieceBaseById
(
Long
id
);
List
<
AlgorithmPieceListDto
>
selectAlgorithmPieceListDto
(
AlgorithmPieceBase
algorithmPieceBase
);
public
List
<
AlgorithmPieceListDto
>
selectAlgorithmPieceListDto
(
AlgorithmPieceBase
algorithmPieceBase
);
public
AlgorithmPieceListDto
selectAlgorithmPieceListDtoById
(
Long
id
);
public
int
insertAlgorithmPieceListDto
(
AlgorithmPieceListDto
algorithmPieceListDto
);
public
int
updateAlgorithmPieceListDto
(
AlgorithmPieceListDto
algorithmPieceListDto
);
}
ruoyi-admin/src/main/java/com/ruoyi/algorithm/service/impl/AlgorithmBaseServiceImpl.java
View file @
be44a071
package
com
.
ruoyi
.
algorithm
.
service
.
impl
;
import
java.util.List
;
import
com.ruoyi.algorithm.domain.AlgorithmBase
;
import
com.ruoyi.algorithm.domain.AlgorithmBaseType
;
import
com.ruoyi.algorithm.domain.dto.AlgorithmBaseListDto
;
import
com.ruoyi.algorithm.mapper.AlgorithmBaseMapper
;
import
com.ruoyi.algorithm.service.IAlgorithmBaseService
;
import
com.ruoyi.algorithm.service.IAlgorithmBaseTypeService
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.algorithm.mapper.AlgorithmBaseMapper
;
import
com.ruoyi.algorithm.domain.AlgorithmBas
e
;
import
com.ruoyi.algorithm.service.IAlgorithmBaseService
;
import
javax.annotation.Resourc
e
;
import
java.util.List
;
/**
* 算法Service业务层处理
*
*
* @author ruoyi
* @date 2023-04-26
*/
@Service
public
class
AlgorithmBaseServiceImpl
implements
IAlgorithmBaseService
{
public
class
AlgorithmBaseServiceImpl
implements
IAlgorithmBaseService
{
@Autowired
private
AlgorithmBaseMapper
algorithmBaseMapper
;
@Resource
private
IAlgorithmBaseTypeService
algorithmBaseTypeService
;
/**
* 查询算法
*
*
* @param id 算法主键
* @return 算法
*/
@Override
public
AlgorithmBase
selectAlgorithmBaseById
(
Long
id
)
{
public
AlgorithmBase
selectAlgorithmBaseById
(
Long
id
)
{
return
algorithmBaseMapper
.
selectAlgorithmBaseById
(
id
);
}
/**
* 查询算法列表
*
*
* @param algorithmBase 算法
* @return 算法
*/
@Override
public
List
<
AlgorithmBase
>
selectAlgorithmBaseList
(
AlgorithmBase
algorithmBase
)
{
public
List
<
AlgorithmBase
>
selectAlgorithmBaseList
(
AlgorithmBase
algorithmBase
)
{
return
algorithmBaseMapper
.
selectAlgorithmBaseList
(
algorithmBase
);
}
/**
* 新增算法
*
*
* @param algorithmBase 算法
* @return 结果
*/
@Override
public
int
insertAlgorithmBase
(
AlgorithmBase
algorithmBase
)
{
public
int
insertAlgorithmBase
(
AlgorithmBase
algorithmBase
)
{
algorithmBase
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
algorithmBaseMapper
.
insertAlgorithmBase
(
algorithmBase
);
}
/**
* 修改算法
*
*
* @param algorithmBase 算法
* @return 结果
*/
@Override
public
int
updateAlgorithmBase
(
AlgorithmBase
algorithmBase
)
{
public
int
updateAlgorithmBase
(
AlgorithmBase
algorithmBase
)
{
algorithmBase
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
algorithmBaseMapper
.
updateAlgorithmBase
(
algorithmBase
);
}
/**
* 批量删除算法
*
*
* @param ids 需要删除的算法主键
* @return 结果
*/
@Override
public
int
deleteAlgorithmBaseByIds
(
Long
[]
ids
)
{
public
int
deleteAlgorithmBaseByIds
(
Long
[]
ids
)
{
return
algorithmBaseMapper
.
deleteAlgorithmBaseByIds
(
ids
);
}
/**
* 删除算法信息
*
*
* @param id 算法主键
* @return 结果
*/
@Override
public
int
deleteAlgorithmBaseById
(
Long
id
)
{
public
int
deleteAlgorithmBaseById
(
Long
id
)
{
return
algorithmBaseMapper
.
deleteAlgorithmBaseById
(
id
);
}
...
...
@@ -105,4 +105,40 @@ public class AlgorithmBaseServiceImpl implements IAlgorithmBaseService
public
AlgorithmBaseListDto
selectAlgorithmBaseListDtoById
(
Long
id
)
{
return
algorithmBaseMapper
.
selectAlgorithmBaseListDtoById
(
id
);
}
@Override
public
int
insertAlgorithmBaseListDto
(
AlgorithmBaseListDto
algorithmBaseListDto
)
{
//新建算法
AlgorithmBase
algorithmBase
=
new
AlgorithmBase
();
BeanUtils
.
copyBeanProp
(
algorithmBase
,
algorithmBaseListDto
);
int
i
=
algorithmBaseMapper
.
insertAlgorithmBase
(
algorithmBase
);
//删除对应算法类型
algorithmBaseTypeService
.
deleteAlgorithmBaseTypeByAlgorithmId
(
algorithmBase
.
getId
());
//新建算法类型
for
(
AlgorithmBaseType
type
:
algorithmBaseListDto
.
getTypes
())
{
type
.
setAlgorithmId
(
algorithmBase
.
getId
());
algorithmBaseTypeService
.
insertAlgorithmBaseType
(
type
);
}
return
i
;
}
@Override
public
int
updateAlgorithmBaseListDto
(
AlgorithmBaseListDto
algorithmBaseListDto
)
{
//更新算法
AlgorithmBase
algorithmBase
=
new
AlgorithmBase
();
BeanUtils
.
copyBeanProp
(
algorithmBase
,
algorithmBaseListDto
);
int
i
=
algorithmBaseMapper
.
updateAlgorithmBase
(
algorithmBase
);
//删除对应算法类型
algorithmBaseTypeService
.
deleteAlgorithmBaseTypeByAlgorithmId
(
algorithmBase
.
getId
());
//新建算法类型
for
(
AlgorithmBaseType
type
:
algorithmBaseListDto
.
getTypes
())
{
type
.
setAlgorithmId
(
algorithmBase
.
getId
());
algorithmBaseTypeService
.
insertAlgorithmBaseType
(
type
);
}
return
i
;
}
}
ruoyi-admin/src/main/java/com/ruoyi/algorithm/service/impl/AlgorithmPieceBaseServiceImpl.java
View file @
be44a071
...
...
@@ -2,14 +2,20 @@ package com.ruoyi.algorithm.service.impl;
import
java.util.List
;
import
com.ruoyi.algorithm.domain.AlgorithmPieceVariable
;
import
com.ruoyi.algorithm.domain.dto.AlgorithmPieceListDto
;
import
com.ruoyi.algorithm.mapper.AlgorithmPieceVariableMapper
;
import
com.ruoyi.algorithm.service.IAlgorithmPieceVariableService
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.algorithm.mapper.AlgorithmPieceBaseMapper
;
import
com.ruoyi.algorithm.domain.AlgorithmPieceBase
;
import
com.ruoyi.algorithm.service.IAlgorithmPieceBaseService
;
import
javax.annotation.Resource
;
/**
* 策略算法块Service业务层处理
*
...
...
@@ -22,6 +28,9 @@ public class AlgorithmPieceBaseServiceImpl implements IAlgorithmPieceBaseService
@Autowired
private
AlgorithmPieceBaseMapper
algorithmPieceBaseMapper
;
@Resource
private
IAlgorithmPieceVariableService
algorithmPieceVariableService
;
/**
* 查询策略算法块
*
...
...
@@ -100,4 +109,45 @@ public class AlgorithmPieceBaseServiceImpl implements IAlgorithmPieceBaseService
public
List
<
AlgorithmPieceListDto
>
selectAlgorithmPieceListDto
(
AlgorithmPieceBase
algorithmPieceBase
)
{
return
algorithmPieceBaseMapper
.
selectAlgorithmPieceListDto
(
algorithmPieceBase
);
}
@Override
public
AlgorithmPieceListDto
selectAlgorithmPieceListDtoById
(
Long
id
)
{
return
algorithmPieceBaseMapper
.
selectAlgorithmPieceListDtoById
(
id
);
}
@Override
public
int
insertAlgorithmPieceListDto
(
AlgorithmPieceListDto
algorithmPieceListDto
)
{
//新建算法块
AlgorithmPieceBase
algorithmPieceBase
=
new
AlgorithmPieceBase
();
BeanUtils
.
copyBeanProp
(
algorithmPieceBase
,
algorithmPieceListDto
);
int
i
=
algorithmPieceBaseMapper
.
insertAlgorithmPieceBase
(
algorithmPieceBase
);
//删除算法块参数
algorithmPieceVariableService
.
deleteAlgorithmPieceVariableByAlgorithmPieceBaseId
(
algorithmPieceBase
.
getId
());
//新建算法块参数
for
(
AlgorithmPieceVariable
variable
:
algorithmPieceListDto
.
getVariables
())
{
variable
.
setAlgorithmPieceBaseId
(
algorithmPieceBase
.
getId
());
algorithmPieceVariableService
.
insertAlgorithmPieceVariable
(
variable
);
}
return
i
;
}
@Override
public
int
updateAlgorithmPieceListDto
(
AlgorithmPieceListDto
algorithmPieceListDto
)
{
//更新算法块
AlgorithmPieceBase
algorithmPieceBase
=
new
AlgorithmPieceBase
();
BeanUtils
.
copyBeanProp
(
algorithmPieceBase
,
algorithmPieceListDto
);
int
i
=
algorithmPieceBaseMapper
.
updateAlgorithmPieceBase
(
algorithmPieceBase
);
//删除算法块参数
algorithmPieceVariableService
.
deleteAlgorithmPieceVariableByAlgorithmPieceBaseId
(
algorithmPieceBase
.
getId
());
//新建算法块参数
for
(
AlgorithmPieceVariable
variable
:
algorithmPieceListDto
.
getVariables
())
{
variable
.
setAlgorithmPieceBaseId
(
algorithmPieceBase
.
getId
());
algorithmPieceVariableService
.
insertAlgorithmPieceVariable
(
variable
);
}
return
i
;
}
}
ruoyi-admin/src/main/resources/mapper/system/AlgorithmBaseMapper.xml
View file @
be44a071
...
...
@@ -116,7 +116,7 @@
ab.id = #{id}
</select>
<insert
id=
"insertAlgorithmBase"
parameterType=
"AlgorithmBase"
>
<insert
id=
"insertAlgorithmBase"
parameterType=
"AlgorithmBase"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into algorithm_base
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
...
...
ruoyi-admin/src/main/resources/mapper/system/AlgorithmPieceBaseMapper.xml
View file @
be44a071
...
...
@@ -27,8 +27,10 @@
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"clazz"
column=
"clazz"
/>
<collection
property=
"variables"
ofType=
"com.ruoyi.algorithm.domain.AlgorithmPieceVariable"
>
<result
property=
"algorithmPieceBaseId"
column=
"id"
/>
<result
property=
"variableName"
column=
"variable_name"
/>
<result
property=
"variableKey"
column=
"variable_key"
/>
<result
property=
"variableType"
column=
"variable_type"
/>
</collection>
</resultMap>
...
...
@@ -89,11 +91,30 @@
ORDER BY
apb.sort ASC
</select>
<select
id=
"selectAlgorithmPieceListDtoById"
resultMap=
"AlgorithmPieceListDtoResult"
>
SELECT
apb.id,
apb.piece_name,
apv.variable_name,
apv.variable_key,
apv.variable_type,
apb.sort,
apb.STATUS,
su.nick_name,
apb.clazz,
apb.create_time
FROM
algorithm_piece_base apb
LEFT JOIN algorithm_piece_variable apv ON apv.algorithm_piece_base_id = apb.id
LEFT JOIN sys_user su ON su.user_name = apb.create_by
AND su.del_flag = '0'
WHERE
apb.id = #{id}
</select>
<insert
id=
"insertAlgorithmPieceBase"
parameterType=
"AlgorithmPieceBase"
>
<insert
id=
"insertAlgorithmPieceBase"
parameterType=
"AlgorithmPieceBase"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into algorithm_piece_base
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"pieceName != null"
>
piece_name,
</if>
<if
test=
"sort != null"
>
sort,
</if>
<if
test=
"status != null"
>
status,
</if>
...
...
@@ -106,7 +127,6 @@
<if
test=
"remark != null"
>
remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id},
</if>
<if
test=
"pieceName != null"
>
#{pieceName},
</if>
<if
test=
"sort != null"
>
#{sort},
</if>
<if
test=
"status != null"
>
#{status},
</if>
...
...
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