Ver Fonte

台州工单节点添加服务价格增加服务价格是否大于0的判断

hu há 4 anos atrás
pai
commit
a3dbc44855

+ 1 - 1
src/rest/openapi/restcontroller/hyworkorder/webapp/workorder/HyWorkOrder.java

@@ -622,7 +622,7 @@ public class HyWorkOrder extends Controller {
 							ordernodePao.setValue("confirmation", where.getBoolean("confirmation"), 11l);
 							ordernodePao.setValue("confirmation", where.getBoolean("confirmation"), 11l);
 						}
 						}
 						/** Ìí¼Ó·þÎñ¼Û¸ñ **/
 						/** Ìí¼Ó·þÎñ¼Û¸ñ **/
-						if (where.containsKey("serverprice")) {
+						if (where.containsKey("serverprice") && where.getDouble("serverprice")>0) {
 							ordernodePao.setValue("serverprice", where.getDouble("serverprice"), 11l);
 							ordernodePao.setValue("serverprice", where.getDouble("serverprice"), 11l);
 							workorderPao.setValue("REPAIRPRICE", where.getDouble("serverprice"), 11l);
 							workorderPao.setValue("REPAIRPRICE", where.getDouble("serverprice"), 11l);
 						}
 						}