|
@@ -213,6 +213,16 @@ public class RiskInspectionTaskServiceImpl implements IRiskInspectionTaskService
|
|
|
if (item.getSortOrder() == null) {
|
|
if (item.getSortOrder() == null) {
|
|
|
item.setSortOrder(i);
|
|
item.setSortOrder(i);
|
|
|
}
|
|
}
|
|
|
|
|
+ // needPhoto 前端传 boolean (true/false),DB 字段是 char(1) (0/1),这里归一化
|
|
|
|
|
+ String np = item.getNeedPhoto();
|
|
|
|
|
+ if (np != null) {
|
|
|
|
|
+ String lower = np.toLowerCase();
|
|
|
|
|
+ if ("true".equals(lower) || "1".equals(np)) {
|
|
|
|
|
+ item.setNeedPhoto("1");
|
|
|
|
|
+ } else if ("false".equals(lower) || "0".equals(np)) {
|
|
|
|
|
+ item.setNeedPhoto("0");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
taskItemMapper.insert(item);
|
|
taskItemMapper.insert(item);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|