Commit e474257e by 林永健

fix(digitalmanagement): 修复模板代码判断逻辑错误

- 将模板代码非空判断条件修正为isNotBlank
- 修正后正确调用templateMapper.findByCode方法
- 保证模板信息获取逻辑符合预期
- 修复因判断错误导致的功能异常
1 parent c57316b2
......@@ -251,7 +251,7 @@ public class DigitalManagementStaffRecordService {
private DigitalManagementStaffRecordDTO getStaffRecordTemplateInfo(Integer loginRole, String uuid, Date date, String templateCode) {
DigitalManagementTemplate template;
if (StringUtils.isBlank(templateCode)) {
if (StringUtils.isNotBlank(templateCode)) {
template = templateMapper.findByCode(templateCode);
}else {
template = templateService.getTemplateByStaffUuid(loginRole, uuid, date);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!