Package net.loyin.model

Examples of net.loyin.model.Employee.save()


    try {
      Employee m = getModel(Employee.class);
      if (m.getLong("id") != null) {
        m.update();
      } else {
        m.save();
      }
       Db.update("update employee e set e.orgid=(select p.orgid from partment p where p.id=e.partmentid)");
      toDwzJson(200, "保存成功!", navTabId);
    } catch (Exception e) {
      log.error("保存员工异常", e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.