| | |
| | | |
| | | import com.smartor.common.MchFollowupConstants; |
| | | import com.smartor.domain.MchFollowupNode; |
| | | import com.smartor.domain.MchFollowupPlan; |
| | | import com.smartor.domain.MchFollowupPlanItem; |
| | | |
| | | import javax.xml.parsers.DocumentBuilderFactory; |
| | |
| | | check("组装时间1", "2026-11-20 09:00:00", DATE_TIME.format(items.get(0).getSendTime())); |
| | | check("组装时间3沿用基准日14:30", "2026-11-27 14:30:00", DATE_TIME.format(items.get(2).getSendTime())); |
| | | |
| | | System.out.println("-- 8.1) 内容占位符渲染 --"); |
| | | MchFollowupPlan plan = new MchFollowupPlan(); |
| | | plan.setPatid(100L); |
| | | plan.setPatname("张三"); |
| | | plan.setPhone("13800000000"); |
| | | plan.setOrgid("47226079133110211G1001"); |
| | | plan.setPlannedFollowTime(baseline); |
| | | MchFollowupPlanItem seqItem = new MchFollowupPlanItem(); |
| | | seqItem.setSeq(2); |
| | | MchFollowupMessageSender messageSender = new MchFollowupMessageSender(); |
| | | check("占位符渲染", |
| | | "您好张三,ID=100,电话=13800000000,基准=2026-11-20 14:30:00,序号=2,机构=47226079133110211G1001", |
| | | messageSender.renderContent( |
| | | "您好${patname},ID=${patid},电话=${phone},基准=${plannedFollowTime},序号=${seq},机构=${orgid}", |
| | | plan, seqItem)); |
| | | |
| | | System.out.println("-- 9) Mapper XML 可解析性 --"); |
| | | String[] xmlFiles = new String[]{ |
| | | "smartor/src/main/resources/mapper/smartor/MchFollowupPlanMapper.xml", |