|
@@ -21,6 +21,8 @@ import com.malk.service.teambition.TBClient;
|
|
|
import com.malk.utils.UtilDateTime;
|
|
|
import com.malk.utils.UtilMap;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.logging.log4j.util.Strings;
|
|
|
+import org.slf4j.MDC;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -81,6 +83,9 @@ public class McPocTbServiceImpl implements McPocTbService {
|
|
|
data.put("textField_lxk6f7i5",pocTbTask.getTaskName());//
|
|
|
data.put("numberField_lxk6f7i4", NumberUtil.div(pocTbWorkTime.getWorkTime(),"3600000"));//
|
|
|
data.put("textareaField_lxk6f7i6",pocTbWorkTime.getDescription());//
|
|
|
+ if (Strings.isNotBlank(MDC.get("MDC_KEY_PID"))){
|
|
|
+ log.info(MDC.get("MDC_KEY_PID"));
|
|
|
+ }
|
|
|
ydClient.operateData(YDParam.builder().formUuid("FORM-EDFDBFBE08F149AAB4FD7A9BA00FAFD8DQER").formDataJson(JSONObject.toJSONString(data)).build(), YDConf.FORM_OPERATION.create);
|
|
|
}
|
|
|
}
|
|
@@ -121,6 +126,10 @@ public class McPocTbServiceImpl implements McPocTbService {
|
|
|
data.put("textareaField_lxu7g60p",String.valueOf(content.get("text")));//周报内容
|
|
|
data.put("dateField_lxu7g60q",DateUtil.parse(createDate));//周报创建日期
|
|
|
|
|
|
+ if (Strings.isNotBlank(MDC.get("MDC_KEY_PID"))){
|
|
|
+ log.info(MDC.get("MDC_KEY_PID"));
|
|
|
+ }
|
|
|
+
|
|
|
ydClient.operateData(YDParam.builder().formUuid("FORM-4EFCFB6F0E3D4187BCDEBEEA60F4F555RTIK").formDataJson(JSONObject.toJSONString(data)).build(), YDConf.FORM_OPERATION.create);
|
|
|
}
|
|
|
|