Merge branch 'dev-zzs' into test

This commit is contained in:
zzs01@yunemao.com 2024-09-02 17:54:45 +08:00
commit 2aef6d4619
3 changed files with 13 additions and 7 deletions

View File

@ -53,7 +53,8 @@ public class SalesCommissionReportPlugin extends AbstractReportListDataPlugin {
.on("salesorderid", "main_id_g_claimed_amt_fk") .on("salesorderid", "main_id_g_claimed_amt_fk")
.select(RptUtil.getDataSetFiledAlias(resDataSet), RptUtil.getDataSetFiledAlias(claimedAmt)) .select(RptUtil.getDataSetFiledAlias(resDataSet), RptUtil.getDataSetFiledAlias(claimedAmt))
.finish(); .finish();
claimDate = claimDate.select("main_id_gathering_fk, yem_prodpaydate yem_firstpaydate, yem_endpaydate yem_lastpaydate"); claimDate = claimDate.select("main_id_gathering_fk, yem_endpaydate yem_lastpaydate, " +
"CASE WHEN yem_prodpaydate != '' THEN yem_prodpaydate ELSE yem_shippaydate END yem_firstpaydate");
resDataSet = resDataSet.leftJoin(claimDate) resDataSet = resDataSet.leftJoin(claimDate)
.on("salesorderid", "main_id_gathering_fk") .on("salesorderid", "main_id_gathering_fk")
.select(RptUtil.getDataSetFiledAlias(resDataSet), RptUtil.getDataSetFiledAlias(claimDate)) .select(RptUtil.getDataSetFiledAlias(resDataSet), RptUtil.getDataSetFiledAlias(claimDate))

View File

@ -45,6 +45,7 @@ public class BackFillbillEdit extends AbstractFormPlugin {
model.setValue("yem_encasemedate", parentModel.getValue("yem_encasemedate"));//预计装箱时间 model.setValue("yem_encasemedate", parentModel.getValue("yem_encasemedate"));//预计装箱时间
model.setValue("yem_cfscompnay", parentModel.getValue("yem_cfscompnay"));//货代公司 model.setValue("yem_cfscompnay", parentModel.getValue("yem_cfscompnay"));//货代公司
model.setValue("yem_cfscompnaytxt", parentModel.getValue("yem_cfscompnaytxt"));//货代公司
model.setValue("yem_custombrokers", parentModel.getValue("yem_custombrokers"));//报关行 model.setValue("yem_custombrokers", parentModel.getValue("yem_custombrokers"));//报关行
model.setValue("yem_bhd_combo", parentModel.getValue("yem_bhd_combo"));//运费承付 model.setValue("yem_bhd_combo", parentModel.getValue("yem_bhd_combo"));//运费承付
model.setValue("yem_boxtext", parentModel.getValue("yem_boxvolume1"));//箱型箱量 model.setValue("yem_boxtext", parentModel.getValue("yem_boxvolume1"));//箱型箱量
@ -173,6 +174,7 @@ public class BackFillbillEdit extends AbstractFormPlugin {
Map map = new HashMap(); Map map = new HashMap();
map.put("yem_encasemedate", model.getValue("yem_encasemedate"));//预计装箱时间 map.put("yem_encasemedate", model.getValue("yem_encasemedate"));//预计装箱时间
map.put("yem_cfscompnay", model.getValue("yem_cfscompnay"));//货代公司 map.put("yem_cfscompnay", model.getValue("yem_cfscompnay"));//货代公司
map.put("yem_cfscompnaytxt", model.getValue("yem_cfscompnaytxt"));//货代公司
map.put("yem_custombrokers", model.getValue("yem_custombrokers"));//报关行 map.put("yem_custombrokers", model.getValue("yem_custombrokers"));//报关行
map.put("yem_bhd_combo", model.getValue("yem_bhd_combo"));//运费承付 map.put("yem_bhd_combo", model.getValue("yem_bhd_combo"));//运费承付
map.put("yem_boxtext", model.getValue("yem_boxtext"));//箱型箱量 map.put("yem_boxtext", model.getValue("yem_boxtext"));//箱型箱量

View File

@ -108,7 +108,8 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
String yemVoyageno = (String) this.getModel().getValue("yem_voyageno");//航次 String yemVoyageno = (String) this.getModel().getValue("yem_voyageno");//航次
Date yemCutdate = (Date) this.getModel().getValue("yem_cutdate");//截单日期 Date yemCutdate = (Date) this.getModel().getValue("yem_cutdate");//截单日期
Date yemPortinterception = (Date) this.getModel().getValue("yem_portinterception");//截港日期 Date yemPortinterception = (Date) this.getModel().getValue("yem_portinterception");//截港日期
DynamicObject yemCfscompnay = (DynamicObject) this.getModel().getValue("yem_cfscompnay");//货代公司 // DynamicObject yemCfscompnay = (DynamicObject) this.getModel().getValue("yem_cfscompnay");//货代公司
String yemCfscompnay = (String) this.getModel().getValue("yem_cfscompnaytxt");//货代公司
Date yemEtddate = (Date) this.getModel().getValue("yem_etddate");//ETD(离港日期 Date yemEtddate = (Date) this.getModel().getValue("yem_etddate");//ETD(离港日期
DynamicObject yemSctcompnayname = (DynamicObject) this.getModel().getValue("yem_sctcompnayname");//船公司 DynamicObject yemSctcompnayname = (DynamicObject) this.getModel().getValue("yem_sctcompnayname");//船公司
String yemStation = (String) this.getModel().getValue("yem_stationtext");//场站 String yemStation = (String) this.getModel().getValue("yem_stationtext");//场站
@ -153,7 +154,7 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
boonle = false; boonle = false;
i++; i++;
} }
if (null == yemCfscompnay) { if (YEM.isEmpty(yemCfscompnay)) {
string = string + i + ". 货代公司为空,请稍后重试!\n"; string = string + i + ". 货代公司为空,请稍后重试!\n";
boonle = false; boonle = false;
i++; i++;
@ -190,14 +191,14 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
boonle = false; boonle = false;
i++; i++;
} }
if (null == yemCfscompnay) { if (YEM.isEmpty(yemCfscompnay)) {
string = string + i + ". 货代公司为空,请稍后重试!\n"; string = string + i + ". 货代公司为空,请稍后重试!\n";
boonle = false; boonle = false;
i++; i++;
} }
} }
if ("YSFS-1001".equals(number) || "YSFS-1002".equals(number)) { if ("YSFS-1001".equals(number) || "YSFS-1002".equals(number)) {
if (null == yemCfscompnay) { if (YEM.isEmpty(yemCfscompnay)) {
string = string + i + ". 货代公司为空,请稍后重试!\n"; string = string + i + ". 货代公司为空,请稍后重试!\n";
boonle = false; boonle = false;
i++; i++;
@ -251,7 +252,7 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
boonle = false; boonle = false;
i++; i++;
} }
if (null == yemCfscompnay) { if (YEM.isEmpty(yemCfscompnay)) {
string = string + i + ". 货代公司为空,请稍后重试!\n"; string = string + i + ". 货代公司为空,请稍后重试!\n";
boonle = false; boonle = false;
i++; i++;
@ -298,7 +299,7 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
// boonle = false; // boonle = false;
// i++; // i++;
// } // }
if (null == yemCfscompnay) { if (YEM.isEmpty(yemCfscompnay)) {
string = string + i + ". 货代公司为空,请稍后重试!\n"; string = string + i + ". 货代公司为空,请稍后重试!\n";
boonle = false; boonle = false;
i++; i++;
@ -349,6 +350,7 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
DynamicObject yem_customer = dataEntity.getDynamicObject("yem_customer"); DynamicObject yem_customer = dataEntity.getDynamicObject("yem_customer");
model.setValue("yem_encasemedate", map.get("yem_encasemedate"));//预计装箱时间 model.setValue("yem_encasemedate", map.get("yem_encasemedate"));//预计装箱时间
model.setValue("yem_cfscompnay", map.get("yem_cfscompnay"));//货代公司 model.setValue("yem_cfscompnay", map.get("yem_cfscompnay"));//货代公司
model.setValue("yem_cfscompnaytxt", map.get("yem_cfscompnaytxt"));//货代公司
model.setValue("yem_custombrokers", map.get("yem_custombrokers"));//报关行 model.setValue("yem_custombrokers", map.get("yem_custombrokers"));//报关行
model.setValue("yem_bhd_combo", map.get("yem_bhd_combo"));//运费承付 model.setValue("yem_bhd_combo", map.get("yem_bhd_combo"));//运费承付
// model.setValue("yem_boxtext", map.get("yem_boxtext"));//箱型箱量 // model.setValue("yem_boxtext", map.get("yem_boxtext"));//箱型箱量
@ -458,6 +460,7 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
if (storagetrans != null) { if (storagetrans != null) {
storagetrans.set("yem_encasemedate", map.get("yem_encasemedate"));//预计装箱时间 storagetrans.set("yem_encasemedate", map.get("yem_encasemedate"));//预计装箱时间
storagetrans.set("yem_cfscompnay", map.get("yem_cfscompnay"));//货代公司 storagetrans.set("yem_cfscompnay", map.get("yem_cfscompnay"));//货代公司
storagetrans.set("yem_cfscompnaytxt", map.get("yem_cfscompnaytxt"));//货代公司
storagetrans.set("yem_custombrokers", map.get("yem_custombrokers"));//报关行 storagetrans.set("yem_custombrokers", map.get("yem_custombrokers"));//报关行
storagetrans.set("yem_bhd_combo", map.get("yem_bhd_combo"));//运费承付 storagetrans.set("yem_bhd_combo", map.get("yem_bhd_combo"));//运费承付
storagetrans.set("yem_boxtexts", map.get("yem_boxtext"));//箱型箱量 storagetrans.set("yem_boxtexts", map.get("yem_boxtext"));//箱型箱量