Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
5aea8e4d
Commit
5aea8e4d
authored
Jun 22, 2021
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加-标签查询及修改
parent
ed29438d
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
2098 additions
and
0 deletions
+2098
-0
yd-api/src/main/java/com/yd/api/agms/AgmsController.java
+18
-0
yd-api/src/main/java/com/yd/api/agms/service/AgmsTagService.java
+16
-0
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsTagServiceImpl.java
+70
-0
yd-api/src/main/java/com/yd/api/agms/vo/tag/TagUpdateRequestVO.java
+139
-0
yd-api/src/main/java/com/yd/api/agms/vo/tag/TagUpdateResponseVO.java
+37
-0
yd-api/src/main/java/com/yd/api/metadata/MetadataController.java
+36
-0
yd-api/src/main/java/com/yd/api/metadata/service/MetadataService.java
+12
-0
yd-api/src/main/java/com/yd/api/metadata/service/impl/MetadataServiceImpl.java
+103
-0
yd-api/src/main/java/com/yd/api/metadata/vo/TagQueryInfo.java
+227
-0
yd-api/src/main/java/com/yd/api/metadata/vo/TagQueryResponseVO.java
+40
-0
yd-api/src/main/java/com/yd/dal/entity/meta/MdTagNew.java
+205
-0
yd-api/src/main/java/com/yd/dal/entity/meta/MdTagView.java
+353
-0
yd-api/src/main/java/com/yd/dal/mapper/meta/MdTagNewMapper.java
+28
-0
yd-api/src/main/java/com/yd/dal/mapper/meta/MdTagViewMapper.java
+29
-0
yd-api/src/main/java/com/yd/dal/mapper/metadata/MetadataMapper.java
+7
-0
yd-api/src/main/java/com/yd/dal/service/meta/MdTagNewDALService.java
+16
-0
yd-api/src/main/java/com/yd/dal/service/meta/MdTagViewDALService.java
+7
-0
yd-api/src/main/java/com/yd/dal/service/meta/impl/MdTagNewDALServiceImpl.java
+34
-0
yd-api/src/main/java/com/yd/dal/service/meta/impl/MdTagViewDALServiceImpl.java
+17
-0
yd-api/src/main/java/com/yd/dal/service/metadata/MetadataDALService.java
+7
-0
yd-api/src/main/java/com/yd/dal/service/metadata/impl/MetadataDALServiceImpl.java
+12
-0
yd-api/src/main/resources/i18n/messages_zh_CN.properties
+3
-0
yd-api/src/main/resources/mapper/meta/MdTagNewMapper.xml
+283
-0
yd-api/src/main/resources/mapper/meta/MdTagViewMapper.xml
+393
-0
yd-api/src/main/resources/mapper/metadata/MetadataMapper.xml
+6
-0
No files found.
yd-api/src/main/java/com/yd/api/agms/AgmsController.java
View file @
5aea8e4d
...
...
@@ -23,6 +23,8 @@ import com.yd.api.agms.vo.statistics.FinancialStatisticsRequestVO;
import
com.yd.api.agms.vo.statistics.FinancialStatisticsResponseVO
;
import
com.yd.api.agms.vo.statistics.LeadsStatisticsRequestVO
;
import
com.yd.api.agms.vo.statistics.LeadsStatisticsResponseVO
;
import
com.yd.api.agms.vo.tag.TagUpdateRequestVO
;
import
com.yd.api.agms.vo.tag.TagUpdateResponseVO
;
import
com.yd.api.result.JsonResult
;
import
com.yd.util.CommonUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -50,6 +52,8 @@ public class AgmsController {
private
AgmsSharingService
agmsSharingService
;
@Autowired
private
AgmsPractitionerService
agmsPractitionerService
;
@Autowired
private
AgmsTagService
agmsTagService
;
/**
* AGMS -- 财务管理报表
...
...
@@ -357,4 +361,18 @@ public class AgmsController {
result
.
addResult
(
responseVO
);
return
result
;
}
/**
* AGMS -- 标签修改
* @param requestVO 请求数据
* @return 响应数据
*/
@RequestMapping
(
value
=
"/tagUpdate"
)
public
Object
tagUpdate
(
@RequestBody
TagUpdateRequestVO
requestVO
)
{
JsonResult
result
=
new
JsonResult
();
TagUpdateResponseVO
responseVO
=
agmsTagService
.
tagUpdate
(
requestVO
);
result
.
setData
(
responseVO
);
result
.
addResult
(
responseVO
);
return
result
;
}
}
yd-api/src/main/java/com/yd/api/agms/service/AgmsTagService.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
api
.
agms
.
service
;
import
com.yd.api.agms.vo.tag.TagUpdateRequestVO
;
import
com.yd.api.agms.vo.tag.TagUpdateResponseVO
;
/**
* @author xxy
*/
public
interface
AgmsTagService
{
/**
* AGMS -- 标签修改
* @param requestVO 请求数据
* @return 响应数据
*/
TagUpdateResponseVO
tagUpdate
(
TagUpdateRequestVO
requestVO
);
}
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsTagServiceImpl.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
api
.
agms
.
service
.
impl
;
import
com.yd.api.agms.service.AgmsTagService
;
import
com.yd.api.agms.vo.tag.TagUpdateRequestVO
;
import
com.yd.api.agms.vo.tag.TagUpdateResponseVO
;
import
com.yd.api.result.CommonResult
;
import
com.yd.dal.entity.meta.MdTagNew
;
import
com.yd.dal.service.meta.MdTagNewDALService
;
import
com.yd.util.CommonUtil
;
import
com.yd.util.config.ZHBErrorConfig
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
/**
* @author xxy
* @date 2021年06月21日 23:39
*/
@Service
(
"AgmsTagService"
)
public
class
AgmsTagServiceImpl
implements
AgmsTagService
{
@Autowired
public
MdTagNewDALService
mdTagNewDALService
;
@Override
public
TagUpdateResponseVO
tagUpdate
(
TagUpdateRequestVO
requestVO
)
{
TagUpdateResponseVO
responseVO
=
new
TagUpdateResponseVO
();
CommonResult
commonResult
=
new
CommonResult
();
tagUpdateEntryCheck
(
requestVO
,
commonResult
);
if
(!
commonResult
.
isSuccess
()){
responseVO
.
setCommonResult
(
commonResult
);
return
responseVO
;
}
MdTagNew
mdTagNew
=
new
MdTagNew
();
BeanUtils
.
copyProperties
(
requestVO
,
mdTagNew
);
if
(
CommonUtil
.
isNullOrZero
(
requestVO
.
getId
())){
mdTagNew
.
setCreatedAt
(
new
Date
());
mdTagNew
.
setUpdatedAt
(
new
Date
());
mdTagNew
.
setCreatedBy
(
requestVO
.
getLoginId
());
mdTagNew
.
setUpdatedBy
(
requestVO
.
getLoginId
());
mdTagNewDALService
.
insert
(
mdTagNew
);
}
else
{
mdTagNew
.
setUpdatedAt
(
new
Date
());
mdTagNew
.
setUpdatedBy
(
requestVO
.
getLoginId
());
mdTagNewDALService
.
updateByPrimaryKeySelective
(
mdTagNew
);
}
commonResult
.
setSuccess
(
true
);
commonResult
.
setMessage
(
ZHBErrorConfig
.
getErrorInfo
(
"800000"
));
responseVO
.
setCommonResult
(
commonResult
);
return
responseVO
;
}
private
void
tagUpdateEntryCheck
(
TagUpdateRequestVO
requestVO
,
CommonResult
commonResult
)
{
if
(
CommonUtil
.
isNullOrZero
(
requestVO
.
getConfigLevel
())){
commonResult
.
setSuccess
(
false
);
commonResult
.
setMessage
(
ZHBErrorConfig
.
getErrorInfo
(
"830027"
));
return
;
}
if
(
CommonUtil
.
isNullOrZero
(
requestVO
.
getUpperTagId
())
&&
requestVO
.
getConfigLevel
()
!=
1L
){
commonResult
.
setSuccess
(
false
);
commonResult
.
setMessage
(
ZHBErrorConfig
.
getErrorInfo
(
"830028"
));
return
;
}
commonResult
.
setSuccess
(
true
);
commonResult
.
setMessage
(
ZHBErrorConfig
.
getErrorInfo
(
"800000"
));
}
}
yd-api/src/main/java/com/yd/api/agms/vo/tag/TagUpdateRequestVO.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
api
.
agms
.
vo
.
tag
;
/**
* @author xxy
* @date 2021年06月21日 23:41
*/
public
class
TagUpdateRequestVO
{
private
Long
id
;
private
Long
configLevel
;
private
Long
upperTagId
;
private
String
tagName
;
private
Integer
isActive
;
private
Long
loginId
;
/**
* Gets the value of id. *
*
* @return the value of id
*/
public
Long
getId
()
{
return
id
;
}
/**
* Sets the id. *
* <p>You can use getId() to get the value of id</p>
* * @param id id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* Gets the value of configLevel. *
*
* @return the value of configLevel
*/
public
Long
getConfigLevel
()
{
return
configLevel
;
}
/**
* Sets the configLevel. *
* <p>You can use getConfigLevel() to get the value of configLevel</p>
* * @param configLevel configLevel
*/
public
void
setConfigLevel
(
Long
configLevel
)
{
this
.
configLevel
=
configLevel
;
}
/**
* Gets the value of upperTagId. *
*
* @return the value of upperTagId
*/
public
Long
getUpperTagId
()
{
return
upperTagId
;
}
/**
* Sets the upperTagId. *
* <p>You can use getUpperTagId() to get the value of upperTagId</p>
* * @param upperTagId upperTagId
*/
public
void
setUpperTagId
(
Long
upperTagId
)
{
this
.
upperTagId
=
upperTagId
;
}
/**
* Gets the value of tagName. *
*
* @return the value of tagName
*/
public
String
getTagName
()
{
return
tagName
;
}
/**
* Sets the tagName. *
* <p>You can use getTagName() to get the value of tagName</p>
* * @param tagName tagName
*/
public
void
setTagName
(
String
tagName
)
{
this
.
tagName
=
tagName
;
}
/**
* Gets the value of isActive. *
*
* @return the value of isActive
*/
public
Integer
getIsActive
()
{
return
isActive
;
}
/**
* Sets the isActive. *
* <p>You can use getIsActive() to get the value of isActive</p>
* * @param isActive isActive
*/
public
void
setIsActive
(
Integer
isActive
)
{
this
.
isActive
=
isActive
;
}
/**
* Gets the value of loginId. *
*
* @return the value of loginId
*/
public
Long
getLoginId
()
{
return
loginId
;
}
/**
* Sets the loginId. *
* <p>You can use getLoginId() to get the value of loginId</p>
* * @param loginId loginId
*/
public
void
setLoginId
(
Long
loginId
)
{
this
.
loginId
=
loginId
;
}
@Override
public
String
toString
()
{
return
"TagUpdateRequestVO{"
+
"id="
+
id
+
", configLevel="
+
configLevel
+
", upperTagId="
+
upperTagId
+
", tagName='"
+
tagName
+
'\''
+
", isActive="
+
isActive
+
", loginId="
+
loginId
+
'}'
;
}
}
yd-api/src/main/java/com/yd/api/agms/vo/tag/TagUpdateResponseVO.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
api
.
agms
.
vo
.
tag
;
import
com.yd.api.result.CommonResult
;
/**
* @author xxy
* @date 2021年06月21日 23:41
*/
public
class
TagUpdateResponseVO
{
private
CommonResult
commonResult
;
/**
* Gets the value of commonResult. *
*
* @return the value of commonResult
*/
public
CommonResult
getCommonResult
()
{
return
commonResult
;
}
/**
* Sets the commonResult. *
* <p>You can use getCommonResult() to get the value of commonResult</p>
* * @param commonResult commonResult
*/
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
}
@Override
public
String
toString
()
{
return
"TagUpdateResponseVO{"
+
"commonResult="
+
commonResult
+
'}'
;
}
}
yd-api/src/main/java/com/yd/api/metadata/MetadataController.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
api
.
metadata
;
import
com.yd.api.metadata.service.MetadataService
;
import
com.yd.api.metadata.vo.TagQueryResponseVO
;
import
com.yd.api.result.JsonResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author xxy
* @date 2021年06月21日 17:14
*/
@RestController
@RequestMapping
(
"/metadata"
)
public
class
MetadataController
{
@Autowired
public
MetadataService
metadataService
;
/**
* 标签合集查询
* @return TagQueryResponseVO
*/
@GetMapping
(
"/tagQuery"
)
public
Object
tagQuery
(
@RequestParam
(
value
=
"isActive"
,
required
=
false
)
Long
isActive
){
JsonResult
result
=
new
JsonResult
();
TagQueryResponseVO
responseVO
=
metadataService
.
tagQuery
(
isActive
);
result
.
setData
(
responseVO
);
result
.
addResult
(
responseVO
);
return
result
;
}
}
yd-api/src/main/java/com/yd/api/metadata/service/MetadataService.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
api
.
metadata
.
service
;
import
com.yd.api.metadata.vo.TagQueryResponseVO
;
public
interface
MetadataService
{
/**
* 标签合集查询
* @param isActive 是否启用
* @return
*/
TagQueryResponseVO
tagQuery
(
Long
isActive
);
}
yd-api/src/main/java/com/yd/api/metadata/service/impl/MetadataServiceImpl.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
api
.
metadata
.
service
.
impl
;
import
com.yd.api.metadata.service.MetadataService
;
import
com.yd.api.metadata.vo.TagQueryInfo
;
import
com.yd.api.metadata.vo.TagQueryResponseVO
;
import
com.yd.api.result.CommonResult
;
import
com.yd.dal.entity.meta.MdTagNew
;
import
com.yd.dal.service.meta.MdTagNewDALService
;
import
com.yd.dal.service.metadata.MetadataDALService
;
import
com.yd.util.CommonUtil
;
import
com.yd.util.config.ZHBErrorConfig
;
import
org.apache.commons.beanutils.BeanPropertyValueEqualsPredicate
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
/**
* @author xxy
* @date 2021年06月21日 17:33
*/
@Service
(
"metadataService"
)
public
class
MetadataServiceImpl
implements
MetadataService
{
@Autowired
public
MetadataDALService
metadataDalService
;
@Autowired
public
MdTagNewDALService
mdTagNewDalService
;
@Override
@SuppressWarnings
(
"unchecked"
)
public
TagQueryResponseVO
tagQuery
(
Long
isActive
)
{
TagQueryResponseVO
responseVO
=
new
TagQueryResponseVO
();
List
<
MdTagNew
>
mdTagNewList
=
mdTagNewDalService
.
selectByIsActive
(
isActive
);
List
<
TagQueryInfo
>
tagQueryInfos
=
new
ArrayList
<>(
16
);
List
<
MdTagNew
>
mdTagNewAddList
=
new
ArrayList
<>(
16
);
BeanPropertyValueEqualsPredicate
predicateClause
=
new
BeanPropertyValueEqualsPredicate
(
"configLevel"
,
1L
);
List
<
MdTagNew
>
objectListSelect
=
(
List
<
MdTagNew
>)
CollectionUtils
.
select
(
mdTagNewList
,
predicateClause
);
mdTagNewAddList
.
addAll
(
objectListSelect
);
classificationBuildUpMdTag
(
mdTagNewList
,
mdTagNewAddList
,
objectListSelect
,
predicateClause
,
tagQueryInfos
);
mdTagNewList
.
removeAll
(
mdTagNewAddList
);
uncategorizedMdTag
(
mdTagNewList
,
tagQueryInfos
);
responseVO
.
setTagQueryInfos
(
tagQueryInfos
);
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
return
responseVO
;
}
@SuppressWarnings
(
"unchecked"
)
private
void
classificationBuildUpMdTag
(
List
<
MdTagNew
>
mdTagNewList
,
List
<
MdTagNew
>
mdTagNewAddList
,
List
<
MdTagNew
>
objectListSelect
,
BeanPropertyValueEqualsPredicate
predicateClause
,
List
<
TagQueryInfo
>
tagQueryInfos
)
{
for
(
MdTagNew
mdTagNew
:
objectListSelect
)
{
Long
id
=
mdTagNew
.
getId
();
TagQueryInfo
tagQueryInfo
=
new
TagQueryInfo
();
BeanUtils
.
copyProperties
(
mdTagNew
,
tagQueryInfo
);
tagQueryInfo
.
setCreatedAt
(
CommonUtil
.
dateParseString
(
mdTagNew
.
getCreatedAt
(),
"yyyy-MM-dd HH:mm:ss"
));
tagQueryInfo
.
setUpdatedAt
(
CommonUtil
.
dateParseString
(
mdTagNew
.
getUpdatedAt
(),
"yyyy-MM-dd HH:mm:ss"
));
predicateClause
=
new
BeanPropertyValueEqualsPredicate
(
"upperTagId"
,
id
);
List
<
MdTagNew
>
mdTagNewListSelect
=
(
List
<
MdTagNew
>)
CollectionUtils
.
select
(
mdTagNewList
,
predicateClause
);
if
(
mdTagNewListSelect
.
isEmpty
()){
tagQueryInfos
.
add
(
tagQueryInfo
);
continue
;
}
mdTagNewAddList
.
addAll
(
mdTagNewListSelect
);
List
<
TagQueryInfo
>
tagQueryInfoList
=
new
ArrayList
<>(
16
);
classificationBuildUpMdTag
(
mdTagNewList
,
mdTagNewAddList
,
mdTagNewListSelect
,
predicateClause
,
tagQueryInfoList
);
tagQueryInfo
.
setTagQueryInfos
(
tagQueryInfoList
);
tagQueryInfos
.
add
(
tagQueryInfo
);
}
}
private
void
uncategorizedMdTag
(
List
<
MdTagNew
>
mdTagNewList
,
List
<
TagQueryInfo
>
tagQueryInfos
)
{
TagQueryInfo
tagQueryInfo
=
new
TagQueryInfo
();
tagQueryInfo
.
setTagName
(
"未分类"
);
tagQueryInfo
.
setIsActive
(
1
);
tagQueryInfo
.
setCreatedAt
(
CommonUtil
.
dateParseString
(
new
Date
(),
"yyyy-MM-dd HH:mm:ss"
));
tagQueryInfo
.
setCreatedBy
(-
1L
);
tagQueryInfo
.
setUpdatedAt
(
CommonUtil
.
dateParseString
(
new
Date
(),
"yyyy-MM-dd HH:mm:ss"
));
tagQueryInfo
.
setUpdatedBy
(-
1L
);
List
<
TagQueryInfo
>
tagQueryInfoList
=
new
ArrayList
<>(
16
);
mdTagNewList
.
forEach
(
m
->{
TagQueryInfo
tagInfo
=
new
TagQueryInfo
();
BeanUtils
.
copyProperties
(
m
,
tagInfo
);
tagInfo
.
setCreatedAt
(
CommonUtil
.
dateParseString
(
m
.
getCreatedAt
(),
"yyyy-MM-dd HH:mm:ss"
));
tagInfo
.
setUpdatedAt
(
CommonUtil
.
dateParseString
(
m
.
getUpdatedAt
(),
"yyyy-MM-dd HH:mm:ss"
));
tagQueryInfoList
.
add
(
tagInfo
);
});
tagQueryInfo
.
setTagQueryInfos
(
tagQueryInfoList
);
tagQueryInfos
.
add
(
tagQueryInfo
);
}
}
yd-api/src/main/java/com/yd/api/metadata/vo/TagQueryInfo.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
api
.
metadata
.
vo
;
import
java.util.Date
;
import
java.util.List
;
/**
* @author xxy
* @date 2021年06月21日 17:56
*/
public
class
TagQueryInfo
{
private
Long
id
;
private
Long
configLevel
;
private
Long
upperTagId
;
private
String
tagName
;
private
Integer
isActive
;
private
String
createdAt
;
private
Long
createdBy
;
private
String
updatedAt
;
private
Long
updatedBy
;
public
List
<
TagQueryInfo
>
tagQueryInfos
;
/**
* Gets the value of id. *
*
* @return the value of id
*/
public
Long
getId
()
{
return
id
;
}
/**
* Sets the id. *
* <p>You can use getId() to get the value of id</p>
* * @param id id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* Gets the value of configLevel. *
*
* @return the value of configLevel
*/
public
Long
getConfigLevel
()
{
return
configLevel
;
}
/**
* Sets the configLevel. *
* <p>You can use getConfigLevel() to get the value of configLevel</p>
* * @param configLevel configLevel
*/
public
void
setConfigLevel
(
Long
configLevel
)
{
this
.
configLevel
=
configLevel
;
}
/**
* Gets the value of upperTagId. *
*
* @return the value of upperTagId
*/
public
Long
getUpperTagId
()
{
return
upperTagId
;
}
/**
* Sets the upperTagId. *
* <p>You can use getUpperTagId() to get the value of upperTagId</p>
* * @param upperTagId upperTagId
*/
public
void
setUpperTagId
(
Long
upperTagId
)
{
this
.
upperTagId
=
upperTagId
;
}
/**
* Gets the value of tagName. *
*
* @return the value of tagName
*/
public
String
getTagName
()
{
return
tagName
;
}
/**
* Sets the tagName. *
* <p>You can use getTagName() to get the value of tagName</p>
* * @param tagName tagName
*/
public
void
setTagName
(
String
tagName
)
{
this
.
tagName
=
tagName
;
}
/**
* Gets the value of isActive. *
*
* @return the value of isActive
*/
public
Integer
getIsActive
()
{
return
isActive
;
}
/**
* Sets the isActive. *
* <p>You can use getIsActive() to get the value of isActive</p>
* * @param isActive isActive
*/
public
void
setIsActive
(
Integer
isActive
)
{
this
.
isActive
=
isActive
;
}
/**
* Gets the value of createdAt. *
*
* @return the value of createdAt
*/
public
String
getCreatedAt
()
{
return
createdAt
;
}
/**
* Sets the createdAt. *
* <p>You can use getCreatedAt() to get the value of createdAt</p>
* * @param createdAt createdAt
*/
public
void
setCreatedAt
(
String
createdAt
)
{
this
.
createdAt
=
createdAt
;
}
/**
* Gets the value of createdBy. *
*
* @return the value of createdBy
*/
public
Long
getCreatedBy
()
{
return
createdBy
;
}
/**
* Sets the createdBy. *
* <p>You can use getCreatedBy() to get the value of createdBy</p>
* * @param createdBy createdBy
*/
public
void
setCreatedBy
(
Long
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* Gets the value of updatedAt. *
*
* @return the value of updatedAt
*/
public
String
getUpdatedAt
()
{
return
updatedAt
;
}
/**
* Sets the updatedAt. *
* <p>You can use getUpdatedAt() to get the value of updatedAt</p>
* * @param updatedAt updatedAt
*/
public
void
setUpdatedAt
(
String
updatedAt
)
{
this
.
updatedAt
=
updatedAt
;
}
/**
* Gets the value of updatedBy. *
*
* @return the value of updatedBy
*/
public
Long
getUpdatedBy
()
{
return
updatedBy
;
}
/**
* Sets the updatedBy. *
* <p>You can use getUpdatedBy() to get the value of updatedBy</p>
* * @param updatedBy updatedBy
*/
public
void
setUpdatedBy
(
Long
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* Gets the value of tagQueryInfos. *
*
* @return the value of tagQueryInfos
*/
public
List
<
TagQueryInfo
>
getTagQueryInfos
()
{
return
tagQueryInfos
;
}
/**
* Sets the tagQueryInfos. *
* <p>You can use getTagQueryInfos() to get the value of tagQueryInfos</p>
* * @param tagQueryInfos tagQueryInfos
*/
public
void
setTagQueryInfos
(
List
<
TagQueryInfo
>
tagQueryInfos
)
{
this
.
tagQueryInfos
=
tagQueryInfos
;
}
@Override
public
String
toString
()
{
return
"TagQueryInfo{"
+
"id="
+
id
+
", configLevel="
+
configLevel
+
", upperTagId="
+
upperTagId
+
", tagName='"
+
tagName
+
'\''
+
", isActive="
+
isActive
+
", createdAt='"
+
createdAt
+
'\''
+
", createdBy="
+
createdBy
+
", updatedAt="
+
updatedAt
+
", updatedBy="
+
updatedBy
+
", tagQueryInfos="
+
tagQueryInfos
+
'}'
;
}
}
yd-api/src/main/java/com/yd/api/metadata/vo/TagQueryResponseVO.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
api
.
metadata
.
vo
;
import
com.yd.api.result.CommonResult
;
import
java.util.List
;
/**
* @author xxy
* @date 2021年06月21日 17:39
*/
public
class
TagQueryResponseVO
{
private
List
<
TagQueryInfo
>
tagQueryInfos
;
public
List
<
TagQueryInfo
>
getTagQueryInfos
()
{
return
tagQueryInfos
;
}
public
void
setTagQueryInfos
(
List
<
TagQueryInfo
>
tagQueryInfos
)
{
this
.
tagQueryInfos
=
tagQueryInfos
;
}
private
CommonResult
commonResult
;
public
CommonResult
getCommonResult
()
{
return
commonResult
;
}
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
}
@Override
public
String
toString
()
{
return
"TagQueryResponseVO{"
+
"tagQueryInfos="
+
tagQueryInfos
+
", commonResult="
+
commonResult
+
'}'
;
}
}
yd-api/src/main/java/com/yd/dal/entity/meta/MdTagNew.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
entity
.
meta
;
import
java.util.Date
;
import
lombok.Data
;
/**
* @author xxy
*/
public
class
MdTagNew
{
private
Long
id
;
private
Long
configLevel
;
private
Long
upperTagId
;
private
String
tagName
;
private
Integer
isActive
;
private
Date
createdAt
;
private
Long
createdBy
;
private
Date
updatedAt
;
private
Long
updatedBy
;
/**
* Gets the value of id. *
*
* @return the value of id
*/
public
Long
getId
()
{
return
id
;
}
/**
* Sets the id. *
* <p>You can use getId() to get the value of id</p>
* * @param id id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* Gets the value of configLevel. *
*
* @return the value of configLevel
*/
public
Long
getConfigLevel
()
{
return
configLevel
;
}
/**
* Sets the configLevel. *
* <p>You can use getConfigLevel() to get the value of configLevel</p>
* * @param configLevel configLevel
*/
public
void
setConfigLevel
(
Long
configLevel
)
{
this
.
configLevel
=
configLevel
;
}
/**
* Gets the value of upperTagId. *
*
* @return the value of upperTagId
*/
public
Long
getUpperTagId
()
{
return
upperTagId
;
}
/**
* Sets the upperTagId. *
* <p>You can use getUpperTagId() to get the value of upperTagId</p>
* * @param upperTagId upperTagId
*/
public
void
setUpperTagId
(
Long
upperTagId
)
{
this
.
upperTagId
=
upperTagId
;
}
/**
* Gets the value of tagName. *
*
* @return the value of tagName
*/
public
String
getTagName
()
{
return
tagName
;
}
/**
* Sets the tagName. *
* <p>You can use getTagName() to get the value of tagName</p>
* * @param tagName tagName
*/
public
void
setTagName
(
String
tagName
)
{
this
.
tagName
=
tagName
;
}
/**
* Gets the value of isActive. *
*
* @return the value of isActive
*/
public
Integer
getIsActive
()
{
return
isActive
;
}
/**
* Sets the isActive. *
* <p>You can use getIsActive() to get the value of isActive</p>
* * @param isActive isActive
*/
public
void
setIsActive
(
Integer
isActive
)
{
this
.
isActive
=
isActive
;
}
/**
* Gets the value of createdAt. *
*
* @return the value of createdAt
*/
public
Date
getCreatedAt
()
{
return
createdAt
;
}
/**
* Sets the createdAt. *
* <p>You can use getCreatedAt() to get the value of createdAt</p>
* * @param createdAt createdAt
*/
public
void
setCreatedAt
(
Date
createdAt
)
{
this
.
createdAt
=
createdAt
;
}
/**
* Gets the value of createdBy. *
*
* @return the value of createdBy
*/
public
Long
getCreatedBy
()
{
return
createdBy
;
}
/**
* Sets the createdBy. *
* <p>You can use getCreatedBy() to get the value of createdBy</p>
* * @param createdBy createdBy
*/
public
void
setCreatedBy
(
Long
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* Gets the value of updatedAt. *
*
* @return the value of updatedAt
*/
public
Date
getUpdatedAt
()
{
return
updatedAt
;
}
/**
* Sets the updatedAt. *
* <p>You can use getUpdatedAt() to get the value of updatedAt</p>
* * @param updatedAt updatedAt
*/
public
void
setUpdatedAt
(
Date
updatedAt
)
{
this
.
updatedAt
=
updatedAt
;
}
/**
* Gets the value of updatedBy. *
*
* @return the value of updatedBy
*/
public
Long
getUpdatedBy
()
{
return
updatedBy
;
}
/**
* Sets the updatedBy. *
* <p>You can use getUpdatedBy() to get the value of updatedBy</p>
* * @param updatedBy updatedBy
*/
public
void
setUpdatedBy
(
Long
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
@Override
public
String
toString
()
{
return
"MdTagNew{"
+
"id="
+
id
+
", configLevel="
+
configLevel
+
", upperTagId="
+
upperTagId
+
", tagName='"
+
tagName
+
'\''
+
", isActive="
+
isActive
+
", createdAt="
+
createdAt
+
", createdBy="
+
createdBy
+
", updatedAt="
+
updatedAt
+
", updatedBy="
+
updatedBy
+
'}'
;
}
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/meta/MdTagView.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
entity
.
meta
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 前端显示标签表
* @author xxy
*/
public
class
MdTagView
{
/**
* serial id
*/
private
Long
id
;
/**
* 标签显示类别(1=12宫格; 2=左侧热榜列表; 3=右上角筛选)
*/
private
String
tagViewType
;
/**
* 标签ID
*/
private
Long
tagId
;
/**
* 标签名称
*/
private
String
tagName
;
/**
* 标签级别(1=一级标签;2=二级标签;3=三级标签,以此类推)
*/
private
String
tagLevel
;
/**
* 上级前端显示标签ID
*/
private
Long
upperTagViewId
;
/**
* UI上显示图片
*/
private
String
displayImage
;
/**
* UI上layout优先级
*/
private
Integer
displayOrder
;
/**
* 1=active 2=inactive
*/
private
Integer
isActive
;
/**
* 备注
*/
private
String
remark
;
/**
* 创建时间
*/
private
Date
createdAt
;
/**
* FK ag_acl_user.id
*/
private
Long
createdBy
;
/**
* 修改时间
*/
private
Date
updatedAt
;
/**
* FK ag_acl_user.id
*/
private
Long
updatedBy
;
/**
* Gets the value of id. *
*
* @return the value of id
*/
public
Long
getId
()
{
return
id
;
}
/**
* Sets the id. *
* <p>You can use getId() to get the value of id</p>
* * @param id id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* Gets the value of tagViewType. *
*
* @return the value of tagViewType
*/
public
String
getTagViewType
()
{
return
tagViewType
;
}
/**
* Sets the tagViewType. *
* <p>You can use getTagViewType() to get the value of tagViewType</p>
* * @param tagViewType tagViewType
*/
public
void
setTagViewType
(
String
tagViewType
)
{
this
.
tagViewType
=
tagViewType
;
}
/**
* Gets the value of tagId. *
*
* @return the value of tagId
*/
public
Long
getTagId
()
{
return
tagId
;
}
/**
* Sets the tagId. *
* <p>You can use getTagId() to get the value of tagId</p>
* * @param tagId tagId
*/
public
void
setTagId
(
Long
tagId
)
{
this
.
tagId
=
tagId
;
}
/**
* Gets the value of tagName. *
*
* @return the value of tagName
*/
public
String
getTagName
()
{
return
tagName
;
}
/**
* Sets the tagName. *
* <p>You can use getTagName() to get the value of tagName</p>
* * @param tagName tagName
*/
public
void
setTagName
(
String
tagName
)
{
this
.
tagName
=
tagName
;
}
/**
* Gets the value of tagLevel. *
*
* @return the value of tagLevel
*/
public
String
getTagLevel
()
{
return
tagLevel
;
}
/**
* Sets the tagLevel. *
* <p>You can use getTagLevel() to get the value of tagLevel</p>
* * @param tagLevel tagLevel
*/
public
void
setTagLevel
(
String
tagLevel
)
{
this
.
tagLevel
=
tagLevel
;
}
/**
* Gets the value of upperTagViewId. *
*
* @return the value of upperTagViewId
*/
public
Long
getUpperTagViewId
()
{
return
upperTagViewId
;
}
/**
* Sets the upperTagViewId. *
* <p>You can use getUpperTagViewId() to get the value of upperTagViewId</p>
* * @param upperTagViewId upperTagViewId
*/
public
void
setUpperTagViewId
(
Long
upperTagViewId
)
{
this
.
upperTagViewId
=
upperTagViewId
;
}
/**
* Gets the value of displayImage. *
*
* @return the value of displayImage
*/
public
String
getDisplayImage
()
{
return
displayImage
;
}
/**
* Sets the displayImage. *
* <p>You can use getDisplayImage() to get the value of displayImage</p>
* * @param displayImage displayImage
*/
public
void
setDisplayImage
(
String
displayImage
)
{
this
.
displayImage
=
displayImage
;
}
/**
* Gets the value of displayOrder. *
*
* @return the value of displayOrder
*/
public
Integer
getDisplayOrder
()
{
return
displayOrder
;
}
/**
* Sets the displayOrder. *
* <p>You can use getDisplayOrder() to get the value of displayOrder</p>
* * @param displayOrder displayOrder
*/
public
void
setDisplayOrder
(
Integer
displayOrder
)
{
this
.
displayOrder
=
displayOrder
;
}
/**
* Gets the value of isActive. *
*
* @return the value of isActive
*/
public
Integer
getIsActive
()
{
return
isActive
;
}
/**
* Sets the isActive. *
* <p>You can use getIsActive() to get the value of isActive</p>
* * @param isActive isActive
*/
public
void
setIsActive
(
Integer
isActive
)
{
this
.
isActive
=
isActive
;
}
/**
* Gets the value of remark. *
*
* @return the value of remark
*/
public
String
getRemark
()
{
return
remark
;
}
/**
* Sets the remark. *
* <p>You can use getRemark() to get the value of remark</p>
* * @param remark remark
*/
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
/**
* Gets the value of createdAt. *
*
* @return the value of createdAt
*/
public
Date
getCreatedAt
()
{
return
createdAt
;
}
/**
* Sets the createdAt. *
* <p>You can use getCreatedAt() to get the value of createdAt</p>
* * @param createdAt createdAt
*/
public
void
setCreatedAt
(
Date
createdAt
)
{
this
.
createdAt
=
createdAt
;
}
/**
* Gets the value of createdBy. *
*
* @return the value of createdBy
*/
public
Long
getCreatedBy
()
{
return
createdBy
;
}
/**
* Sets the createdBy. *
* <p>You can use getCreatedBy() to get the value of createdBy</p>
* * @param createdBy createdBy
*/
public
void
setCreatedBy
(
Long
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* Gets the value of updatedAt. *
*
* @return the value of updatedAt
*/
public
Date
getUpdatedAt
()
{
return
updatedAt
;
}
/**
* Sets the updatedAt. *
* <p>You can use getUpdatedAt() to get the value of updatedAt</p>
* * @param updatedAt updatedAt
*/
public
void
setUpdatedAt
(
Date
updatedAt
)
{
this
.
updatedAt
=
updatedAt
;
}
/**
* Gets the value of updatedBy. *
*
* @return the value of updatedBy
*/
public
Long
getUpdatedBy
()
{
return
updatedBy
;
}
/**
* Sets the updatedBy. *
* <p>You can use getUpdatedBy() to get the value of updatedBy</p>
* * @param updatedBy updatedBy
*/
public
void
setUpdatedBy
(
Long
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
@Override
public
String
toString
()
{
return
"MdTagView{"
+
"id="
+
id
+
", tagViewType='"
+
tagViewType
+
'\''
+
", tagId="
+
tagId
+
", tagName='"
+
tagName
+
'\''
+
", tagLevel='"
+
tagLevel
+
'\''
+
", upperTagViewId="
+
upperTagViewId
+
", displayImage='"
+
displayImage
+
'\''
+
", displayOrder="
+
displayOrder
+
", isActive="
+
isActive
+
", remark='"
+
remark
+
'\''
+
", createdAt="
+
createdAt
+
", createdBy="
+
createdBy
+
", updatedAt="
+
updatedAt
+
", updatedBy="
+
updatedBy
+
'}'
;
}
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/meta/MdTagNewMapper.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
mapper
.
meta
;
import
com.yd.dal.entity.meta.MdTagNew
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
MdTagNewMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
MdTagNew
record
);
int
insertSelective
(
MdTagNew
record
);
MdTagNew
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
MdTagNew
record
);
int
updateByPrimaryKey
(
MdTagNew
record
);
int
updateBatch
(
List
<
MdTagNew
>
list
);
int
updateBatchSelective
(
List
<
MdTagNew
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
MdTagNew
>
list
);
List
<
MdTagNew
>
selectByIsActive
(
@Param
(
"isActive"
)
Long
isActive
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/meta/MdTagViewMapper.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
mapper
.
meta
;
import
com.yd.dal.entity.meta.MdTagView
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
/**
* @author xxy
*/
public
interface
MdTagViewMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
MdTagView
record
);
int
insertSelective
(
MdTagView
record
);
MdTagView
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
MdTagView
record
);
int
updateByPrimaryKey
(
MdTagView
record
);
int
updateBatch
(
List
<
MdTagView
>
list
);
int
updateBatchSelective
(
List
<
MdTagView
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
MdTagView
>
list
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/metadata/MetadataMapper.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
mapper
.
metadata
;
/**
* @author xxy
*/
public
interface
MetadataMapper
{
}
yd-api/src/main/java/com/yd/dal/service/meta/MdTagNewDALService.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
service
.
meta
;
import
com.yd.dal.entity.meta.MdTagNew
;
import
java.util.List
;
/**
* @author xxy
*/
public
interface
MdTagNewDALService
{
List
<
MdTagNew
>
selectByIsActive
(
Long
isActive
);
void
insert
(
MdTagNew
mdTagNew
);
void
updateByPrimaryKeySelective
(
MdTagNew
mdTagNew
);
}
yd-api/src/main/java/com/yd/dal/service/meta/MdTagViewDALService.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
service
.
meta
;
/**
* @author xxy
*/
public
interface
MdTagViewDALService
{
}
yd-api/src/main/java/com/yd/dal/service/meta/impl/MdTagNewDALServiceImpl.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
service
.
meta
.
impl
;
import
com.yd.dal.entity.meta.MdTagNew
;
import
com.yd.dal.mapper.meta.MdTagNewMapper
;
import
com.yd.dal.service.meta.MdTagNewDALService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
* @author xxy
* @date 2021年06月21日 17:22
*/
@Service
(
"mdTagNewDALService"
)
public
class
MdTagNewDALServiceImpl
implements
MdTagNewDALService
{
@Resource
public
MdTagNewMapper
mapper
;
@Override
public
List
<
MdTagNew
>
selectByIsActive
(
Long
isActive
)
{
return
mapper
.
selectByIsActive
(
isActive
);
}
@Override
public
void
insert
(
MdTagNew
mdTagNew
)
{
mapper
.
insert
(
mdTagNew
);
}
@Override
public
void
updateByPrimaryKeySelective
(
MdTagNew
mdTagNew
)
{
mapper
.
updateByPrimaryKeySelective
(
mdTagNew
);
}
}
yd-api/src/main/java/com/yd/dal/service/meta/impl/MdTagViewDALServiceImpl.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
service
.
meta
.
impl
;
import
com.yd.dal.mapper.meta.MdTagViewMapper
;
import
com.yd.dal.service.meta.MdTagViewDALService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
* @author xxy
* @date 2021年06月21日 17:25
*/
@Service
(
"mdTagViewDALService"
)
public
class
MdTagViewDALServiceImpl
implements
MdTagViewDALService
{
@Resource
public
MdTagViewMapper
mapper
;
}
yd-api/src/main/java/com/yd/dal/service/metadata/MetadataDALService.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
service
.
metadata
;
/**
* @author xxy
*/
public
interface
MetadataDALService
{
}
yd-api/src/main/java/com/yd/dal/service/metadata/impl/MetadataDALServiceImpl.java
0 → 100644
View file @
5aea8e4d
package
com
.
yd
.
dal
.
service
.
metadata
.
impl
;
import
com.yd.dal.service.metadata.MetadataDALService
;
import
org.springframework.stereotype.Service
;
/**
* @author xxy
* @date 2021年06月21日 17:19
*/
@Service
(
"metadataDALService"
)
public
class
MetadataDALServiceImpl
implements
MetadataDALService
{
}
yd-api/src/main/resources/i18n/messages_zh_CN.properties
View file @
5aea8e4d
...
...
@@ -40,4 +40,6 @@
830024
=
存在已关账保单,禁止修改为非可发放状态
830025
=
上传失败,请重新上传!
830026
=
经纪人审批步骤出现问题,请联系it!
830027
=
标签级别不能为空!
830028
=
此标签不是一级标签,上级标签id不能为空!
900003
=
保险公司响应报文为空!
\ No newline at end of file
yd-api/src/main/resources/mapper/meta/MdTagNewMapper.xml
0 → 100644
View file @
5aea8e4d
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yd.dal.mapper.meta.MdTagNewMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.meta.MdTagNew"
>
<!--@mbg.generated-->
<!--@Table ag_md_tag_new-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"config_level"
jdbcType=
"BIGINT"
property=
"configLevel"
/>
<result
column=
"upper_tag_id"
jdbcType=
"BIGINT"
property=
"upperTagId"
/>
<result
column=
"tag_name"
jdbcType=
"VARCHAR"
property=
"tagName"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, config_level, upper_tag_id, tag_name, is_active, created_at, created_by, updated_at,
updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_md_tag_new
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_md_tag_new
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.meta.MdTagNew"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_tag_new (config_level, upper_tag_id, tag_name,
is_active, created_at, created_by,
updated_at, updated_by)
values (#{configLevel,jdbcType=BIGINT}, #{upperTagId,jdbcType=BIGINT}, #{tagName,jdbcType=VARCHAR},
#{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT},
#{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.meta.MdTagNew"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_tag_new
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"configLevel != null"
>
config_level,
</if>
<if
test=
"upperTagId != null"
>
upper_tag_id,
</if>
<if
test=
"tagName != null"
>
tag_name,
</if>
<if
test=
"isActive != null"
>
is_active,
</if>
<if
test=
"createdAt != null"
>
created_at,
</if>
<if
test=
"createdBy != null"
>
created_by,
</if>
<if
test=
"updatedAt != null"
>
updated_at,
</if>
<if
test=
"updatedBy != null"
>
updated_by,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"configLevel != null"
>
#{configLevel,jdbcType=BIGINT},
</if>
<if
test=
"upperTagId != null"
>
#{upperTagId,jdbcType=BIGINT},
</if>
<if
test=
"tagName != null"
>
#{tagName,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=INTEGER},
</if>
<if
test=
"createdAt != null"
>
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
#{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
#{updatedBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.meta.MdTagNew"
>
<!--@mbg.generated-->
update ag_md_tag_new
<set>
<if
test=
"configLevel != null"
>
config_level = #{configLevel,jdbcType=BIGINT},
</if>
<if
test=
"upperTagId != null"
>
upper_tag_id = #{upperTagId,jdbcType=BIGINT},
</if>
<if
test=
"tagName != null"
>
tag_name = #{tagName,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if
test=
"createdAt != null"
>
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
created_by = #{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.meta.MdTagNew"
>
<!--@mbg.generated-->
update ag_md_tag_new
set config_level = #{configLevel,jdbcType=BIGINT},
upper_tag_id = #{upperTagId,jdbcType=BIGINT},
tag_name = #{tagName,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_md_tag_new
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"config_level = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.configLevel,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"upper_tag_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.upperTagId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"tag_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_md_tag_new
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"config_level = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.configLevel != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.configLevel,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"upper_tag_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.upperTagId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.upperTagId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"tag_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.tagName != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_tag_new
(config_level, upper_tag_id, tag_name, is_active, created_at, created_by, updated_at,
updated_by)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.configLevel,jdbcType=BIGINT}, #{item.upperTagId,jdbcType=BIGINT}, #{item.tagName,jdbcType=VARCHAR},
#{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT},
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT})
</foreach>
</insert>
<select
id=
"selectByIsActive"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_md_tag_new
<where>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=BIGINT}
</if>
</where>
</select>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/meta/MdTagViewMapper.xml
0 → 100644
View file @
5aea8e4d
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yd.dal.mapper.meta.MdTagViewMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.meta.MdTagView"
>
<!--@mbg.generated-->
<!--@Table ag_md_tag_view-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"tag_view_type"
jdbcType=
"VARCHAR"
property=
"tagViewType"
/>
<result
column=
"tag_id"
jdbcType=
"BIGINT"
property=
"tagId"
/>
<result
column=
"tag_name"
jdbcType=
"VARCHAR"
property=
"tagName"
/>
<result
column=
"tag_level"
jdbcType=
"VARCHAR"
property=
"tagLevel"
/>
<result
column=
"upper_tag_view_id"
jdbcType=
"BIGINT"
property=
"upperTagViewId"
/>
<result
column=
"display_image"
jdbcType=
"VARCHAR"
property=
"displayImage"
/>
<result
column=
"display_order"
jdbcType=
"INTEGER"
property=
"displayOrder"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, tag_view_type, tag_id, tag_name, tag_level, upper_tag_view_id, display_image,
display_order, is_active, remark, created_at, created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_md_tag_view
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_md_tag_view
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.meta.MdTagView"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_tag_view (tag_view_type, tag_id, tag_name,
tag_level, upper_tag_view_id, display_image,
display_order, is_active, remark,
created_at, created_by, updated_at,
updated_by)
values (#{tagViewType,jdbcType=VARCHAR}, #{tagId,jdbcType=BIGINT}, #{tagName,jdbcType=VARCHAR},
#{tagLevel,jdbcType=VARCHAR}, #{upperTagViewId,jdbcType=BIGINT}, #{displayImage,jdbcType=VARCHAR},
#{displayOrder,jdbcType=INTEGER}, #{isActive,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.meta.MdTagView"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_tag_view
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"tagViewType != null"
>
tag_view_type,
</if>
<if
test=
"tagId != null"
>
tag_id,
</if>
<if
test=
"tagName != null"
>
tag_name,
</if>
<if
test=
"tagLevel != null"
>
tag_level,
</if>
<if
test=
"upperTagViewId != null"
>
upper_tag_view_id,
</if>
<if
test=
"displayImage != null"
>
display_image,
</if>
<if
test=
"displayOrder != null"
>
display_order,
</if>
<if
test=
"isActive != null"
>
is_active,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"createdAt != null"
>
created_at,
</if>
<if
test=
"createdBy != null"
>
created_by,
</if>
<if
test=
"updatedAt != null"
>
updated_at,
</if>
<if
test=
"updatedBy != null"
>
updated_by,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"tagViewType != null"
>
#{tagViewType,jdbcType=VARCHAR},
</if>
<if
test=
"tagId != null"
>
#{tagId,jdbcType=BIGINT},
</if>
<if
test=
"tagName != null"
>
#{tagName,jdbcType=VARCHAR},
</if>
<if
test=
"tagLevel != null"
>
#{tagLevel,jdbcType=VARCHAR},
</if>
<if
test=
"upperTagViewId != null"
>
#{upperTagViewId,jdbcType=BIGINT},
</if>
<if
test=
"displayImage != null"
>
#{displayImage,jdbcType=VARCHAR},
</if>
<if
test=
"displayOrder != null"
>
#{displayOrder,jdbcType=INTEGER},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=INTEGER},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
<if
test=
"createdAt != null"
>
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
#{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
#{updatedBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.meta.MdTagView"
>
<!--@mbg.generated-->
update ag_md_tag_view
<set>
<if
test=
"tagViewType != null"
>
tag_view_type = #{tagViewType,jdbcType=VARCHAR},
</if>
<if
test=
"tagId != null"
>
tag_id = #{tagId,jdbcType=BIGINT},
</if>
<if
test=
"tagName != null"
>
tag_name = #{tagName,jdbcType=VARCHAR},
</if>
<if
test=
"tagLevel != null"
>
tag_level = #{tagLevel,jdbcType=VARCHAR},
</if>
<if
test=
"upperTagViewId != null"
>
upper_tag_view_id = #{upperTagViewId,jdbcType=BIGINT},
</if>
<if
test=
"displayImage != null"
>
display_image = #{displayImage,jdbcType=VARCHAR},
</if>
<if
test=
"displayOrder != null"
>
display_order = #{displayOrder,jdbcType=INTEGER},
</if>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"createdAt != null"
>
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
created_by = #{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.meta.MdTagView"
>
<!--@mbg.generated-->
update ag_md_tag_view
set tag_view_type = #{tagViewType,jdbcType=VARCHAR},
tag_id = #{tagId,jdbcType=BIGINT},
tag_name = #{tagName,jdbcType=VARCHAR},
tag_level = #{tagLevel,jdbcType=VARCHAR},
upper_tag_view_id = #{upperTagViewId,jdbcType=BIGINT},
display_image = #{displayImage,jdbcType=VARCHAR},
display_order = #{displayOrder,jdbcType=INTEGER},
is_active = #{isActive,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_md_tag_view
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"tag_view_type = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagViewType,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"tag_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"tag_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"tag_level = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagLevel,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"upper_tag_view_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.upperTagViewId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"display_image = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.displayImage,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"display_order = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.displayOrder,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"remark = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_md_tag_view
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"tag_view_type = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.tagViewType != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagViewType,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"tag_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.tagId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"tag_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.tagName != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"tag_level = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.tagLevel != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.tagLevel,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"upper_tag_view_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.upperTagViewId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.upperTagViewId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"display_image = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.displayImage != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.displayImage,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"display_order = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.displayOrder != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.displayOrder,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"remark = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.remark != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_tag_view
(tag_view_type, tag_id, tag_name, tag_level, upper_tag_view_id, display_image, display_order,
is_active, remark, created_at, created_by, updated_at, updated_by)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.tagViewType,jdbcType=VARCHAR}, #{item.tagId,jdbcType=BIGINT}, #{item.tagName,jdbcType=VARCHAR},
#{item.tagLevel,jdbcType=VARCHAR}, #{item.upperTagViewId,jdbcType=BIGINT}, #{item.displayImage,jdbcType=VARCHAR},
#{item.displayOrder,jdbcType=INTEGER}, #{item.isActive,jdbcType=INTEGER}, #{item.remark,jdbcType=VARCHAR},
#{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT}, #{item.updatedAt,jdbcType=TIMESTAMP},
#{item.updatedBy,jdbcType=BIGINT})
</foreach>
</insert>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/metadata/MetadataMapper.xml
0 → 100644
View file @
5aea8e4d
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.yd.dal.mapper.metadata.MetadataMapper"
>
</mapper>
\ 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