源码家

  • 开发语言:
  • Java
  • 源码大小:
  • 8.07M
  • 源码类别:
  • Java数据库编程
  • 文件格式:
  • .zip

源码介绍

【源码简介】这是一个用于生成报价单的工具。 

  

【源码截图】 :  

/** 产品管理 */ @RestController
@RequestMapping("/product") public class ProductController { private static final String FILEPATH_1="D:/nginx-1.21.6/html";  private static final String FILEPATH_2="http://localhost:11111";   @Autowired
   ClassifyMapper classifyMapper;  @Autowired
   BrandMapper brandMapper;  @Autowired
   ProductMapper productMapper;   /* 显示 */  @GetMapping("/showProduct") public JsonResult<JSONObject> showProduct(int companyid){
      List<ClassifyEntity> classifyList = classifyMapper.selectClassifyByCompanyid(companyid);  List<BrandEntity> brandList = brandMapper.selectBrandByCompanyid(companyid);  List<ProductEntity> productList = productMapper.selectProductByCompanyid(companyid);  JSONObject jo = new JSONObject();  jo.put("classifyList", classifyList);  jo.put("brandList", brandList);  jo.put("productList", productList);  return JsonResult.success("", jo);  }
   
   @PostMapping("/importImage/{companyid}") public JsonResult<String> importImage(@PathVariable("companyid")int companyid,MultipartFile file_data) throws IOException {
      String filename = file_data.getOriginalFilename();  String filepath1=FILEPATH_1 "/" companyid;  String filepath2=FILEPATH_2 "/" companyid;  File file=new File(filepath1);  if(!file.exists()) {
         file.mkdirs();  } byte[] data = new byte[1024];  InputStream ins = file_data.getInputStream();  byte[] buffer = new byte[1024];  int len = 0;  ByteArrayOutputStream baos = new ByteArrayOutputStream();  while ((len = ins.read(buffer)) != -1) {
         baos.write(buffer, 0, len);  }
      baos.flush();  data = baos.toByteArray();  FileOutputStream fos=new FileOutputStream(filepath1 "/" filename);  BufferedOutputStream bos=new BufferedOutputStream(fos);  bos.write(data);  bos.flush();  bos.close();  baos.close();  fos.close();  ins.close();  return JsonResult.success("图片上传成功", filepath2 "/" filename);  }
   
   @GetMapping("/insertProduct/{username}") public JsonResult<JSONObject> insertProduct(@PathVariable("username")String username,ProductEntity productEntity){
      productEntity.setCreator(username);  productMapper.insertProduct(productEntity);  return JsonResult.success("新增成功", null);  }
   @GetMapping("/updateProduct/{username}") public JsonResult<JSONObject> updateProduct(@PathVariable("username")String username,ProductEntity productEntity){
      productEntity.setModifier(username);  productMapper.updateProduct(productEntity);  return JsonResult.success("新增成功", null);  } //查询  @GetMapping("/selectProductByCondition/{companyid}") public JsonResult<JSONArray> selectProductByCondition(@PathVariable("companyid")int companyid,int classifyid,double price_1,double price_2,String[] brand_s){
      System.out.println(classifyid " " price_1 " " price_2);  List<ProductEntity> productList = new ArrayList<ProductEntity>();  if(classifyid==0) { if(price_1 ==0 || price_2==0) { if(brand_s!=null && brand_s.length>0) {
               String a = "";  for(int i=0;i<brand_s.length;i  ) {
                  a  = brand_s[i] " ";  }
               String b = a.trim().replace(" ", ",");  productList = productMapper.selectProductByBrandidAndCompanyid(b,companyid);  }else {
               productList = productMapper.selectProductByCompanyid(companyid);  }
         }else { if(brand_s!=null && brand_s.length>0) {
               String a = "";  for(int i=0;i<brand_s.length;i  ) {
                  a  = brand_s[i] " ";  }
               String b = a.trim().replace(" ", ",");  productList = productMapper.selectProductByBrandidAndSalepriceAndCompanyid(b, price_1, price_2, companyid);  }else {
               productList = productMapper.selectProductBySalepriceAndCompanyid(price_1, price_2, companyid);  }
         }
      }else {
         String c = classifyid "";  List<ClassifyEntity> allClassify = classifyMapper.selectClassifyByFatherclassifyid(classifyid "", companyid);  for(ClassifyEntity classify: allClassify) {
            c  = " " classify.getClassifyid();  }
         String d = c.trim().replace(" ", ",");   if(price_1 ==0 || price_2==0) { if(brand_s!=null && brand_s.length>0) {
               String a = "";  for(int i=0;i<brand_s.length;i  ) {
                  a  = brand_s[i] " ";  }
               String b = a.trim().replace(" ", ",");  productList = productMapper.selectProductByBrandidAndClassifyidAndCompanyid(b, d, companyid);  }else {
               productList = productMapper.selectProductByClassifyidAndCompanyid(d, companyid);  }
         }else { if(brand_s!=null && brand_s.length>0) {
               String a = "";  for(int i=0;i<brand_s.length;i  ) {
                  a  = brand_s[i] " ";  }
               String b = a.trim().replace(" ", ",");  productList = productMapper.selectProductByBrandidAndSalepriceAndClassifyidAndCompanyid(b, price_1, price_2, d, companyid);  }else {
               System.out.println(price_1 "," price_2 "," d "," companyid);  productList = productMapper.selectProductBySalepriceAndClassifyidAndCompanyid(price_1, price_2, d, companyid);  }
         }
      }
      JSONArray ja = new JSONArray(productList);  System.out.println(ja);  return JsonResult.success("", ja);  }
   @GetMapping("/delete_product/{productid}") public JsonResult<JSONObject> delete_product(@PathVariable("productid")int productid){
      productMapper.deleteProduct(productid);  return JsonResult.success("删除成功", null);  }
}

  • 商品评价
  • 交易规则
  • 交易流程

  • 发货方式

  • 1、自动:在上方保障服务中标有自动发货的商品,拍下后,将会自动收到来自卖家的商品获取(下载)链接;

    2、手动:未标有自动发货的的商品,拍下后,卖家会收到邮件、短信提醒,也可通过QQ或订单中的电话联系对方。

  • 交易周期

  • 1、源码默认交易周期:自动发货商品为1天,手动发货商品为3天,买家有1次额外延长3天交易周期的权利;

    2、若上述交易周期双方依然无法完成交易,任意一方可发起追加周期(1~7天)的请求,对方同意即可延长。

  • 退款说明

  • 1、描述:源码描述(含标题)与实际源码不一致的(例:描述PHP实际为ASP、描述的功能实际缺少、版本不符等);

    2、演示:有演示站时,与实际源码小于95%一致的(但描述中有"不保证完全一样、有变化的可能性"类似显著声明的除外);

    3、发货:手动发货源码,在卖家未发货前,已申请退款的;

    4、安装:免费提供安装服务的源码但卖家不履行的;

    5、收费:额外收取其他费用的(但描述中有显著声明或双方交易前有商定的除外);

    6、其他:如质量方面的硬性常规问题等。

    注:经核实符合上述任一,均支持退款,但卖家予以积极解决问题则除外。

  • 1注意事项

  • 1、源码家会对双方交易的过程及交易商品的快照进行永久存档,以确保交易的真实、有效、安全!

    2、源码家无法对如“永久包更新”、“永久技术支持”等类似交易之后的商家承诺做担保,请买家自行鉴别;

    3、在源码同时有网站演示与图片演示,且站演与图演不一致时,默认按图演作为纠纷评判依据(特别声明或有商定除外);

    4、在没有"无任何正当退款依据"的前提下,商品写有"一旦售出,概不支持退款"等类似的声明,视为无效声明;

    5、在未拍下前,双方在QQ上所商定的交易内容,亦可成为纠纷评判依据(商定与描述冲突时,商定为准);

    6、因聊天记录可作为纠纷评判依据,故双方联系时,只与对方在互站上所留的QQ、手机号沟通,以防对方不承认自我承诺。

    7、虽然交易产生纠纷的几率很小,但一定要保留如聊天记录、手机短信等这样的重要信息,以防产生纠纷时便于互站介入快速处理。

  • 互站声明

  • 1、源码家作为第三方中介平台,依据交易合同(商品描述、交易前商定的内容)来保障交易的安全及买卖双方的权益;

    2、非平台线上交易的项目,出现任何后果均与互站无关;无论卖家以何理由要求线下交易的,请联系管理举报。