优化
This commit is contained in:
@@ -143,7 +143,9 @@ public class DailyplanServiceImpl implements DailyplanService {
|
||||
json.put("create_id", currentUserId);
|
||||
json.put("create_name", nickName);
|
||||
json.put("create_time", now);
|
||||
|
||||
json.put("planstart_date", json.getString("planstart_date").substring(0,10));
|
||||
json.put("plan_finish_date", json.getString("plan_finish_date").substring(0,10));
|
||||
json.put("planend_date", json.getString("plan_finish_date"));
|
||||
JSONObject mater = MD_ME_ProducMaterialExt.query("material_id='"+json.getString("material_id")+"'").uniqueResult(0);
|
||||
double standard_weight = mater.getDouble("standard_weight_pft");
|
||||
if(standard_weight ==0){
|
||||
@@ -157,7 +159,7 @@ public class DailyplanServiceImpl implements DailyplanService {
|
||||
json.put("plan_org_name", product.getString("org_name"));
|
||||
|
||||
json.put("product_series", json.getString("product_series_id"));
|
||||
json.put("planend_date", now.substring(0,10));
|
||||
|
||||
MPS_BD_ProductDailyPlan.insert(json);
|
||||
}
|
||||
|
||||
@@ -167,7 +169,6 @@ public class DailyplanServiceImpl implements DailyplanService {
|
||||
Long currentUserId = SecurityUtils.getCurrentUserId();
|
||||
String nickName = SecurityUtils.getNickName();
|
||||
String now = DateUtil.now();
|
||||
JwtUserDto currentUser = (JwtUserDto) SecurityUtils.getCurrentUser();
|
||||
|
||||
WQLObject pdm_bi_productdeptpcsn = WQLObject.getWQLObject("pdm_bi_productdeptpcsn");
|
||||
WQLObject MPS_BD_ProductDailyPlan = WQLObject.getWQLObject("MPS_BD_ProductDailyPlan");
|
||||
@@ -177,7 +178,9 @@ public class DailyplanServiceImpl implements DailyplanService {
|
||||
whereJson.put("update_optid", currentUserId);
|
||||
whereJson.put("update_optname", nickName);
|
||||
whereJson.put("update_time", now);
|
||||
|
||||
whereJson.put("planstart_date", whereJson.getString("planstart_date").substring(0,10));
|
||||
whereJson.put("plan_finish_date", whereJson.getString("plan_finish_date").substring(0,10));
|
||||
whereJson.put("planend_date", whereJson.getString("plan_finish_date"));
|
||||
JSONObject mater = MD_ME_ProducMaterialExt.query("material_id='"+whereJson.getString("material_id")+"'").uniqueResult(0);
|
||||
double standard_weight = mater.getDouble("standard_weight_pft");
|
||||
if(standard_weight ==0){
|
||||
@@ -191,7 +194,6 @@ public class DailyplanServiceImpl implements DailyplanService {
|
||||
whereJson.put("plan_org_name", product.getString("org_name"));
|
||||
|
||||
whereJson.put("product_series", whereJson.getString("product_series_id"));
|
||||
whereJson.put("planend_date", now.substring(0,10));
|
||||
MPS_BD_ProductDailyPlan.update(whereJson);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user