Example #1
0
 public static void delete(Long id) {
   MerchantUser merchantUser = MerchantUser.findById(id);
   if (merchantUser != null) {
     merchantUser.deleted = DeletedStatus.DELETED;
     merchantUser.save();
   }
 }
Example #2
0
 /**
  * 更新员工信息
  *
  * @param id
  * @param newObject
  */
 public static MerchantUser update(long id, MerchantUser newObject) {
   MerchantUser merchantUser = MerchantUser.findById(id);
   BeanCopy.beans(newObject, merchantUser).ignoreNulls(true).copy();
   return merchantUser.save();
 }