Skip to content

Commit

Permalink
修复mybatis generator重复生成mapper.xml内容的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozheng committed Jun 19, 2019
1 parent 79000a1 commit 310696e
Show file tree
Hide file tree
Showing 149 changed files with 150 additions and 148 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
public class SmsFlashPromotionSessionDetail extends SmsFlashPromotionSession {
@Setter
@Getter
private Integer productCount;
private Long productCount;
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ public interface SmsFlashPromotionProductRelationService {
* @param flashPromotionSessionId
* @return
*/
int getCount(Long flashPromotionId,Long flashPromotionSessionId);
long getCount(Long flashPromotionId,Long flashPromotionSessionId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public List<SmsFlashPromotionProduct> list(Long flashPromotionId, Long flashProm
}

@Override
public int getCount(Long flashPromotionId, Long flashPromotionSessionId) {
public long getCount(Long flashPromotionId, Long flashPromotionSessionId) {
SmsFlashPromotionProductRelationExample example = new SmsFlashPromotionProductRelationExample();
example.createCriteria()
.andFlashPromotionIdEqualTo(flashPromotionId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId) {
for (SmsFlashPromotionSession promotionSession : list) {
SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail();
BeanUtils.copyProperties(promotionSession, detail);
int count = relationService.getCount(flashPromotionId, promotionSession.getId());
long count = relationService.getCount(flashPromotionId, promotionSession.getId());
detail.setProductCount(count);
result.add(detail);
}
Expand Down
2 changes: 1 addition & 1 deletion mall-mbg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.3</version>
<version>1.3.7</version>
</dependency>
<!-- MyBatis-->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsHelpCategoryMapper {
int countByExample(CmsHelpCategoryExample example);
long countByExample(CmsHelpCategoryExample example);

int deleteByExample(CmsHelpCategoryExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsHelpMapper {
int countByExample(CmsHelpExample example);
long countByExample(CmsHelpExample example);

int deleteByExample(CmsHelpExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsMemberReportMapper {
int countByExample(CmsMemberReportExample example);
long countByExample(CmsMemberReportExample example);

int deleteByExample(CmsMemberReportExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsPrefrenceAreaMapper {
int countByExample(CmsPrefrenceAreaExample example);
long countByExample(CmsPrefrenceAreaExample example);

int deleteByExample(CmsPrefrenceAreaExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsPrefrenceAreaProductRelationMapper {
int countByExample(CmsPrefrenceAreaProductRelationExample example);
long countByExample(CmsPrefrenceAreaProductRelationExample example);

int deleteByExample(CmsPrefrenceAreaProductRelationExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsSubjectCategoryMapper {
int countByExample(CmsSubjectCategoryExample example);
long countByExample(CmsSubjectCategoryExample example);

int deleteByExample(CmsSubjectCategoryExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsSubjectCommentMapper {
int countByExample(CmsSubjectCommentExample example);
long countByExample(CmsSubjectCommentExample example);

int deleteByExample(CmsSubjectCommentExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsSubjectMapper {
int countByExample(CmsSubjectExample example);
long countByExample(CmsSubjectExample example);

int deleteByExample(CmsSubjectExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsSubjectProductRelationMapper {
int countByExample(CmsSubjectProductRelationExample example);
long countByExample(CmsSubjectProductRelationExample example);

int deleteByExample(CmsSubjectProductRelationExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsTopicCategoryMapper {
int countByExample(CmsTopicCategoryExample example);
long countByExample(CmsTopicCategoryExample example);

int deleteByExample(CmsTopicCategoryExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsTopicCommentMapper {
int countByExample(CmsTopicCommentExample example);
long countByExample(CmsTopicCommentExample example);

int deleteByExample(CmsTopicCommentExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface CmsTopicMapper {
int countByExample(CmsTopicExample example);
long countByExample(CmsTopicExample example);

int deleteByExample(CmsTopicExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface OmsCartItemMapper {
int countByExample(OmsCartItemExample example);
long countByExample(OmsCartItemExample example);

int deleteByExample(OmsCartItemExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface OmsCompanyAddressMapper {
int countByExample(OmsCompanyAddressExample example);
long countByExample(OmsCompanyAddressExample example);

int deleteByExample(OmsCompanyAddressExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface OmsOrderItemMapper {
int countByExample(OmsOrderItemExample example);
long countByExample(OmsOrderItemExample example);

int deleteByExample(OmsOrderItemExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface OmsOrderMapper {
int countByExample(OmsOrderExample example);
long countByExample(OmsOrderExample example);

int deleteByExample(OmsOrderExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface OmsOrderOperateHistoryMapper {
int countByExample(OmsOrderOperateHistoryExample example);
long countByExample(OmsOrderOperateHistoryExample example);

int deleteByExample(OmsOrderOperateHistoryExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface OmsOrderReturnApplyMapper {
int countByExample(OmsOrderReturnApplyExample example);
long countByExample(OmsOrderReturnApplyExample example);

int deleteByExample(OmsOrderReturnApplyExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface OmsOrderReturnReasonMapper {
int countByExample(OmsOrderReturnReasonExample example);
long countByExample(OmsOrderReturnReasonExample example);

int deleteByExample(OmsOrderReturnReasonExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface OmsOrderSettingMapper {
int countByExample(OmsOrderSettingExample example);
long countByExample(OmsOrderSettingExample example);

int deleteByExample(OmsOrderSettingExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsAlbumMapper {
int countByExample(PmsAlbumExample example);
long countByExample(PmsAlbumExample example);

int deleteByExample(PmsAlbumExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsAlbumPicMapper {
int countByExample(PmsAlbumPicExample example);
long countByExample(PmsAlbumPicExample example);

int deleteByExample(PmsAlbumPicExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsBrandMapper {
int countByExample(PmsBrandExample example);
long countByExample(PmsBrandExample example);

int deleteByExample(PmsBrandExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsCommentMapper {
int countByExample(PmsCommentExample example);
long countByExample(PmsCommentExample example);

int deleteByExample(PmsCommentExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsCommentReplayMapper {
int countByExample(PmsCommentReplayExample example);
long countByExample(PmsCommentReplayExample example);

int deleteByExample(PmsCommentReplayExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsFeightTemplateMapper {
int countByExample(PmsFeightTemplateExample example);
long countByExample(PmsFeightTemplateExample example);

int deleteByExample(PmsFeightTemplateExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsMemberPriceMapper {
int countByExample(PmsMemberPriceExample example);
long countByExample(PmsMemberPriceExample example);

int deleteByExample(PmsMemberPriceExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductAttributeCategoryMapper {
int countByExample(PmsProductAttributeCategoryExample example);
long countByExample(PmsProductAttributeCategoryExample example);

int deleteByExample(PmsProductAttributeCategoryExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductAttributeMapper {
int countByExample(PmsProductAttributeExample example);
long countByExample(PmsProductAttributeExample example);

int deleteByExample(PmsProductAttributeExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductAttributeValueMapper {
int countByExample(PmsProductAttributeValueExample example);
long countByExample(PmsProductAttributeValueExample example);

int deleteByExample(PmsProductAttributeValueExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductCategoryAttributeRelationMapper {
int countByExample(PmsProductCategoryAttributeRelationExample example);
long countByExample(PmsProductCategoryAttributeRelationExample example);

int deleteByExample(PmsProductCategoryAttributeRelationExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductCategoryMapper {
int countByExample(PmsProductCategoryExample example);
long countByExample(PmsProductCategoryExample example);

int deleteByExample(PmsProductCategoryExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductFullReductionMapper {
int countByExample(PmsProductFullReductionExample example);
long countByExample(PmsProductFullReductionExample example);

int deleteByExample(PmsProductFullReductionExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductLadderMapper {
int countByExample(PmsProductLadderExample example);
long countByExample(PmsProductLadderExample example);

int deleteByExample(PmsProductLadderExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductMapper {
int countByExample(PmsProductExample example);
long countByExample(PmsProductExample example);

int deleteByExample(PmsProductExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductOperateLogMapper {
int countByExample(PmsProductOperateLogExample example);
long countByExample(PmsProductOperateLogExample example);

int deleteByExample(PmsProductOperateLogExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsProductVertifyRecordMapper {
int countByExample(PmsProductVertifyRecordExample example);
long countByExample(PmsProductVertifyRecordExample example);

int deleteByExample(PmsProductVertifyRecordExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface PmsSkuStockMapper {
int countByExample(PmsSkuStockExample example);
long countByExample(PmsSkuStockExample example);

int deleteByExample(PmsSkuStockExample example);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.ibatis.annotations.Param;

public interface SmsCouponHistoryMapper {
int countByExample(SmsCouponHistoryExample example);
long countByExample(SmsCouponHistoryExample example);

int deleteByExample(SmsCouponHistoryExample example);

Expand Down
Loading

0 comments on commit 310696e

Please sign in to comment.