Merge pull request 'develop' (#129) from develop into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/129
This commit is contained in:
commit
e28f8c8653
@ -15,7 +15,7 @@ import java.util.List;
|
|||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.xdadan.erp.common.annotation.filter.jackson.JacksonFilter;
|
import com.xdadan.erp.common.annotation.filter.jackson.JacksonFilter;
|
||||||
import com.xdadan.erp.emis.domain.EmisDestination;
|
import com.xdadan.erp.emis.domain.*;
|
||||||
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
||||||
import com.xdadan.erp.emis.service.EmisBaseService;
|
import com.xdadan.erp.emis.service.EmisBaseService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -38,7 +38,6 @@ import com.xdadan.erp.common.enums.BusinessType;
|
|||||||
import com.xdadan.erp.common.utils.StringUtils;
|
import com.xdadan.erp.common.utils.StringUtils;
|
||||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||||
|
|
||||||
import com.xdadan.erp.emis.domain.EmisCustomerUser;
|
|
||||||
import com.xdadan.erp.emis.service.IEmisCustomerUserService;
|
import com.xdadan.erp.emis.service.IEmisCustomerUserService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -261,6 +260,9 @@ public class EmisCustomerUserController extends EmisBaseController
|
|||||||
|
|
||||||
emisCustomerUser.setUserName(emisCustomerUser.getMonthlyPayCode());
|
emisCustomerUser.setUserName(emisCustomerUser.getMonthlyPayCode());
|
||||||
|
|
||||||
|
if ("1".equals(emisCustomerUser.getBlImport())) {
|
||||||
|
nameToCode(emisCustomerUser);
|
||||||
|
}
|
||||||
return toAjax(emisCustomerUserService.insertMonthCustomerUser(emisCustomerUser));
|
return toAjax(emisCustomerUserService.insertMonthCustomerUser(emisCustomerUser));
|
||||||
} catch (DuplicateKeyException e) {
|
} catch (DuplicateKeyException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -269,6 +271,46 @@ public class EmisCustomerUserController extends EmisBaseController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void nameToCode(EmisCustomerUser emisCustomerUser) {
|
||||||
|
// 国家
|
||||||
|
if (!StringUtils.isEmpty(emisCustomerUser.getCountry())) {
|
||||||
|
EmisCountry country = emisBaseService.getCountryByName(emisCustomerUser.getCountry());
|
||||||
|
if (country != null) {
|
||||||
|
emisCustomerUser.setCountry(country.getCode());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 省份
|
||||||
|
if (!StringUtils.isEmpty(emisCustomerUser.getProvince())) {
|
||||||
|
EmisRegion province = emisBaseService.getRegionByName(emisCustomerUser.getCountry(), null, emisCustomerUser.getProvince());
|
||||||
|
if (province != null) {
|
||||||
|
emisCustomerUser.setProvince(province.getRegionCode());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 城市
|
||||||
|
if (!StringUtils.isEmpty(emisCustomerUser.getCity())) {
|
||||||
|
EmisRegion city = emisBaseService.getRegionByName(emisCustomerUser.getCountry(), emisCustomerUser.getProvince(), emisCustomerUser.getCity());
|
||||||
|
if (city != null) {
|
||||||
|
emisCustomerUser.setCity(city.getRegionCode());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 开通oms
|
||||||
|
if (!StringUtils.isEmpty(emisCustomerUser.getBlOpenOms())) {
|
||||||
|
if ("是".equals(emisCustomerUser.getBlOpenOms())) {
|
||||||
|
emisCustomerUser.setBlOpenOms("1");
|
||||||
|
} else {
|
||||||
|
emisCustomerUser.setBlOpenOms("0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 启用状态
|
||||||
|
if (!StringUtils.isEmpty(emisCustomerUser.getStatus())) {
|
||||||
|
if ("是".equals(emisCustomerUser.getStatus())) {
|
||||||
|
emisCustomerUser.setStatus("1");
|
||||||
|
} else {
|
||||||
|
emisCustomerUser.setStatus("0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置用户登录密码
|
* 重置用户登录密码
|
||||||
|
|||||||
@ -126,6 +126,10 @@ public class EmisCustomerUser extends BaseEntity
|
|||||||
private String payee;
|
private String payee;
|
||||||
/* 销售联系人 */
|
/* 销售联系人 */
|
||||||
private String salesmen;
|
private String salesmen;
|
||||||
|
/* 销售支持 */
|
||||||
|
private String salesSupport;
|
||||||
|
/* 销售主管 */
|
||||||
|
private String salesExecutive;
|
||||||
/* 数据来源 */
|
/* 数据来源 */
|
||||||
private String dataFrom;
|
private String dataFrom;
|
||||||
/* 是否开通oms */
|
/* 是否开通oms */
|
||||||
@ -174,6 +178,9 @@ public class EmisCustomerUser extends BaseEntity
|
|||||||
/* 专属业务员 */
|
/* 专属业务员 */
|
||||||
private String opEmpName;
|
private String opEmpName;
|
||||||
|
|
||||||
|
/* 是否是导入操作,1:是 */
|
||||||
|
private String blImport;
|
||||||
|
|
||||||
// 最近下单时间
|
// 最近下单时间
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||||
private Date lastOrderTime;
|
private Date lastOrderTime;
|
||||||
|
|||||||
@ -3439,13 +3439,9 @@ public class EmisBaseService {
|
|||||||
emisCustomerUserMapper.insertEmisCustomerUser(emisCustomerUser);
|
emisCustomerUserMapper.insertEmisCustomerUser(emisCustomerUser);
|
||||||
// 插入角色
|
// 插入角色
|
||||||
emisCustomerUserMapper.insertSysOmsUserRole(emisCustomerUser.getId());
|
emisCustomerUserMapper.insertSysOmsUserRole(emisCustomerUser.getId());
|
||||||
|
|
||||||
redissonService.unlock("EMIS_CREATE_USER_LOCK");
|
|
||||||
return emisCustomerUser;
|
return emisCustomerUser;
|
||||||
}catch(Exception ex){
|
} finally {
|
||||||
redissonService.unlock("EMIS_CREATE_USER_LOCK");
|
redissonService.unlock("EMIS_CREATE_USER_LOCK");
|
||||||
ex.printStackTrace();
|
|
||||||
return emisCustomerUser;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1915,6 +1915,9 @@ public class EmisTmsScanRecordServiceImpl extends EmisBaseService implements IEm
|
|||||||
// 获取主单号
|
// 获取主单号
|
||||||
String mainBillCode = getMainBillCode(scanBillCode);
|
String mainBillCode = getMainBillCode(scanBillCode);
|
||||||
|
|
||||||
|
// 有虚拟单绑定关系的不允许面单删除
|
||||||
|
checkVirtual(problemType, mainBillCode);
|
||||||
|
|
||||||
// bug:1454,未开单不允许扫描
|
// bug:1454,未开单不允许扫描
|
||||||
boolean isGot = checkWaybillIsGot(mainBillCode);
|
boolean isGot = checkWaybillIsGot(mainBillCode);
|
||||||
if (!isGot) {
|
if (!isGot) {
|
||||||
@ -2023,6 +2026,21 @@ public class EmisTmsScanRecordServiceImpl extends EmisBaseService implements IEm
|
|||||||
return itemList;
|
return itemList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void checkVirtual(String problemType, String mainBillCode) throws EmisBizError {
|
||||||
|
if ("151".equals(problemType)) {
|
||||||
|
EmisWaybill emisWaybill = emisWaybillMapper.selectEmisWaybillByBillCode(mainBillCode);
|
||||||
|
if (Objects.isNull(emisWaybill)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ("1".equals(emisWaybill.getBlVirtual())) {
|
||||||
|
throw new EmisBizError(EmisBizErrorType.SCAN_PARAM_ERROR, "该运单已绑定主单,请先解绑");
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(emisWaybill.getVirtualRemark())) {
|
||||||
|
throw new EmisBizError(EmisBizErrorType.SCAN_PARAM_ERROR, "该运单已绑定虚拟单,请先解绑");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 填充公共数据
|
* 填充公共数据
|
||||||
* @param emisTmsScanRecord
|
* @param emisTmsScanRecord
|
||||||
|
|||||||
@ -59,6 +59,8 @@
|
|||||||
<result property="settleDay" column="settle_day" />
|
<result property="settleDay" column="settle_day" />
|
||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
<result property="orderNum" column="order_num" />
|
<result property="orderNum" column="order_num" />
|
||||||
|
<result property="salesSupport" column="sales_support"/>
|
||||||
|
<result property="salesExecutive" column="sales_executive"/>
|
||||||
|
|
||||||
<result property="custNo" column="monthly_pay_code" />
|
<result property="custNo" column="monthly_pay_code" />
|
||||||
<result property="custName" column="customer_name" />
|
<result property="custName" column="customer_name" />
|
||||||
@ -88,7 +90,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<sql id="selectEmisCustomerUserVo">
|
<sql id="selectEmisCustomerUserVo">
|
||||||
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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_customer_user
|
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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, sales_support, sales_executive, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_customer_user
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- or FIND_IN_SET(#{ownerSite},biz_site)-->
|
<!-- or FIND_IN_SET(#{ownerSite},biz_site)-->
|
||||||
@ -161,6 +163,8 @@
|
|||||||
<if test="creditPeriodType != null and creditPeriodType != ''"> and credit_period_type=#{creditPeriodType}</if>
|
<if test="creditPeriodType != null and creditPeriodType != ''"> and credit_period_type=#{creditPeriodType}</if>
|
||||||
<if test="creditPeriod != null "> and credit_period = #{creditPeriod}</if>
|
<if test="creditPeriod != null "> and credit_period = #{creditPeriod}</if>
|
||||||
<if test="settleDay != null "> and settle_day = #{settleDay}</if>
|
<if test="settleDay != null "> and settle_day = #{settleDay}</if>
|
||||||
|
<if test="salesSupport != null and salesSupport != ''"> and sales_support = #{salesSupport}</if>
|
||||||
|
<if test="salesExecutive != null and salesExecutive != ''"> and sales_executive = #{salesExecutive}</if>
|
||||||
|
|
||||||
<choose>
|
<choose>
|
||||||
<when test="payee != null and payee != '' and salesmen != null and salesmen != ''">
|
<when test="payee != null and payee != '' and salesmen != null and salesmen != ''">
|
||||||
@ -180,7 +184,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectEmisCustomerUserById" parameterType="Long" resultMap="EmisCustomerUserResult">
|
<select id="selectEmisCustomerUserById" parameterType="Long" 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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, sales_support, sales_executive, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||||
from emis_customer_user a
|
from emis_customer_user a
|
||||||
where a.id = #{id}
|
where a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
@ -241,6 +245,8 @@
|
|||||||
<if test="settleDay != null">settle_day,</if>
|
<if test="settleDay != null">settle_day,</if>
|
||||||
<if test="status != null and status != ''">status,</if>
|
<if test="status != null and status != ''">status,</if>
|
||||||
<if test="orderNum != null and orderNum != ''">order_num,</if>
|
<if test="orderNum != null and orderNum != ''">order_num,</if>
|
||||||
|
<if test="salesSupport != null and salesSupport != ''">sales_support,</if>
|
||||||
|
<if test="salesExecutive != null and salesExecutive != ''">sales_executive,</if>
|
||||||
<if test="remark != null and remark != ''">remark,</if>
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
@ -304,6 +310,8 @@
|
|||||||
<if test="settleDay != null">#{settleDay},</if>
|
<if test="settleDay != null">#{settleDay},</if>
|
||||||
<if test="status != null and status != ''">#{status},</if>
|
<if test="status != null and status != ''">#{status},</if>
|
||||||
<if test="orderNum != null and orderNum != ''">#{orderNum},</if>
|
<if test="orderNum != null and orderNum != ''">#{orderNum},</if>
|
||||||
|
<if test="salesSupport != null and salesSupport != ''">#{salesSupport},</if>
|
||||||
|
<if test="salesExecutive != null and salesExecutive != ''">#{salesExecutive},</if>
|
||||||
<if test="remark != null and remark != ''">#{remark},</if>
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
@ -371,6 +379,8 @@
|
|||||||
<if test="settleDay != null">settle_day = #{settleDay},</if>
|
<if test="settleDay != null">settle_day = #{settleDay},</if>
|
||||||
<if test="status != null and status != ''">status = #{status},</if>
|
<if test="status != null and status != ''">status = #{status},</if>
|
||||||
<if test="orderNum != null and orderNum != ''">order_num = #{orderNum},</if>
|
<if test="orderNum != null and orderNum != ''">order_num = #{orderNum},</if>
|
||||||
|
<if test="salesSupport != null and salesSupport != ''">sales_support = #{salesSupport},</if>
|
||||||
|
<if test="salesExecutive != null and salesExecutive != ''">sales_executive = #{salesExecutive},</if>
|
||||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
@ -418,25 +428,25 @@
|
|||||||
<!-- </select>-->
|
<!-- </select>-->
|
||||||
|
|
||||||
<select id="selectEmisCustomerUserByPhone" parameterType="string" resultMap="EmisCustomerUserResult">
|
<select id="selectEmisCustomerUserByPhone" 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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, sales_support, sales_executive, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||||
from emis_customer_user a
|
from emis_customer_user a
|
||||||
where a.phone = #{phone}
|
where a.del_flag='0' and a.phone = #{phone}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectCustomerByCustomerCode" parameterType="string" resultMap="EmisCustomerUserResult">
|
<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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, sales_support, sales_executive, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||||
from emis_customer_user a
|
from emis_customer_user a
|
||||||
where a.customer_code = #{customerCode}
|
where a.del_flag='0' and a.customer_code = #{customerCode}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMonthCustomerByName" parameterType="string" resultMap="EmisCustomerUserResult">
|
<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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, sales_support, sales_executive, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||||
from emis_customer_user a
|
from emis_customer_user a
|
||||||
where a.del_flag='0' and a.customer_type='2' and a.customer_name = #{customerName}
|
where a.del_flag='0' and a.customer_type='2' and a.customer_name = #{customerName}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMonthCustomerByMonthlyPayCode" parameterType="string" resultMap="EmisCustomerUserResult">
|
<select id="selectMonthCustomerByMonthlyPayCode" 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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
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, id_type, id_pic1, id_pic2, id_verify_status, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, credit_period_type, credit_period, settle_day, status, order_num, sales_support, sales_executive, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||||
from emis_customer_user a
|
from emis_customer_user a
|
||||||
where a.del_flag='0' and a.customer_type='2' and a.monthly_pay_code= #{monthlyPayCode}
|
where a.del_flag='0' and a.customer_type='2' and a.monthly_pay_code= #{monthlyPayCode}
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user