Package org.jeecgframework.web.demo.entity.test

Examples of org.jeecgframework.web.demo.entity.test.JeecgOrderMainEntity


   * 修复订单一对多
   *@Author JueYue
   *@date   2013-11-12
   */
  private void repairOrder() {
    JeecgOrderMainEntity main = new JeecgOrderMainEntity();
    main.setGoAllPrice(new BigDecimal(1111111));
    main.setGoContactName("alex");
    main.setGoContent("别放辣椒");
    main.setGoderType("1");
    main.setGoOrderCode("11111AAA");
    main.setGoOrderCount(1);
    main.setGoReturnPrice(new BigDecimal(100));
    main.setUsertype("1");
    commonDao.save(main);
    JeecgOrderProductEntity product = new JeecgOrderProductEntity();
    product.setGoOrderCode(main.getGoOrderCode());
    product.setGopCount(1);
    product.setGopOnePrice(new BigDecimal(100));
    product.setGopProductName("最最美味的地锅鸡");
    product.setGopProductType("1");
    product.setGopSumPrice(new BigDecimal(100));
    commonDao.save(product);
    JeecgOrderCustomEntity coustom = new JeecgOrderCustomEntity();
    coustom.setGoOrderCode(main.getGoOrderCode());
    coustom.setGocCusName("小明");
    coustom.setGocSex("1");
    commonDao.save(coustom);
  }
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.demo.entity.test.JeecgOrderMainEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.