Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
310696e2
"eladmin-system/vscode:/vscode.git/clone" did not exist on "e06ec08400c8e3931ab5e177a0e156cb743049f9"
Commit
310696e2
authored
Jun 19, 2019
by
macro
Browse files
修复mybatis generator重复生成mapper.xml内容的问题
parent
79000a1e
Changes
149
Hide whitespace changes
Inline
Side-by-side
mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionSessionDetail.java
View file @
310696e2
...
@@ -11,5 +11,5 @@ import lombok.Setter;
...
@@ -11,5 +11,5 @@ import lombok.Setter;
public
class
SmsFlashPromotionSessionDetail
extends
SmsFlashPromotionSession
{
public
class
SmsFlashPromotionSessionDetail
extends
SmsFlashPromotionSession
{
@Setter
@Setter
@Getter
@Getter
private
Integer
productCount
;
private
Long
productCount
;
}
}
mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionProductRelationService.java
View file @
310696e2
...
@@ -46,5 +46,5 @@ public interface SmsFlashPromotionProductRelationService {
...
@@ -46,5 +46,5 @@ public interface SmsFlashPromotionProductRelationService {
* @param flashPromotionSessionId
* @param flashPromotionSessionId
* @return
* @return
*/
*/
int
getCount
(
Long
flashPromotionId
,
Long
flashPromotionSessionId
);
long
getCount
(
Long
flashPromotionId
,
Long
flashPromotionSessionId
);
}
}
mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.java
View file @
310696e2
...
@@ -53,7 +53,7 @@ public class SmsFlashPromotionProductRelationServiceImpl implements SmsFlashProm
...
@@ -53,7 +53,7 @@ public class SmsFlashPromotionProductRelationServiceImpl implements SmsFlashProm
}
}
@Override
@Override
public
int
getCount
(
Long
flashPromotionId
,
Long
flashPromotionSessionId
)
{
public
long
getCount
(
Long
flashPromotionId
,
Long
flashPromotionSessionId
)
{
SmsFlashPromotionProductRelationExample
example
=
new
SmsFlashPromotionProductRelationExample
();
SmsFlashPromotionProductRelationExample
example
=
new
SmsFlashPromotionProductRelationExample
();
example
.
createCriteria
()
example
.
createCriteria
()
.
andFlashPromotionIdEqualTo
(
flashPromotionId
)
.
andFlashPromotionIdEqualTo
(
flashPromotionId
)
...
...
mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionSessionServiceImpl.java
View file @
310696e2
...
@@ -70,7 +70,7 @@ public class SmsFlashPromotionSessionServiceImpl implements SmsFlashPromotionSes
...
@@ -70,7 +70,7 @@ public class SmsFlashPromotionSessionServiceImpl implements SmsFlashPromotionSes
for
(
SmsFlashPromotionSession
promotionSession
:
list
)
{
for
(
SmsFlashPromotionSession
promotionSession
:
list
)
{
SmsFlashPromotionSessionDetail
detail
=
new
SmsFlashPromotionSessionDetail
();
SmsFlashPromotionSessionDetail
detail
=
new
SmsFlashPromotionSessionDetail
();
BeanUtils
.
copyProperties
(
promotionSession
,
detail
);
BeanUtils
.
copyProperties
(
promotionSession
,
detail
);
int
count
=
relationService
.
getCount
(
flashPromotionId
,
promotionSession
.
getId
());
long
count
=
relationService
.
getCount
(
flashPromotionId
,
promotionSession
.
getId
());
detail
.
setProductCount
(
count
);
detail
.
setProductCount
(
count
);
result
.
add
(
detail
);
result
.
add
(
detail
);
}
}
...
...
mall-mbg/pom.xml
View file @
310696e2
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<dependency>
<dependency>
<groupId>
org.mybatis.generator
</groupId>
<groupId>
org.mybatis.generator
</groupId>
<artifactId>
mybatis-generator-core
</artifactId>
<artifactId>
mybatis-generator-core
</artifactId>
<version>
1.3.
3
</version>
<version>
1.3.
7
</version>
</dependency>
</dependency>
<!-- MyBatis-->
<!-- MyBatis-->
<dependency>
<dependency>
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpCategoryMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsHelpCategoryMapper
{
public
interface
CmsHelpCategoryMapper
{
int
countByExample
(
CmsHelpCategoryExample
example
);
long
countByExample
(
CmsHelpCategoryExample
example
);
int
deleteByExample
(
CmsHelpCategoryExample
example
);
int
deleteByExample
(
CmsHelpCategoryExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsHelpMapper
{
public
interface
CmsHelpMapper
{
int
countByExample
(
CmsHelpExample
example
);
long
countByExample
(
CmsHelpExample
example
);
int
deleteByExample
(
CmsHelpExample
example
);
int
deleteByExample
(
CmsHelpExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsMemberReportMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsMemberReportMapper
{
public
interface
CmsMemberReportMapper
{
int
countByExample
(
CmsMemberReportExample
example
);
long
countByExample
(
CmsMemberReportExample
example
);
int
deleteByExample
(
CmsMemberReportExample
example
);
int
deleteByExample
(
CmsMemberReportExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsPrefrenceAreaMapper
{
public
interface
CmsPrefrenceAreaMapper
{
int
countByExample
(
CmsPrefrenceAreaExample
example
);
long
countByExample
(
CmsPrefrenceAreaExample
example
);
int
deleteByExample
(
CmsPrefrenceAreaExample
example
);
int
deleteByExample
(
CmsPrefrenceAreaExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsPrefrenceAreaProductRelationMapper
{
public
interface
CmsPrefrenceAreaProductRelationMapper
{
int
countByExample
(
CmsPrefrenceAreaProductRelationExample
example
);
long
countByExample
(
CmsPrefrenceAreaProductRelationExample
example
);
int
deleteByExample
(
CmsPrefrenceAreaProductRelationExample
example
);
int
deleteByExample
(
CmsPrefrenceAreaProductRelationExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCategoryMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsSubjectCategoryMapper
{
public
interface
CmsSubjectCategoryMapper
{
int
countByExample
(
CmsSubjectCategoryExample
example
);
long
countByExample
(
CmsSubjectCategoryExample
example
);
int
deleteByExample
(
CmsSubjectCategoryExample
example
);
int
deleteByExample
(
CmsSubjectCategoryExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCommentMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsSubjectCommentMapper
{
public
interface
CmsSubjectCommentMapper
{
int
countByExample
(
CmsSubjectCommentExample
example
);
long
countByExample
(
CmsSubjectCommentExample
example
);
int
deleteByExample
(
CmsSubjectCommentExample
example
);
int
deleteByExample
(
CmsSubjectCommentExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsSubjectMapper
{
public
interface
CmsSubjectMapper
{
int
countByExample
(
CmsSubjectExample
example
);
long
countByExample
(
CmsSubjectExample
example
);
int
deleteByExample
(
CmsSubjectExample
example
);
int
deleteByExample
(
CmsSubjectExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectProductRelationMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsSubjectProductRelationMapper
{
public
interface
CmsSubjectProductRelationMapper
{
int
countByExample
(
CmsSubjectProductRelationExample
example
);
long
countByExample
(
CmsSubjectProductRelationExample
example
);
int
deleteByExample
(
CmsSubjectProductRelationExample
example
);
int
deleteByExample
(
CmsSubjectProductRelationExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCategoryMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsTopicCategoryMapper
{
public
interface
CmsTopicCategoryMapper
{
int
countByExample
(
CmsTopicCategoryExample
example
);
long
countByExample
(
CmsTopicCategoryExample
example
);
int
deleteByExample
(
CmsTopicCategoryExample
example
);
int
deleteByExample
(
CmsTopicCategoryExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCommentMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsTopicCommentMapper
{
public
interface
CmsTopicCommentMapper
{
int
countByExample
(
CmsTopicCommentExample
example
);
long
countByExample
(
CmsTopicCommentExample
example
);
int
deleteByExample
(
CmsTopicCommentExample
example
);
int
deleteByExample
(
CmsTopicCommentExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
CmsTopicMapper
{
public
interface
CmsTopicMapper
{
int
countByExample
(
CmsTopicExample
example
);
long
countByExample
(
CmsTopicExample
example
);
int
deleteByExample
(
CmsTopicExample
example
);
int
deleteByExample
(
CmsTopicExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
OmsCartItemMapper
{
public
interface
OmsCartItemMapper
{
int
countByExample
(
OmsCartItemExample
example
);
long
countByExample
(
OmsCartItemExample
example
);
int
deleteByExample
(
OmsCartItemExample
example
);
int
deleteByExample
(
OmsCartItemExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/OmsCompanyAddressMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
OmsCompanyAddressMapper
{
public
interface
OmsCompanyAddressMapper
{
int
countByExample
(
OmsCompanyAddressExample
example
);
long
countByExample
(
OmsCompanyAddressExample
example
);
int
deleteByExample
(
OmsCompanyAddressExample
example
);
int
deleteByExample
(
OmsCompanyAddressExample
example
);
...
...
mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java
View file @
310696e2
...
@@ -6,7 +6,7 @@ import java.util.List;
...
@@ -6,7 +6,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
OmsOrderItemMapper
{
public
interface
OmsOrderItemMapper
{
int
countByExample
(
OmsOrderItemExample
example
);
long
countByExample
(
OmsOrderItemExample
example
);
int
deleteByExample
(
OmsOrderItemExample
example
);
int
deleteByExample
(
OmsOrderItemExample
example
);
...
...
Prev
1
2
3
4
5
…
8
Next
Write
Preview
Supports
Markdown
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