Example #1
0
 // 判断客户是否存在
 public boolean findById(String custNo) {
   if (custDao.findById(custNo) == null) {
     return false;
   } else {
     return true;
   }
 }
Example #2
0
 // 删除客户信息
 public void del(CstCustomer customer) {
   custDao.delete(customer);
 }
Example #3
0
 // 修改客户信息
 public void update(CstCustomer customer) {
   custDao.merge(customer);
 }
Example #4
0
 // 新增客户信息
 public void add(CstCustomer customer) {
   custDao.save(customer);
 }
Example #5
0
 // 根据客户名称查询客户信息
 public List<CstCustomer> findByCustName(String svrCustName) {
   return custDao.findByCustName(svrCustName);
 }
Example #6
0
 public CstCustomer findByCustNo(String custNo) {
   return custDao.findById(custNo);
 }
Example #7
0
 // 查询客户信息
 public PageResult findAll(Map paramMap) {
   return custDao.findAll(paramMap);
 }