|
@@ -41,6 +41,7 @@ import tk.mybatis.mapper.weekend.Weekend;
|
|
|
import tk.mybatis.mapper.weekend.WeekendCriteria;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.text.DecimalFormat;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.TextStyle;
|
|
|
import java.util.ArrayList;
|
|
@@ -143,6 +144,8 @@ public class InStoreFormServiceImpl extends BaseServiceImpl<InStoreFormMapper, I
|
|
|
for(SpareStoreVO vo:spareStoreVOS){
|
|
|
totalPrice+=(vo.getNum().intValue())*(vo.getPrice().doubleValue());
|
|
|
}
|
|
|
+ DecimalFormat df=new DecimalFormat("0.00");
|
|
|
+ Double s=new Double(df.format(totalPrice));
|
|
|
InStoreFormDTO queryDTO=new InStoreFormDTO();
|
|
|
queryDTO.setUserId(userId);
|
|
|
OutStoreFormDTO queryDTO2=new OutStoreFormDTO();
|
|
@@ -224,7 +227,7 @@ public class InStoreFormServiceImpl extends BaseServiceImpl<InStoreFormMapper, I
|
|
|
storeWorkBenchVO.setOtherOutNum(otherNum2);
|
|
|
storeWorkBenchVO.setOutPDNum(pdNum);
|
|
|
storeWorkBenchVO.setOutTotalNum(num1);
|
|
|
- storeWorkBenchVO.setTotalPrice(new BigDecimal(totalPrice));
|
|
|
+ storeWorkBenchVO.setTotalPrice(new BigDecimal(s));
|
|
|
storeWorkBenchVO.setStoreNums(count);
|
|
|
return storeWorkBenchVO;
|
|
|
}
|