| | |
| | | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/preselect_interface/' |
| | | |
| | | <<<<<<< HEAD |
| | | VUE_APP_API = 'http://192.168.0.35:10022/' |
| | | ======= |
| | | # VUE_APP_API = 'http://192.168.0.15:10024/' |
| | | >>>>>>> 3fbfdefe98e5d35e32d74138ce73a1b4e2fe5465 |
| | | |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/preselect_web_interface/' |
| | | |
| | |
| | | # 任康 |
| | | # VUE_APP_API = 'http://192.168.0.15:10017/' |
| | | # ç¦æ¾ |
| | | VUE_APP_API = 'http://192.168.0.36:10023' |
| | | #VUE_APP_API = 'http://192.168.0.36:10023' |
| | | # æ±è |
| | | # VUE_APP_API = 'http://192.168.0.35:10023' |
| | | VUE_APP_API = 'http://192.168.0.35:10023' |
| | | |
| | | # #æµè¯æå¡å¨ |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/preselect_admin_interface' |
| | |
| | | |
| | | # https://dmtest.ahapp.net/preselect_admin_interface/doc.html |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/preselect_admin_interface' |
| | | VUE_APP_API = 'http://127.0.0.1:10023' |
| | |
| | | axios.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8' |
| | | const axiosInstance = axios.create({ |
| | | baseURL: process.env.VUE_APP_API_PREFIX, |
| | | // baseURL: process.env.VUE_APP_API, |
| | | // 请æ±è¶
æ¶æ¶é´ |
| | | timeout: 60000 |
| | | }) |
| | |
| | | <el-table-column prop="brandName" label="åç" min-width="100px"></el-table-column> |
| | | <el-table-column prop="categoryName" label="ç±»å«" min-width="100px"></el-table-column> |
| | | <el-table-column prop="zdPrice" label="æå¯¼ä»·ï¼å
ï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="price" label="éè´ä»·(å
)" min-width="100px"></el-table-column> |
| | | <el-table-column prop="jdPrice" label="éè´ä»·(å
)" min-width="100px"></el-table-column> |
| | | <el-table-column prop="price" label="éå®ä»·(å
)" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="å建æ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="status" v-if="containPermissions(['business:basegoods:update'])" label="ç¶æ" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | |
| | | # application: |
| | | # name: doumeemes |
| | | profiles: |
| | | active: dev |
| | | active: pro |
| | | |
| | | # JSONè¿åé
ç½® |
| | | jackson: |
| | |
| | | # application: |
| | | # name: doumeemes |
| | | profiles: |
| | | active: dev |
| | | active: pro |
| | | |
| | | # JSONè¿åé
ç½® |
| | | jackson: |
| | |
| | | @ExcelColumn(name="æå¯¼ä»·ï¼å
ï¼") |
| | | private BigDecimal zdPrice; |
| | | |
| | | @ApiModelProperty(value = "å
¥æä»·æ ¼ï¼å
ï¼", example = "1") |
| | | @ExcelColumn(name="å
¥æä»·æ ¼ï¼å
ï¼") |
| | | @ApiModelProperty(value = "éå®ä»·æ ¼ï¼å
ï¼", example = "1") |
| | | @ExcelColumn(name="éå®ä»·æ ¼ï¼å
ï¼") |
| | | private BigDecimal price; |
| | | @ApiModelProperty(value = "æ°æ®æ¥æº 0æå¨å½å
¥ 1æ¹é导å
¥ 2æ°æ®æºåæ¥", example = "1") |
| | | @ExcelColumn(name="æ°æ®æ¥æº 0æå¨å½å
¥ 1æ¹é导å
¥ 2æ°æ®æºåæ¥") |
| | |
| | | @TableField(exist = false) |
| | | private List<Integer> idList; |
| | | |
| | | |
| | | @ApiModelProperty(value = "éè´ä»·ï¼å
ï¼", example = "1") |
| | | @ExcelColumn(name="éè´ä»·ï¼å
ï¼") |
| | | @TableField(exist = false) |
| | | private BigDecimal jdPrice; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | // @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | // @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | |
| | | queryWrapper.lambda().orderByAsc(BaseCategory::getSortnum); |
| | | |
| | | IPage<BaseCategory> baseCategoryIPage = baseCategoryMapper.selectPage(page, queryWrapper); |
| | | String preUrl = getPreUrl(); |
| | | if (!CollectionUtils.isEmpty(baseCategoryIPage.getRecords())){ |
| | | baseCategoryIPage.getRecords().forEach(s->s.setImgfullurl(getPreUrl()+s.getImgurl())); |
| | | baseCategoryIPage.getRecords().forEach(s->s.setImgfullurl(preUrl+s.getImgurl())); |
| | | } |
| | | |
| | | return PageData.from(baseCategoryIPage); |
| | |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.leftJoin(Brand.class,Brand::getId,BaseGoods::getBrandId) |
| | | .leftJoin(BaseCategory.class,BaseCategory::getId,BaseGoods::getCategoryId) |
| | | // .leftJoin(BaseData.class,BaseData::getId,BaseGoods::getBaseDataId) |
| | | .selectAll(BaseGoods.class) |
| | | .selectAs(BaseCategory::getPriceRate,BaseGoods::getCateRatePrice) |
| | | .selectAs(Brand::getName,BaseGoods::getBrandName) |
| | | // .selectAs(BaseData::getPrice,BaseGoods::getJdPrice) |
| | | .selectAs(BaseCategory::getName,BaseGoods::getCategoryName) |
| | | .eq(BaseGoods::getIsdeleted, Constants.ZERO) |
| | | .like(StringUtils.isNotBlank(pageWrap.getModel().getName()), BaseGoods::getName,pageWrap.getModel().getName()) |
| | |
| | | String prefixUrl = systemDictDataBiz.queryByCode(Constants.OSS, Constants.RESOURCE_PATH).getCode() |
| | | + systemDictDataBiz.queryByCode(Constants.OSS, Constants.GOODS_IMG).getCode(); |
| | | pageData.getRecords().forEach(i->{ |
| | | if(StringUtils.isNotBlank(i.getImgurl())){ |
| | | i.setFullImgUrl(prefixUrl + i.getImgurl()); |
| | | } |
| | | i.setJdPrice(i.getPrice()); |
| | | i.setPrice(Constants.formatBigdecimal(i.getPrice()).multiply(Constants.formatBigdecimal(i.getCateRatePrice()))); |
| | | }); |
| | | return pageData; |
| | | } |
| | |
| | | queryWrapper.select( |
| | | "(select su1.USERNAME from system_user su1 where su1.id = t.MANAGER_ID) as managerUserName," + |
| | | "(select su2.REALNAME from system_user su2 where su2.id = t.SALESMAN_ID) as salesmanRealName," + |
| | | "(select count(su3.id) from system_user su3 where su3.COMPANY_ID = t.ID and su3.TYPE = 2) as anchorUserNum," + |
| | | "(select count(su4.id) from system_user su4 where su4.COMPANY_ID = t.ID and su4.TYPE = 1) as empUserNum," + |
| | | "(select count(g.id) from goods g where g.COMPANY_ID = t.ID )goodsNum"); |
| | | "(select count(su3.id) from system_user su3 where su3.deleted=0 and su3.COMPANY_ID = t.ID and su3.TYPE = 2) as anchorUserNum," + |
| | | "(select count(su4.id) from system_user su4 where su4.deleted=0 and su4.COMPANY_ID = t.ID and su4.TYPE = 1) as empUserNum," + |
| | | "(select count(g.id) from goods g where g.isdeleted=0 and g.COMPANY_ID = t.ID )goodsNum"); |
| | | queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getName()),Company::getName,pageWrap.getModel().getName()) |
| | | .like(StringUtils.isNotBlank(pageWrap.getModel().getManagerUserName()),SystemUser::getUsername,pageWrap.getModel().getManagerUserName()) |
| | | .eq(Objects.nonNull(pageWrap.getModel().getStatus()),Company::getStatus,pageWrap.getModel().getStatus()) |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | log.info("å¼å§ä¸ä¼ éä»¶ä¿¡æ¯=================end========æ å¾
å¤çæ°æ®==========="); |
| | | return 0; |
| | | } |
| | | List<String > keyList = new ArrayList<>(); |
| | | for(FileRecord model:allLis){ |
| | | keyList.add(model.getKeyval()); |
| | | } |
| | | try { |
| | | ALiYunUtil obs = new ALiYunUtil(ossModel.getEndpoint(), ossModel.getAccessId(), ossModel.getAccessKey()); |
| | | obs.deleteObjects(ossModel.getBucket(),keyList); |
| | | }catch (Exception e){ |
| | | } |
| | | |
| | | Date date = new Date(); |
| | | for(FileRecord model:allLis){ |
| | | try { |
| | | ALiYunUtil obs = new ALiYunUtil(ossModel.getEndpoint(), ossModel.getAccessId(), ossModel.getAccessKey()); |
| | | obs.deleteObjects(ossModel.getBucket(),keyList); |
| | | obs.uploadOnlineObject(model.getUrl(),ossModel.getBucket(), model.getKeyval(),null); |
| | | model.setStatus(Constants.ONE); |
| | | model.setContent("ä¸ä¼ æå"); |
| | |
| | | model.setEditDate(date); |
| | | fileRecordMapper.updateById(model); |
| | | } |
| | | |
| | | return 0; |
| | | } |
| | | |
| | |
| | | .apply(!Objects.isNull(pageWrap.getModel()) && !Objects.isNull(pageWrap.getModel().getEPrice()), " t.PRICE <= "+pageWrap.getModel().getEPrice()+" "); |
| | | queryWrapper.orderByDesc(Goods::getId); |
| | | IPage<Goods> goodsIPage = goodsJoinMapper.selectJoinPage(page, Goods.class, queryWrapper); |
| | | if(!Objects.isNull(goodsIPage.getRecords())&&goodsIPage.getRecords().size()>Constants.ZERO){ |
| | | this.dealGoodsMsg(goodsIPage.getRecords()); |
| | | } |
| | | return PageData.from(goodsIPage); |
| | | } |
| | | |
| | |
| | | String prefixUrl = systemDictDataBiz.queryByCode(Constants.OSS, Constants.RESOURCE_PATH).getCode() |
| | | + systemDictDataBiz.queryByCode(Constants.OSS, Constants.GOODS_IMG).getCode(); |
| | | String prefixUrlCategory = systemDictDataBiz.queryByCode(Constants.OSS, Constants.RESOURCE_PATH).getCode() |
| | | + systemDictDataBiz.queryByCode(Constants.OSS, Constants.GOODS_IMG).getCode(); |
| | | + systemDictDataBiz.queryByCode(Constants.OSS, Constants.CATEGORY_IMG).getCode(); |
| | | List<Integer> integerList = goodsList.stream().map(Goods::getId).collect(Collectors.toList()); |
| | | |
| | | List<Multifile> mFileList = multifileMapper.selectList(new QueryWrapper<Multifile>() |
| | | .in("OBJ_ID",integerList).eq("TYPE",Constants.ZERO)); |
| | | List<GoodsParam> goodsParamList = goodsParamMapper.selectList(new QueryWrapper<GoodsParam>() |
| | |
| | | // æ§è¡æ¥è¯¢ |
| | | PageHelper.startPage(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | List<SystemUserListVO> userList = systemUserMapper.selectManageList(pageWrap.getModel(), pageWrap.getOrderByClause()); |
| | | String zhuboRoomUrl = systemDictDataBiz.queryByCode(Constants.OSS, Constants.ZHUBO_ROOM_URL).getCode(); |
| | | String zhuboRoomUrl = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.ZHUBO_ROOM_URL).getCode(); |
| | | |
| | | for (SystemUserListVO user : userList) { |
| | | // æ¥è¯¢ç¨æ·è§è²å表 |
| | |
| | | select * from base_category ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | <select id="selectList" resultMap="BaseCategory"> |
| | | select * from base_category ${ew.customSqlSegment} |
| | | </select> |
| | | <select id="selectPage" resultMap="BaseCategory"> |
| | | select * from base_category ${ew.customSqlSegment} |
| | | </select> |
| | | <!-- <select id="selectList" resultMap="BaseCategory">--> |
| | | <!-- select * from base_category ${ew.customSqlSegment}--> |
| | | <!-- </select>--> |
| | | <!-- <select id="selectPage" resultMap="BaseCategory">--> |
| | | <!-- select * from base_category ${ew.customSqlSegment}--> |
| | | <!-- </select>--> |
| | | </mapper> |
| | |
| | | </dependencies> |
| | | |
| | | <build> |
| | | <finalName>company</finalName> |
| | | <finalName>zhubo</finalName> |
| | | <resources> |
| | | <resource> |
| | | <directory>src/main/resources</directory> |
| | |
| | | # application: |
| | | # name: doumeemes |
| | | profiles: |
| | | active: dev |
| | | active: pro |
| | | |
| | | # JSONè¿åé
ç½® |
| | | jackson: |