|
@@ -296,11 +296,11 @@ public class YhKhjbxxController {
|
|
|
daMeter.setLjfje(new BigDecimal(ljfje));
|
|
|
if(jfzt.equals("1"))
|
|
|
{
|
|
|
- daMeter.setJfzt(JfztEnum.正常);//计费状态
|
|
|
+ daMeter.setJfzt("1");//计费状态
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- daMeter.setJfzt(JfztEnum.停用);//计费状态
|
|
|
+ daMeter.setJfzt("2");//计费状态
|
|
|
}
|
|
|
|
|
|
daMeter.setSbsccj(sbsccj);//水表厂家
|
|
@@ -332,7 +332,7 @@ public class YhKhjbxxController {
|
|
|
String strcwrq = mapcwrq.get("CWRQ").toString();//202305
|
|
|
bwMeterReadPlan.setCwrq(strcwrq);//财务日期
|
|
|
bwMeterReadPlan.setJsbz(JsbzEnum.未算费);//计算标志
|
|
|
- bwMeterReadPlan.setJfzt(JfztEnum.正常.toString());//正常状态
|
|
|
+ bwMeterReadPlan.setJfzt("1");//正常状态
|
|
|
bwMeterReadPlan.setCbbz(CbbzEnum.未抄表);//未抄表状态
|
|
|
bwMeterReadPlan.setShbz(ShbzEnum.未审核);//未审核标志
|
|
|
bwMeterReadPlan.setSsgs(ssgs);//公司
|
|
@@ -527,6 +527,34 @@ public class YhKhjbxxController {
|
|
|
YhCbkxx yhCbkxx = daCustomerAndMeter.getYhCbkxx();
|
|
|
//抄表计划添加
|
|
|
YyCblr yyCblr = new YyCblr();
|
|
|
+ if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("1"))
|
|
|
+ {
|
|
|
+ yhKhjbxx.setYhzt(YhztEnum.正式用户);//正式用户状态
|
|
|
+ yhCbkxx.setJfzt(JfztEnum.正常.toString());//计费状态(1正常,2停用)
|
|
|
+ yyCblr.setJfzt(JfztEnum.正常.getValue().toString());//正常状态
|
|
|
+ }
|
|
|
+
|
|
|
+ if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("2")) {
|
|
|
+ yhKhjbxx.setYhzt(YhztEnum.报停用户);//正式用户状态
|
|
|
+ }
|
|
|
+ if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("3")) {
|
|
|
+ yhKhjbxx.setYhzt(YhztEnum.销户用户);//正式用户状态
|
|
|
+ }
|
|
|
+ if(daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("4")) {
|
|
|
+ yhKhjbxx.setYhzt(YhztEnum.作废用户);//正式用户状态
|
|
|
+ }
|
|
|
+ if(daCustomerAndMeter.getYhCbkxx().getJfzt().equals("1"))
|
|
|
+ {
|
|
|
+ yhCbkxx.setJfzt("1");//计费状态(1正常,2停用)
|
|
|
+ yyCblr.setJfzt("1");//正常状态
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ yhCbkxx.setJfzt("2");//计费状态(1正常,2停用)
|
|
|
+ yyCblr.setJfzt("2");//正常状态
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if(rest.getCode()!=-1)
|
|
|
{
|
|
|
if (operationType.equals("save")) {
|
|
@@ -535,13 +563,14 @@ public class YhKhjbxxController {
|
|
|
//用户档案
|
|
|
yhKhjbxx.setYhbh(String.valueOf(maxyhbh)); //用户编号
|
|
|
yhKhjbxx.setYkhbh(String.valueOf(maxyhbh));//旧用户编号
|
|
|
- yhKhjbxx.setYhzt(YhztEnum.正式用户);//正式用户状态
|
|
|
+
|
|
|
+
|
|
|
//水表档案
|
|
|
yhCbkxx.setYhbh(String.valueOf(maxyhbh));//用户编号
|
|
|
yhCbkxx.setCbkh("1");//抄表卡号
|
|
|
String strcbkh = String.valueOf(maxyhbh) + 1;
|
|
|
yhCbkxx.setCbkid(strcbkh);//抄表卡ID
|
|
|
- yhCbkxx.setJfzt(JfztEnum.正常);//计费状态(1正常,2停用)
|
|
|
+
|
|
|
//抄表计划
|
|
|
yyCblr.setYhbh(String.valueOf(maxyhbh));//用户编号
|
|
|
yyCblr.setCbkh("1");//抄表卡号
|
|
@@ -551,7 +580,7 @@ public class YhKhjbxxController {
|
|
|
String strcwrq = mapcwrq.get("cwrq").toString();//202305
|
|
|
yyCblr.setCwrq(strcwrq);//财务日期
|
|
|
yyCblr.setJsbz(JsbzEnum.未算费);//计算标志
|
|
|
- yyCblr.setJfzt(JfztEnum.正常.getValue().toString());//正常状态
|
|
|
+
|
|
|
yyCblr.setCbbz(CbbzEnum.未抄表);//未抄表状态
|
|
|
yyCblr.setShbz(ShbzEnum.未审核);//未审核标志
|
|
|
yyCblr.setSsgs(daCustomerAndMeter.getYhKhjbxx().getSsgs());//公司
|
|
@@ -591,12 +620,8 @@ public class YhKhjbxxController {
|
|
|
yhCbkxx.setIckid(daCustomerAndMeter.getYhCbkxx().getIckid());//iCKID
|
|
|
yhCbkxx.setYhbh(daCustomerAndMeter.getYhCbkxx().getYhbh());
|
|
|
yyCblr.setCbkid(daCustomerAndMeter.getYhCbkxx().getCbkid());
|
|
|
- yyCblr.setJfzt("1");
|
|
|
|
|
|
- if (daCustomerAndMeter.getYhKhjbxx().getYhzt().equals("4")) {
|
|
|
- yhCbkxx.setJfzt(JfztEnum.停用);//停用状态
|
|
|
- yyCblr.setJfzt("2");//停用
|
|
|
- }
|
|
|
+
|
|
|
//用户档案修改执行成功
|
|
|
if (yhKhjbxxService.updateById(yhKhjbxx)) {
|
|
|
//用户水表档案执行功
|