Esempio n. 1
0
 // 统一查询中心
 @Override
 public int selCenter(Long majorId, String majorKey, String tab) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("majorId", majorId);
   params.put("majorKey", majorKey);
   params.put("tab", tab);
   int result = clientmapper.selCenter(params);
   return result;
 }
Esempio n. 2
0
 /**
  * 【三】
  *
  * @author Rexsen 对终端信息进行备份 【机会】 【t_sale_chance】 【chance_id】
  */
 @Override
 public int addChance(ChanceView cv) {
   // TODO Auto-generated method stub
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("majorId", cv.getChanceId());
   params.put("majorKey", "chance_id");
   params.put("tab", "t_sale_chance");
   params.put("userId", cv.getUserId());
   int insOrupResult = clientmapper.selCenter(params);
   int result = 0;
   if (insOrupResult > 0) {
     result = clientmapper.upChance(cv);
   } else {
     result = clientmapper.addChance(cv);
   }
   return result;
 }
Esempio n. 3
0
 /**
  * 【九】
  *
  * @author Rexsen 对终端信息进行备份 【对客户和联系人关系进行备份】 【t_contacts_chance_relation】 【id】
  */
 @Override
 public int addContactsChanceRelation(ContactsChanceRelationView ccrv) {
   // TODO Auto-generated method stub
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("majorId", ccrv.getId());
   params.put("majorKey", "id");
   params.put("tab", "t_contacts_chance_relation");
   params.put("userId", ccrv.getUserId());
   int insOrupResult = clientmapper.selCenter(params);
   int result = 0;
   if (insOrupResult > 0) {
     result = clientmapper.upContactsChanceRelation(ccrv);
   } else {
     result = clientmapper.addContactsChanceRelation(ccrv);
   }
   return result;
 }
Esempio n. 4
0
 /**
  * 【七】
  *
  * @author Rexsen 对终端信息进行备份 【销售计划详细信息】 【t_sale_planinfo】 【planinfo_id】
  */
 @Override
 public int addPlanInfo(PlanInfoView pv) {
   // TODO Auto-generated method stub
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("majorId", pv.getPlanInfoId());
   params.put("majorKey", "planinfo_id");
   params.put("tab", "t_sale_planinfo");
   params.put("userId", pv.getUserId());
   int insOrupResult = clientmapper.selCenter(params);
   int result = 0;
   if (insOrupResult > 0) {
     result = clientmapper.upPlanInfo(pv);
   } else {
     result = clientmapper.addPlanInfo(pv);
   }
   return result;
 }