Index: ssts-recyclingapplication/src/main/java/com/forgon/disinfectsystem/departmentapplicationtemplate/service/DepartmentAppTemplateManagerImpl.java =================================================================== diff -u -r29063 -r29067 --- ssts-recyclingapplication/src/main/java/com/forgon/disinfectsystem/departmentapplicationtemplate/service/DepartmentAppTemplateManagerImpl.java (.../DepartmentAppTemplateManagerImpl.java) (revision 29063) +++ ssts-recyclingapplication/src/main/java/com/forgon/disinfectsystem/departmentapplicationtemplate/service/DepartmentAppTemplateManagerImpl.java (.../DepartmentAppTemplateManagerImpl.java) (revision 29067) @@ -352,12 +352,16 @@ double price = json.optDouble("price"); if(price > 0){ Double totalPrice = MathTools.mul(amount, price).doubleValue(); + Integer unitCount = amount; Integer transferScale = disposableGoods.getTransferScale(); if(transferScale != null && transferScale.intValue() > 0){ totalPrice = MathTools.mul(totalPrice, transferScale).doubleValue(); + unitCount = amount * transferScale; } //设置模板里的小计(数量 * 转换系数 * 单价) json.put("totalPrice", totalPrice); + //设置最小单位个数 + json.put("unitCount", unitCount); } }catch(Exception e){ e.printStackTrace();