diff --git a/ant-design-vue-jeecg/src/config/router.config.js b/ant-design-vue-jeecg/src/config/router.config.js index 3b149bb7..6f23714e 100644 --- a/ant-design-vue-jeecg/src/config/router.config.js +++ b/ant-design-vue-jeecg/src/config/router.config.js @@ -652,4 +652,12 @@ export const constantRouterMap = [ path: '/shopping/order',//这里是你需要设置新窗口打开的页面的路径s component: () => import('@/views/shopping/pages/orderDetails'), }, + { + path: '/shopping/chengyi',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/pages/chengyi'), + }, + { + path: '/shopping/news',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/pages/news'), + }, ] diff --git a/ant-design-vue-jeecg/src/permission.js b/ant-design-vue-jeecg/src/permission.js index 11fee8c4..84cfc773 100644 --- a/ant-design-vue-jeecg/src/permission.js +++ b/ant-design-vue-jeecg/src/permission.js @@ -19,7 +19,7 @@ const whiteList = ['/user/login','/userequip/loginequip','/user/sgin', '/sckz/sckzzxt','/sbjm/sbjmsjkzxt','/jxgl/jxglsjkzxt','/szls/szlssjkzxt','/jxdsj/jxdsjzszxt', '/ybgl/ybglsjkzxt','/mflgl/mflglsjkzxt','/ddcl/ddclzxt','/ddgl/ddglzxt','/dyhsc/dyhsczxt','/znyy/znyysczhgkzzrj', '/znyyjc/znyycjrjxt','/gdgz/gdgzzxt','/shopping/shopHome','/shopping/clothType','/shopping/sirendingzhi', - '/shopping/ClothDetail','/shopping/person','/shopping/person','/shopping/order'] // no redirect whitelist + '/shopping/ClothDetail','/shopping/person','/shopping/person','/shopping/order','/shopping/chengyi','/shopping/news'] // no redirect whitelist router.beforeEach((to, from, next) => { NProgress.start() // start progress bar diff --git a/ant-design-vue-jeecg/src/views/collecttype/admin/CollectTypeList.vue b/ant-design-vue-jeecg/src/views/collecttype/admin/CollectTypeList.vue index 730ad332..e34d3b5c 100644 --- a/ant-design-vue-jeecg/src/views/collecttype/admin/CollectTypeList.vue +++ b/ant-design-vue-jeecg/src/views/collecttype/admin/CollectTypeList.vue @@ -84,19 +84,20 @@ 编辑 - + 添加下级 - - + + 删除 - + diff --git a/ant-design-vue-jeecg/src/views/customercollectgoods/admin/modules/CustomercollectgoodsForm.vue b/ant-design-vue-jeecg/src/views/customercollectgoods/admin/modules/CustomercollectgoodsForm.vue index 71068dc8..856829d8 100644 --- a/ant-design-vue-jeecg/src/views/customercollectgoods/admin/modules/CustomercollectgoodsForm.vue +++ b/ant-design-vue-jeecg/src/views/customercollectgoods/admin/modules/CustomercollectgoodsForm.vue @@ -3,7 +3,7 @@ - + - + - + @@ -76,6 +76,10 @@ }, confirmLoading: false, validatorRules: { + goodsname: [ + { required: true, message: '请输入商品!'}, + ], + }, url: { add: "/customercollectgoods/customercollectgoods/add", @@ -127,7 +131,7 @@ that.confirmLoading = false; }) } - + }) }, popupCallback(value,row){ diff --git a/ant-design-vue-jeecg/src/views/customershoppingcart/admin/modules/CustomerShoppingCartForm.vue b/ant-design-vue-jeecg/src/views/customershoppingcart/admin/modules/CustomerShoppingCartForm.vue index 9e8d055d..2d022f26 100644 --- a/ant-design-vue-jeecg/src/views/customershoppingcart/admin/modules/CustomerShoppingCartForm.vue +++ b/ant-design-vue-jeecg/src/views/customershoppingcart/admin/modules/CustomerShoppingCartForm.vue @@ -21,7 +21,7 @@ /> - + @@ -41,17 +41,17 @@ - + - + - + @@ -61,12 +61,12 @@ - + - + @@ -74,6 +74,7 @@ + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/maker/ZyMakerList.vue b/ant-design-vue-jeecg/src/views/maker/ZyMakerList.vue index 69932155..d0bc67d8 100644 --- a/ant-design-vue-jeecg/src/views/maker/ZyMakerList.vue +++ b/ant-design-vue-jeecg/src/views/maker/ZyMakerList.vue @@ -214,9 +214,15 @@ export default { }else{ this.$message.warning(res.message); } + this.loading = true; + setTimeout(()=>{ + this.loading = false; + }, 2000); // this.$emit('valueChange',1) // this.close() }) + + }, initDictConfig() { }, diff --git a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.css b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.css index 3439648d..a944f9ee 100644 --- a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.css +++ b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 3854415 */ - src: url('iconfont.woff2?t=1673860163583') format('woff2'), - url('iconfont.woff?t=1673860163583') format('woff'), - url('iconfont.ttf?t=1673860163583') format('truetype'); + src: url('iconfont.woff2?t=1675756284306') format('woff2'), + url('iconfont.woff?t=1675756284306') format('woff'), + url('iconfont.ttf?t=1675756284306') format('truetype'); } .iconfont { @@ -13,6 +13,26 @@ -moz-osx-font-smoothing: grayscale; } +.icon-biaoqian1:before { + content: "\e60e"; +} + +.icon-xizhuang1:before { + content: "\e607"; +} + +.icon-dingzhi:before { + content: "\e651"; +} + +.icon-bijijilu:before { + content: "\e6f3"; +} + +.icon-jilu:before { + content: "\e69f"; +} + .icon-weishoucang:before { content: "\e603"; } diff --git a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.js b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.js index 8490ccc6..ecb3dfc4 100644 --- a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.js +++ b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_3854415='',function(c){var t=(t=document.getElementsByTagName("script"))[t.length-1],e=t.getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var i,o,n,l,a,s=function(t,e){e.parentNode.insertBefore(t,e)};if(e&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(t){console&&console.log(t)}}i=function(){var t,e=document.createElement("div");e.innerHTML=c._iconfont_svg_string_3854415,(e=e.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",e=e,(t=document.body).firstChild?s(e,t.firstChild):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),i()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(n=i,l=c.document,a=!1,h(),l.onreadystatechange=function(){"complete"==l.readyState&&(l.onreadystatechange=null,d())})}function d(){a||(a=!0,n())}function h(){try{l.documentElement.doScroll("left")}catch(t){return void setTimeout(h,50)}d()}}(window); \ No newline at end of file +window._iconfont_svg_string_3854415='',function(t){var c=(c=document.getElementsByTagName("script"))[c.length-1],l=c.getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var i,a,e,o,n,h=function(c,l){l.parentNode.insertBefore(c,l)};if(l&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}i=function(){var c,l=document.createElement("div");l.innerHTML=t._iconfont_svg_string_3854415,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(c=document.body).firstChild?h(l,c.firstChild):c.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),i()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(e=i,o=t.document,n=!1,d(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,s())})}function s(){n||(n=!0,e())}function d(){try{o.documentElement.doScroll("left")}catch(c){return void setTimeout(d,50)}s()}}(window); \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.json b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.json index 622d2a89..669c426d 100644 --- a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.json +++ b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.json @@ -5,6 +5,41 @@ "css_prefix_text": "icon-", "description": "", "glyphs": [ + { + "icon_id": "7556872", + "name": "标签", + "font_class": "biaoqian1", + "unicode": "e60e", + "unicode_decimal": 58894 + }, + { + "icon_id": "7767642", + "name": "西装", + "font_class": "xizhuang1", + "unicode": "e607", + "unicode_decimal": 58887 + }, + { + "icon_id": "12975225", + "name": "定制", + "font_class": "dingzhi", + "unicode": "e651", + "unicode_decimal": 58961 + }, + { + "icon_id": "18406367", + "name": "笔记,记录", + "font_class": "bijijilu", + "unicode": "e6f3", + "unicode_decimal": 59123 + }, + { + "icon_id": "20710441", + "name": "记录", + "font_class": "jilu", + "unicode": "e69f", + "unicode_decimal": 59039 + }, { "icon_id": "9526741", "name": "未收藏", diff --git a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.ttf b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.ttf index 45e4eccf..4a1f4656 100644 Binary files a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.ttf and b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.ttf differ diff --git a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff index 6fea7e63..2a17bc46 100644 Binary files a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff and b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff differ diff --git a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff2 b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff2 index 57a48c17..65a934ff 100644 Binary files a/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff2 and b/ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff2 differ diff --git a/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue b/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue index 50b7937d..b18320cb 100644 --- a/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue +++ b/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue @@ -12,10 +12,10 @@ 私人定制 - 成衣推荐 - 关于我们 diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue b/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue new file mode 100644 index 00000000..d880218c --- /dev/null +++ b/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue @@ -0,0 +1,518 @@ + + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue b/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue index 056dae28..cdfad00a 100644 --- a/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue +++ b/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue @@ -13,24 +13,27 @@ 我的账户 我的收藏 地址管理 - + 发票管理 - + Option 1 - + Option 2 - + Option 3 - + Option 4 全部订单 + + 全部订单 + 待支付 @@ -46,7 +49,7 @@ -
+
订单编号:{{item.orderNum}} @@ -91,7 +94,7 @@ data() { return { current: ['mail'], - allOrders:[ + allOrders1:[ { id:1, orderNum:'CN172839729', @@ -119,6 +122,7 @@ total:5912 } ], + allOrders:[], }; }, @@ -127,8 +131,14 @@ console.log(key); }, menuChange(key){ - if(key == daizhifu){ - // this.allOrders.forEach() + this.current.shift() + this.current.push(key.key) + console.log(this.allOrders) + + if(key.key == 'allorders'){ + console.log('----') + this.allOrders = this.allOrders1 + console.log(this.allOrders) } } }, diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/news.vue b/ant-design-vue-jeecg/src/views/shopping/pages/news.vue new file mode 100644 index 00000000..1f9b77ba --- /dev/null +++ b/ant-design-vue-jeecg/src/views/shopping/pages/news.vue @@ -0,0 +1,34 @@ + + + + + + + + + diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/orderDetails.vue b/ant-design-vue-jeecg/src/views/shopping/pages/orderDetails.vue index b35197b3..0c42dc13 100644 --- a/ant-design-vue-jeecg/src/views/shopping/pages/orderDetails.vue +++ b/ant-design-vue-jeecg/src/views/shopping/pages/orderDetails.vue @@ -234,7 +234,7 @@ } .info{ width: 43.33%; - padding-right: 10px; + padding-right: 15px; .headline{ font-weight: 500; } @@ -242,7 +242,7 @@ span{ margin-left: 10px; display: inline-block; - width: 80%; + width: 75%; } } } diff --git a/ant-design-vue-jeecg/src/views/shopping/shopHome.vue b/ant-design-vue-jeecg/src/views/shopping/shopHome.vue index e51da067..720362f6 100644 --- a/ant-design-vue-jeecg/src/views/shopping/shopHome.vue +++ b/ant-design-vue-jeecg/src/views/shopping/shopHome.vue @@ -1,5 +1,5 @@ @@ -805,9 +758,30 @@ .section2 .itemDiv { justify-content: space-around; } - .section2 .itemDiv .item { + .section2 .itemDiv .item a{ flex-direction: column; align-items: center; + justify-content: center; + width: 336px; + height: 336px; + color: #333; + transition: all 0.2s; + } + .section2 .itemDiv .item a i{ + font-size: 100px; + color: #746957; + + } + .section2 .itemDiv .item a:hover i{ + color: #fff; + } + .section2 .itemDiv .item a:hover .title_3,.section2 .itemDiv .item a:hover .title_4{ + color: #746957; + + } + .section2 .itemDiv .item a:hover{ + background: #EEE6D9; + border: 1px dashed #919190; } .section2 .itemDiv .item .title_3 { margin: 20px 0; @@ -843,6 +817,9 @@ } .section3 .itemDiv .item .titleDiv { font-size: 30px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .section3 .itemDiv .item .titleDiv span { margin-left: 10px; @@ -877,7 +854,7 @@ } .section5 .more { margin-bottom: 50px; - margin-top: 50px; + /*margin-top: 50px;*/ } .section5 .tabs >>> .el-tabs__item.is-top { font-size: 26px; @@ -887,6 +864,7 @@ } .section5 .tabs .jz { justify-content: space-between; + flex-wrap: wrap; } .section5 .tabs .jz .item { background-color: #fff; @@ -894,15 +872,20 @@ flex-direction: column; align-items: center; padding-bottom: 30px; + margin-bottom: 30px; } .section5 .tabs .jz .item img { width: 80%; } .section5 .tabs .jz .item p { width: 100%; + box-sizing: border-box; + text-overflow: ellipsis; padding-left: 28px; padding-right: 28px; - box-sizing: border-box; + overflow: hidden; + text-align: left; + white-space: nowrap; } .section5 .tabs .jz .item p .line { margin-left: 8px; @@ -927,4 +910,4 @@ color: rgba(116, 105, 87, 0.6); } /* -----------------------第五部分完成----------------------------------------------------------------------------------------- */ - \ No newline at end of file + diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customershoppingcart/controller/CustomerShoppingCartController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customershoppingcart/controller/CustomerShoppingCartController.java index f7f19a02..3f1a2cbb 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customershoppingcart/controller/CustomerShoppingCartController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customershoppingcart/controller/CustomerShoppingCartController.java @@ -118,9 +118,13 @@ public class CustomerShoppingCartController extends JeecgController add(@RequestBody CustomerShoppingCart customerShoppingCart) { - customerShoppingCart.setZj(customerShoppingCart.getNumber() * customerShoppingCart.getPrice()); - customerShoppingCartService.save(customerShoppingCart); - return Result.OK("添加成功!"); + if(customerShoppingCart.getPrice()==null){ + return Result.error("商品无单价"); + } else { + customerShoppingCart.setZj(customerShoppingCart.getNumber() * customerShoppingCart.getPrice()); + customerShoppingCartService.save(customerShoppingCart); + return Result.OK("添加成功!"); + } } /** diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/controller/ZyMakerController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/controller/ZyMakerController.java index d65a8253..aaec2b25 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/controller/ZyMakerController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/controller/ZyMakerController.java @@ -97,7 +97,10 @@ public class ZyMakerController extends JeecgController @PostMapping(value = "/listMakerAdd") public Result listMakerAdd() { //点击制单 点击后按产品模块分解成制单写入制单表 - zyMakerService.listMakerAdd(); + int distinct = zyMakerService.listMakerAdd(); + if (distinct == 0){ + return Result.error("已成功添加,不用重复添加"); + } //zyMakerService.save(zyMaker); return Result.OK("添加成功!"); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/entity/ZyMaker.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/entity/ZyMaker.java index dbf594e7..75abb538 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/entity/ZyMaker.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/entity/ZyMaker.java @@ -56,6 +56,7 @@ public class ZyMaker implements Serializable { // @ApiModelProperty(value = "所属部门") // private String sysOrgCode; /**制单编号*/ + //制单编号 工单编号(22)+顺序号(2) @Excel(name = "制单编号", width = 15) @ApiModelProperty(value = "制单编号") private String code; diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/service/IZyMakerService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/service/IZyMakerService.java index 36c4c9fd..73a9c2d8 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/service/IZyMakerService.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/service/IZyMakerService.java @@ -14,7 +14,7 @@ import java.util.List; public interface IZyMakerService extends IService { //点击制单 点击后按产品模块分解成制单写入制单表 - void listMakerAdd(); + int listMakerAdd(); List ZyMakerVo(List records); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/service/impl/ZyMakerServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/service/impl/ZyMakerServiceImpl.java index 38479627..77dee4a9 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/service/impl/ZyMakerServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/maker/service/impl/ZyMakerServiceImpl.java @@ -1,6 +1,5 @@ package org.jeecg.modules.maker.service.impl; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import org.jeecg.modules.maker.entity.ZyMaker; import org.jeecg.modules.maker.mapper.ZyMakerMapper; import org.jeecg.modules.maker.service.IZyMakerService; @@ -18,8 +17,8 @@ import org.springframework.util.StringUtils; import javax.annotation.Resource; import java.util.ArrayList; import java.util.Collections; +import java.util.HashSet; import java.util.List; -import java.util.regex.Pattern; import java.util.stream.Collectors; /** @@ -41,18 +40,41 @@ public class ZyMakerServiceImpl extends ServiceImpl impl ////点击制单 点击后按产品模块分解成制单写入制单表 @Override - public void listMakerAdd() { + public int listMakerAdd() { + int distinct = 0; //先拿到所有产品 产品暂定为服装款式里面的数据 List workOrderList = workOrderService.list(); - for (WorkOrder workOrder : workOrderList) { - ZyMaker maker = new ZyMaker(); - //制单编号 工单编号(22)+顺序号(2) - maker.setCode(getMakerCode(workOrder.getProductCode())); - //工单编号 - maker.setWorkerCode(workOrder.getProductCode()); - this.save(maker); + + List makerList = this.list(); + List workOrderCollect = workOrderList.stream().map(WorkOrder::getProductCode).collect(Collectors.toList()); + //List collect = makerList.stream().map(ZyMaker::getWorkerCode).collect(Collectors.toList()); + //HashSet codeHashSet = new HashSet<>(collect); + HashSet codeHashSet = makerList.stream().map(ZyMaker::getWorkerCode).collect(Collectors.toCollection(HashSet::new)); + + for (String productCode : workOrderCollect) { + if (codeHashSet.add(productCode)) { + distinct = distinct + 1; + ZyMaker maker = new ZyMaker(); + //制单编号 工单编号(22)+顺序号(2) + String code =productCode+getMakerCode(productCode); + maker.setCode(code); + //工单编号 + maker.setWorkerCode(productCode); + this.save(maker); + } } +// for (WorkOrder workOrder : workOrderList) { +// ZyMaker maker = new ZyMaker(); +// //制单编号 工单编号(22)+顺序号(2) +// String code = workOrder.getProductCode()+getMakerCode(workOrder.getProductCode()); +// maker.setCode(code); +// //工单编号 +// maker.setWorkerCode(workOrder.getProductCode()); +// this.save(maker); +// } + + return distinct; } @Override diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/entity/ZyProductProcess.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/entity/ZyProductProcess.java index bef04f79..a2815654 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/entity/ZyProductProcess.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/entity/ZyProductProcess.java @@ -7,6 +7,7 @@ import java.io.UnsupportedEncodingException; import java.util.Date; import java.math.BigDecimal; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; @@ -69,6 +70,9 @@ public class ZyProductProcess implements Serializable { @ApiModelProperty(value = "序号") private Integer number; + @TableField(exist = false) private String productCode; + + @TableField(exist = false) private String processCode; }