Sfoglia il codice sorgente

假期剩余表时间精确到小数点后两位,以及钉钉回调结构改动

cs 2 anni fa
parent
commit
a5483e2638

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/DingDingServiceImpl.java

@@ -1733,7 +1733,7 @@ public class DingDingServiceImpl implements DingDingService {
         System.out.println(quotaListResponse.getBody());
         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
         JSONObject json = JSONObject.parseObject(quotaListResponse.getBody());
-        DecimalFormat df = new DecimalFormat("#0.0");
+        DecimalFormat df = new DecimalFormat("#0.00");
         if (json.getInteger("errcode") == 0) {
             JSONObject result = json.getJSONObject("result");
             JSONArray leaveQuotas = result.getJSONArray("leave_quotas");