|
@@ -0,0 +1,42 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.hospital.changshaxy.firstpagerecord;
|
|
|
+
|
|
|
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
+import com.lantone.qc.pub.Content;
|
|
|
+import com.lantone.qc.pub.model.InputInfo;
|
|
|
+import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+/**
|
|
|
+ * @ClassName : FIRP03278
|
|
|
+ * @Description :职业填写错误
|
|
|
+ * @Author : dy
|
|
|
+ * @Date: 2021-11-29 10:20
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRP03278 extends QCCatalogue {
|
|
|
+ private List<String>job_list= Arrays.asList("国家公务员","专业技术人员","职员","企业管理人员","工人","农民","学生","现役军人","自由职业者","个体经营者","无业人员"
|
|
|
+ ,"退(离)休人员","其他");
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo){
|
|
|
+ status.set("0");
|
|
|
+ if (inputInfo.getFirstPageRecordDoc()!=null && inputInfo.getFirstPageRecordDoc().getStructureMap()!=null){
|
|
|
+ Map<String, String> structureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
+ if (structureMap != null){
|
|
|
+ String job = structureMap.get(Content.job);
|
|
|
+ if (StringUtil.isNotEmpty(job)){
|
|
|
+ status.set("0");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 职业填写超出值域范围
|
|
|
+ */
|
|
|
+ if (job_list.contains(job) || !job.equals("-")){
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|