md
This commit is contained in:
parent
6d8687d0e7
commit
e4b019297e
@ -88,6 +88,8 @@ public interface EmisCustomerUserMapper extends BaseMapper<EmisCustomerUser>
|
||||
|
||||
public EmisCustomerUser selectEmisCustomerUserByPhone(String phone);
|
||||
|
||||
public EmisCustomerUser selectCustomerByCustomerCode(String customerCode);
|
||||
|
||||
|
||||
public EmisCustomerUser selectMonthCustomerByName(String customerName);
|
||||
|
||||
|
||||
@ -2799,18 +2799,26 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
// 通知网点有新的订单
|
||||
// 用户新下单
|
||||
String userEmpCode=null;
|
||||
String title="有新的运单,请接单,单号【"+emisWaybillSave.getBillCode()+"】";
|
||||
|
||||
String title="有新的运单,请接单,单号【"+emisWaybillSave.getBillCode()"】";
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getCustomerCode())) {
|
||||
EmisCustomerUser emisCustomerUser = emisCustomerUserMapper.selectEmisCustomerUserByPhone(emisWaybillSave.getCustomerCode());
|
||||
if(emisCustomerUser!=null) {
|
||||
title = +title + " 客户昵称:" + emisCustomerUser.getNickName() + " 手机号:" + emisCustomerUser.getPhone();
|
||||
}
|
||||
}
|
||||
if("1".equals(emisWaybillSave.getPickupMethod())){
|
||||
userEmpCode=emisWaybillSave.getOperateEmployeeCode();
|
||||
}
|
||||
else if("2".equals(emisWaybillSave.getPickupMethod())){
|
||||
userEmpCode=emisWaybillSave.getTakePieceEmployeeCode();
|
||||
}
|
||||
|
||||
if(!StringUtils.isEmpty(userEmpCode)) {
|
||||
sendNoticeToEmpUser(userEmpCode, title, title, "/d24/orderManagement/UserOrderList");
|
||||
sendNoticeToEmpUser(userEmpCode, title, title, "/d24/orderManagement/UserOrderList?billCode="+emisWaybillSave.getBillCode());
|
||||
}
|
||||
else{
|
||||
sendNoticeToSite(emisWaybillSave.getSendSiteCode(), title, title, "/d24/orderManagement/UserOrderList");
|
||||
sendNoticeToSite(emisWaybillSave.getSendSiteCode(), title, title, "/d24/orderManagement/UserOrderList?billCode="+emisWaybillSave.getBillCode());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -426,6 +426,12 @@
|
||||
where a.phone = #{phone}
|
||||
</select>
|
||||
|
||||
<select id="selectCustomerByCustomerCode" parameterType="string" resultMap="EmisCustomerUserResult">
|
||||
select id, customer_code, customer_name, customer_name_en, simple_name, contact, phone, mobile, customer_type, settled_type, user_type, company, lic_no, dept_id, avatar, sex, invitation_info, login_ip, login_date, nick_name, union_id, openid, monthly_pay_code, user_name, password, owner_site, biz_site, biz_site_name, country, province, city, county, town, address, email, post_code, real_name, id_no, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, status, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_customer_user a
|
||||
where a.customer_code = #{customerCode}
|
||||
</select>
|
||||
|
||||
<select id="selectMonthCustomerByName" parameterType="string" resultMap="EmisCustomerUserResult">
|
||||
select id, customer_code, customer_name, customer_name_en, simple_name, contact, phone, mobile, customer_type, settled_type, user_type, company, lic_no, dept_id, avatar, sex, invitation_info, login_ip, login_date, nick_name, union_id, openid, monthly_pay_code, user_name, password, owner_site, biz_site, biz_site_name, country, province, city, county, town, address, email, post_code, real_name, id_no, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, status, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_customer_user a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user