Commit 2e229b8f authored by lixinglin's avatar lixinglin

保留两位小数

parent 56718eca
......@@ -10,11 +10,11 @@ import com.partner.admin.enumerate.*;
import com.partner.admin.mapper.*;
import com.partner.admin.service.*;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
......@@ -433,7 +433,7 @@ public class PartnerProjectInfoServiceImpl extends ServiceImpl<PartnerProjectInf
content = content.replace("@person",templateContent.getPerson()).
replace("@investmentSubject",templateContent.getInvestmentSubject()).
replace("@regLocation",templateContent.getRegLocation()).
replace("@projectInvestmentTotal",String.valueOf(templateContent.getProjectInvestmentTotal())).
replace("@projectInvestmentTotal", String.valueOf(templateContent.getProjectInvestmentTotal().setScale(2, RoundingMode.HALF_UP))).
replace("@decisionMaker",templateContent.getDecisionMaker()).
replace("@decisionMakerPosition",templateContent.getDecisionMakerPosition()).
replace("@date", DateUtil.format(new Date(), "yyyy年MM月dd日"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment