Browse Source

赋默认值

master
sunyuchao 3 years ago
parent
commit
1d2b7b3f4b
  1. 6
      epmet-user/epmet-user-server/src/main/resources/mapper/IcResiComparisonRecordDao.xml

6
epmet-user/epmet-user-server/src/main/resources/mapper/IcResiComparisonRecordDao.xml

@ -65,11 +65,11 @@
b.id comparisonRecordId, b.id comparisonRecordId,
b.police_name policeName, b.police_name policeName,
b.police_id_card policeIdCard, b.police_id_card policeIdCard,
b.type type, IFNULL(b.type, '0') type,
IF (b.type = '1', '已处理', '未处理') typeName, IF (b.type = '1', '已处理', '未处理') typeName,
b.identical identical, IFNULL(b.identical, '0') identical,
(case b.identical when '0' then '否' when '1' then '是' WHEN '2' THEN '-' else '否' end ) identicalName, (case b.identical when '0' then '否' when '1' then '是' WHEN '2' THEN '-' else '否' end ) identicalName,
b.is_comparison isComparison, IFNULL(b.is_comparison, '0') isComparison,
IF (b.is_comparison = '1', '是', '否') isComparisonName, IF (b.is_comparison = '1', '是', '否') isComparisonName,
b.comparison_result comparisonResult b.comparison_result comparisonResult
FROM FROM

Loading…
Cancel
Save