contactsService.js 510 B

12345678910111213141516171819202122232425
  1. /**
  2. * Created by MyPC on 2019/11/5.
  3. */
  4. var models=require('../models');
  5. var moment = require('moment');
  6. const hash=require('../class/hash');
  7. //根据客户名称获得客户列表
  8. var getClentListByClientname = async function (clientname){
  9. if(!hash.isExistence(clientname)){
  10. return [];
  11. }
  12. clientname=decodeURI(clientname);
  13. var list = await models.CLD_client.getClentListByClientname(clientname);
  14. return list;
  15. }
  16. exports.getClentListByClientname = getClentListByClientname;