Browse Source

用户修改,新增枚举调整

sxb 1 year ago
parent
commit
6e00948af5

+ 11 - 11
collect-fees/collect-fees-api/src/main/java/com/tofly/feesapi/yhgl/controller/YhKhjbxxController.java

@@ -244,23 +244,23 @@ public class YhKhjbxxController {
                                 daCustomer.setYhdz(user.getYhdz());//用户地址
                                 daCustomer.setLxdh(user.getLxdh());//用户电话
                                 daCustomer.setZjhm(user.getZjhm());//证件号码
-                                if(yhzt.equals("1"))
+                                if(yhzt.equals("1")||yhzt.equals("正式用户"))
                                 {
                                     daCustomer.setYhzt(YhztEnum.正式用户);//用户状态
                                 }
-                                if(yhzt.equals("0"))
+                                if(yhzt.equals("0")||yhzt.equals("申请用户"))
                                 {
                                     daCustomer.setYhzt(YhztEnum.申请用户);//用户状态
                                 }
-                                if(yhzt.equals("2"))
+                                if(yhzt.equals("2")||yhzt.equals("报停用户"))
                                 {
                                     daCustomer.setYhzt(YhztEnum.报停用户);//用户状态
                                 }
-                                if(yhzt.equals("3"))
+                                if(yhzt.equals("3")||yhzt.equals("销户用户"))
                                 {
                                     daCustomer.setYhzt(YhztEnum.销户用户);//用户状态
                                 }
-                                if(yhzt.equals("4"))
+                                if(yhzt.equals("4")||yhzt.equals("作废用户"))
                                 {
                                     daCustomer.setYhzt(YhztEnum.作废用户);//用户状态
                                 }
@@ -294,7 +294,7 @@ public class YhKhjbxxController {
 
                                 daMeter.setLjffs(ljffs); //垃圾费收取方式
                                 daMeter.setLjfje(new BigDecimal(ljfje));
-                                if(jfzt.equals("1"))
+                                if(jfzt.equals("1")||jfzt.equals("正常"))
                                 {
                                     daMeter.setJfzt("1");//计费状态
                                 }
@@ -527,23 +527,23 @@ public class YhKhjbxxController {
         YhCbkxx yhCbkxx = daCustomerAndMeter.getYhCbkxx();
         //抄表计划添加
         YyCblr yyCblr = new YyCblr();
-        if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("1"))
+        if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("1")||daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("正式用户"))
         {
             yhKhjbxx.setYhzt(YhztEnum.正式用户);//正式用户状态
             yhCbkxx.setJfzt(JfztEnum.正常.toString());//计费状态(1正常,2停用)
             yyCblr.setJfzt(JfztEnum.正常.getValue().toString());//正常状态
         }
 
-            if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("2")) {
+            if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("2")||daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("报停用户")) {
                 yhKhjbxx.setYhzt(YhztEnum.报停用户);//正式用户状态
             }
-            if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("3")) {
+            if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("3")||daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("销户用户")) {
                 yhKhjbxx.setYhzt(YhztEnum.销户用户);//正式用户状态
             }
-            if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("4")) {
+            if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("4")||daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("作废用户")) {
                 yhKhjbxx.setYhzt(YhztEnum.作废用户);//正式用户状态
             }
-            if(daCustomerAndMeter.getYhCbkxx().getJfzt().equals("1"))
+            if(daCustomerAndMeter.getYhCbkxx().getJfzt().equals("1")||daCustomerAndMeter.getYhCbkxx().getJfzt().equals("正常"))
             {
                 yhCbkxx.setJfzt("1");//计费状态(1正常,2停用)
                 yyCblr.setJfzt("1");//正常状态