Commit e92f6bf1 authored by 1650842865's avatar 1650842865

人员信息新增是否跟单员字段;是传“X”,否传“”

parent ebd672c9
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
<x:selectC name="isSapPerson" required="true" label="SAP员工" dictionary="yesorno" labelCol="2" fieldCol="4" /> <x:selectC name="isSapPerson" required="true" label="SAP员工" dictionary="yesorno" labelCol="2" fieldCol="4" />
</div> </div>
<div class="hg-form-row" id="sapMes2"> <div class="hg-form-row" id="sapMes2">
<x:selectC name="isMerchandiser" required="false" label="是否跟单员" dictionary="yesorno" labelCol="2" fieldCol="4" />
<x:selectC name="langu" label="语言" labelCol="2" fieldCol="4" dictionary="langu"/> <x:selectC name="langu" label="语言" labelCol="2" fieldCol="4" dictionary="langu"/>
<x:selectC dictionary="country" name="country" label="国家" labelCol="2" fieldCol="4" />
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
...@@ -47,9 +47,12 @@ ...@@ -47,9 +47,12 @@
<div id="sapMes" hidden="hidden"> <div id="sapMes" hidden="hidden">
<div class="hg-form-row"> <div class="hg-form-row">
<div class="col-md-8"> <div class="col-md-8">
<x:selectC dictionary="country" name="country" label="国家" labelCol="2" fieldCol="4" />
<x:inputC name="regionName" label="地区" labelCol="2" fieldCol="4" maxlength="16" wrapper="select"/> <x:inputC name="regionName" label="地区" labelCol="2" fieldCol="4" maxlength="16" wrapper="select"/>
<x:hidden name="region"/> <x:hidden name="region"/>
<x:selectC dictionary="country" name="bankCountry" label="银行所属国家" labelCol="2" fieldCol="4" /> </div>
<div class="col-md-4">
<x:selectC dictionary="country" name="bankCountry" label="银行所属国家" labelCol="4" fieldCol="8" />
</div> </div>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
......
...@@ -167,6 +167,12 @@ public class OrgSyncApplicationImpl extends BaseApplication implements OrgSyncAp ...@@ -167,6 +167,12 @@ public class OrgSyncApplicationImpl extends BaseApplication implements OrgSyncAp
}else if ("1".equals(sapPersonVo.getSex())){ }else if ("1".equals(sapPersonVo.getSex())){
mdClientSapVo.setTitle("0001");//女 mdClientSapVo.setTitle("0001");//女
} }
//是否跟单员
if ("1".equals(sapPersonVo.getIsMerchandiser())){
mdClientSapVo.setZgendan("X");
}else {
mdClientSapVo.setZgendan("");
}
mdClientSapVo.setTelNumber(sapPersonVo.getOfficePhone());//办公电话 mdClientSapVo.setTelNumber(sapPersonVo.getOfficePhone());//办公电话
mdClientSapVo.setMobNumber(sapPersonVo.getMobilePhone());//移动电话 mdClientSapVo.setMobNumber(sapPersonVo.getMobilePhone());//移动电话
mdClientSapVo.setPostCode1(sapPersonVo.getZip());//邮编 mdClientSapVo.setPostCode1(sapPersonVo.getZip());//邮编
......
...@@ -274,6 +274,12 @@ public class MdClientSapVo { ...@@ -274,6 +274,12 @@ public class MdClientSapVo {
@JsonProperty("LIFNR") @JsonProperty("LIFNR")
private String lifnr; private String lifnr;
/**
* 是否跟单员
*/
@JsonProperty("ZGENDAN")
private String zgendan;
/** /**
* 客户品牌联系人列表 * 客户品牌联系人列表
*/ */
......
...@@ -130,4 +130,10 @@ public class SapPersonVo implements Serializable { ...@@ -130,4 +130,10 @@ public class SapPersonVo implements Serializable {
*/ */
@JsonProperty("KOSTL") @JsonProperty("KOSTL")
private String kostl; private String kostl;
/**
* 是否跟单员
*/
@JsonProperty("IS_MERCHANDISER")
private String isMerchandiser;
} }
...@@ -249,6 +249,12 @@ public class Person extends BaseInfoWithTenantAbstractEntity { ...@@ -249,6 +249,12 @@ public class Person extends BaseInfoWithTenantAbstractEntity {
@Column(name = "COMPANY_CODE") @Column(name = "COMPANY_CODE")
private String companyCode; private String companyCode;
/**
* 是否跟单员
*/
@Column(name = "is_merchandiser")
private String isMerchandiser;
/** /**
* SAP返回消息状态 * SAP返回消息状态
*/ */
...@@ -261,6 +267,14 @@ public class Person extends BaseInfoWithTenantAbstractEntity { ...@@ -261,6 +267,14 @@ public class Person extends BaseInfoWithTenantAbstractEntity {
@Column(name = "MESSAGE") @Column(name = "MESSAGE")
private String message; private String message;
public String getIsMerchandiser() {
return isMerchandiser;
}
public void setIsMerchandiser(String isMerchandiser) {
this.isMerchandiser = isMerchandiser;
}
public String getType() { public String getType() {
return type; return type;
} }
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
p.REGION, p.REGION,
p.LANGU, p.LANGU,
op.PROPERTY_VALUE AS KOSTL, op.PROPERTY_VALUE AS KOSTL,
p.IS_OPERATOR,
CASE WHEN ( p.type = 'S' AND (p.STATUS = - 1 || p.STATUS = 0)) THEN 'D' CASE WHEN ( p.type = 'S' AND (p.STATUS = - 1 || p.STATUS = 0)) THEN 'D'
WHEN ( p.type = 'S' AND p.STATUS = 1 ) THEN 'U' WHEN ( p.type = 'S' AND p.STATUS = 1 ) THEN 'U'
WHEN ( P.type IS NULL || p.type = '' ) THEN 'I' WHEN ( P.type IS NULL || p.type = '' ) THEN 'I'
...@@ -53,6 +54,7 @@ ...@@ -53,6 +54,7 @@
p.REGION, p.REGION,
p.LANGU, p.LANGU,
op.PROPERTY_VALUE AS KOSTL, op.PROPERTY_VALUE AS KOSTL,
p.IS_MERCHANDISER,
CASE WHEN ( p.type = 'S' AND (p.STATUS = - 1 || p.STATUS = 0) ) THEN 'D' CASE WHEN ( p.type = 'S' AND (p.STATUS = - 1 || p.STATUS = 0) ) THEN 'D'
WHEN ( p.type = 'S' AND p.STATUS = 1 ) THEN 'U' WHEN ( p.type = 'S' AND p.STATUS = 1 ) THEN 'U'
WHEN ( P.type IS NULL || p.type = '' ) THEN 'I' WHEN ( P.type IS NULL || p.type = '' ) THEN 'I'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment