repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsGrowthChangeHistory; import com.macro.mall.model.UmsGrowthChangeHistoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsGrowthChangeHistoryMapper { long countByExample(UmsGrowthChangeHistoryExample example); int deleteByExample(UmsGrowthChangeHistoryExample example); int deleteByPrimaryKey(Long id); int insert(UmsGrowthChangeHistory record); int insertSelective(UmsGrowthChangeHistory record); List<UmsGrowthChangeHistory> selectByExample(UmsGrowthChangeHistoryExample example); UmsGrowthChangeHistory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsGrowthChangeHistory record, @Param("example") UmsGrowthChangeHistoryExample example); int updateByExample(@Param("record") UmsGrowthChangeHistory record, @Param("example") UmsGrowthChangeHistoryExample example); int updateByPrimaryKeySelective(UmsGrowthChangeHistory record); int updateByPrimaryKey(UmsGrowthChangeHistory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMenuRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMenuRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsRoleMenuRelation; import com.macro.mall.model.UmsRoleMenuRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsRoleMenuRelationMapper { long countByExample(UmsRoleMenuRelationExample example); int deleteByExample(UmsRoleMenuRelationExample example); int deleteByPrimaryKey(Long id); int insert(UmsRoleMenuRelation record); int insertSelective(UmsRoleMenuRelation record); List<UmsRoleMenuRelation> selectByExample(UmsRoleMenuRelationExample example); UmsRoleMenuRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsRoleMenuRelation record, @Param("example") UmsRoleMenuRelationExample example); int updateByExample(@Param("record") UmsRoleMenuRelation record, @Param("example") UmsRoleMenuRelationExample example); int updateByPrimaryKeySelective(UmsRoleMenuRelation record); int updateByPrimaryKey(UmsRoleMenuRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.OmsCartItem; import com.macro.mall.model.OmsCartItemExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OmsCartItemMapper { long countByExample(OmsCartItemExample example); int deleteByExample(OmsCartItemExample example); int deleteByPrimaryKey(Long id); int insert(OmsCartItem record); int insertSelective(OmsCartItem record); List<OmsCartItem> selectByExample(OmsCartItemExample example); OmsCartItem selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") OmsCartItem record, @Param("example") OmsCartItemExample example); int updateByExample(@Param("record") OmsCartItem record, @Param("example") OmsCartItemExample example); int updateByPrimaryKeySelective(OmsCartItem record); int updateByPrimaryKey(OmsCartItem record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductFullReductionMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductFullReductionMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsProductFullReduction; import com.macro.mall.model.PmsProductFullReductionExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductFullReductionMapper { long countByExample(PmsProductFullReductionExample example); int deleteByExample(PmsProductFullReductionExample example); int deleteByPrimaryKey(Long id); int insert(PmsProductFullReduction record); int insertSelective(PmsProductFullReduction record); List<PmsProductFullReduction> selectByExample(PmsProductFullReductionExample example); PmsProductFullReduction selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsProductFullReduction record, @Param("example") PmsProductFullReductionExample example); int updateByExample(@Param("record") PmsProductFullReduction record, @Param("example") PmsProductFullReductionExample example); int updateByPrimaryKeySelective(PmsProductFullReduction record); int updateByPrimaryKey(PmsProductFullReduction record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsIntegrationChangeHistory; import com.macro.mall.model.UmsIntegrationChangeHistoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsIntegrationChangeHistoryMapper { long countByExample(UmsIntegrationChangeHistoryExample example); int deleteByExample(UmsIntegrationChangeHistoryExample example); int deleteByPrimaryKey(Long id); int insert(UmsIntegrationChangeHistory record); int insertSelective(UmsIntegrationChangeHistory record); List<UmsIntegrationChangeHistory> selectByExample(UmsIntegrationChangeHistoryExample example); UmsIntegrationChangeHistory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsIntegrationChangeHistory record, @Param("example") UmsIntegrationChangeHistoryExample example); int updateByExample(@Param("record") UmsIntegrationChangeHistory record, @Param("example") UmsIntegrationChangeHistoryExample example); int updateByPrimaryKeySelective(UmsIntegrationChangeHistory record); int updateByPrimaryKey(UmsIntegrationChangeHistory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeValueMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeValueMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsProductAttributeValue; import com.macro.mall.model.PmsProductAttributeValueExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductAttributeValueMapper { long countByExample(PmsProductAttributeValueExample example); int deleteByExample(PmsProductAttributeValueExample example); int deleteByPrimaryKey(Long id); int insert(PmsProductAttributeValue record); int insertSelective(PmsProductAttributeValue record); List<PmsProductAttributeValue> selectByExample(PmsProductAttributeValueExample example); PmsProductAttributeValue selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsProductAttributeValue record, @Param("example") PmsProductAttributeValueExample example); int updateByExample(@Param("record") PmsProductAttributeValue record, @Param("example") PmsProductAttributeValueExample example); int updateByPrimaryKeySelective(PmsProductAttributeValue record); int updateByPrimaryKey(PmsProductAttributeValue record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMemberStatisticsInfo; import com.macro.mall.model.UmsMemberStatisticsInfoExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberStatisticsInfoMapper { long countByExample(UmsMemberStatisticsInfoExample example); int deleteByExample(UmsMemberStatisticsInfoExample example); int deleteByPrimaryKey(Long id); int insert(UmsMemberStatisticsInfo record); int insertSelective(UmsMemberStatisticsInfo record); List<UmsMemberStatisticsInfo> selectByExample(UmsMemberStatisticsInfoExample example); UmsMemberStatisticsInfo selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMemberStatisticsInfo record, @Param("example") UmsMemberStatisticsInfoExample example); int updateByExample(@Param("record") UmsMemberStatisticsInfo record, @Param("example") UmsMemberStatisticsInfoExample example); int updateByPrimaryKeySelective(UmsMemberStatisticsInfo record); int updateByPrimaryKey(UmsMemberStatisticsInfo record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductLadderMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductLadderMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsProductLadder; import com.macro.mall.model.PmsProductLadderExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductLadderMapper { long countByExample(PmsProductLadderExample example); int deleteByExample(PmsProductLadderExample example); int deleteByPrimaryKey(Long id); int insert(PmsProductLadder record); int insertSelective(PmsProductLadder record); List<PmsProductLadder> selectByExample(PmsProductLadderExample example); PmsProductLadder selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example); int updateByExample(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example); int updateByPrimaryKeySelective(PmsProductLadder record); int updateByPrimaryKey(PmsProductLadder record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationConsumeSettingMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationConsumeSettingMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsIntegrationConsumeSetting; import com.macro.mall.model.UmsIntegrationConsumeSettingExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsIntegrationConsumeSettingMapper { long countByExample(UmsIntegrationConsumeSettingExample example); int deleteByExample(UmsIntegrationConsumeSettingExample example); int deleteByPrimaryKey(Long id); int insert(UmsIntegrationConsumeSetting record); int insertSelective(UmsIntegrationConsumeSetting record); List<UmsIntegrationConsumeSetting> selectByExample(UmsIntegrationConsumeSettingExample example); UmsIntegrationConsumeSetting selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsIntegrationConsumeSetting record, @Param("example") UmsIntegrationConsumeSettingExample example); int updateByExample(@Param("record") UmsIntegrationConsumeSetting record, @Param("example") UmsIntegrationConsumeSettingExample example); int updateByPrimaryKeySelective(UmsIntegrationConsumeSetting record); int updateByPrimaryKey(UmsIntegrationConsumeSetting record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsAdmin; import com.macro.mall.model.UmsAdminExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsAdminMapper { long countByExample(UmsAdminExample example); int deleteByExample(UmsAdminExample example); int deleteByPrimaryKey(Long id); int insert(UmsAdmin record); int insertSelective(UmsAdmin record); List<UmsAdmin> selectByExample(UmsAdminExample example); UmsAdmin selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); int updateByExample(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example); int updateByPrimaryKeySelective(UmsAdmin record); int updateByPrimaryKey(UmsAdmin record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsMemberPriceMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsMemberPriceMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsMemberPrice; import com.macro.mall.model.PmsMemberPriceExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsMemberPriceMapper { long countByExample(PmsMemberPriceExample example); int deleteByExample(PmsMemberPriceExample example); int deleteByPrimaryKey(Long id); int insert(PmsMemberPrice record); int insertSelective(PmsMemberPrice record); List<PmsMemberPrice> selectByExample(PmsMemberPriceExample example); PmsMemberPrice selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsMemberPrice record, @Param("example") PmsMemberPriceExample example); int updateByExample(@Param("record") PmsMemberPrice record, @Param("example") PmsMemberPriceExample example); int updateByPrimaryKeySelective(PmsMemberPrice record); int updateByPrimaryKey(PmsMemberPrice record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceCategoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceCategoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsResourceCategory; import com.macro.mall.model.UmsResourceCategoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsResourceCategoryMapper { long countByExample(UmsResourceCategoryExample example); int deleteByExample(UmsResourceCategoryExample example); int deleteByPrimaryKey(Long id); int insert(UmsResourceCategory record); int insertSelective(UmsResourceCategory record); List<UmsResourceCategory> selectByExample(UmsResourceCategoryExample example); UmsResourceCategory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsResourceCategory record, @Param("example") UmsResourceCategoryExample example); int updateByExample(@Param("record") UmsResourceCategory record, @Param("example") UmsResourceCategoryExample example); int updateByPrimaryKeySelective(UmsResourceCategory record); int updateByPrimaryKey(UmsResourceCategory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsSubject; import com.macro.mall.model.CmsSubjectExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsSubjectMapper { long countByExample(CmsSubjectExample example); int deleteByExample(CmsSubjectExample example); int deleteByPrimaryKey(Long id); int insert(CmsSubject record); int insertSelective(CmsSubject record); List<CmsSubject> selectByExampleWithBLOBs(CmsSubjectExample example); List<CmsSubject> selectByExample(CmsSubjectExample example); CmsSubject selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsSubject record, @Param("example") CmsSubjectExample example); int updateByExampleWithBLOBs(@Param("record") CmsSubject record, @Param("example") CmsSubjectExample example); int updateByExample(@Param("record") CmsSubject record, @Param("example") CmsSubjectExample example); int updateByPrimaryKeySelective(CmsSubject record); int updateByPrimaryKeyWithBLOBs(CmsSubject record); int updateByPrimaryKey(CmsSubject record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeAdvertiseMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeAdvertiseMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsHomeAdvertise; import com.macro.mall.model.SmsHomeAdvertiseExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsHomeAdvertiseMapper { long countByExample(SmsHomeAdvertiseExample example); int deleteByExample(SmsHomeAdvertiseExample example); int deleteByPrimaryKey(Long id); int insert(SmsHomeAdvertise record); int insertSelective(SmsHomeAdvertise record); List<SmsHomeAdvertise> selectByExample(SmsHomeAdvertiseExample example); SmsHomeAdvertise selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsHomeAdvertise record, @Param("example") SmsHomeAdvertiseExample example); int updateByExample(@Param("record") SmsHomeAdvertise record, @Param("example") SmsHomeAdvertiseExample example); int updateByPrimaryKeySelective(SmsHomeAdvertise record); int updateByPrimaryKey(SmsHomeAdvertise record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMenuMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMenuMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMenu; import com.macro.mall.model.UmsMenuExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMenuMapper { long countByExample(UmsMenuExample example); int deleteByExample(UmsMenuExample example); int deleteByPrimaryKey(Long id); int insert(UmsMenu record); int insertSelective(UmsMenu record); List<UmsMenu> selectByExample(UmsMenuExample example); UmsMenu selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMenu record, @Param("example") UmsMenuExample example); int updateByExample(@Param("record") UmsMenu record, @Param("example") UmsMenuExample example); int updateByPrimaryKeySelective(UmsMenu record); int updateByPrimaryKey(UmsMenu record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCategoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCategoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsSubjectCategory; import com.macro.mall.model.CmsSubjectCategoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsSubjectCategoryMapper { long countByExample(CmsSubjectCategoryExample example); int deleteByExample(CmsSubjectCategoryExample example); int deleteByPrimaryKey(Long id); int insert(CmsSubjectCategory record); int insertSelective(CmsSubjectCategory record); List<CmsSubjectCategory> selectByExample(CmsSubjectCategoryExample example); CmsSubjectCategory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsSubjectCategory record, @Param("example") CmsSubjectCategoryExample example); int updateByExample(@Param("record") CmsSubjectCategory record, @Param("example") CmsSubjectCategoryExample example); int updateByPrimaryKeySelective(CmsSubjectCategory record); int updateByPrimaryKey(CmsSubjectCategory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsRolePermissionRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsRolePermissionRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsRolePermissionRelation; import com.macro.mall.model.UmsRolePermissionRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsRolePermissionRelationMapper { long countByExample(UmsRolePermissionRelationExample example); int deleteByExample(UmsRolePermissionRelationExample example); int deleteByPrimaryKey(Long id); int insert(UmsRolePermissionRelation record); int insertSelective(UmsRolePermissionRelation record); List<UmsRolePermissionRelation> selectByExample(UmsRolePermissionRelationExample example); UmsRolePermissionRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsRolePermissionRelation record, @Param("example") UmsRolePermissionRelationExample example); int updateByExample(@Param("record") UmsRolePermissionRelation record, @Param("example") UmsRolePermissionRelationExample example); int updateByPrimaryKeySelective(UmsRolePermissionRelation record); int updateByPrimaryKey(UmsRolePermissionRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCategoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCategoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsTopicCategory; import com.macro.mall.model.CmsTopicCategoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsTopicCategoryMapper { long countByExample(CmsTopicCategoryExample example); int deleteByExample(CmsTopicCategoryExample example); int deleteByPrimaryKey(Long id); int insert(CmsTopicCategory record); int insertSelective(CmsTopicCategory record); List<CmsTopicCategory> selectByExample(CmsTopicCategoryExample example); CmsTopicCategory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsTopicCategory record, @Param("example") CmsTopicCategoryExample example); int updateByExample(@Param("record") CmsTopicCategory record, @Param("example") CmsTopicCategoryExample example); int updateByPrimaryKeySelective(CmsTopicCategory record); int updateByPrimaryKey(CmsTopicCategory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductVertifyRecordMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductVertifyRecordMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsProductVertifyRecord; import com.macro.mall.model.PmsProductVertifyRecordExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductVertifyRecordMapper { long countByExample(PmsProductVertifyRecordExample example); int deleteByExample(PmsProductVertifyRecordExample example); int deleteByPrimaryKey(Long id); int insert(PmsProductVertifyRecord record); int insertSelective(PmsProductVertifyRecord record); List<PmsProductVertifyRecord> selectByExample(PmsProductVertifyRecordExample example); PmsProductVertifyRecord selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsProductVertifyRecord record, @Param("example") PmsProductVertifyRecordExample example); int updateByExample(@Param("record") PmsProductVertifyRecord record, @Param("example") PmsProductVertifyRecordExample example); int updateByPrimaryKeySelective(PmsProductVertifyRecord record); int updateByPrimaryKey(PmsProductVertifyRecord record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsFlashPromotionSession; import com.macro.mall.model.SmsFlashPromotionSessionExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsFlashPromotionSessionMapper { long countByExample(SmsFlashPromotionSessionExample example); int deleteByExample(SmsFlashPromotionSessionExample example); int deleteByPrimaryKey(Long id); int insert(SmsFlashPromotionSession record); int insertSelective(SmsFlashPromotionSession record); List<SmsFlashPromotionSession> selectByExample(SmsFlashPromotionSessionExample example); SmsFlashPromotionSession selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsFlashPromotionSession record, @Param("example") SmsFlashPromotionSessionExample example); int updateByExample(@Param("record") SmsFlashPromotionSession record, @Param("example") SmsFlashPromotionSessionExample example); int updateByPrimaryKeySelective(SmsFlashPromotionSession record); int updateByPrimaryKey(SmsFlashPromotionSession record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentReplayMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentReplayMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsCommentReplay; import com.macro.mall.model.PmsCommentReplayExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsCommentReplayMapper { long countByExample(PmsCommentReplayExample example); int deleteByExample(PmsCommentReplayExample example); int deleteByPrimaryKey(Long id); int insert(PmsCommentReplay record); int insertSelective(PmsCommentReplay record); List<PmsCommentReplay> selectByExample(PmsCommentReplayExample example); PmsCommentReplay selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsCommentReplay record, @Param("example") PmsCommentReplayExample example); int updateByExample(@Param("record") PmsCommentReplay record, @Param("example") PmsCommentReplayExample example); int updateByPrimaryKeySelective(PmsCommentReplay record); int updateByPrimaryKey(PmsCommentReplay record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpCategoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpCategoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsHelpCategory; import com.macro.mall.model.CmsHelpCategoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsHelpCategoryMapper { long countByExample(CmsHelpCategoryExample example); int deleteByExample(CmsHelpCategoryExample example); int deleteByPrimaryKey(Long id); int insert(CmsHelpCategory record); int insertSelective(CmsHelpCategory record); List<CmsHelpCategory> selectByExample(CmsHelpCategoryExample example); CmsHelpCategory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsHelpCategory record, @Param("example") CmsHelpCategoryExample example); int updateByExample(@Param("record") CmsHelpCategory record, @Param("example") CmsHelpCategoryExample example); int updateByPrimaryKeySelective(CmsHelpCategory record); int updateByPrimaryKey(CmsHelpCategory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.OmsOrderItem; import com.macro.mall.model.OmsOrderItemExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OmsOrderItemMapper { long countByExample(OmsOrderItemExample example); int deleteByExample(OmsOrderItemExample example); int deleteByPrimaryKey(Long id); int insert(OmsOrderItem record); int insertSelective(OmsOrderItem record); List<OmsOrderItem> selectByExample(OmsOrderItemExample example); OmsOrderItem selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") OmsOrderItem record, @Param("example") OmsOrderItemExample example); int updateByExample(@Param("record") OmsOrderItem record, @Param("example") OmsOrderItemExample example); int updateByPrimaryKeySelective(OmsOrderItem record); int updateByPrimaryKey(OmsOrderItem record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsHelp; import com.macro.mall.model.CmsHelpExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsHelpMapper { long countByExample(CmsHelpExample example); int deleteByExample(CmsHelpExample example); int deleteByPrimaryKey(Long id); int insert(CmsHelp record); int insertSelective(CmsHelp record); List<CmsHelp> selectByExampleWithBLOBs(CmsHelpExample example); List<CmsHelp> selectByExample(CmsHelpExample example); CmsHelp selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsHelp record, @Param("example") CmsHelpExample example); int updateByExampleWithBLOBs(@Param("record") CmsHelp record, @Param("example") CmsHelpExample example); int updateByExample(@Param("record") CmsHelp record, @Param("example") CmsHelpExample example); int updateByPrimaryKeySelective(CmsHelp record); int updateByPrimaryKeyWithBLOBs(CmsHelp record); int updateByPrimaryKey(CmsHelp record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsCoupon; import com.macro.mall.model.SmsCouponExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsCouponMapper { long countByExample(SmsCouponExample example); int deleteByExample(SmsCouponExample example); int deleteByPrimaryKey(Long id); int insert(SmsCoupon record); int insertSelective(SmsCoupon record); List<SmsCoupon> selectByExample(SmsCouponExample example); SmsCoupon selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example); int updateByExample(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example); int updateByPrimaryKeySelective(SmsCoupon record); int updateByPrimaryKey(SmsCoupon record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsResource; import com.macro.mall.model.UmsResourceExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsResourceMapper { long countByExample(UmsResourceExample example); int deleteByExample(UmsResourceExample example); int deleteByPrimaryKey(Long id); int insert(UmsResource record); int insertSelective(UmsResource record); List<UmsResource> selectByExample(UmsResourceExample example); UmsResource selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsResource record, @Param("example") UmsResourceExample example); int updateByExample(@Param("record") UmsResource record, @Param("example") UmsResourceExample example); int updateByPrimaryKeySelective(UmsResource record); int updateByPrimaryKey(UmsResource record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsProductAttribute; import com.macro.mall.model.PmsProductAttributeExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductAttributeMapper { long countByExample(PmsProductAttributeExample example); int deleteByExample(PmsProductAttributeExample example); int deleteByPrimaryKey(Long id); int insert(PmsProductAttribute record); int insertSelective(PmsProductAttribute record); List<PmsProductAttribute> selectByExample(PmsProductAttributeExample example); PmsProductAttribute selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsProductAttribute record, @Param("example") PmsProductAttributeExample example); int updateByExample(@Param("record") PmsProductAttribute record, @Param("example") PmsProductAttributeExample example); int updateByPrimaryKeySelective(PmsProductAttribute record); int updateByPrimaryKey(PmsProductAttribute record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsMemberReportMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsMemberReportMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsMemberReport; import com.macro.mall.model.CmsMemberReportExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsMemberReportMapper { long countByExample(CmsMemberReportExample example); int deleteByExample(CmsMemberReportExample example); int insert(CmsMemberReport record); int insertSelective(CmsMemberReport record); List<CmsMemberReport> selectByExample(CmsMemberReportExample example); int updateByExampleSelective(@Param("record") CmsMemberReport record, @Param("example") CmsMemberReportExample example); int updateByExample(@Param("record") CmsMemberReport record, @Param("example") CmsMemberReportExample example); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionLogMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionLogMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsFlashPromotionLog; import com.macro.mall.model.SmsFlashPromotionLogExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsFlashPromotionLogMapper { long countByExample(SmsFlashPromotionLogExample example); int deleteByExample(SmsFlashPromotionLogExample example); int deleteByPrimaryKey(Integer id); int insert(SmsFlashPromotionLog record); int insertSelective(SmsFlashPromotionLog record); List<SmsFlashPromotionLog> selectByExample(SmsFlashPromotionLogExample example); SmsFlashPromotionLog selectByPrimaryKey(Integer id); int updateByExampleSelective(@Param("record") SmsFlashPromotionLog record, @Param("example") SmsFlashPromotionLogExample example); int updateByExample(@Param("record") SmsFlashPromotionLog record, @Param("example") SmsFlashPromotionLogExample example); int updateByPrimaryKeySelective(SmsFlashPromotionLog record); int updateByPrimaryKey(SmsFlashPromotionLog record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCommentMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCommentMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsTopicComment; import com.macro.mall.model.CmsTopicCommentExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsTopicCommentMapper { long countByExample(CmsTopicCommentExample example); int deleteByExample(CmsTopicCommentExample example); int deleteByPrimaryKey(Long id); int insert(CmsTopicComment record); int insertSelective(CmsTopicComment record); List<CmsTopicComment> selectByExample(CmsTopicCommentExample example); CmsTopicComment selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsTopicComment record, @Param("example") CmsTopicCommentExample example); int updateByExample(@Param("record") CmsTopicComment record, @Param("example") CmsTopicCommentExample example); int updateByPrimaryKeySelective(CmsTopicComment record); int updateByPrimaryKey(CmsTopicComment record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsCouponProductCategoryRelation; import com.macro.mall.model.SmsCouponProductCategoryRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsCouponProductCategoryRelationMapper { long countByExample(SmsCouponProductCategoryRelationExample example); int deleteByExample(SmsCouponProductCategoryRelationExample example); int deleteByPrimaryKey(Long id); int insert(SmsCouponProductCategoryRelation record); int insertSelective(SmsCouponProductCategoryRelation record); List<SmsCouponProductCategoryRelation> selectByExample(SmsCouponProductCategoryRelationExample example); SmsCouponProductCategoryRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsCouponProductCategoryRelation record, @Param("example") SmsCouponProductCategoryRelationExample example); int updateByExample(@Param("record") SmsCouponProductCategoryRelation record, @Param("example") SmsCouponProductCategoryRelationExample example); int updateByPrimaryKeySelective(SmsCouponProductCategoryRelation record); int updateByPrimaryKey(SmsCouponProductCategoryRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsRole; import com.macro.mall.model.UmsRoleExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsRoleMapper { long countByExample(UmsRoleExample example); int deleteByExample(UmsRoleExample example); int deleteByPrimaryKey(Long id); int insert(UmsRole record); int insertSelective(UmsRole record); List<UmsRole> selectByExample(UmsRoleExample example); UmsRole selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsRole record, @Param("example") UmsRoleExample example); int updateByExample(@Param("record") UmsRole record, @Param("example") UmsRoleExample example); int updateByPrimaryKeySelective(UmsRole record); int updateByPrimaryKey(UmsRole record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponHistoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponHistoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsCouponHistory; import com.macro.mall.model.SmsCouponHistoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsCouponHistoryMapper { long countByExample(SmsCouponHistoryExample example); int deleteByExample(SmsCouponHistoryExample example); int deleteByPrimaryKey(Long id); int insert(SmsCouponHistory record); int insertSelective(SmsCouponHistory record); List<SmsCouponHistory> selectByExample(SmsCouponHistoryExample example); SmsCouponHistory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example); int updateByExample(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example); int updateByPrimaryKeySelective(SmsCouponHistory record); int updateByPrimaryKey(SmsCouponHistory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMemberProductCategoryRelation; import com.macro.mall.model.UmsMemberProductCategoryRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberProductCategoryRelationMapper { long countByExample(UmsMemberProductCategoryRelationExample example); int deleteByExample(UmsMemberProductCategoryRelationExample example); int deleteByPrimaryKey(Long id); int insert(UmsMemberProductCategoryRelation record); int insertSelective(UmsMemberProductCategoryRelation record); List<UmsMemberProductCategoryRelation> selectByExample(UmsMemberProductCategoryRelationExample example); UmsMemberProductCategoryRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMemberProductCategoryRelation record, @Param("example") UmsMemberProductCategoryRelationExample example); int updateByExample(@Param("record") UmsMemberProductCategoryRelation record, @Param("example") UmsMemberProductCategoryRelationExample example); int updateByPrimaryKeySelective(UmsMemberProductCategoryRelation record); int updateByPrimaryKey(UmsMemberProductCategoryRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeBrandMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeBrandMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsHomeBrand; import com.macro.mall.model.SmsHomeBrandExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsHomeBrandMapper { long countByExample(SmsHomeBrandExample example); int deleteByExample(SmsHomeBrandExample example); int deleteByPrimaryKey(Long id); int insert(SmsHomeBrand record); int insertSelective(SmsHomeBrand record); List<SmsHomeBrand> selectByExample(SmsHomeBrandExample example); SmsHomeBrand selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsHomeBrand record, @Param("example") SmsHomeBrandExample example); int updateByExample(@Param("record") SmsHomeBrand record, @Param("example") SmsHomeBrandExample example); int updateByPrimaryKeySelective(SmsHomeBrand record); int updateByPrimaryKey(SmsHomeBrand record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMemberMemberTagRelation; import com.macro.mall.model.UmsMemberMemberTagRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberMemberTagRelationMapper { long countByExample(UmsMemberMemberTagRelationExample example); int deleteByExample(UmsMemberMemberTagRelationExample example); int deleteByPrimaryKey(Long id); int insert(UmsMemberMemberTagRelation record); int insertSelective(UmsMemberMemberTagRelation record); List<UmsMemberMemberTagRelation> selectByExample(UmsMemberMemberTagRelationExample example); UmsMemberMemberTagRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMemberMemberTagRelation record, @Param("example") UmsMemberMemberTagRelationExample example); int updateByExample(@Param("record") UmsMemberMemberTagRelation record, @Param("example") UmsMemberMemberTagRelationExample example); int updateByPrimaryKeySelective(UmsMemberMemberTagRelation record); int updateByPrimaryKey(UmsMemberMemberTagRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsHomeRecommendSubject; import com.macro.mall.model.SmsHomeRecommendSubjectExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsHomeRecommendSubjectMapper { long countByExample(SmsHomeRecommendSubjectExample example); int deleteByExample(SmsHomeRecommendSubjectExample example); int deleteByPrimaryKey(Long id); int insert(SmsHomeRecommendSubject record); int insertSelective(SmsHomeRecommendSubject record); List<SmsHomeRecommendSubject> selectByExample(SmsHomeRecommendSubjectExample example); SmsHomeRecommendSubject selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsHomeRecommendSubject record, @Param("example") SmsHomeRecommendSubjectExample example); int updateByExample(@Param("record") SmsHomeRecommendSubject record, @Param("example") SmsHomeRecommendSubjectExample example); int updateByPrimaryKeySelective(SmsHomeRecommendSubject record); int updateByPrimaryKey(SmsHomeRecommendSubject record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCommentMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCommentMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsSubjectComment; import com.macro.mall.model.CmsSubjectCommentExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsSubjectCommentMapper { long countByExample(CmsSubjectCommentExample example); int deleteByExample(CmsSubjectCommentExample example); int deleteByPrimaryKey(Long id); int insert(CmsSubjectComment record); int insertSelective(CmsSubjectComment record); List<CmsSubjectComment> selectByExample(CmsSubjectCommentExample example); CmsSubjectComment selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsSubjectComment record, @Param("example") CmsSubjectCommentExample example); int updateByExample(@Param("record") CmsSubjectComment record, @Param("example") CmsSubjectCommentExample example); int updateByPrimaryKeySelective(CmsSubjectComment record); int updateByPrimaryKey(CmsSubjectComment record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectProductRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectProductRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsSubjectProductRelation; import com.macro.mall.model.CmsSubjectProductRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsSubjectProductRelationMapper { long countByExample(CmsSubjectProductRelationExample example); int deleteByExample(CmsSubjectProductRelationExample example); int deleteByPrimaryKey(Long id); int insert(CmsSubjectProductRelation record); int insertSelective(CmsSubjectProductRelation record); List<CmsSubjectProductRelation> selectByExample(CmsSubjectProductRelationExample example); CmsSubjectProductRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsSubjectProductRelation record, @Param("example") CmsSubjectProductRelationExample example); int updateByExample(@Param("record") CmsSubjectProductRelation record, @Param("example") CmsSubjectProductRelationExample example); int updateByPrimaryKeySelective(CmsSubjectProductRelation record); int updateByPrimaryKey(CmsSubjectProductRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminPermissionRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminPermissionRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsAdminPermissionRelation; import com.macro.mall.model.UmsAdminPermissionRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsAdminPermissionRelationMapper { long countByExample(UmsAdminPermissionRelationExample example); int deleteByExample(UmsAdminPermissionRelationExample example); int deleteByPrimaryKey(Long id); int insert(UmsAdminPermissionRelation record); int insertSelective(UmsAdminPermissionRelation record); List<UmsAdminPermissionRelation> selectByExample(UmsAdminPermissionRelationExample example); UmsAdminPermissionRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsAdminPermissionRelation record, @Param("example") UmsAdminPermissionRelationExample example); int updateByExample(@Param("record") UmsAdminPermissionRelation record, @Param("example") UmsAdminPermissionRelationExample example); int updateByPrimaryKeySelective(UmsAdminPermissionRelation record); int updateByPrimaryKey(UmsAdminPermissionRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminLoginLogMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminLoginLogMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsAdminLoginLog; import com.macro.mall.model.UmsAdminLoginLogExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsAdminLoginLogMapper { long countByExample(UmsAdminLoginLogExample example); int deleteByExample(UmsAdminLoginLogExample example); int deleteByPrimaryKey(Long id); int insert(UmsAdminLoginLog record); int insertSelective(UmsAdminLoginLog record); List<UmsAdminLoginLog> selectByExample(UmsAdminLoginLogExample example); UmsAdminLoginLog selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsAdminLoginLog record, @Param("example") UmsAdminLoginLogExample example); int updateByExample(@Param("record") UmsAdminLoginLog record, @Param("example") UmsAdminLoginLogExample example); int updateByPrimaryKeySelective(UmsAdminLoginLog record); int updateByPrimaryKey(UmsAdminLoginLog record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsPermissionMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsPermissionMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsPermission; import com.macro.mall.model.UmsPermissionExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsPermissionMapper { long countByExample(UmsPermissionExample example); int deleteByExample(UmsPermissionExample example); int deleteByPrimaryKey(Long id); int insert(UmsPermission record); int insertSelective(UmsPermission record); List<UmsPermission> selectByExample(UmsPermissionExample example); UmsPermission selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example); int updateByExample(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example); int updateByPrimaryKeySelective(UmsPermission record); int updateByPrimaryKey(UmsPermission record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsProduct; import com.macro.mall.model.PmsProductExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductMapper { long countByExample(PmsProductExample example); int deleteByExample(PmsProductExample example); int deleteByPrimaryKey(Long id); int insert(PmsProduct record); int insertSelective(PmsProduct record); List<PmsProduct> selectByExampleWithBLOBs(PmsProductExample example); List<PmsProduct> selectByExample(PmsProductExample example); PmsProduct selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsProduct record, @Param("example") PmsProductExample example); int updateByExampleWithBLOBs(@Param("record") PmsProduct record, @Param("example") PmsProductExample example); int updateByExample(@Param("record") PmsProduct record, @Param("example") PmsProductExample example); int updateByPrimaryKeySelective(PmsProduct record); int updateByPrimaryKeyWithBLOBs(PmsProduct record); int updateByPrimaryKey(PmsProduct record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberTagMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberTagMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMemberTag; import com.macro.mall.model.UmsMemberTagExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberTagMapper { long countByExample(UmsMemberTagExample example); int deleteByExample(UmsMemberTagExample example); int deleteByPrimaryKey(Long id); int insert(UmsMemberTag record); int insertSelective(UmsMemberTag record); List<UmsMemberTag> selectByExample(UmsMemberTagExample example); UmsMemberTag selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMemberTag record, @Param("example") UmsMemberTagExample example); int updateByExample(@Param("record") UmsMemberTag record, @Param("example") UmsMemberTagExample example); int updateByPrimaryKeySelective(UmsMemberTag record); int updateByPrimaryKey(UmsMemberTag record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLoginLogMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLoginLogMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMemberLoginLog; import com.macro.mall.model.UmsMemberLoginLogExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberLoginLogMapper { long countByExample(UmsMemberLoginLogExample example); int deleteByExample(UmsMemberLoginLogExample example); int deleteByPrimaryKey(Long id); int insert(UmsMemberLoginLog record); int insertSelective(UmsMemberLoginLog record); List<UmsMemberLoginLog> selectByExample(UmsMemberLoginLogExample example); UmsMemberLoginLog selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMemberLoginLog record, @Param("example") UmsMemberLoginLogExample example); int updateByExample(@Param("record") UmsMemberLoginLog record, @Param("example") UmsMemberLoginLogExample example); int updateByPrimaryKeySelective(UmsMemberLoginLog record); int updateByPrimaryKey(UmsMemberLoginLog record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnApplyMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnApplyMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.OmsOrderReturnApply; import com.macro.mall.model.OmsOrderReturnApplyExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OmsOrderReturnApplyMapper { long countByExample(OmsOrderReturnApplyExample example); int deleteByExample(OmsOrderReturnApplyExample example); int deleteByPrimaryKey(Long id); int insert(OmsOrderReturnApply record); int insertSelective(OmsOrderReturnApply record); List<OmsOrderReturnApply> selectByExample(OmsOrderReturnApplyExample example); OmsOrderReturnApply selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") OmsOrderReturnApply record, @Param("example") OmsOrderReturnApplyExample example); int updateByExample(@Param("record") OmsOrderReturnApply record, @Param("example") OmsOrderReturnApplyExample example); int updateByPrimaryKeySelective(OmsOrderReturnApply record); int updateByPrimaryKey(OmsOrderReturnApply record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLevelMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLevelMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMemberLevel; import com.macro.mall.model.UmsMemberLevelExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberLevelMapper { long countByExample(UmsMemberLevelExample example); int deleteByExample(UmsMemberLevelExample example); int deleteByPrimaryKey(Long id); int insert(UmsMemberLevel record); int insertSelective(UmsMemberLevel record); List<UmsMemberLevel> selectByExample(UmsMemberLevelExample example); UmsMemberLevel selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMemberLevel record, @Param("example") UmsMemberLevelExample example); int updateByExample(@Param("record") UmsMemberLevel record, @Param("example") UmsMemberLevelExample example); int updateByPrimaryKeySelective(UmsMemberLevel record); int updateByPrimaryKey(UmsMemberLevel record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsComment; import com.macro.mall.model.PmsCommentExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsCommentMapper { long countByExample(PmsCommentExample example); int deleteByExample(PmsCommentExample example); int deleteByPrimaryKey(Long id); int insert(PmsComment record); int insertSelective(PmsComment record); List<PmsComment> selectByExampleWithBLOBs(PmsCommentExample example); List<PmsComment> selectByExample(PmsCommentExample example); PmsComment selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); int updateByExampleWithBLOBs(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); int updateByExample(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); int updateByPrimaryKeySelective(PmsComment record); int updateByPrimaryKeyWithBLOBs(PmsComment record); int updateByPrimaryKey(PmsComment record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsPrefrenceAreaProductRelation; import com.macro.mall.model.CmsPrefrenceAreaProductRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsPrefrenceAreaProductRelationMapper { long countByExample(CmsPrefrenceAreaProductRelationExample example); int deleteByExample(CmsPrefrenceAreaProductRelationExample example); int deleteByPrimaryKey(Long id); int insert(CmsPrefrenceAreaProductRelation record); int insertSelective(CmsPrefrenceAreaProductRelation record); List<CmsPrefrenceAreaProductRelation> selectByExample(CmsPrefrenceAreaProductRelationExample example); CmsPrefrenceAreaProductRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsPrefrenceAreaProductRelation record, @Param("example") CmsPrefrenceAreaProductRelationExample example); int updateByExample(@Param("record") CmsPrefrenceAreaProductRelation record, @Param("example") CmsPrefrenceAreaProductRelationExample example); int updateByPrimaryKeySelective(CmsPrefrenceAreaProductRelation record); int updateByPrimaryKey(CmsPrefrenceAreaProductRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsSkuStockMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsSkuStockMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsSkuStock; import com.macro.mall.model.PmsSkuStockExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsSkuStockMapper { long countByExample(PmsSkuStockExample example); int deleteByExample(PmsSkuStockExample example); int deleteByPrimaryKey(Long id); int insert(PmsSkuStock record); int insertSelective(PmsSkuStock record); List<PmsSkuStock> selectByExample(PmsSkuStockExample example); PmsSkuStock selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example); int updateByExample(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example); int updateByPrimaryKeySelective(PmsSkuStock record); int updateByPrimaryKey(PmsSkuStock record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMemberReceiveAddress; import com.macro.mall.model.UmsMemberReceiveAddressExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberReceiveAddressMapper { long countByExample(UmsMemberReceiveAddressExample example); int deleteByExample(UmsMemberReceiveAddressExample example); int deleteByPrimaryKey(Long id); int insert(UmsMemberReceiveAddress record); int insertSelective(UmsMemberReceiveAddress record); List<UmsMemberReceiveAddress> selectByExample(UmsMemberReceiveAddressExample example); UmsMemberReceiveAddress selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMemberReceiveAddress record, @Param("example") UmsMemberReceiveAddressExample example); int updateByExample(@Param("record") UmsMemberReceiveAddress record, @Param("example") UmsMemberReceiveAddressExample example); int updateByPrimaryKeySelective(UmsMemberReceiveAddress record); int updateByPrimaryKey(UmsMemberReceiveAddress record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderSettingMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderSettingMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.OmsOrderSetting; import com.macro.mall.model.OmsOrderSettingExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OmsOrderSettingMapper { long countByExample(OmsOrderSettingExample example); int deleteByExample(OmsOrderSettingExample example); int deleteByPrimaryKey(Long id); int insert(OmsOrderSetting record); int insertSelective(OmsOrderSetting record); List<OmsOrderSetting> selectByExample(OmsOrderSettingExample example); OmsOrderSetting selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") OmsOrderSetting record, @Param("example") OmsOrderSettingExample example); int updateByExample(@Param("record") OmsOrderSetting record, @Param("example") OmsOrderSettingExample example); int updateByPrimaryKeySelective(OmsOrderSetting record); int updateByPrimaryKey(OmsOrderSetting record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsAlbum; import com.macro.mall.model.PmsAlbumExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsAlbumMapper { long countByExample(PmsAlbumExample example); int deleteByExample(PmsAlbumExample example); int deleteByPrimaryKey(Long id); int insert(PmsAlbum record); int insertSelective(PmsAlbum record); List<PmsAlbum> selectByExample(PmsAlbumExample example); PmsAlbum selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsAlbum record, @Param("example") PmsAlbumExample example); int updateByExample(@Param("record") PmsAlbum record, @Param("example") PmsAlbumExample example); int updateByPrimaryKeySelective(PmsAlbum record); int updateByPrimaryKey(PmsAlbum record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.OmsOrderOperateHistory; import com.macro.mall.model.OmsOrderOperateHistoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OmsOrderOperateHistoryMapper { long countByExample(OmsOrderOperateHistoryExample example); int deleteByExample(OmsOrderOperateHistoryExample example); int deleteByPrimaryKey(Long id); int insert(OmsOrderOperateHistory record); int insertSelective(OmsOrderOperateHistory record); List<OmsOrderOperateHistory> selectByExample(OmsOrderOperateHistoryExample example); OmsOrderOperateHistory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") OmsOrderOperateHistory record, @Param("example") OmsOrderOperateHistoryExample example); int updateByExample(@Param("record") OmsOrderOperateHistory record, @Param("example") OmsOrderOperateHistoryExample example); int updateByPrimaryKeySelective(OmsOrderOperateHistory record); int updateByPrimaryKey(OmsOrderOperateHistory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsProductAttributeCategory; import com.macro.mall.model.PmsProductAttributeCategoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductAttributeCategoryMapper { long countByExample(PmsProductAttributeCategoryExample example); int deleteByExample(PmsProductAttributeCategoryExample example); int deleteByPrimaryKey(Long id); int insert(PmsProductAttributeCategory record); int insertSelective(PmsProductAttributeCategory record); List<PmsProductAttributeCategory> selectByExample(PmsProductAttributeCategoryExample example); PmsProductAttributeCategory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsProductAttributeCategory record, @Param("example") PmsProductAttributeCategoryExample example); int updateByExample(@Param("record") PmsProductAttributeCategory record, @Param("example") PmsProductAttributeCategoryExample example); int updateByPrimaryKeySelective(PmsProductAttributeCategory record); int updateByPrimaryKey(PmsProductAttributeCategory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendProductMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendProductMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsHomeRecommendProduct; import com.macro.mall.model.SmsHomeRecommendProductExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsHomeRecommendProductMapper { long countByExample(SmsHomeRecommendProductExample example); int deleteByExample(SmsHomeRecommendProductExample example); int deleteByPrimaryKey(Long id); int insert(SmsHomeRecommendProduct record); int insertSelective(SmsHomeRecommendProduct record); List<SmsHomeRecommendProduct> selectByExample(SmsHomeRecommendProductExample example); SmsHomeRecommendProduct selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example); int updateByExample(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example); int updateByPrimaryKeySelective(SmsHomeRecommendProduct record); int updateByPrimaryKey(SmsHomeRecommendProduct record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsBrandMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsBrandMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsBrand; import com.macro.mall.model.PmsBrandExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsBrandMapper { long countByExample(PmsBrandExample example); int deleteByExample(PmsBrandExample example); int deleteByPrimaryKey(Long id); int insert(PmsBrand record); int insertSelective(PmsBrand record); List<PmsBrand> selectByExampleWithBLOBs(PmsBrandExample example); List<PmsBrand> selectByExample(PmsBrandExample example); PmsBrand selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); int updateByExampleWithBLOBs(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); int updateByExample(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); int updateByPrimaryKeySelective(PmsBrand record); int updateByPrimaryKeyWithBLOBs(PmsBrand record); int updateByPrimaryKey(PmsBrand record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsPrefrenceArea; import com.macro.mall.model.CmsPrefrenceAreaExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsPrefrenceAreaMapper { long countByExample(CmsPrefrenceAreaExample example); int deleteByExample(CmsPrefrenceAreaExample example); int deleteByPrimaryKey(Long id); int insert(CmsPrefrenceArea record); int insertSelective(CmsPrefrenceArea record); List<CmsPrefrenceArea> selectByExampleWithBLOBs(CmsPrefrenceAreaExample example); List<CmsPrefrenceArea> selectByExample(CmsPrefrenceAreaExample example); CmsPrefrenceArea selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsPrefrenceArea record, @Param("example") CmsPrefrenceAreaExample example); int updateByExampleWithBLOBs(@Param("record") CmsPrefrenceArea record, @Param("example") CmsPrefrenceAreaExample example); int updateByExample(@Param("record") CmsPrefrenceArea record, @Param("example") CmsPrefrenceAreaExample example); int updateByPrimaryKeySelective(CmsPrefrenceArea record); int updateByPrimaryKeyWithBLOBs(CmsPrefrenceArea record); int updateByPrimaryKey(CmsPrefrenceArea record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.CmsTopic; import com.macro.mall.model.CmsTopicExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface CmsTopicMapper { long countByExample(CmsTopicExample example); int deleteByExample(CmsTopicExample example); int deleteByPrimaryKey(Long id); int insert(CmsTopic record); int insertSelective(CmsTopic record); List<CmsTopic> selectByExampleWithBLOBs(CmsTopicExample example); List<CmsTopic> selectByExample(CmsTopicExample example); CmsTopic selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); int updateByExampleWithBLOBs(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); int updateByExample(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); int updateByPrimaryKeySelective(CmsTopic record); int updateByPrimaryKeyWithBLOBs(CmsTopic record); int updateByPrimaryKey(CmsTopic record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnReasonMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnReasonMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.OmsOrderReturnReason; import com.macro.mall.model.OmsOrderReturnReasonExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OmsOrderReturnReasonMapper { long countByExample(OmsOrderReturnReasonExample example); int deleteByExample(OmsOrderReturnReasonExample example); int deleteByPrimaryKey(Long id); int insert(OmsOrderReturnReason record); int insertSelective(OmsOrderReturnReason record); List<OmsOrderReturnReason> selectByExample(OmsOrderReturnReasonExample example); OmsOrderReturnReason selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") OmsOrderReturnReason record, @Param("example") OmsOrderReturnReasonExample example); int updateByExample(@Param("record") OmsOrderReturnReason record, @Param("example") OmsOrderReturnReasonExample example); int updateByPrimaryKeySelective(OmsOrderReturnReason record); int updateByPrimaryKey(OmsOrderReturnReason record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsFeightTemplateMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsFeightTemplateMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsFeightTemplate; import com.macro.mall.model.PmsFeightTemplateExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsFeightTemplateMapper { long countByExample(PmsFeightTemplateExample example); int deleteByExample(PmsFeightTemplateExample example); int deleteByPrimaryKey(Long id); int insert(PmsFeightTemplate record); int insertSelective(PmsFeightTemplate record); List<PmsFeightTemplate> selectByExample(PmsFeightTemplateExample example); PmsFeightTemplate selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsFeightTemplate record, @Param("example") PmsFeightTemplateExample example); int updateByExample(@Param("record") PmsFeightTemplate record, @Param("example") PmsFeightTemplateExample example); int updateByPrimaryKeySelective(PmsFeightTemplate record); int updateByPrimaryKey(PmsFeightTemplate record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsFlashPromotion; import com.macro.mall.model.SmsFlashPromotionExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsFlashPromotionMapper { long countByExample(SmsFlashPromotionExample example); int deleteByExample(SmsFlashPromotionExample example); int deleteByPrimaryKey(Long id); int insert(SmsFlashPromotion record); int insertSelective(SmsFlashPromotion record); List<SmsFlashPromotion> selectByExample(SmsFlashPromotionExample example); SmsFlashPromotion selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsFlashPromotion record, @Param("example") SmsFlashPromotionExample example); int updateByExample(@Param("record") SmsFlashPromotion record, @Param("example") SmsFlashPromotionExample example); int updateByPrimaryKeySelective(SmsFlashPromotion record); int updateByPrimaryKey(SmsFlashPromotion record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsProductCategory; import com.macro.mall.model.PmsProductCategoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductCategoryMapper { long countByExample(PmsProductCategoryExample example); int deleteByExample(PmsProductCategoryExample example); int deleteByPrimaryKey(Long id); int insert(PmsProductCategory record); int insertSelective(PmsProductCategory record); List<PmsProductCategory> selectByExampleWithBLOBs(PmsProductCategoryExample example); List<PmsProductCategory> selectByExample(PmsProductCategoryExample example); PmsProductCategory selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example); int updateByExampleWithBLOBs(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example); int updateByExample(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example); int updateByPrimaryKeySelective(PmsProductCategory record); int updateByPrimaryKeyWithBLOBs(PmsProductCategory record); int updateByPrimaryKey(PmsProductCategory record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsFlashPromotionProductRelation; import com.macro.mall.model.SmsFlashPromotionProductRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsFlashPromotionProductRelationMapper { long countByExample(SmsFlashPromotionProductRelationExample example); int deleteByExample(SmsFlashPromotionProductRelationExample example); int deleteByPrimaryKey(Long id); int insert(SmsFlashPromotionProductRelation record); int insertSelective(SmsFlashPromotionProductRelation record); List<SmsFlashPromotionProductRelation> selectByExample(SmsFlashPromotionProductRelationExample example); SmsFlashPromotionProductRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsFlashPromotionProductRelation record, @Param("example") SmsFlashPromotionProductRelationExample example); int updateByExample(@Param("record") SmsFlashPromotionProductRelation record, @Param("example") SmsFlashPromotionProductRelationExample example); int updateByPrimaryKeySelective(SmsFlashPromotionProductRelation record); int updateByPrimaryKey(SmsFlashPromotionProductRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsProductCategoryAttributeRelation; import com.macro.mall.model.PmsProductCategoryAttributeRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductCategoryAttributeRelationMapper { long countByExample(PmsProductCategoryAttributeRelationExample example); int deleteByExample(PmsProductCategoryAttributeRelationExample example); int deleteByPrimaryKey(Long id); int insert(PmsProductCategoryAttributeRelation record); int insertSelective(PmsProductCategoryAttributeRelation record); List<PmsProductCategoryAttributeRelation> selectByExample(PmsProductCategoryAttributeRelationExample example); PmsProductCategoryAttributeRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsProductCategoryAttributeRelation record, @Param("example") PmsProductCategoryAttributeRelationExample example); int updateByExample(@Param("record") PmsProductCategoryAttributeRelation record, @Param("example") PmsProductCategoryAttributeRelationExample example); int updateByPrimaryKeySelective(PmsProductCategoryAttributeRelation record); int updateByPrimaryKey(PmsProductCategoryAttributeRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.OmsOrder; import com.macro.mall.model.OmsOrderExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OmsOrderMapper { long countByExample(OmsOrderExample example); int deleteByExample(OmsOrderExample example); int deleteByPrimaryKey(Long id); int insert(OmsOrder record); int insertSelective(OmsOrder record); List<OmsOrder> selectByExample(OmsOrderExample example); OmsOrder selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); int updateByExample(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); int updateByPrimaryKeySelective(OmsOrder record); int updateByPrimaryKey(OmsOrder record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.SmsCouponProductRelation; import com.macro.mall.model.SmsCouponProductRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsCouponProductRelationMapper { long countByExample(SmsCouponProductRelationExample example); int deleteByExample(SmsCouponProductRelationExample example); int deleteByPrimaryKey(Long id); int insert(SmsCouponProductRelation record); int insertSelective(SmsCouponProductRelation record); List<SmsCouponProductRelation> selectByExample(SmsCouponProductRelationExample example); SmsCouponProductRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") SmsCouponProductRelation record, @Param("example") SmsCouponProductRelationExample example); int updateByExample(@Param("record") SmsCouponProductRelation record, @Param("example") SmsCouponProductRelationExample example); int updateByPrimaryKeySelective(SmsCouponProductRelation record); int updateByPrimaryKey(SmsCouponProductRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumPicMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumPicMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.PmsAlbumPic; import com.macro.mall.model.PmsAlbumPicExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsAlbumPicMapper { long countByExample(PmsAlbumPicExample example); int deleteByExample(PmsAlbumPicExample example); int deleteByPrimaryKey(Long id); int insert(PmsAlbumPic record); int insertSelective(PmsAlbumPic record); List<PmsAlbumPic> selectByExample(PmsAlbumPicExample example); PmsAlbumPic selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") PmsAlbumPic record, @Param("example") PmsAlbumPicExample example); int updateByExample(@Param("record") PmsAlbumPic record, @Param("example") PmsAlbumPicExample example); int updateByPrimaryKeySelective(PmsAlbumPic record); int updateByPrimaryKey(PmsAlbumPic record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminRoleRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminRoleRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsAdminRoleRelation; import com.macro.mall.model.UmsAdminRoleRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsAdminRoleRelationMapper { long countByExample(UmsAdminRoleRelationExample example); int deleteByExample(UmsAdminRoleRelationExample example); int deleteByPrimaryKey(Long id); int insert(UmsAdminRoleRelation record); int insertSelective(UmsAdminRoleRelation record); List<UmsAdminRoleRelation> selectByExample(UmsAdminRoleRelationExample example); UmsAdminRoleRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsAdminRoleRelation record, @Param("example") UmsAdminRoleRelationExample example); int updateByExample(@Param("record") UmsAdminRoleRelation record, @Param("example") UmsAdminRoleRelationExample example); int updateByPrimaryKeySelective(UmsAdminRoleRelation record); int updateByPrimaryKey(UmsAdminRoleRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleResourceRelationMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleResourceRelationMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsRoleResourceRelation; import com.macro.mall.model.UmsRoleResourceRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsRoleResourceRelationMapper { long countByExample(UmsRoleResourceRelationExample example); int deleteByExample(UmsRoleResourceRelationExample example); int deleteByPrimaryKey(Long id); int insert(UmsRoleResourceRelation record); int insertSelective(UmsRoleResourceRelation record); List<UmsRoleResourceRelation> selectByExample(UmsRoleResourceRelationExample example); UmsRoleResourceRelation selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsRoleResourceRelation record, @Param("example") UmsRoleResourceRelationExample example); int updateByExample(@Param("record") UmsRoleResourceRelation record, @Param("example") UmsRoleResourceRelationExample example); int updateByPrimaryKeySelective(UmsRoleResourceRelation record); int updateByPrimaryKey(UmsRoleResourceRelation record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMember; import com.macro.mall.model.UmsMemberExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberMapper { long countByExample(UmsMemberExample example); int deleteByExample(UmsMemberExample example); int deleteByPrimaryKey(Long id); int insert(UmsMember record); int insertSelective(UmsMember record); List<UmsMember> selectByExample(UmsMemberExample example); UmsMember selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMember record, @Param("example") UmsMemberExample example); int updateByExample(@Param("record") UmsMember record, @Param("example") UmsMemberExample example); int updateByPrimaryKeySelective(UmsMember record); int updateByPrimaryKey(UmsMember record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberRuleSettingMapper.java
mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberRuleSettingMapper.java
package com.macro.mall.mapper; import com.macro.mall.model.UmsMemberRuleSetting; import com.macro.mall.model.UmsMemberRuleSettingExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberRuleSettingMapper { long countByExample(UmsMemberRuleSettingExample example); int deleteByExample(UmsMemberRuleSettingExample example); int deleteByPrimaryKey(Long id); int insert(UmsMemberRuleSetting record); int insertSelective(UmsMemberRuleSetting record); List<UmsMemberRuleSetting> selectByExample(UmsMemberRuleSettingExample example); UmsMemberRuleSetting selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") UmsMemberRuleSetting record, @Param("example") UmsMemberRuleSettingExample example); int updateByExample(@Param("record") UmsMemberRuleSetting record, @Param("example") UmsMemberRuleSettingExample example); int updateByPrimaryKeySelective(UmsMemberRuleSetting record); int updateByPrimaryKey(UmsMemberRuleSetting record); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/util/JwtTokenUtil.java
mall-security/src/main/java/com/macro/mall/security/util/JwtTokenUtil.java
package com.macro.mall.security.util; import cn.hutool.core.date.DateUtil; import cn.hutool.core.util.StrUtil; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.security.core.userdetails.UserDetails; import java.util.Date; import java.util.HashMap; import java.util.Map; /** * JwtToken生成的工具类 * JWT token的格式:header.payload.signature * header的格式(算法、token的类型): * {"alg": "HS512","typ": "JWT"} * payload的格式(用户名、创建时间、生成时间): * {"sub":"wang","created":1489079981393,"exp":1489684781} * signature的生成算法: * HMACSHA512(base64UrlEncode(header) + "." +base64UrlEncode(payload),secret) * Created by macro on 2018/4/26. */ public class JwtTokenUtil { private static final Logger LOGGER = LoggerFactory.getLogger(JwtTokenUtil.class); private static final String CLAIM_KEY_USERNAME = "sub"; private static final String CLAIM_KEY_CREATED = "created"; @Value("${jwt.secret}") private String secret; @Value("${jwt.expiration}") private Long expiration; @Value("${jwt.tokenHead}") private String tokenHead; /** * 根据负责生成JWT的token */ private String generateToken(Map<String, Object> claims) { return Jwts.builder() .setClaims(claims) .setExpiration(generateExpirationDate()) .signWith(SignatureAlgorithm.HS512, secret) .compact(); } /** * 从token中获取JWT中的负载 */ private Claims getClaimsFromToken(String token) { Claims claims = null; try { claims = Jwts.parser() .setSigningKey(secret) .parseClaimsJws(token) .getBody(); } catch (Exception e) { LOGGER.info("JWT格式验证失败:{}", token); } return claims; } /** * 生成token的过期时间 */ private Date generateExpirationDate() { return new Date(System.currentTimeMillis() + expiration * 1000); } /** * 从token中获取登录用户名 */ public String getUserNameFromToken(String token) { String username; try { Claims claims = getClaimsFromToken(token); username = claims.getSubject(); } catch (Exception e) { username = null; } return username; } /** * 验证token是否还有效 * * @param token 客户端传入的token * @param userDetails 从数据库中查询出来的用户信息 */ public boolean validateToken(String token, UserDetails userDetails) { String username = getUserNameFromToken(token); return username.equals(userDetails.getUsername()) && !isTokenExpired(token); } /** * 判断token是否已经失效 */ private boolean isTokenExpired(String token) { Date expiredDate = getExpiredDateFromToken(token); return expiredDate.before(new Date()); } /** * 从token中获取过期时间 */ private Date getExpiredDateFromToken(String token) { Claims claims = getClaimsFromToken(token); return claims.getExpiration(); } /** * 根据用户信息生成token */ public String generateToken(UserDetails userDetails) { Map<String, Object> claims = new HashMap<>(); claims.put(CLAIM_KEY_USERNAME, userDetails.getUsername()); claims.put(CLAIM_KEY_CREATED, new Date()); return generateToken(claims); } /** * 当原来的token没过期时是可以刷新的 * * @param oldToken 带tokenHead的token */ public String refreshHeadToken(String oldToken) { if(StrUtil.isEmpty(oldToken)){ return null; } String token = oldToken.substring(tokenHead.length()); if(StrUtil.isEmpty(token)){ return null; } //token校验不通过 Claims claims = getClaimsFromToken(token); if(claims==null){ return null; } //如果token已经过期,不支持刷新 if(isTokenExpired(token)){ return null; } //如果token在30分钟之内刚刷新过,返回原token if(tokenRefreshJustBefore(token,30*60)){ return token; }else{ claims.put(CLAIM_KEY_CREATED, new Date()); return generateToken(claims); } } /** * 判断token在指定时间内是否刚刚刷新过 * @param token 原token * @param time 指定时间(秒) */ private boolean tokenRefreshJustBefore(String token, int time) { Claims claims = getClaimsFromToken(token); Date created = claims.get(CLAIM_KEY_CREATED, Date.class); Date refreshDate = new Date(); //刷新时间在创建时间的指定时间内 if(refreshDate.after(created)&&refreshDate.before(DateUtil.offsetSecond(created,time))){ return true; } return false; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/util/SpringUtil.java
mall-security/src/main/java/com/macro/mall/security/util/SpringUtil.java
package com.macro.mall.security.util; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; /** * Spring工具类 * Created by macro on 2020/3/3. */ @Component public class SpringUtil implements ApplicationContextAware { private static ApplicationContext applicationContext; // 获取applicationContext public static ApplicationContext getApplicationContext() { return applicationContext; } @Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { if (SpringUtil.applicationContext == null) { SpringUtil.applicationContext = applicationContext; } } // 通过name获取Bean public static Object getBean(String name) { return getApplicationContext().getBean(name); } // 通过class获取Bean public static <T> T getBean(Class<T> clazz) { return getApplicationContext().getBean(clazz); } // 通过name,以及Clazz返回指定的Bean public static <T> T getBean(String name, Class<T> clazz) { return getApplicationContext().getBean(name, clazz); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/aspect/RedisCacheAspect.java
mall-security/src/main/java/com/macro/mall/security/aspect/RedisCacheAspect.java
package com.macro.mall.security.aspect; import com.macro.mall.security.annotation.CacheException; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.Signature; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.aspectj.lang.reflect.MethodSignature; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.annotation.Order; import org.springframework.stereotype.Component; import java.lang.reflect.Method; /** * Redis缓存切面,防止Redis宕机影响正常业务逻辑 * Created by macro on 2020/3/17. */ @Aspect @Component @Order(2) public class RedisCacheAspect { private static final Logger LOGGER = LoggerFactory.getLogger(RedisCacheAspect.class); @Pointcut("execution(public * com.macro.mall.portal.service.*CacheService.*(..)) || execution(public * com.macro.mall.service.*CacheService.*(..))") public void cacheAspect() { } @Around("cacheAspect()") public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable { Signature signature = joinPoint.getSignature(); MethodSignature methodSignature = (MethodSignature) signature; Method method = methodSignature.getMethod(); Object result = null; try { result = joinPoint.proceed(); } catch (Throwable throwable) { //有CacheException注解的方法需要抛出异常 if (method.isAnnotationPresent(CacheException.class)) { throw throwable; } else { LOGGER.error(throwable.getMessage()); } } return result; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/annotation/CacheException.java
mall-security/src/main/java/com/macro/mall/security/annotation/CacheException.java
package com.macro.mall.security.annotation; import java.lang.annotation.*; /** * 自定义缓存异常注解,有该注解的缓存方法会抛出异常 * Created by macro on 2020/3/17. */ @Documented @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface CacheException { }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/config/CommonSecurityConfig.java
mall-security/src/main/java/com/macro/mall/security/config/CommonSecurityConfig.java
package com.macro.mall.security.config; import com.macro.mall.security.component.*; import com.macro.mall.security.util.JwtTokenUtil; import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder; /** * SpringSecurity通用配置 * 包括通用Bean、Security通用Bean及动态权限通用Bean * Created by macro on 2022/5/20. */ @Configuration public class CommonSecurityConfig { @Bean public PasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } @Bean public IgnoreUrlsConfig ignoreUrlsConfig() { return new IgnoreUrlsConfig(); } @Bean public JwtTokenUtil jwtTokenUtil() { return new JwtTokenUtil(); } @Bean public RestfulAccessDeniedHandler restfulAccessDeniedHandler() { return new RestfulAccessDeniedHandler(); } @Bean public RestAuthenticationEntryPoint restAuthenticationEntryPoint() { return new RestAuthenticationEntryPoint(); } @Bean public JwtAuthenticationTokenFilter jwtAuthenticationTokenFilter(){ return new JwtAuthenticationTokenFilter(); } @ConditionalOnBean(name = "dynamicSecurityService") @Bean public DynamicAccessDecisionManager dynamicAccessDecisionManager() { return new DynamicAccessDecisionManager(); } @ConditionalOnBean(name = "dynamicSecurityService") @Bean public DynamicSecurityMetadataSource dynamicSecurityMetadataSource() { return new DynamicSecurityMetadataSource(); } @ConditionalOnBean(name = "dynamicSecurityService") @Bean public DynamicSecurityFilter dynamicSecurityFilter(){ return new DynamicSecurityFilter(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/config/SecurityConfig.java
mall-security/src/main/java/com/macro/mall/security/config/SecurityConfig.java
package com.macro.mall.security.config; import com.macro.mall.security.component.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer; import org.springframework.security.config.http.SessionCreationPolicy; import org.springframework.security.web.SecurityFilterChain; import org.springframework.security.web.access.intercept.FilterSecurityInterceptor; import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; /** * SpringSecurity相关配置,仅用于配置SecurityFilterChain * Created by macro on 2019/11/5. */ @Configuration @EnableWebSecurity public class SecurityConfig { @Autowired private IgnoreUrlsConfig ignoreUrlsConfig; @Autowired private RestfulAccessDeniedHandler restfulAccessDeniedHandler; @Autowired private RestAuthenticationEntryPoint restAuthenticationEntryPoint; @Autowired private JwtAuthenticationTokenFilter jwtAuthenticationTokenFilter; @Autowired(required = false) private DynamicSecurityService dynamicSecurityService; @Autowired(required = false) private DynamicSecurityFilter dynamicSecurityFilter; @Bean SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Exception { ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry registry = httpSecurity .authorizeRequests(); //不需要保护的资源路径允许访问 for (String url : ignoreUrlsConfig.getUrls()) { registry.antMatchers(url).permitAll(); } //允许跨域请求的OPTIONS请求 registry.antMatchers(HttpMethod.OPTIONS) .permitAll(); //任何请求都需要身份认证 registry.and() .authorizeRequests() .anyRequest() .authenticated() //关闭跨站请求防护及不使用session .and() .csrf() .disable() .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) //自定义权限拒绝处理类 .and() .exceptionHandling() .accessDeniedHandler(restfulAccessDeniedHandler) .authenticationEntryPoint(restAuthenticationEntryPoint) //自定义权限拦截器JWT过滤器 .and() .addFilterBefore(jwtAuthenticationTokenFilter, UsernamePasswordAuthenticationFilter.class); //有动态权限配置时添加动态权限校验过滤器 if(dynamicSecurityService!=null){ registry.and().addFilterBefore(dynamicSecurityFilter, FilterSecurityInterceptor.class); } return httpSecurity.build(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/config/RedisConfig.java
mall-security/src/main/java/com/macro/mall/security/config/RedisConfig.java
package com.macro.mall.security.config; import com.macro.mall.common.config.BaseRedisConfig; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Configuration; /** * Redis相关配置 * Created by macro on 2020/3/2. */ @EnableCaching @Configuration public class RedisConfig extends BaseRedisConfig { }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/config/IgnoreUrlsConfig.java
mall-security/src/main/java/com/macro/mall/security/config/IgnoreUrlsConfig.java
package com.macro.mall.security.config; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import java.util.ArrayList; import java.util.List; /** * SpringSecurity白名单资源路径配置 * Created by macro on 2018/11/5. */ @Getter @Setter @ConfigurationProperties(prefix = "secure.ignored") public class IgnoreUrlsConfig { private List<String> urls = new ArrayList<>(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/component/RestfulAccessDeniedHandler.java
mall-security/src/main/java/com/macro/mall/security/component/RestfulAccessDeniedHandler.java
package com.macro.mall.security.component; import cn.hutool.json.JSONUtil; import com.macro.mall.common.api.CommonResult; import org.springframework.security.access.AccessDeniedException; import org.springframework.security.web.access.AccessDeniedHandler; import org.springframework.stereotype.Component; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * 自定义无权限访问的返回结果 * Created by macro on 2018/4/26. */ public class RestfulAccessDeniedHandler implements AccessDeniedHandler{ @Override public void handle(HttpServletRequest request, HttpServletResponse response, AccessDeniedException e) throws IOException, ServletException { response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Cache-Control","no-cache"); response.setCharacterEncoding("UTF-8"); response.setContentType("application/json"); response.getWriter().println(JSONUtil.parse(CommonResult.forbidden(e.getMessage()))); response.getWriter().flush(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/component/JwtAuthenticationTokenFilter.java
mall-security/src/main/java/com/macro/mall/security/component/JwtAuthenticationTokenFilter.java
package com.macro.mall.security.component; import com.macro.mall.security.util.JwtTokenUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.web.authentication.WebAuthenticationDetailsSource; import org.springframework.web.filter.OncePerRequestFilter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * JWT登录授权过滤器 * Created by macro on 2018/4/26. */ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter { private static final Logger LOGGER = LoggerFactory.getLogger(JwtAuthenticationTokenFilter.class); @Autowired private UserDetailsService userDetailsService; @Autowired private JwtTokenUtil jwtTokenUtil; @Value("${jwt.tokenHeader}") private String tokenHeader; @Value("${jwt.tokenHead}") private String tokenHead; @Override protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException { String authHeader = request.getHeader(this.tokenHeader); if (authHeader != null && authHeader.startsWith(this.tokenHead)) { String authToken = authHeader.substring(this.tokenHead.length());// The part after "Bearer " String username = jwtTokenUtil.getUserNameFromToken(authToken); LOGGER.info("checking username:{}", username); if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) { UserDetails userDetails = this.userDetailsService.loadUserByUsername(username); if (jwtTokenUtil.validateToken(authToken, userDetails)) { UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities()); authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(request)); LOGGER.info("authenticated user:{}", username); SecurityContextHolder.getContext().setAuthentication(authentication); } } } chain.doFilter(request, response); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/component/DynamicSecurityFilter.java
mall-security/src/main/java/com/macro/mall/security/component/DynamicSecurityFilter.java
package com.macro.mall.security.component; import com.macro.mall.security.config.IgnoreUrlsConfig; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpMethod; import org.springframework.security.access.SecurityMetadataSource; import org.springframework.security.access.intercept.AbstractSecurityInterceptor; import org.springframework.security.access.intercept.InterceptorStatusToken; import org.springframework.security.web.FilterInvocation; import org.springframework.util.AntPathMatcher; import org.springframework.util.PathMatcher; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import java.io.IOException; /** * 动态权限过滤器,用于实现基于路径的动态权限过滤 * Created by macro on 2020/2/7. */ public class DynamicSecurityFilter extends AbstractSecurityInterceptor implements Filter { @Autowired private DynamicSecurityMetadataSource dynamicSecurityMetadataSource; @Autowired private IgnoreUrlsConfig ignoreUrlsConfig; @Autowired public void setMyAccessDecisionManager(DynamicAccessDecisionManager dynamicAccessDecisionManager) { super.setAccessDecisionManager(dynamicAccessDecisionManager); } @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) servletRequest; FilterInvocation fi = new FilterInvocation(servletRequest, servletResponse, filterChain); //OPTIONS请求直接放行 if(request.getMethod().equals(HttpMethod.OPTIONS.toString())){ fi.getChain().doFilter(fi.getRequest(), fi.getResponse()); return; } //白名单请求直接放行 PathMatcher pathMatcher = new AntPathMatcher(); for (String path : ignoreUrlsConfig.getUrls()) { if(pathMatcher.match(path,request.getRequestURI())){ fi.getChain().doFilter(fi.getRequest(), fi.getResponse()); return; } } //此处会调用AccessDecisionManager中的decide方法进行鉴权操作 InterceptorStatusToken token = super.beforeInvocation(fi); try { fi.getChain().doFilter(fi.getRequest(), fi.getResponse()); } finally { super.afterInvocation(token, null); } } @Override public void destroy() { } @Override public Class<?> getSecureObjectClass() { return FilterInvocation.class; } @Override public SecurityMetadataSource obtainSecurityMetadataSource() { return dynamicSecurityMetadataSource; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/component/DynamicSecurityMetadataSource.java
mall-security/src/main/java/com/macro/mall/security/component/DynamicSecurityMetadataSource.java
package com.macro.mall.security.component; import cn.hutool.core.util.URLUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.ConfigAttribute; import org.springframework.security.web.FilterInvocation; import org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource; import org.springframework.util.AntPathMatcher; import org.springframework.util.PathMatcher; import javax.annotation.PostConstruct; import java.util.*; /** * 动态权限数据源,用于获取动态权限规则 * Created by macro on 2020/2/7. */ public class DynamicSecurityMetadataSource implements FilterInvocationSecurityMetadataSource { private static Map<String, ConfigAttribute> configAttributeMap = null; @Autowired private DynamicSecurityService dynamicSecurityService; @PostConstruct public void loadDataSource() { configAttributeMap = dynamicSecurityService.loadDataSource(); } public void clearDataSource() { configAttributeMap.clear(); configAttributeMap = null; } @Override public Collection<ConfigAttribute> getAttributes(Object o) throws IllegalArgumentException { if (configAttributeMap == null) this.loadDataSource(); List<ConfigAttribute> configAttributes = new ArrayList<>(); //获取当前访问的路径 String url = ((FilterInvocation) o).getRequestUrl(); String path = URLUtil.getPath(url); PathMatcher pathMatcher = new AntPathMatcher(); Iterator<String> iterator = configAttributeMap.keySet().iterator(); //获取访问该路径所需资源 while (iterator.hasNext()) { String pattern = iterator.next(); if (pathMatcher.match(pattern, path)) { configAttributes.add(configAttributeMap.get(pattern)); } } // 未设置操作请求权限,返回空集合 return configAttributes; } @Override public Collection<ConfigAttribute> getAllConfigAttributes() { return null; } @Override public boolean supports(Class<?> aClass) { return true; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/component/RestAuthenticationEntryPoint.java
mall-security/src/main/java/com/macro/mall/security/component/RestAuthenticationEntryPoint.java
package com.macro.mall.security.component; import cn.hutool.json.JSONUtil; import com.macro.mall.common.api.CommonResult; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.AuthenticationEntryPoint; import org.springframework.stereotype.Component; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * 自定义未登录或者token失效时的返回结果 * Created by macro on 2018/5/14. */ public class RestAuthenticationEntryPoint implements AuthenticationEntryPoint { @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException { response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Cache-Control","no-cache"); response.setCharacterEncoding("UTF-8"); response.setContentType("application/json"); response.getWriter().println(JSONUtil.parse(CommonResult.unauthorized(authException.getMessage()))); response.getWriter().flush(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/component/DynamicSecurityService.java
mall-security/src/main/java/com/macro/mall/security/component/DynamicSecurityService.java
package com.macro.mall.security.component; import org.springframework.security.access.ConfigAttribute; import java.util.Map; /** * 动态权限相关业务接口 * Created by macro on 2020/2/7. */ public interface DynamicSecurityService { /** * 加载资源ANT通配符和资源对应MAP */ Map<String, ConfigAttribute> loadDataSource(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-security/src/main/java/com/macro/mall/security/component/DynamicAccessDecisionManager.java
mall-security/src/main/java/com/macro/mall/security/component/DynamicAccessDecisionManager.java
package com.macro.mall.security.component; import cn.hutool.core.collection.CollUtil; import org.springframework.security.access.AccessDecisionManager; import org.springframework.security.access.AccessDeniedException; import org.springframework.security.access.ConfigAttribute; import org.springframework.security.authentication.InsufficientAuthenticationException; import org.springframework.security.core.Authentication; import org.springframework.security.core.GrantedAuthority; import java.util.Collection; import java.util.Iterator; /** * 动态权限决策管理器,用于判断用户是否有访问权限 * Created by macro on 2020/2/7. */ public class DynamicAccessDecisionManager implements AccessDecisionManager { @Override public void decide(Authentication authentication, Object object, Collection<ConfigAttribute> configAttributes) throws AccessDeniedException, InsufficientAuthenticationException { // 当接口未被配置资源时直接放行 if (CollUtil.isEmpty(configAttributes)) { return; } Iterator<ConfigAttribute> iterator = configAttributes.iterator(); while (iterator.hasNext()) { ConfigAttribute configAttribute = iterator.next(); //将访问所需资源或用户拥有资源进行比对 String needAuthority = configAttribute.getAttribute(); for (GrantedAuthority grantedAuthority : authentication.getAuthorities()) { if (needAuthority.trim().equals(grantedAuthority.getAuthority())) { return; } } } throw new AccessDeniedException("抱歉,您没有访问权限"); } @Override public boolean supports(ConfigAttribute configAttribute) { return true; } @Override public boolean supports(Class<?> aClass) { return true; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/util/RequestUtil.java
mall-common/src/main/java/com/macro/mall/common/util/RequestUtil.java
package com.macro.mall.common.util; import javax.servlet.http.HttpServletRequest; import java.net.InetAddress; import java.net.UnknownHostException; /** * 请求工具类 * Created by macro on 2020/10/8. */ public class RequestUtil { /** * 获取请求真实IP地址 */ public static String getRequestIp(HttpServletRequest request) { //通过HTTP代理服务器转发时添加 String ipAddress = request.getHeader("x-forwarded-for"); if (ipAddress == null || ipAddress.length() == 0 || "unknown".equalsIgnoreCase(ipAddress)) { ipAddress = request.getHeader("Proxy-Client-IP"); } if (ipAddress == null || ipAddress.length() == 0 || "unknown".equalsIgnoreCase(ipAddress)) { ipAddress = request.getHeader("WL-Proxy-Client-IP"); } if (ipAddress == null || ipAddress.length() == 0 || "unknown".equalsIgnoreCase(ipAddress)) { ipAddress = request.getRemoteAddr(); // 从本地访问时根据网卡取本机配置的IP if (ipAddress.equals("127.0.0.1") || ipAddress.equals("0:0:0:0:0:0:0:1")) { InetAddress inetAddress = null; try { inetAddress = InetAddress.getLocalHost(); } catch (UnknownHostException e) { e.printStackTrace(); } ipAddress = inetAddress.getHostAddress(); } } // 通过多个代理转发的情况,第一个IP为客户端真实IP,多个IP会按照','分割 if (ipAddress != null && ipAddress.length() > 15) { if (ipAddress.indexOf(",") > 0) { ipAddress = ipAddress.substring(0, ipAddress.indexOf(",")); } } return ipAddress; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/service/RedisService.java
mall-common/src/main/java/com/macro/mall/common/service/RedisService.java
package com.macro.mall.common.service; import java.util.List; import java.util.Map; import java.util.Set; /** * Redis操作Service * Created by macro on 2020/3/3. */ public interface RedisService { /** * 保存属性 */ void set(String key, Object value, long time); /** * 保存属性 */ void set(String key, Object value); /** * 获取属性 */ Object get(String key); /** * 删除属性 */ Boolean del(String key); /** * 批量删除属性 */ Long del(List<String> keys); /** * 设置过期时间 */ Boolean expire(String key, long time); /** * 获取过期时间 */ Long getExpire(String key); /** * 判断是否有该属性 */ Boolean hasKey(String key); /** * 按delta递增 */ Long incr(String key, long delta); /** * 按delta递减 */ Long decr(String key, long delta); /** * 获取Hash结构中的属性 */ Object hGet(String key, String hashKey); /** * 向Hash结构中放入一个属性 */ Boolean hSet(String key, String hashKey, Object value, long time); /** * 向Hash结构中放入一个属性 */ void hSet(String key, String hashKey, Object value); /** * 直接获取整个Hash结构 */ Map<Object, Object> hGetAll(String key); /** * 直接设置整个Hash结构 */ Boolean hSetAll(String key, Map<String, Object> map, long time); /** * 直接设置整个Hash结构 */ void hSetAll(String key, Map<String, ?> map); /** * 删除Hash结构中的属性 */ void hDel(String key, Object... hashKey); /** * 判断Hash结构中是否有该属性 */ Boolean hHasKey(String key, String hashKey); /** * Hash结构中属性递增 */ Long hIncr(String key, String hashKey, Long delta); /** * Hash结构中属性递减 */ Long hDecr(String key, String hashKey, Long delta); /** * 获取Set结构 */ Set<Object> sMembers(String key); /** * 向Set结构中添加属性 */ Long sAdd(String key, Object... values); /** * 向Set结构中添加属性 */ Long sAdd(String key, long time, Object... values); /** * 是否为Set中的属性 */ Boolean sIsMember(String key, Object value); /** * 获取Set结构的长度 */ Long sSize(String key); /** * 删除Set结构中的属性 */ Long sRemove(String key, Object... values); /** * 获取List结构中的属性 */ List<Object> lRange(String key, long start, long end); /** * 获取List结构的长度 */ Long lSize(String key); /** * 根据索引获取List中的属性 */ Object lIndex(String key, long index); /** * 向List结构中添加属性 */ Long lPush(String key, Object value); /** * 向List结构中添加属性 */ Long lPush(String key, Object value, long time); /** * 向List结构中批量添加属性 */ Long lPushAll(String key, Object... values); /** * 向List结构中批量添加属性 */ Long lPushAll(String key, Long time, Object... values); /** * 从List结构中移除属性 */ Long lRemove(String key, long count, Object value); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/service/impl/RedisServiceImpl.java
mall-common/src/main/java/com/macro/mall/common/service/impl/RedisServiceImpl.java
package com.macro.mall.common.service.impl; import com.macro.mall.common.service.RedisService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.TimeUnit; /** * Redis操作Service实现类 * Created by macro on 2020/3/3. */ public class RedisServiceImpl implements RedisService { @Autowired private RedisTemplate<String, Object> redisTemplate; @Override public void set(String key, Object value, long time) { redisTemplate.opsForValue().set(key, value, time, TimeUnit.SECONDS); } @Override public void set(String key, Object value) { redisTemplate.opsForValue().set(key, value); } @Override public Object get(String key) { return redisTemplate.opsForValue().get(key); } @Override public Boolean del(String key) { return redisTemplate.delete(key); } @Override public Long del(List<String> keys) { return redisTemplate.delete(keys); } @Override public Boolean expire(String key, long time) { return redisTemplate.expire(key, time, TimeUnit.SECONDS); } @Override public Long getExpire(String key) { return redisTemplate.getExpire(key, TimeUnit.SECONDS); } @Override public Boolean hasKey(String key) { return redisTemplate.hasKey(key); } @Override public Long incr(String key, long delta) { return redisTemplate.opsForValue().increment(key, delta); } @Override public Long decr(String key, long delta) { return redisTemplate.opsForValue().increment(key, -delta); } @Override public Object hGet(String key, String hashKey) { return redisTemplate.opsForHash().get(key, hashKey); } @Override public Boolean hSet(String key, String hashKey, Object value, long time) { redisTemplate.opsForHash().put(key, hashKey, value); return expire(key, time); } @Override public void hSet(String key, String hashKey, Object value) { redisTemplate.opsForHash().put(key, hashKey, value); } @Override public Map<Object, Object> hGetAll(String key) { return redisTemplate.opsForHash().entries(key); } @Override public Boolean hSetAll(String key, Map<String, Object> map, long time) { redisTemplate.opsForHash().putAll(key, map); return expire(key, time); } @Override public void hSetAll(String key, Map<String, ?> map) { redisTemplate.opsForHash().putAll(key, map); } @Override public void hDel(String key, Object... hashKey) { redisTemplate.opsForHash().delete(key, hashKey); } @Override public Boolean hHasKey(String key, String hashKey) { return redisTemplate.opsForHash().hasKey(key, hashKey); } @Override public Long hIncr(String key, String hashKey, Long delta) { return redisTemplate.opsForHash().increment(key, hashKey, delta); } @Override public Long hDecr(String key, String hashKey, Long delta) { return redisTemplate.opsForHash().increment(key, hashKey, -delta); } @Override public Set<Object> sMembers(String key) { return redisTemplate.opsForSet().members(key); } @Override public Long sAdd(String key, Object... values) { return redisTemplate.opsForSet().add(key, values); } @Override public Long sAdd(String key, long time, Object... values) { Long count = redisTemplate.opsForSet().add(key, values); expire(key, time); return count; } @Override public Boolean sIsMember(String key, Object value) { return redisTemplate.opsForSet().isMember(key, value); } @Override public Long sSize(String key) { return redisTemplate.opsForSet().size(key); } @Override public Long sRemove(String key, Object... values) { return redisTemplate.opsForSet().remove(key, values); } @Override public List<Object> lRange(String key, long start, long end) { return redisTemplate.opsForList().range(key, start, end); } @Override public Long lSize(String key) { return redisTemplate.opsForList().size(key); } @Override public Object lIndex(String key, long index) { return redisTemplate.opsForList().index(key, index); } @Override public Long lPush(String key, Object value) { return redisTemplate.opsForList().rightPush(key, value); } @Override public Long lPush(String key, Object value, long time) { Long index = redisTemplate.opsForList().rightPush(key, value); expire(key, time); return index; } @Override public Long lPushAll(String key, Object... values) { return redisTemplate.opsForList().rightPushAll(key, values); } @Override public Long lPushAll(String key, Long time, Object... values) { Long count = redisTemplate.opsForList().rightPushAll(key, values); expire(key, time); return count; } @Override public Long lRemove(String key, long count, Object value) { return redisTemplate.opsForList().remove(key, count, value); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/exception/ApiException.java
mall-common/src/main/java/com/macro/mall/common/exception/ApiException.java
package com.macro.mall.common.exception; import com.macro.mall.common.api.IErrorCode; /** * 自定义API异常 * Created by macro on 2020/2/27. */ public class ApiException extends RuntimeException { private IErrorCode errorCode; public ApiException(IErrorCode errorCode) { super(errorCode.getMessage()); this.errorCode = errorCode; } public ApiException(String message) { super(message); } public ApiException(Throwable cause) { super(cause); } public ApiException(String message, Throwable cause) { super(message, cause); } public IErrorCode getErrorCode() { return errorCode; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/exception/GlobalExceptionHandler.java
mall-common/src/main/java/com/macro/mall/common/exception/GlobalExceptionHandler.java
package com.macro.mall.common.exception; import cn.hutool.core.util.StrUtil; import com.macro.mall.common.api.CommonResult; import org.springframework.validation.BindException; import org.springframework.validation.BindingResult; import org.springframework.validation.FieldError; import org.springframework.web.bind.MethodArgumentNotValidException; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ResponseBody; import java.sql.SQLSyntaxErrorException; /** * 全局异常处理类 * Created by macro on 2020/2/27. */ @ControllerAdvice public class GlobalExceptionHandler { @ResponseBody @ExceptionHandler(value = ApiException.class) public CommonResult handle(ApiException e) { if (e.getErrorCode() != null) { return CommonResult.failed(e.getErrorCode()); } return CommonResult.failed(e.getMessage()); } @ResponseBody @ExceptionHandler(value = MethodArgumentNotValidException.class) public CommonResult handleValidException(MethodArgumentNotValidException e) { BindingResult bindingResult = e.getBindingResult(); String message = null; if (bindingResult.hasErrors()) { FieldError fieldError = bindingResult.getFieldError(); if (fieldError != null) { message = fieldError.getField()+fieldError.getDefaultMessage(); } } return CommonResult.validateFailed(message); } @ResponseBody @ExceptionHandler(value = BindException.class) public CommonResult handleValidException(BindException e) { BindingResult bindingResult = e.getBindingResult(); String message = null; if (bindingResult.hasErrors()) { FieldError fieldError = bindingResult.getFieldError(); if (fieldError != null) { message = fieldError.getField()+fieldError.getDefaultMessage(); } } return CommonResult.validateFailed(message); } @ResponseBody @ExceptionHandler(value = SQLSyntaxErrorException.class) public CommonResult handleSQLSyntaxErrorException(SQLSyntaxErrorException e) { String message = e.getMessage(); if (StrUtil.isNotEmpty(message) && message.contains("denied")) { message = "演示环境暂无修改权限,如需修改数据可本地搭建后台服务!"; } return CommonResult.failed(message); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/exception/Asserts.java
mall-common/src/main/java/com/macro/mall/common/exception/Asserts.java
package com.macro.mall.common.exception; import com.macro.mall.common.api.IErrorCode; /** * 断言处理类,用于抛出各种API异常 * Created by macro on 2020/2/27. */ public class Asserts { public static void fail(String message) { throw new ApiException(message); } public static void fail(IErrorCode errorCode) { throw new ApiException(errorCode); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/domain/SwaggerProperties.java
mall-common/src/main/java/com/macro/mall/common/domain/SwaggerProperties.java
package com.macro.mall.common.domain; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; /** * Swagger自定义配置 * Created by macro on 2020/7/16. */ @Data @EqualsAndHashCode @Builder public class SwaggerProperties { /** * API文档生成基础路径 */ private String apiBasePackage; /** * 是否要启用登录认证 */ private boolean enableSecurity; /** * 文档标题 */ private String title; /** * 文档描述 */ private String description; /** * 文档版本 */ private String version; /** * 文档联系人姓名 */ private String contactName; /** * 文档联系人网址 */ private String contactUrl; /** * 文档联系人邮箱 */ private String contactEmail; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/domain/WebLog.java
mall-common/src/main/java/com/macro/mall/common/domain/WebLog.java
package com.macro.mall.common.domain; import lombok.Data; import lombok.EqualsAndHashCode; /** * Controller层的日志封装类 * Created by macro on 2018/4/26. */ @Data @EqualsAndHashCode public class WebLog { /** * 操作描述 */ private String description; /** * 操作用户 */ private String username; /** * 操作时间 */ private Long startTime; /** * 消耗时间 */ private Integer spendTime; /** * 根路径 */ private String basePath; /** * URI */ private String uri; /** * URL */ private String url; /** * 请求类型 */ private String method; /** * IP地址 */ private String ip; /** * 请求参数 */ private Object parameter; /** * 返回结果 */ private Object result; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/api/ResultCode.java
mall-common/src/main/java/com/macro/mall/common/api/ResultCode.java
package com.macro.mall.common.api; /** * API返回码封装类 * Created by macro on 2019/4/19. */ public enum ResultCode implements IErrorCode { SUCCESS(200, "操作成功"), FAILED(500, "操作失败"), VALIDATE_FAILED(404, "参数检验失败"), UNAUTHORIZED(401, "暂未登录或token已经过期"), FORBIDDEN(403, "没有相关权限"); private long code; private String message; private ResultCode(long code, String message) { this.code = code; this.message = message; } public long getCode() { return code; } public String getMessage() { return message; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/api/CommonResult.java
mall-common/src/main/java/com/macro/mall/common/api/CommonResult.java
package com.macro.mall.common.api; /** * 通用返回结果封装类 * Created by macro on 2019/4/19. */ public class CommonResult<T> { /** * 状态码 */ private long code; /** * 提示信息 */ private String message; /** * 数据封装 */ private T data; protected CommonResult() { } protected CommonResult(long code, String message, T data) { this.code = code; this.message = message; this.data = data; } /** * 成功返回结果 * * @param data 获取的数据 */ public static <T> CommonResult<T> success(T data) { return new CommonResult<T>(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getMessage(), data); } /** * 成功返回结果 * * @param data 获取的数据 * @param message 提示信息 */ public static <T> CommonResult<T> success(T data, String message) { return new CommonResult<T>(ResultCode.SUCCESS.getCode(), message, data); } /** * 失败返回结果 * @param errorCode 错误码 */ public static <T> CommonResult<T> failed(IErrorCode errorCode) { return new CommonResult<T>(errorCode.getCode(), errorCode.getMessage(), null); } /** * 失败返回结果 * @param errorCode 错误码 * @param message 错误信息 */ public static <T> CommonResult<T> failed(IErrorCode errorCode,String message) { return new CommonResult<T>(errorCode.getCode(), message, null); } /** * 失败返回结果 * @param message 提示信息 */ public static <T> CommonResult<T> failed(String message) { return new CommonResult<T>(ResultCode.FAILED.getCode(), message, null); } /** * 失败返回结果 */ public static <T> CommonResult<T> failed() { return failed(ResultCode.FAILED); } /** * 参数验证失败返回结果 */ public static <T> CommonResult<T> validateFailed() { return failed(ResultCode.VALIDATE_FAILED); } /** * 参数验证失败返回结果 * @param message 提示信息 */ public static <T> CommonResult<T> validateFailed(String message) { return new CommonResult<T>(ResultCode.VALIDATE_FAILED.getCode(), message, null); } /** * 未登录返回结果 */ public static <T> CommonResult<T> unauthorized(T data) { return new CommonResult<T>(ResultCode.UNAUTHORIZED.getCode(), ResultCode.UNAUTHORIZED.getMessage(), data); } /** * 未授权返回结果 */ public static <T> CommonResult<T> forbidden(T data) { return new CommonResult<T>(ResultCode.FORBIDDEN.getCode(), ResultCode.FORBIDDEN.getMessage(), data); } public long getCode() { return code; } public void setCode(long code) { this.code = code; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public T getData() { return data; } public void setData(T data) { this.data = data; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/api/CommonPage.java
mall-common/src/main/java/com/macro/mall/common/api/CommonPage.java
package com.macro.mall.common.api; import com.github.pagehelper.PageInfo; import org.springframework.data.domain.Page; import java.util.List; /** * 通用分页数据封装类 * Created by macro on 2019/4/19. */ public class CommonPage<T> { /** * 当前页码 */ private Integer pageNum; /** * 每页数量 */ private Integer pageSize; /** * 总页数 */ private Integer totalPage; /** * 总条数 */ private Long total; /** * 分页数据 */ private List<T> list; /** * 将PageHelper分页后的list转为分页信息 */ public static <T> CommonPage<T> restPage(List<T> list) { CommonPage<T> result = new CommonPage<T>(); PageInfo<T> pageInfo = new PageInfo<T>(list); result.setTotalPage(pageInfo.getPages()); result.setPageNum(pageInfo.getPageNum()); result.setPageSize(pageInfo.getPageSize()); result.setTotal(pageInfo.getTotal()); result.setList(pageInfo.getList()); return result; } /** * 将SpringData分页后的list转为分页信息 */ public static <T> CommonPage<T> restPage(Page<T> pageInfo) { CommonPage<T> result = new CommonPage<T>(); result.setTotalPage(pageInfo.getTotalPages()); result.setPageNum(pageInfo.getNumber()); result.setPageSize(pageInfo.getSize()); result.setTotal(pageInfo.getTotalElements()); result.setList(pageInfo.getContent()); return result; } public Integer getPageNum() { return pageNum; } public void setPageNum(Integer pageNum) { this.pageNum = pageNum; } public Integer getPageSize() { return pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public Integer getTotalPage() { return totalPage; } public void setTotalPage(Integer totalPage) { this.totalPage = totalPage; } public List<T> getList() { return list; } public void setList(List<T> list) { this.list = list; } public Long getTotal() { return total; } public void setTotal(Long total) { this.total = total; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/api/IErrorCode.java
mall-common/src/main/java/com/macro/mall/common/api/IErrorCode.java
package com.macro.mall.common.api; /** * API返回码接口 * Created by macro on 2019/4/19. */ public interface IErrorCode { /** * 返回码 */ long getCode(); /** * 返回信息 */ String getMessage(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-common/src/main/java/com/macro/mall/common/config/BaseSwaggerConfig.java
mall-common/src/main/java/com/macro/mall/common/config/BaseSwaggerConfig.java
package com.macro.mall.common.config; import com.macro.mall.common.domain.SwaggerProperties; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.context.annotation.Bean; import org.springframework.util.ReflectionUtils; import org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.*; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spi.service.contexts.SecurityContext; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.spring.web.plugins.WebFluxRequestHandlerProvider; import springfox.documentation.spring.web.plugins.WebMvcRequestHandlerProvider; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; /** * Swagger基础配置 * Created by macro on 2020/7/16. */ public abstract class BaseSwaggerConfig { @Bean public Docket createRestApi() { SwaggerProperties swaggerProperties = swaggerProperties(); Docket docket = new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo(swaggerProperties)) .select() .apis(RequestHandlerSelectors.basePackage(swaggerProperties.getApiBasePackage())) .paths(PathSelectors.any()) .build(); if (swaggerProperties.isEnableSecurity()) { docket.securitySchemes(securitySchemes()).securityContexts(securityContexts()); } return docket; } private ApiInfo apiInfo(SwaggerProperties swaggerProperties) { return new ApiInfoBuilder() .title(swaggerProperties.getTitle()) .description(swaggerProperties.getDescription()) .contact(new Contact(swaggerProperties.getContactName(), swaggerProperties.getContactUrl(), swaggerProperties.getContactEmail())) .version(swaggerProperties.getVersion()) .build(); } private List<SecurityScheme> securitySchemes() { //设置请求头信息 List<SecurityScheme> result = new ArrayList<>(); ApiKey apiKey = new ApiKey("Authorization", "Authorization", "header"); result.add(apiKey); return result; } private List<SecurityContext> securityContexts() { //设置需要登录认证的路径 List<SecurityContext> result = new ArrayList<>(); result.add(getContextByPath("/*/.*")); return result; } private SecurityContext getContextByPath(String pathRegex) { return SecurityContext.builder() .securityReferences(defaultAuth()) .operationSelector(oc -> oc.requestMappingPattern().matches(pathRegex)) .build(); } private List<SecurityReference> defaultAuth() { List<SecurityReference> result = new ArrayList<>(); AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything"); AuthorizationScope[] authorizationScopes = new AuthorizationScope[1]; authorizationScopes[0] = authorizationScope; result.add(new SecurityReference("Authorization", authorizationScopes)); return result; } public BeanPostProcessor generateBeanPostProcessor(){ return new BeanPostProcessor() { @Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (bean instanceof WebMvcRequestHandlerProvider || bean instanceof WebFluxRequestHandlerProvider) { customizeSpringfoxHandlerMappings(getHandlerMappings(bean)); } return bean; } private <T extends RequestMappingInfoHandlerMapping> void customizeSpringfoxHandlerMappings(List<T> mappings) { List<T> copy = mappings.stream() .filter(mapping -> mapping.getPatternParser() == null) .collect(Collectors.toList()); mappings.clear(); mappings.addAll(copy); } @SuppressWarnings("unchecked") private List<RequestMappingInfoHandlerMapping> getHandlerMappings(Object bean) { try { Field field = ReflectionUtils.findField(bean.getClass(), "handlerMappings"); field.setAccessible(true); return (List<RequestMappingInfoHandlerMapping>) field.get(bean); } catch (IllegalArgumentException | IllegalAccessException e) { throw new IllegalStateException(e); } } }; } /** * 自定义Swagger配置 */ public abstract SwaggerProperties swaggerProperties(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false