diff --git a/mall-admin/src/main/java/com/macro/mall/controller/PmsBrandController.java b/mall-admin/src/main/java/com/macro/mall/controller/PmsBrandController.java index cb816b7..566124e 100644 --- a/mall-admin/src/main/java/com/macro/mall/controller/PmsBrandController.java +++ b/mall-admin/src/main/java/com/macro/mall/controller/PmsBrandController.java @@ -13,6 +13,8 @@ import org.springframework.validation.BindingResult; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; +import java.util.List; + /** * 品牌功能Controller */ @@ -54,7 +56,7 @@ public class PmsBrandController { @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public Object updateBrand(@PathVariable("id") Long id, @Validated @RequestBody PmsBrandParam pmsBrandParam, BindingResult result) { - if(result.hasErrors()){ + if (result.hasErrors()) { return new CommonResult().validateFailed(result.getFieldError().getDefaultMessage()); } CommonResult commonResult; @@ -75,20 +77,21 @@ public class PmsBrandController { public Object deleteBrand(@PathVariable("id") Long id) { int count = brandService.deleteBrand(id); if (count == 1) { - LOGGER.debug("deleteBrand success :id={}", id); + LOGGER.debug("deleteBrand success:id={}", id); return new CommonResult().success(null); } else { - LOGGER.debug("deleteBrand failed :id={}", id); + LOGGER.debug("deleteBrand failed:id={}", id); return new CommonResult().failed(); } } - @ApiOperation(value = "分页获取品牌列表") + @ApiOperation(value = "根据品牌名称分页获取品牌列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody - public Object listBrand(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, + public Object listBrand(@RequestParam(value = "keyword", required = false) String keyword, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "3") Integer pageSize) { - return new CommonResult().pageSuccess(brandService.listBrand(pageNum, pageSize)); + return new CommonResult().pageSuccess(brandService.listBrand(keyword, pageNum, pageSize)); } @ApiOperation(value = "根据编号查询品牌信息") @@ -97,4 +100,32 @@ public class PmsBrandController { public Object getBrand(@PathVariable("id") Long id) { return new CommonResult().success(brandService.getBrand(id)); } + + @ApiOperation(value = "批量删除品牌") + @RequestMapping(value = "/delete/batch", method = RequestMethod.POST) + @ResponseBody + public Object deleteBrandBatch(@RequestParam("ids") List ids) { + int count = brandService.deleteBrand(ids); + if (count > 0) { + LOGGER.debug("deleteBrandBatch success:ids={}", ids); + return new CommonResult().success(count); + } else { + LOGGER.debug("deleteBrandBatch failed:ids={}", ids); + return new CommonResult().failed(); + } + } + + @ApiOperation(value = "批量更新显示状态") + @RequestMapping(value = "/update/showStatus", method = RequestMethod.POST) + @ResponseBody + public Object updateShowStatus(@RequestParam("ids") List ids, @RequestParam("showStatus") Integer showStatus) { + int count = brandService.updateShowStatus(ids, showStatus); + if (count > 0) { + LOGGER.debug("updateShowStatus success:ids={}", ids); + return new CommonResult().success(count); + } else { + LOGGER.debug("updateShowStatus failed:ids={}", ids); + return new CommonResult().failed(); + } + } } diff --git a/mall-admin/src/main/java/com/macro/mall/service/PmsBrandService.java b/mall-admin/src/main/java/com/macro/mall/service/PmsBrandService.java index 832f846..5d1358c 100644 --- a/mall-admin/src/main/java/com/macro/mall/service/PmsBrandService.java +++ b/mall-admin/src/main/java/com/macro/mall/service/PmsBrandService.java @@ -17,7 +17,11 @@ public interface PmsBrandService { int deleteBrand(Long id); - List listBrand(int pageNum, int pageSize); + int deleteBrand(List ids); + + List listBrand(String keyword,int pageNum, int pageSize); PmsBrand getBrand(Long id); + + int updateShowStatus(List ids, Integer showStatus); } diff --git a/mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java b/mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java index 4b7acdf..c6559b7 100644 --- a/mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java +++ b/mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java @@ -9,6 +9,7 @@ import com.macro.mall.service.PmsBrandService; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; import java.util.List; @@ -29,6 +30,10 @@ public class PmsBrandServiceImpl implements PmsBrandService{ public int createBrand(PmsBrandParam pmsBrandParam) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandParam,pmsBrand); + //如果创建时首字母为空,取名称的第一个为首字母 + if(StringUtils.isEmpty(pmsBrand.getFirstLetter())){ + pmsBrand.setFirstLetter(pmsBrand.getName().substring(0,1)); + } return brandMapper.insertSelective(pmsBrand); } @@ -37,6 +42,10 @@ public class PmsBrandServiceImpl implements PmsBrandService{ PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandParam,pmsBrand); pmsBrand.setId(id); + //如果创建时首字母为空,取名称的第一个为首字母 + if(StringUtils.isEmpty(pmsBrand.getFirstLetter())){ + pmsBrand.setFirstLetter(pmsBrand.getName().substring(0,1)); + } return brandMapper.updateByPrimaryKeySelective(pmsBrand); } @@ -46,13 +55,33 @@ public class PmsBrandServiceImpl implements PmsBrandService{ } @Override - public List listBrand(int pageNum, int pageSize) { + public int deleteBrand(List ids) { + PmsBrandExample pmsBrandExample = new PmsBrandExample(); + pmsBrandExample.createCriteria().andIdIn(ids); + return brandMapper.deleteByExample(pmsBrandExample); + } + + @Override + public List listBrand(String keyword,int pageNum, int pageSize) { PageHelper.startPage(pageNum, pageSize); - return brandMapper.selectByExample(new PmsBrandExample()); + PmsBrandExample pmsBrandExample = new PmsBrandExample(); + if(!StringUtils.isEmpty(keyword)){ + pmsBrandExample.createCriteria().andNameLike("%"+keyword+"%"); + } + return brandMapper.selectByExample(pmsBrandExample); } @Override public PmsBrand getBrand(Long id) { return brandMapper.selectByPrimaryKey(id); } + + @Override + public int updateShowStatus(List ids, Integer showStatus) { + PmsBrand pmsBrand = new PmsBrand(); + pmsBrand.setShowStatus(showStatus); + PmsBrandExample pmsBrandExample = new PmsBrandExample(); + pmsBrandExample.createCriteria().andIdIn(ids); + return brandMapper.updateByExampleSelective(pmsBrand,pmsBrandExample); + } } diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpCategoryMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpCategoryMapper.xml index 516b1f3..cf3fdf5 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpCategoryMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpCategoryMapper.xml @@ -101,23 +101,20 @@ - + SELECT LAST_INSERT_ID() - insert into cms_help_category (id, name, icon, - help_count, show_status, sort - ) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, - #{helpCount,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER} - ) + insert into cms_help_category (name, icon, help_count, + show_status, sort) + values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{helpCount,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into cms_help_category - id, name, @@ -135,7 +132,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpMapper.xml index 190e9aa..233d297 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpMapper.xml @@ -126,23 +126,22 @@ - + SELECT LAST_INSERT_ID() - insert into cms_help (id, category_id, icon, - title, show_status, create_time, - read_count, content) - values (#{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, #{icon,jdbcType=VARCHAR}, - #{title,jdbcType=VARCHAR}, #{showStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, - #{readCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR}) + insert into cms_help (category_id, icon, title, + show_status, create_time, read_count, + content) + values (#{categoryId,jdbcType=BIGINT}, #{icon,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, + #{showStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{readCount,jdbcType=INTEGER}, + #{content,jdbcType=LONGVARCHAR}) - + SELECT LAST_INSERT_ID() insert into cms_help - id, category_id, @@ -166,7 +165,6 @@ - #{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsMemberReportMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsMemberReportMapper.xml index 30b0f91..aaa20f8 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsMemberReportMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsMemberReportMapper.xml @@ -94,23 +94,22 @@ - + SELECT LAST_INSERT_ID() - insert into cms_member_report (id, report_type, report_member_name, - create_time, report_object, report_status, - handle_status, note) - values (#{id,jdbcType=BIGINT}, #{reportType,jdbcType=INTEGER}, #{reportMemberName,jdbcType=VARCHAR}, - #{createTime,jdbcType=TIMESTAMP}, #{reportObject,jdbcType=VARCHAR}, #{reportStatus,jdbcType=INTEGER}, - #{handleStatus,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}) + insert into cms_member_report (report_type, report_member_name, create_time, + report_object, report_status, handle_status, + note) + values (#{reportType,jdbcType=INTEGER}, #{reportMemberName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{reportObject,jdbcType=VARCHAR}, #{reportStatus,jdbcType=INTEGER}, #{handleStatus,jdbcType=INTEGER}, + #{note,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into cms_member_report - id, report_type, @@ -134,7 +133,6 @@ - #{id,jdbcType=BIGINT}, #{reportType,jdbcType=INTEGER}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaMapper.xml index 5162205..09bee43 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaMapper.xml @@ -124,23 +124,20 @@ - + SELECT LAST_INSERT_ID() - insert into cms_prefrence_area (id, name, sub_title, - sort, show_status, pic - ) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{subTitle,jdbcType=VARCHAR}, - #{sort,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{pic,jdbcType=VARBINARY} - ) + insert into cms_prefrence_area (name, sub_title, sort, + show_status, pic) + values (#{name,jdbcType=VARCHAR}, #{subTitle,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{pic,jdbcType=VARBINARY}) - + SELECT LAST_INSERT_ID() insert into cms_prefrence_area - id, name, @@ -158,7 +155,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.xml index 5185c5d..8daaedc 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.xml @@ -98,21 +98,18 @@ - + SELECT LAST_INSERT_ID() - insert into cms_prefrence_area_product_relation (id, prefrence_area_id, product_id - ) - values (#{id,jdbcType=BIGINT}, #{prefrenceAreaId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT} - ) + insert into cms_prefrence_area_product_relation (prefrence_area_id, product_id) + values (#{prefrenceAreaId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}) - + SELECT LAST_INSERT_ID() insert into cms_prefrence_area_product_relation - id, prefrence_area_id, @@ -121,7 +118,6 @@ - #{id,jdbcType=BIGINT}, #{prefrenceAreaId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCategoryMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCategoryMapper.xml index 35330c4..24c0612 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCategoryMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCategoryMapper.xml @@ -101,23 +101,20 @@ - + SELECT LAST_INSERT_ID() - insert into cms_subject_category (id, name, icon, - subject_count, show_status, sort - ) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, - #{subjectCount,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER} - ) + insert into cms_subject_category (name, icon, subject_count, + show_status, sort) + values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{subjectCount,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into cms_subject_category - id, name, @@ -135,7 +132,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCommentMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCommentMapper.xml index a027049..9ee1fe8 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCommentMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCommentMapper.xml @@ -102,23 +102,22 @@ - + SELECT LAST_INSERT_ID() - insert into cms_subject_comment (id, subject_id, member_nick_name, - member_icon, content, create_time, - show_status) - values (#{id,jdbcType=BIGINT}, #{subjectId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, - #{memberIcon,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, - #{showStatus,jdbcType=INTEGER}) + insert into cms_subject_comment (subject_id, member_nick_name, member_icon, + content, create_time, show_status + ) + values (#{subjectId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR}, + #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER} + ) - + SELECT LAST_INSERT_ID() insert into cms_subject_comment - id, subject_id, @@ -139,7 +138,6 @@ - #{id,jdbcType=BIGINT}, #{subjectId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectMapper.xml index caae553..50cde98 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectMapper.xml @@ -134,29 +134,26 @@ - + SELECT LAST_INSERT_ID() - insert into cms_subject (id, category_id, title, - pic, product_count, recommend_status, - create_time, collect_count, read_count, - comment_count, album_pics, description, - show_status, forward_count, content - ) - values (#{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, - #{pic,jdbcType=VARCHAR}, #{productCount,jdbcType=INTEGER}, #{recommendStatus,jdbcType=INTEGER}, - #{createTime,jdbcType=TIMESTAMP}, #{collectCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, - #{commentCount,jdbcType=INTEGER}, #{albumPics,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, - #{showStatus,jdbcType=INTEGER}, #{forwardCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR} - ) + insert into cms_subject (category_id, title, pic, + product_count, recommend_status, create_time, + collect_count, read_count, comment_count, + album_pics, description, show_status, + forward_count, content) + values (#{categoryId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, + #{productCount,jdbcType=INTEGER}, #{recommendStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, + #{collectCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER}, + #{albumPics,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{showStatus,jdbcType=INTEGER}, + #{forwardCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR}) - + SELECT LAST_INSERT_ID() insert into cms_subject - id, category_id, @@ -201,7 +198,6 @@ - #{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectProductRelationMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectProductRelationMapper.xml index c9b23ee..3ea1afe 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectProductRelationMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectProductRelationMapper.xml @@ -98,21 +98,18 @@ - + SELECT LAST_INSERT_ID() - insert into cms_subject_product_relation (id, subject_id, product_id - ) - values (#{id,jdbcType=BIGINT}, #{subjectId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT} - ) + insert into cms_subject_product_relation (subject_id, product_id) + values (#{subjectId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}) - + SELECT LAST_INSERT_ID() insert into cms_subject_product_relation - id, subject_id, @@ -121,7 +118,6 @@ - #{id,jdbcType=BIGINT}, #{subjectId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCategoryMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCategoryMapper.xml index aec075d..89864a4 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCategoryMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCategoryMapper.xml @@ -101,23 +101,20 @@ - + SELECT LAST_INSERT_ID() - insert into cms_topic_category (id, name, icon, - subject_count, show_status, sort - ) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, - #{subjectCount,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER} - ) + insert into cms_topic_category (name, icon, subject_count, + show_status, sort) + values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{subjectCount,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into cms_topic_category - id, name, @@ -135,7 +132,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCommentMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCommentMapper.xml index 65cf04e..b8f6561 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCommentMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCommentMapper.xml @@ -102,23 +102,22 @@ - + SELECT LAST_INSERT_ID() - insert into cms_topic_comment (id, member_nick_name, topic_id, - member_icon, content, create_time, - show_status) - values (#{id,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{topicId,jdbcType=BIGINT}, - #{memberIcon,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, - #{showStatus,jdbcType=INTEGER}) + insert into cms_topic_comment (member_nick_name, topic_id, member_icon, + content, create_time, show_status + ) + values (#{memberNickName,jdbcType=VARCHAR}, #{topicId,jdbcType=BIGINT}, #{memberIcon,jdbcType=VARCHAR}, + #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER} + ) - + SELECT LAST_INSERT_ID() insert into cms_topic_comment - id, member_nick_name, @@ -139,7 +138,6 @@ - #{id,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicMapper.xml index 01d790c..c1a1039 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicMapper.xml @@ -131,27 +131,24 @@ - + SELECT LAST_INSERT_ID() - insert into cms_topic (id, category_id, name, - create_time, start_time, end_time, - attend_count, attention_count, read_count, - award_name, attend_type, content - ) - values (#{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, - #{createTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, - #{attendCount,jdbcType=INTEGER}, #{attentionCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, - #{awardName,jdbcType=VARCHAR}, #{attendType,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR} - ) + insert into cms_topic (category_id, name, create_time, + start_time, end_time, attend_count, + attention_count, read_count, award_name, + attend_type, content) + values (#{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{attendCount,jdbcType=INTEGER}, + #{attentionCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{awardName,jdbcType=VARCHAR}, + #{attendType,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR}) - + SELECT LAST_INSERT_ID() insert into cms_topic - id, category_id, @@ -187,7 +184,6 @@ - #{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCompanyAddressMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCompanyAddressMapper.xml index c3ea1c5..cf36e32 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCompanyAddressMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCompanyAddressMapper.xml @@ -104,25 +104,22 @@ - + SELECT LAST_INSERT_ID() - insert into oms_company_address (id, address_name, send_status, - receive_status, name, phone, - province, city, region - ) - values (#{id,jdbcType=BIGINT}, #{addressName,jdbcType=VARCHAR}, #{sendStatus,jdbcType=INTEGER}, - #{receiveStatus,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, - #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{region,jdbcType=VARCHAR} - ) + insert into oms_company_address (address_name, send_status, receive_status, + name, phone, province, + city, region) + values (#{addressName,jdbcType=VARCHAR}, #{sendStatus,jdbcType=INTEGER}, #{receiveStatus,jdbcType=INTEGER}, + #{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, + #{city,jdbcType=VARCHAR}, #{region,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into oms_company_address - id, address_name, @@ -149,7 +146,6 @@ - #{id,jdbcType=BIGINT}, #{addressName,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderItemMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderItemMapper.xml index 23dc506..fa834e4 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderItemMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderItemMapper.xml @@ -110,27 +110,26 @@ - + SELECT LAST_INSERT_ID() - insert into oms_order_item (id, order_id, order_sn, - product_id, proudct_pic, product_name, - product_brand, product_sn, product_amount, - product_count, product_real_amount, sp1, - sp2, sp3) - values (#{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, - #{productId,jdbcType=BIGINT}, #{proudctPic,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, - #{productBrand,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR}, #{productAmount,jdbcType=DECIMAL}, - #{productCount,jdbcType=INTEGER}, #{productRealAmount,jdbcType=DECIMAL}, #{sp1,jdbcType=VARCHAR}, - #{sp2,jdbcType=VARCHAR}, #{sp3,jdbcType=VARCHAR}) + insert into oms_order_item (order_id, order_sn, product_id, + proudct_pic, product_name, product_brand, + product_sn, product_amount, product_count, + product_real_amount, sp1, sp2, + sp3) + values (#{orderId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, #{productId,jdbcType=BIGINT}, + #{proudctPic,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{productBrand,jdbcType=VARCHAR}, + #{productSn,jdbcType=VARCHAR}, #{productAmount,jdbcType=DECIMAL}, #{productCount,jdbcType=INTEGER}, + #{productRealAmount,jdbcType=DECIMAL}, #{sp1,jdbcType=VARCHAR}, #{sp2,jdbcType=VARCHAR}, + #{sp3,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into oms_order_item - id, order_id, @@ -172,7 +171,6 @@ - #{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderMapper.xml index da97e14..c2ac7fe 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderMapper.xml @@ -136,43 +136,40 @@ - + SELECT LAST_INSERT_ID() - insert into oms_order (id, member_id, coupon_id, - order_sn, create_time, member_username, - total_amount, freight_amount, promotion_amount, - integration_amount, coupon_amount, discount_amount, - pay_type, source_type, status, - order_type, delivery_company, delivery_sn, - auto_confirm_day, integration, growth, - promotion_info, bill_type, bill_header, - bill_content, bill_receiver_phone, bill_receiver_email, - receiver_name, receiver_phone, receiver_post_code, - receiver_province, receiver_city, receiver_region, - receiver_detail_address, note, confirm_status - ) - values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, - #{orderSn,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, - #{totalAmount,jdbcType=DECIMAL}, #{freightAmount,jdbcType=DECIMAL}, #{promotionAmount,jdbcType=DECIMAL}, - #{integrationAmount,jdbcType=DECIMAL}, #{couponAmount,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL}, - #{payType,jdbcType=INTEGER}, #{sourceType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, - #{orderType,jdbcType=INTEGER}, #{deliveryCompany,jdbcType=VARCHAR}, #{deliverySn,jdbcType=VARCHAR}, - #{autoConfirmDay,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER}, - #{promotionInfo,jdbcType=VARCHAR}, #{billType,jdbcType=INTEGER}, #{billHeader,jdbcType=VARCHAR}, - #{billContent,jdbcType=VARCHAR}, #{billReceiverPhone,jdbcType=VARCHAR}, #{billReceiverEmail,jdbcType=VARCHAR}, - #{receiverName,jdbcType=VARCHAR}, #{receiverPhone,jdbcType=VARCHAR}, #{receiverPostCode,jdbcType=VARCHAR}, - #{receiverProvince,jdbcType=VARCHAR}, #{receiverCity,jdbcType=VARCHAR}, #{receiverRegion,jdbcType=VARCHAR}, - #{receiverDetailAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{confirmStatus,jdbcType=INTEGER} - ) + insert into oms_order (member_id, coupon_id, order_sn, + create_time, member_username, total_amount, + freight_amount, promotion_amount, integration_amount, + coupon_amount, discount_amount, pay_type, + source_type, status, order_type, + delivery_company, delivery_sn, auto_confirm_day, + integration, growth, promotion_info, + bill_type, bill_header, bill_content, + bill_receiver_phone, bill_receiver_email, receiver_name, + receiver_phone, receiver_post_code, receiver_province, + receiver_city, receiver_region, receiver_detail_address, + note, confirm_status) + values (#{memberId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL}, + #{freightAmount,jdbcType=DECIMAL}, #{promotionAmount,jdbcType=DECIMAL}, #{integrationAmount,jdbcType=DECIMAL}, + #{couponAmount,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL}, #{payType,jdbcType=INTEGER}, + #{sourceType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{orderType,jdbcType=INTEGER}, + #{deliveryCompany,jdbcType=VARCHAR}, #{deliverySn,jdbcType=VARCHAR}, #{autoConfirmDay,jdbcType=INTEGER}, + #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER}, #{promotionInfo,jdbcType=VARCHAR}, + #{billType,jdbcType=INTEGER}, #{billHeader,jdbcType=VARCHAR}, #{billContent,jdbcType=VARCHAR}, + #{billReceiverPhone,jdbcType=VARCHAR}, #{billReceiverEmail,jdbcType=VARCHAR}, #{receiverName,jdbcType=VARCHAR}, + #{receiverPhone,jdbcType=VARCHAR}, #{receiverPostCode,jdbcType=VARCHAR}, #{receiverProvince,jdbcType=VARCHAR}, + #{receiverCity,jdbcType=VARCHAR}, #{receiverRegion,jdbcType=VARCHAR}, #{receiverDetailAddress,jdbcType=VARCHAR}, + #{note,jdbcType=VARCHAR}, #{confirmStatus,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into oms_order - id, member_id, @@ -280,7 +277,6 @@ - #{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.xml index 8b68199..8136548 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.xml @@ -101,23 +101,20 @@ - + SELECT LAST_INSERT_ID() - insert into oms_order_operate_history (id, order_id, operate_man, - create_time, order_status, note - ) - values (#{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{operateMan,jdbcType=VARCHAR}, - #{createTime,jdbcType=TIMESTAMP}, #{orderStatus,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR} - ) + insert into oms_order_operate_history (order_id, operate_man, create_time, + order_status, note) + values (#{orderId,jdbcType=BIGINT}, #{operateMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{orderStatus,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into oms_order_operate_history - id, order_id, @@ -135,7 +132,6 @@ - #{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnApplyMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnApplyMapper.xml index b44a18b..12e47d0 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnApplyMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnApplyMapper.xml @@ -126,37 +126,34 @@ - + SELECT LAST_INSERT_ID() - insert into oms_order_return_apply (id, order_id, company_address_id, - order_sn, create_time, member_username, - return_amount, return_name, return_phone, - status, handle_time, product_pic, - product_name, brand_name, product_attr, - product_count, reason, description, - proof_pics, return_post_amount, return_post_status, - confirm_return_amount, handle_note, handle_man, - receive_man, receive_time, receive_note - ) - values (#{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{companyAddressId,jdbcType=BIGINT}, - #{orderSn,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, - #{returnAmount,jdbcType=DECIMAL}, #{returnName,jdbcType=VARCHAR}, #{returnPhone,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{handleTime,jdbcType=TIMESTAMP}, #{productPic,jdbcType=VARCHAR}, - #{productName,jdbcType=VARCHAR}, #{brandName,jdbcType=VARCHAR}, #{productAttr,jdbcType=VARCHAR}, - #{productCount,jdbcType=INTEGER}, #{reason,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, - #{proofPics,jdbcType=VARCHAR}, #{returnPostAmount,jdbcType=DECIMAL}, #{returnPostStatus,jdbcType=INTEGER}, - #{confirmReturnAmount,jdbcType=DECIMAL}, #{handleNote,jdbcType=VARCHAR}, #{handleMan,jdbcType=VARCHAR}, - #{receiveMan,jdbcType=VARCHAR}, #{receiveTime,jdbcType=TIMESTAMP}, #{receiveNote,jdbcType=VARCHAR} - ) + insert into oms_order_return_apply (order_id, company_address_id, order_sn, + create_time, member_username, return_amount, + return_name, return_phone, status, + handle_time, product_pic, product_name, + brand_name, product_attr, product_count, + reason, description, proof_pics, + return_post_amount, return_post_status, confirm_return_amount, + handle_note, handle_man, receive_man, + receive_time, receive_note) + values (#{orderId,jdbcType=BIGINT}, #{companyAddressId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, #{returnAmount,jdbcType=DECIMAL}, + #{returnName,jdbcType=VARCHAR}, #{returnPhone,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, + #{handleTime,jdbcType=TIMESTAMP}, #{productPic,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, + #{brandName,jdbcType=VARCHAR}, #{productAttr,jdbcType=VARCHAR}, #{productCount,jdbcType=INTEGER}, + #{reason,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{proofPics,jdbcType=VARCHAR}, + #{returnPostAmount,jdbcType=DECIMAL}, #{returnPostStatus,jdbcType=INTEGER}, #{confirmReturnAmount,jdbcType=DECIMAL}, + #{handleNote,jdbcType=VARCHAR}, #{handleMan,jdbcType=VARCHAR}, #{receiveMan,jdbcType=VARCHAR}, + #{receiveTime,jdbcType=TIMESTAMP}, #{receiveNote,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into oms_order_return_apply - id, order_id, @@ -237,7 +234,6 @@ - #{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnReasonMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnReasonMapper.xml index 2927e7c..40e51b0 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnReasonMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnReasonMapper.xml @@ -99,21 +99,20 @@ - + SELECT LAST_INSERT_ID() - insert into oms_order_return_reason (id, name, sort, - status) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, - #{status,jdbcType=INTEGER}) + insert into oms_order_return_reason (name, sort, status + ) + values (#{name,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{status,jdbcType=INTEGER} + ) - + SELECT LAST_INSERT_ID() insert into oms_order_return_reason - id, name, @@ -125,7 +124,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderSettingMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderSettingMapper.xml index a128b13..6ed0224 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderSettingMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderSettingMapper.xml @@ -102,23 +102,22 @@ - + SELECT LAST_INSERT_ID() - insert into oms_order_setting (id, flash_order_overtime, normal_order_overtime, + insert into oms_order_setting (flash_order_overtime, normal_order_overtime, confirm_overtime, finish_overtime, comment_overtime ) - values (#{id,jdbcType=BIGINT}, #{flashOrderOvertime,jdbcType=INTEGER}, #{normalOrderOvertime,jdbcType=INTEGER}, + values (#{flashOrderOvertime,jdbcType=INTEGER}, #{normalOrderOvertime,jdbcType=INTEGER}, #{confirmOvertime,jdbcType=INTEGER}, #{finishOvertime,jdbcType=INTEGER}, #{commentOvertime,jdbcType=INTEGER} ) - + SELECT LAST_INSERT_ID() insert into oms_order_setting - id, flash_order_overtime, @@ -136,7 +135,6 @@ - #{id,jdbcType=BIGINT}, #{flashOrderOvertime,jdbcType=INTEGER}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumMapper.xml index e8a52f0..f2953d7 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumMapper.xml @@ -101,23 +101,20 @@ - + SELECT LAST_INSERT_ID() - insert into pms_album (id, name, cover_pic, - pic_count, sort, description - ) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{coverPic,jdbcType=VARCHAR}, - #{picCount,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR} - ) + insert into pms_album (name, cover_pic, pic_count, + sort, description) + values (#{name,jdbcType=VARCHAR}, #{coverPic,jdbcType=VARCHAR}, #{picCount,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into pms_album - id, name, @@ -135,7 +132,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumPicMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumPicMapper.xml index 3d3e18a..ffb095f 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumPicMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumPicMapper.xml @@ -98,21 +98,18 @@ - + SELECT LAST_INSERT_ID() - insert into pms_album_pic (id, album_id, pic - ) - values (#{id,jdbcType=BIGINT}, #{albumId,jdbcType=BIGINT}, #{pic,jdbcType=VARCHAR} - ) + insert into pms_album_pic (album_id, pic) + values (#{albumId,jdbcType=BIGINT}, #{pic,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into pms_album_pic - id, album_id, @@ -121,7 +118,6 @@ - #{id,jdbcType=BIGINT}, #{albumId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsBrandMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsBrandMapper.xml index fb1e50d..eb058f3 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsBrandMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsBrandMapper.xml @@ -130,25 +130,24 @@ - + SELECT LAST_INSERT_ID() - insert into pms_brand (id, name, first_letter, - sort, factory_status, show_status, - product_count, product_comment_count, logo, - big_pic, brand_story) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{firstLetter,jdbcType=VARCHAR}, - #{sort,jdbcType=INTEGER}, #{factoryStatus,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, - #{productCount,jdbcType=INTEGER}, #{productCommentCount,jdbcType=INTEGER}, #{logo,jdbcType=VARCHAR}, - #{bigPic,jdbcType=VARCHAR}, #{brandStory,jdbcType=LONGVARCHAR}) + insert into pms_brand (name, first_letter, sort, + factory_status, show_status, product_count, + product_comment_count, logo, big_pic, + brand_story) + values (#{name,jdbcType=VARCHAR}, #{firstLetter,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, + #{factoryStatus,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{productCount,jdbcType=INTEGER}, + #{productCommentCount,jdbcType=INTEGER}, #{logo,jdbcType=VARCHAR}, #{bigPic,jdbcType=VARCHAR}, + #{brandStory,jdbcType=LONGVARCHAR}) - + SELECT LAST_INSERT_ID() insert into pms_brand - id, name, @@ -181,7 +180,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentMapper.xml index 7a5ec28..bdb4720 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentMapper.xml @@ -134,29 +134,26 @@ - + SELECT LAST_INSERT_ID() - insert into pms_comment (id, product_id, member_nick_name, - product_name, star, member_ip, - create_time, show_status, product_attribute, - collect_couont, read_count, pics, - member_icon, replay_count, content - ) - values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, - #{productName,jdbcType=VARCHAR}, #{star,jdbcType=INTEGER}, #{memberIp,jdbcType=VARCHAR}, - #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER}, #{productAttribute,jdbcType=VARCHAR}, - #{collectCouont,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{pics,jdbcType=VARCHAR}, - #{memberIcon,jdbcType=VARCHAR}, #{replayCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR} - ) + insert into pms_comment (product_id, member_nick_name, product_name, + star, member_ip, create_time, + show_status, product_attribute, collect_couont, + read_count, pics, member_icon, + replay_count, content) + values (#{productId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, + #{star,jdbcType=INTEGER}, #{memberIp,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{showStatus,jdbcType=INTEGER}, #{productAttribute,jdbcType=VARCHAR}, #{collectCouont,jdbcType=INTEGER}, + #{readCount,jdbcType=INTEGER}, #{pics,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR}, + #{replayCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR}) - + SELECT LAST_INSERT_ID() insert into pms_comment - id, product_id, @@ -201,7 +198,6 @@ - #{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentReplayMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentReplayMapper.xml index c4675ce..4054507 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentReplayMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentReplayMapper.xml @@ -102,23 +102,22 @@ - + SELECT LAST_INSERT_ID() - insert into pms_comment_replay (id, comment_id, member_nick_name, - member_icon, content, create_time, - type) - values (#{id,jdbcType=BIGINT}, #{commentId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, - #{memberIcon,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, - #{type,jdbcType=INTEGER}) + insert into pms_comment_replay (comment_id, member_nick_name, member_icon, + content, create_time, type + ) + values (#{commentId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR}, + #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER} + ) - + SELECT LAST_INSERT_ID() insert into pms_comment_replay - id, comment_id, @@ -139,7 +138,6 @@ - #{id,jdbcType=BIGINT}, #{commentId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsFeightTemplateMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsFeightTemplateMapper.xml index efa05a7..a52978b 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsFeightTemplateMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsFeightTemplateMapper.xml @@ -103,23 +103,22 @@ - + SELECT LAST_INSERT_ID() - insert into pms_feight_template (id, name, charge_type, - first_weight, first_fee, continue_weight, - continme_fee, dest) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{chargeType,jdbcType=INTEGER}, - #{firstWeight,jdbcType=DECIMAL}, #{firstFee,jdbcType=DECIMAL}, #{continueWeight,jdbcType=DECIMAL}, - #{continmeFee,jdbcType=DECIMAL}, #{dest,jdbcType=VARCHAR}) + insert into pms_feight_template (name, charge_type, first_weight, + first_fee, continue_weight, continme_fee, + dest) + values (#{name,jdbcType=VARCHAR}, #{chargeType,jdbcType=INTEGER}, #{firstWeight,jdbcType=DECIMAL}, + #{firstFee,jdbcType=DECIMAL}, #{continueWeight,jdbcType=DECIMAL}, #{continmeFee,jdbcType=DECIMAL}, + #{dest,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into pms_feight_template - id, name, @@ -143,7 +142,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsMemberPriceMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsMemberPriceMapper.xml index bff630b..f6cd0e2 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsMemberPriceMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsMemberPriceMapper.xml @@ -99,21 +99,20 @@ - + SELECT LAST_INSERT_ID() - insert into pms_member_price (id, product_id, member_level_id, - member_price) - values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{memberLevelId,jdbcType=BIGINT}, - #{memberPrice,jdbcType=DECIMAL}) + insert into pms_member_price (product_id, member_level_id, member_price + ) + values (#{productId,jdbcType=BIGINT}, #{memberLevelId,jdbcType=BIGINT}, #{memberPrice,jdbcType=DECIMAL} + ) - + SELECT LAST_INSERT_ID() insert into pms_member_price - id, product_id, @@ -125,7 +124,6 @@ - #{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.xml index 1966c12..77de13f 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.xml @@ -99,21 +99,20 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product_attribute_category (id, name, attribute_count, - param_count) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{attributeCount,jdbcType=INTEGER}, - #{paramCount,jdbcType=INTEGER}) + insert into pms_product_attribute_category (name, attribute_count, param_count + ) + values (#{name,jdbcType=VARCHAR}, #{attributeCount,jdbcType=INTEGER}, #{paramCount,jdbcType=INTEGER} + ) - + SELECT LAST_INSERT_ID() insert into pms_product_attribute_category - id, name, @@ -125,7 +124,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeMapper.xml index 9279998..c57f73a 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeMapper.xml @@ -108,27 +108,26 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product_attribute (id, product_attribute_category_id, name, + insert into pms_product_attribute (product_attribute_category_id, name, select_type, input_type, input_list, sort, filter_type, search_type, related_status, hand_add_status, type ) - values (#{id,jdbcType=BIGINT}, #{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, + values (#{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{selectType,jdbcType=INTEGER}, #{inputType,jdbcType=INTEGER}, #{inputList,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{filterType,jdbcType=INTEGER}, #{searchType,jdbcType=INTEGER}, #{relatedStatus,jdbcType=INTEGER}, #{handAddStatus,jdbcType=INTEGER}, #{type,jdbcType=INTEGER} ) - + SELECT LAST_INSERT_ID() insert into pms_product_attribute - id, product_attribute_category_id, @@ -164,7 +163,6 @@ - #{id,jdbcType=BIGINT}, #{productAttributeCategoryId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeValueMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeValueMapper.xml index 2eff1c4..e9bbd26 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeValueMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeValueMapper.xml @@ -99,21 +99,20 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product_attribute_value (id, pms_product_id, pms_product_attribute_id, + insert into pms_product_attribute_value (pms_product_id, pms_product_attribute_id, value) - values (#{id,jdbcType=BIGINT}, #{pmsProductId,jdbcType=BIGINT}, #{pmsProductAttributeId,jdbcType=BIGINT}, + values (#{pmsProductId,jdbcType=BIGINT}, #{pmsProductAttributeId,jdbcType=BIGINT}, #{value,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into pms_product_attribute_value - id, pms_product_id, @@ -125,7 +124,6 @@ - #{id,jdbcType=BIGINT}, #{pmsProductId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.xml index a0882f8..b7238f7 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.xml @@ -98,21 +98,20 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product_category_attribute_relation (id, product_category_id, product_attribute_id + insert into pms_product_category_attribute_relation (product_category_id, product_attribute_id ) - values (#{id,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{productAttributeId,jdbcType=BIGINT} + values (#{productCategoryId,jdbcType=BIGINT}, #{productAttributeId,jdbcType=BIGINT} ) - + SELECT LAST_INSERT_ID() insert into pms_product_category_attribute_relation - id, product_category_id, @@ -121,7 +120,6 @@ - #{id,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryMapper.xml index 24bf27b..158a2f3 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryMapper.xml @@ -131,27 +131,24 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product_category (id, parent_id, name, - level, product_count, product_unit, - nav_status, show_status, sort, - icon, keywords, description - ) - values (#{id,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, - #{level,jdbcType=INTEGER}, #{productCount,jdbcType=INTEGER}, #{productUnit,jdbcType=VARCHAR}, - #{navStatus,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, - #{icon,jdbcType=VARCHAR}, #{keywords,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR} - ) + insert into pms_product_category (parent_id, name, level, + product_count, product_unit, nav_status, + show_status, sort, icon, + keywords, description) + values (#{parentId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER}, + #{productCount,jdbcType=INTEGER}, #{productUnit,jdbcType=VARCHAR}, #{navStatus,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR}, + #{keywords,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR}) - + SELECT LAST_INSERT_ID() insert into pms_product_category - id, parent_id, @@ -187,7 +184,6 @@ - #{id,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductFullReductionMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductFullReductionMapper.xml index efe609e..c3d3fc8 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductFullReductionMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductFullReductionMapper.xml @@ -99,21 +99,20 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product_full_reduction (id, product_id, full_price, - reduce_price) - values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}, #{fullPrice,jdbcType=DECIMAL}, - #{reducePrice,jdbcType=DECIMAL}) + insert into pms_product_full_reduction (product_id, full_price, reduce_price + ) + values (#{productId,jdbcType=BIGINT}, #{fullPrice,jdbcType=DECIMAL}, #{reducePrice,jdbcType=DECIMAL} + ) - + SELECT LAST_INSERT_ID() insert into pms_product_full_reduction - id, product_id, @@ -125,7 +124,6 @@ - #{id,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductLadderMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductLadderMapper.xml index b7ca22c..f384098 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductLadderMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductLadderMapper.xml @@ -100,21 +100,20 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product_ladder (id, product_id, count, - discount, price) - values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{count,jdbcType=INTEGER}, - #{discount,jdbcType=DECIMAL}, #{price,jdbcType=DECIMAL}) + insert into pms_product_ladder (product_id, count, discount, + price) + values (#{productId,jdbcType=BIGINT}, #{count,jdbcType=INTEGER}, #{discount,jdbcType=DECIMAL}, + #{price,jdbcType=DECIMAL}) - + SELECT LAST_INSERT_ID() insert into pms_product_ladder - id, product_id, @@ -129,7 +128,6 @@ - #{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductMapper.xml index 9db7e7d..6e7e7a6 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductMapper.xml @@ -167,49 +167,48 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product (id, brand_id, product_category_id, - feight_template_id, product_attribute_category_id, - flash_promotion_id, name, pic, - product_sn, delete_status, publish_status, - new_status, recommand_status, verify_status, - sort, sale, price, - promotion_price, gift_point, use_point_limit, - sub_title, original_price, stock, - low_stock, unit, weight, - preview_status, service_ids, keywords, - note, album_pics, detail_title, - flash_promotion_price, flash_promotion_count, - flash_promotion_sort, promotion_start_time, - promotion_end_time, promotion_per_limit, - promotion_type, description, detail_desc, - detail_html, detail_mobile_html) - values (#{id,jdbcType=BIGINT}, #{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, - #{feightTemplateId,jdbcType=BIGINT}, #{productAttributeCategoryId,jdbcType=BIGINT}, - #{flashPromotionId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, - #{productSn,jdbcType=VARCHAR}, #{deleteStatus,jdbcType=INTEGER}, #{publishStatus,jdbcType=INTEGER}, - #{newStatus,jdbcType=INTEGER}, #{recommandStatus,jdbcType=INTEGER}, #{verifyStatus,jdbcType=INTEGER}, - #{sort,jdbcType=INTEGER}, #{sale,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, - #{promotionPrice,jdbcType=DECIMAL}, #{giftPoint,jdbcType=INTEGER}, #{usePointLimit,jdbcType=INTEGER}, - #{subTitle,jdbcType=VARCHAR}, #{originalPrice,jdbcType=DECIMAL}, #{stock,jdbcType=INTEGER}, - #{lowStock,jdbcType=INTEGER}, #{unit,jdbcType=VARCHAR}, #{weight,jdbcType=DECIMAL}, - #{previewStatus,jdbcType=INTEGER}, #{serviceIds,jdbcType=VARCHAR}, #{keywords,jdbcType=VARCHAR}, - #{note,jdbcType=VARCHAR}, #{albumPics,jdbcType=VARCHAR}, #{detailTitle,jdbcType=VARCHAR}, - #{flashPromotionPrice,jdbcType=DECIMAL}, #{flashPromotionCount,jdbcType=INTEGER}, - #{flashPromotionSort,jdbcType=INTEGER}, #{promotionStartTime,jdbcType=TIMESTAMP}, - #{promotionEndTime,jdbcType=TIMESTAMP}, #{promotionPerLimit,jdbcType=INTEGER}, - #{promotionType,jdbcType=INTEGER}, #{description,jdbcType=LONGVARCHAR}, #{detailDesc,jdbcType=LONGVARCHAR}, - #{detailHtml,jdbcType=LONGVARCHAR}, #{detailMobileHtml,jdbcType=LONGVARCHAR}) + insert into pms_product (brand_id, product_category_id, feight_template_id, + product_attribute_category_id, flash_promotion_id, + name, pic, product_sn, + delete_status, publish_status, new_status, + recommand_status, verify_status, sort, + sale, price, promotion_price, + gift_point, use_point_limit, sub_title, + original_price, stock, low_stock, + unit, weight, preview_status, + service_ids, keywords, note, + album_pics, detail_title, flash_promotion_price, + flash_promotion_count, flash_promotion_sort, + promotion_start_time, promotion_end_time, + promotion_per_limit, promotion_type, description, + detail_desc, detail_html, detail_mobile_html + ) + values (#{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT}, + #{productAttributeCategoryId,jdbcType=BIGINT}, #{flashPromotionId,jdbcType=INTEGER}, + #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR}, + #{deleteStatus,jdbcType=INTEGER}, #{publishStatus,jdbcType=INTEGER}, #{newStatus,jdbcType=INTEGER}, + #{recommandStatus,jdbcType=INTEGER}, #{verifyStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, + #{sale,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, #{promotionPrice,jdbcType=DECIMAL}, + #{giftPoint,jdbcType=INTEGER}, #{usePointLimit,jdbcType=INTEGER}, #{subTitle,jdbcType=VARCHAR}, + #{originalPrice,jdbcType=DECIMAL}, #{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, + #{unit,jdbcType=VARCHAR}, #{weight,jdbcType=DECIMAL}, #{previewStatus,jdbcType=INTEGER}, + #{serviceIds,jdbcType=VARCHAR}, #{keywords,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, + #{albumPics,jdbcType=VARCHAR}, #{detailTitle,jdbcType=VARCHAR}, #{flashPromotionPrice,jdbcType=DECIMAL}, + #{flashPromotionCount,jdbcType=INTEGER}, #{flashPromotionSort,jdbcType=INTEGER}, + #{promotionStartTime,jdbcType=TIMESTAMP}, #{promotionEndTime,jdbcType=TIMESTAMP}, + #{promotionPerLimit,jdbcType=INTEGER}, #{promotionType,jdbcType=INTEGER}, #{description,jdbcType=LONGVARCHAR}, + #{detailDesc,jdbcType=LONGVARCHAR}, #{detailHtml,jdbcType=LONGVARCHAR}, #{detailMobileHtml,jdbcType=LONGVARCHAR} + ) - + SELECT LAST_INSERT_ID() insert into pms_product - id, brand_id, @@ -338,7 +337,6 @@ - #{id,jdbcType=BIGINT}, #{brandId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductOperateLogMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductOperateLogMapper.xml index 3859cc7..0e29be1 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductOperateLogMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductOperateLogMapper.xml @@ -108,27 +108,24 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product_operate_log (id, product_id, price_old, - price_new, sale_price_old, sale_price_new, - gift_point_old, gift_point_new, use_point_limit_old, - use_point_limit_new, operate_man, create_time - ) - values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{priceOld,jdbcType=DECIMAL}, - #{priceNew,jdbcType=DECIMAL}, #{salePriceOld,jdbcType=DECIMAL}, #{salePriceNew,jdbcType=DECIMAL}, - #{giftPointOld,jdbcType=INTEGER}, #{giftPointNew,jdbcType=INTEGER}, #{usePointLimitOld,jdbcType=INTEGER}, - #{usePointLimitNew,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP} - ) + insert into pms_product_operate_log (product_id, price_old, price_new, + sale_price_old, sale_price_new, gift_point_old, + gift_point_new, use_point_limit_old, use_point_limit_new, + operate_man, create_time) + values (#{productId,jdbcType=BIGINT}, #{priceOld,jdbcType=DECIMAL}, #{priceNew,jdbcType=DECIMAL}, + #{salePriceOld,jdbcType=DECIMAL}, #{salePriceNew,jdbcType=DECIMAL}, #{giftPointOld,jdbcType=INTEGER}, + #{giftPointNew,jdbcType=INTEGER}, #{usePointLimitOld,jdbcType=INTEGER}, #{usePointLimitNew,jdbcType=INTEGER}, + #{operateMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}) - + SELECT LAST_INSERT_ID() insert into pms_product_operate_log - id, product_id, @@ -164,7 +161,6 @@ - #{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductVertifyRecordMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductVertifyRecordMapper.xml index fb98e2c..1639662 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductVertifyRecordMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductVertifyRecordMapper.xml @@ -101,23 +101,20 @@ - + SELECT LAST_INSERT_ID() - insert into pms_product_vertify_record (id, product_id, create_time, - vertify_man, status, detail - ) - values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, - #{vertifyMan,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{detail,jdbcType=VARCHAR} - ) + insert into pms_product_vertify_record (product_id, create_time, vertify_man, + status, detail) + values (#{productId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{vertifyMan,jdbcType=VARCHAR}, + #{status,jdbcType=INTEGER}, #{detail,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into pms_product_vertify_record - id, product_id, @@ -135,7 +132,6 @@ - #{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsSkuStockMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsSkuStockMapper.xml index e36408a..9a9235a 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsSkuStockMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/PmsSkuStockMapper.xml @@ -106,25 +106,24 @@ - + SELECT LAST_INSERT_ID() - insert into pms_sku_stock (id, product_id, sku_code, - price, stock, low_stock, - sp1, sp2, sp3, pic, - sale) - values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{skuCode,jdbcType=VARCHAR}, - #{price,jdbcType=DECIMAL}, #{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, - #{sp1,jdbcType=VARCHAR}, #{sp2,jdbcType=VARCHAR}, #{sp3,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, - #{sale,jdbcType=INTEGER}) + insert into pms_sku_stock (product_id, sku_code, price, + stock, low_stock, sp1, + sp2, sp3, pic, sale + ) + values (#{productId,jdbcType=BIGINT}, #{skuCode,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, + #{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, #{sp1,jdbcType=VARCHAR}, + #{sp2,jdbcType=VARCHAR}, #{sp3,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{sale,jdbcType=INTEGER} + ) - + SELECT LAST_INSERT_ID() insert into pms_sku_stock - id, product_id, @@ -157,7 +156,6 @@ - #{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponHistoryMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponHistoryMapper.xml index c3f5867..0f5e31d 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponHistoryMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponHistoryMapper.xml @@ -106,25 +106,24 @@ - + SELECT LAST_INSERT_ID() - insert into sms_coupon_history (id, coupon_id, member_id, - coupon_code, member_nickname, get_type, - create_time, use_status, use_time, - order_id) - values (#{id,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, - #{couponCode,jdbcType=VARCHAR}, #{memberNickname,jdbcType=VARCHAR}, #{getType,jdbcType=INTEGER}, - #{createTime,jdbcType=TIMESTAMP}, #{useStatus,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, - #{orderId,jdbcType=CHAR}) + insert into sms_coupon_history (coupon_id, member_id, coupon_code, + member_nickname, get_type, create_time, + use_status, use_time, order_id + ) + values (#{couponId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{couponCode,jdbcType=VARCHAR}, + #{memberNickname,jdbcType=VARCHAR}, #{getType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, + #{useStatus,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, #{orderId,jdbcType=CHAR} + ) - + SELECT LAST_INSERT_ID() insert into sms_coupon_history - id, coupon_id, @@ -154,7 +153,6 @@ - #{id,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponMapper.xml index e2dd18b..45891cc 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponMapper.xml @@ -113,29 +113,28 @@ - + SELECT LAST_INSERT_ID() - insert into sms_coupon (id, type, name, - platform, count, amount, - per_limit, min_point, start_time, - end_time, use_type, note, - publish_count, use_count, enable_time, - code, member_level) - values (#{id,jdbcType=BIGINT}, #{type,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, - #{platform,jdbcType=VARCHAR}, #{count,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, - #{perLimit,jdbcType=INTEGER}, #{minPoint,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP}, - #{endTime,jdbcType=TIMESTAMP}, #{useType,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}, - #{publishCount,jdbcType=INTEGER}, #{useCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP}, - #{code,jdbcType=VARCHAR}, #{memberLevel,jdbcType=INTEGER}) + insert into sms_coupon (type, name, platform, + count, amount, per_limit, + min_point, start_time, end_time, + use_type, note, publish_count, + use_count, enable_time, code, + member_level) + values (#{type,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR}, + #{count,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, #{perLimit,jdbcType=INTEGER}, + #{minPoint,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, + #{useType,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}, #{publishCount,jdbcType=INTEGER}, + #{useCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP}, #{code,jdbcType=VARCHAR}, + #{memberLevel,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into sms_coupon - id, type, @@ -186,7 +185,6 @@ - #{id,jdbcType=BIGINT}, #{type,jdbcType=INTEGER}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.xml index 29fe447..63fa5d2 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.xml @@ -98,21 +98,18 @@ - + SELECT LAST_INSERT_ID() - insert into sms_coupon_product_category_relation (id, coupon_id, product_category_id - ) - values (#{id,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT} - ) + insert into sms_coupon_product_category_relation (coupon_id, product_category_id) + values (#{couponId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}) - + SELECT LAST_INSERT_ID() insert into sms_coupon_product_category_relation - id, coupon_id, @@ -121,7 +118,6 @@ - #{id,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductRelationMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductRelationMapper.xml index 10c8bd9..10cf327 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductRelationMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductRelationMapper.xml @@ -98,21 +98,18 @@ - + SELECT LAST_INSERT_ID() - insert into sms_coupon_product_relation (id, coupon_id, product_id - ) - values (#{id,jdbcType=BIGINT}, #{couponId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT} - ) + insert into sms_coupon_product_relation (coupon_id, product_id) + values (#{couponId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}) - + SELECT LAST_INSERT_ID() insert into sms_coupon_product_relation - id, coupon_id, @@ -121,7 +118,6 @@ - #{id,jdbcType=BIGINT}, #{couponId,jdbcType=INTEGER}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionLogMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionLogMapper.xml index acd228c..802078e 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionLogMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionLogMapper.xml @@ -102,23 +102,22 @@ - + SELECT LAST_INSERT_ID() - insert into sms_flash_promotion_log (id, member_id, product_id, - member_phone, product_name, subscribe_time, - send_time) - values (#{id,jdbcType=INTEGER}, #{memberId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}, - #{memberPhone,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=TIMESTAMP}, - #{sendTime,jdbcType=TIMESTAMP}) + insert into sms_flash_promotion_log (member_id, product_id, member_phone, + product_name, subscribe_time, send_time + ) + values (#{memberId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}, #{memberPhone,jdbcType=VARCHAR}, + #{productName,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=TIMESTAMP}, #{sendTime,jdbcType=TIMESTAMP} + ) - + SELECT LAST_INSERT_ID() insert into sms_flash_promotion_log - id, member_id, @@ -139,7 +138,6 @@ - #{id,jdbcType=INTEGER}, #{memberId,jdbcType=INTEGER}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionMapper.xml index 13cf427..77043ca 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionMapper.xml @@ -101,23 +101,20 @@ - + SELECT LAST_INSERT_ID() - insert into sms_flash_promotion (id, title, start_time, - end_time, status, time_name - ) - values (#{id,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, - #{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{timeName,jdbcType=VARCHAR} - ) + insert into sms_flash_promotion (title, start_time, end_time, + status, time_name) + values (#{title,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, + #{status,jdbcType=INTEGER}, #{timeName,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into sms_flash_promotion - id, title, @@ -135,7 +132,6 @@ - #{id,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeAdvertiseMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeAdvertiseMapper.xml index 38b36b0..c018209 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeAdvertiseMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeAdvertiseMapper.xml @@ -107,25 +107,24 @@ - + SELECT LAST_INSERT_ID() - insert into sms_home_advertise (id, name, type, - pic, start_time, end_time, - status, click_count, order_count, - url, note) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, - #{pic,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, - #{status,jdbcType=INTEGER}, #{clickCount,jdbcType=INTEGER}, #{orderCount,jdbcType=INTEGER}, - #{url,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}) + insert into sms_home_advertise (name, type, pic, + start_time, end_time, status, + click_count, order_count, url, + note) + values (#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{pic,jdbcType=VARCHAR}, + #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, + #{clickCount,jdbcType=INTEGER}, #{orderCount,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR}, + #{note,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into sms_home_advertise - id, name, @@ -158,7 +157,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeBrandMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeBrandMapper.xml index 81b352d..2e84721 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeBrandMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeBrandMapper.xml @@ -100,21 +100,20 @@ - + SELECT LAST_INSERT_ID() - insert into sms_home_brand (id, brand_id, brand_name, - recommend_status, sort) - values (#{id,jdbcType=BIGINT}, #{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR}, - #{recommendStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) + insert into sms_home_brand (brand_id, brand_name, recommend_status, + sort) + values (#{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into sms_home_brand - id, brand_id, @@ -129,7 +128,6 @@ - #{id,jdbcType=BIGINT}, #{brandId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeNewProductMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeNewProductMapper.xml index 9f9bdec..52553dc 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeNewProductMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeNewProductMapper.xml @@ -100,21 +100,20 @@ - + SELECT LAST_INSERT_ID() - insert into sms_home_new_product (id, product_id, product_name, - recommend_status, sort) - values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, - #{recommendStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) + insert into sms_home_new_product (product_id, product_name, recommend_status, + sort) + values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into sms_home_new_product - id, product_id, @@ -129,7 +128,6 @@ - #{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendProductMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendProductMapper.xml index d1a574c..eef4bd0 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendProductMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendProductMapper.xml @@ -100,21 +100,20 @@ - + SELECT LAST_INSERT_ID() - insert into sms_home_recommend_product (id, product_id, product_name, - recommend_status, sort) - values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, - #{recommendStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) + insert into sms_home_recommend_product (product_id, product_name, recommend_status, + sort) + values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into sms_home_recommend_product - id, product_id, @@ -129,7 +128,6 @@ - #{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.xml index 744f667..c5b698f 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.xml @@ -100,21 +100,20 @@ - + SELECT LAST_INSERT_ID() - insert into sms_home_recommend_subject (id, subject_id, subject_name, - recommend_status, sort) - values (#{id,jdbcType=BIGINT}, #{subjectId,jdbcType=BIGINT}, #{subjectName,jdbcType=VARCHAR}, - #{recommendStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) + insert into sms_home_recommend_subject (subject_id, subject_name, recommend_status, + sort) + values (#{subjectId,jdbcType=BIGINT}, #{subjectName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into sms_home_recommend_subject - id, subject_id, @@ -129,7 +128,6 @@ - #{id,jdbcType=BIGINT}, #{subjectId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminLoginLogMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminLoginLogMapper.xml index befc1fe..c429695 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminLoginLogMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminLoginLogMapper.xml @@ -101,23 +101,20 @@ - + SELECT LAST_INSERT_ID() - insert into ums_admin_login_log (id, admin_id, create_time, - ip, address, user_agent - ) - values (#{id,jdbcType=BIGINT}, #{adminId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, - #{ip,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR} - ) + insert into ums_admin_login_log (admin_id, create_time, ip, + address, user_agent) + values (#{adminId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR}, + #{address,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into ums_admin_login_log - id, admin_id, @@ -135,7 +132,6 @@ - #{id,jdbcType=BIGINT}, #{adminId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminMapper.xml index ae7577d..4e3aa74 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminMapper.xml @@ -100,21 +100,20 @@ - + SELECT LAST_INSERT_ID() - insert into ums_admin (id, username, password, - icon, email) - values (#{id,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, - #{icon,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}) + insert into ums_admin (username, password, icon, + email) + values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, + #{email,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into ums_admin - id, username, @@ -129,7 +128,6 @@ - #{id,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.xml index d42f149..88b64e8 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.xml @@ -104,23 +104,22 @@ - + SELECT LAST_INSERT_ID() - insert into ums_growth_change_history (id, member_id, create_time, - change_type, change_count, operate_man, - operate_note, source_type) - values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, - #{changeType,jdbcType=INTEGER}, #{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, - #{operateNote,jdbcType=VARCHAR}, #{sourceType,jdbcType=INTEGER}) + insert into ums_growth_change_history (member_id, create_time, change_type, + change_count, operate_man, operate_note, + source_type) + values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{changeType,jdbcType=INTEGER}, + #{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, #{operateNote,jdbcType=VARCHAR}, + #{sourceType,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into ums_growth_change_history - id, member_id, @@ -144,7 +143,6 @@ - #{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.xml index fd66380..e3c5b3b 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.xml @@ -104,23 +104,22 @@ - + SELECT LAST_INSERT_ID() - insert into ums_integration_change_history (id, member_id, create_time, - change_type, change_count, operate_man, - operate_note, source_type) - values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, - #{changeType,jdbcType=INTEGER}, #{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, - #{operateNote,jdbcType=VARCHAR}, #{sourceType,jdbcType=INTEGER}) + insert into ums_integration_change_history (member_id, create_time, change_type, + change_count, operate_man, operate_note, + source_type) + values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{changeType,jdbcType=INTEGER}, + #{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, #{operateNote,jdbcType=VARCHAR}, + #{sourceType,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into ums_integration_change_history - id, member_id, @@ -144,7 +143,6 @@ - #{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntergrationConsumeSettingMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntergrationConsumeSettingMapper.xml index b6e1eef..02cd39e 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntergrationConsumeSettingMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntergrationConsumeSettingMapper.xml @@ -100,21 +100,20 @@ - + SELECT LAST_INSERT_ID() - insert into ums_intergration_consume_setting (id, deduction_per_amount, max_percent_per_order, + insert into ums_intergration_consume_setting (deduction_per_amount, max_percent_per_order, use_unit, coupon_status) - values (#{id,jdbcType=BIGINT}, #{deductionPerAmount,jdbcType=INTEGER}, #{maxPercentPerOrder,jdbcType=INTEGER}, + values (#{deductionPerAmount,jdbcType=INTEGER}, #{maxPercentPerOrder,jdbcType=INTEGER}, #{useUnit,jdbcType=INTEGER}, #{couponStatus,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into ums_intergration_consume_setting - id, deduction_per_amount, @@ -129,7 +128,6 @@ - #{id,jdbcType=BIGINT}, #{deductionPerAmount,jdbcType=INTEGER}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLevelMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLevelMapper.xml index ed3ace7..3b11b61 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLevelMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLevelMapper.xml @@ -110,29 +110,26 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member_level (id, name, growth_point, - default_status, free_freight_point, comment_growth_point, - priviledge_free_freight, priviledge_sign_in, - priviledge_comment, priviledge_promotion, + insert into ums_member_level (name, growth_point, default_status, + free_freight_point, comment_growth_point, priviledge_free_freight, + priviledge_sign_in, priviledge_comment, priviledge_promotion, priviledge_member_price, priviledge_birthday, note) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{growthPoint,jdbcType=INTEGER}, - #{defaultStatus,jdbcType=INTEGER}, #{freeFreightPoint,jdbcType=DECIMAL}, #{commentGrowthPoint,jdbcType=INTEGER}, - #{priviledgeFreeFreight,jdbcType=INTEGER}, #{priviledgeSignIn,jdbcType=INTEGER}, - #{priviledgeComment,jdbcType=INTEGER}, #{priviledgePromotion,jdbcType=INTEGER}, + values (#{name,jdbcType=VARCHAR}, #{growthPoint,jdbcType=INTEGER}, #{defaultStatus,jdbcType=INTEGER}, + #{freeFreightPoint,jdbcType=DECIMAL}, #{commentGrowthPoint,jdbcType=INTEGER}, #{priviledgeFreeFreight,jdbcType=INTEGER}, + #{priviledgeSignIn,jdbcType=INTEGER}, #{priviledgeComment,jdbcType=INTEGER}, #{priviledgePromotion,jdbcType=INTEGER}, #{priviledgeMemberPrice,jdbcType=INTEGER}, #{priviledgeBirthday,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() insert into ums_member_level - id, name, @@ -171,7 +168,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLoginLogMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLoginLogMapper.xml index 13ab8f1..b8ee2a2 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLoginLogMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLoginLogMapper.xml @@ -102,23 +102,22 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member_login_log (id, member_id, create_time, - ip, city, login_type, - province) - values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, - #{ip,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{loginType,jdbcType=INTEGER}, - #{province,jdbcType=VARCHAR}) + insert into ums_member_login_log (member_id, create_time, ip, + city, login_type, province + ) + values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR}, + #{city,jdbcType=VARCHAR}, #{loginType,jdbcType=INTEGER}, #{province,jdbcType=VARCHAR} + ) - + SELECT LAST_INSERT_ID() insert into ums_member_login_log - id, member_id, @@ -139,7 +138,6 @@ - #{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml index 9d2b7de..ef4aeaa 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml @@ -116,31 +116,28 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member (id, member_level_id, username, - password, nickname, phone, - status, create_time, icon, - gender, birthday, city, - job, personalized_signature, source_type, - integration, growth, luckey_count, - history_integration) - values (#{id,jdbcType=BIGINT}, #{memberLevelId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, - #{password,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{icon,jdbcType=VARCHAR}, - #{gender,jdbcType=INTEGER}, #{birthday,jdbcType=DATE}, #{city,jdbcType=VARCHAR}, - #{job,jdbcType=VARCHAR}, #{personalizedSignature,jdbcType=VARCHAR}, #{sourceType,jdbcType=INTEGER}, - #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER}, #{luckeyCount,jdbcType=INTEGER}, - #{historyIntegration,jdbcType=INTEGER}) + insert into ums_member (member_level_id, username, password, + nickname, phone, status, + create_time, icon, gender, + birthday, city, job, personalized_signature, + source_type, integration, growth, + luckey_count, history_integration) + values (#{memberLevelId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, + #{nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, + #{createTime,jdbcType=TIMESTAMP}, #{icon,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER}, + #{birthday,jdbcType=DATE}, #{city,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{personalizedSignature,jdbcType=VARCHAR}, + #{sourceType,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER}, + #{luckeyCount,jdbcType=INTEGER}, #{historyIntegration,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into ums_member - id, member_level_id, @@ -197,7 +194,6 @@ - #{id,jdbcType=BIGINT}, #{memberLevelId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.xml index 348add3..24c00b1 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.xml @@ -98,21 +98,18 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member_member_tag_relation (id, member_id, tag_id - ) - values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT} - ) + insert into ums_member_member_tag_relation (member_id, tag_id) + values (#{memberId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT}) - + SELECT LAST_INSERT_ID() insert into ums_member_member_tag_relation - id, member_id, @@ -121,7 +118,6 @@ - #{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.xml index 38eed87..8296ec2 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.xml @@ -98,21 +98,18 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member_product_category_relation (id, member_id, product_category_id - ) - values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT} - ) + insert into ums_member_product_category_relation (member_id, product_category_id) + values (#{memberId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}) - + SELECT LAST_INSERT_ID() insert into ums_member_product_category_relation - id, member_id, @@ -121,7 +118,6 @@ - #{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.xml index d478801..c09bd63 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.xml @@ -102,23 +102,22 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member_receive_address (id, member_id, name, - phone_number, address, post_code, - default_status) - values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, - #{phoneNumber,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{postCode,jdbcType=VARCHAR}, - #{defaultStatus,jdbcType=INTEGER}) + insert into ums_member_receive_address (member_id, name, phone_number, + address, post_code, default_status + ) + values (#{memberId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR}, + #{address,jdbcType=VARCHAR}, #{postCode,jdbcType=VARCHAR}, #{defaultStatus,jdbcType=INTEGER} + ) - + SELECT LAST_INSERT_ID() insert into ums_member_receive_address - id, member_id, @@ -139,7 +138,6 @@ - #{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberRuleSettingMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberRuleSettingMapper.xml index 48bd16f..9821109 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberRuleSettingMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberRuleSettingMapper.xml @@ -103,23 +103,22 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member_rule_setting (id, continue_sign_day, continue_sign_point, + insert into ums_member_rule_setting (continue_sign_day, continue_sign_point, consume_per_point, low_order_amount, max_point_per_order, type) - values (#{id,jdbcType=BIGINT}, #{continueSignDay,jdbcType=INTEGER}, #{continueSignPoint,jdbcType=INTEGER}, + values (#{continueSignDay,jdbcType=INTEGER}, #{continueSignPoint,jdbcType=INTEGER}, #{consumePerPoint,jdbcType=DECIMAL}, #{lowOrderAmount,jdbcType=DECIMAL}, #{maxPointPerOrder,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into ums_member_rule_setting - id, continue_sign_day, @@ -140,7 +139,6 @@ - #{id,jdbcType=BIGINT}, #{continueSignDay,jdbcType=INTEGER}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.xml index bcae430..e2aab41 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.xml @@ -113,29 +113,28 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member_statistics_info (id, member_id, consume_amount, - order_count, coupon_count, comment_count, - return_order_count, login_count, attend_count, - fans_count, collect_product_count, collect_subject_count, + insert into ums_member_statistics_info (member_id, consume_amount, order_count, + coupon_count, comment_count, return_order_count, + login_count, attend_count, fans_count, + collect_product_count, collect_subject_count, collect_topic_count, collect_comment_count, invite_friend_count, recent_order_time) - values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{consumeAmount,jdbcType=DECIMAL}, - #{orderCount,jdbcType=INTEGER}, #{couponCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER}, - #{returnOrderCount,jdbcType=INTEGER}, #{loginCount,jdbcType=INTEGER}, #{attendCount,jdbcType=INTEGER}, - #{fansCount,jdbcType=INTEGER}, #{collectProductCount,jdbcType=INTEGER}, #{collectSubjectCount,jdbcType=INTEGER}, + values (#{memberId,jdbcType=BIGINT}, #{consumeAmount,jdbcType=DECIMAL}, #{orderCount,jdbcType=INTEGER}, + #{couponCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER}, #{returnOrderCount,jdbcType=INTEGER}, + #{loginCount,jdbcType=INTEGER}, #{attendCount,jdbcType=INTEGER}, #{fansCount,jdbcType=INTEGER}, + #{collectProductCount,jdbcType=INTEGER}, #{collectSubjectCount,jdbcType=INTEGER}, #{collectTopicCount,jdbcType=INTEGER}, #{collectCommentCount,jdbcType=INTEGER}, #{inviteFriendCount,jdbcType=INTEGER}, #{recentOrderTime,jdbcType=TIMESTAMP}) - + SELECT LAST_INSERT_ID() insert into ums_member_statistics_info - id, member_id, @@ -183,7 +182,6 @@ - #{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTagMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTagMapper.xml index 3827332..08ec6ff 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTagMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTagMapper.xml @@ -99,21 +99,20 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member_tag (id, name, finish_order_count, - finish_order_amount) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{finishOrderCount,jdbcType=INTEGER}, - #{finishOrderAmount,jdbcType=DECIMAL}) + insert into ums_member_tag (name, finish_order_count, finish_order_amount + ) + values (#{name,jdbcType=VARCHAR}, #{finishOrderCount,jdbcType=INTEGER}, #{finishOrderAmount,jdbcType=DECIMAL} + ) - + SELECT LAST_INSERT_ID() insert into ums_member_tag - id, name, @@ -125,7 +124,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTaskMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTaskMapper.xml index 74269e1..9a5783d 100644 --- a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTaskMapper.xml +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTaskMapper.xml @@ -100,21 +100,20 @@ - + SELECT LAST_INSERT_ID() - insert into ums_member_task (id, name, growth, - intergration, type) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{growth,jdbcType=INTEGER}, - #{intergration,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}) + insert into ums_member_task (name, growth, intergration, + type) + values (#{name,jdbcType=VARCHAR}, #{growth,jdbcType=INTEGER}, #{intergration,jdbcType=INTEGER}, + #{type,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() insert into ums_member_task - id, name, @@ -129,7 +128,6 @@ - #{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, diff --git a/mall-mbg/src/main/resources/generatorConfig.xml b/mall-mbg/src/main/resources/generatorConfig.xml index 71a5ce5..c6a3463 100644 --- a/mall-mbg/src/main/resources/generatorConfig.xml +++ b/mall-mbg/src/main/resources/generatorConfig.xml @@ -34,7 +34,7 @@ targetProject="mall-mbg\src\main\java"/> - +
\ No newline at end of file