示例#1
0
 /**
  * 删除指定邮费.
  *
  * @author 黄祥谦.
  */
 public void deletePointPostage() {
   Boolean success = postageServer.deleteById(model.getPostageId());
   resultMessage = new ResultMessage();
   resultMessage.setServiceResult(success);
   if (success) {
     resultMessage.setResultInfo("删除成功");
   } else {
     resultMessage.setResultInfo("删除失败");
   }
 }
示例#2
0
 /**
  * 更新邮费
  *
  * @author 黄祥谦.
  */
 public void updatePostage() {
   Boolean update = postageServer.update(model);
   resultMessage = new ResultMessage();
   resultMessage.setServiceResult(update);
   if (update) {
     resultMessage.setResultInfo("更新成功");
   } else {
     resultMessage.setResultInfo("更新失败");
   }
 }
示例#3
0
 /**
  * 添加
  *
  * @author 黄祥谦.
  */
 public void addPostage() {
   Boolean success = postageServer.save(model);
   resultMessage = new ResultMessage();
   resultMessage.setServiceResult(success);
   if (success) {
     resultMessage.setResultInfo("添加成功");
   } else {
     resultMessage.setResultInfo("添加失败");
   }
 }
示例#4
0
 /**
  * 得到未设置邮费的地区
  *
  * @author 黄祥谦.
  */
 public void getUnSetRegion() {
   List<RegionPo> regionList = postageServer.getUnSetRegion(Long.valueOf(model.getOrigin()));
   resultMessage = new ResultMessage();
   resultMessage.setServiceResult(true);
   resultMessage.getResultParm().put("regionList", regionList);
 }
示例#5
0
 /**
  * 查询所有快递定价.
  *
  * @author 黄祥谦.
  */
 public void findAllPostage() {
   List<PostagePo> postageList = postageServer.findAllPostage();
   resultMessage = new ResultMessage();
   resultMessage.setServiceResult(true);
   resultMessage.getResultParm().put("postageList", postageList);
 }