|
@@ -124,36 +124,43 @@ public class DzfQuestionOpRecordController {
|
|
|
DzfQuestionOpRecordDTO dzfQuestionOpRecordDTO=new DzfQuestionOpRecordDTO();
|
|
|
dzfQuestionOpRecordDTO.setRecordId(op.getDzfQuestionDetilDTOList().get(i).getId());
|
|
|
dzfQuestionOpRecordDTO.setRecordType("1");
|
|
|
+ String q_detils_state="";
|
|
|
|
|
|
//挂钩干部
|
|
|
if(userDTO.getRoleIds().equals("1910141956174053377")){
|
|
|
if(op.getDzfQuestionDetilDTOList().get(i).current.equals("0")){
|
|
|
+ q_detils_state="0";//问题附表用0
|
|
|
dzfQuestionOpRecordDTO.setOpType("3");
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("办结");
|
|
|
nextuser="dazoufang";
|
|
|
nextusername="大走访办公室";
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("1")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("4");
|
|
|
+ q_detils_state="4";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("反馈大走访活动办");
|
|
|
nextuser="dazoufang";
|
|
|
nextusername="大走访办公室";
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("2")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("5");
|
|
|
+ q_detils_state="5";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("正在办理");
|
|
|
nextuser=userDTO.getLoginName()+",dazoufang";
|
|
|
nextusername=userDTO.getName()+",大走访办公室";
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("3")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("6");
|
|
|
+ q_detils_state="6";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("难以化解");
|
|
|
nextuser=userDTO.getLoginName()+",dazoufang";
|
|
|
nextusername=userDTO.getName()+",大走访办公室";
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("4")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("7");
|
|
|
+ q_detils_state="7";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("持续跟踪");
|
|
|
nextuser=userDTO.getLoginName()+",dazoufang";
|
|
|
nextusername=userDTO.getName()+",大走访办公室";
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("5")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("8");
|
|
|
+ q_detils_state="8";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("提请会办");
|
|
|
nextuser=userDTO.getLoginName()+",dazoufang";
|
|
|
nextusername=userDTO.getName()+",大走访办公室";
|
|
@@ -170,6 +177,9 @@ public class DzfQuestionOpRecordController {
|
|
|
DzfQuestionDetilDTO aa=dzfQuestionDetilService.findById ( op.getDzfQuestionDetilDTOList().get(i).getId() );
|
|
|
aa.setDes1(nextuser);
|
|
|
aa.setDes2(nextusername);
|
|
|
+ aa.setStates(q_detils_state);
|
|
|
+ //附件放入附表
|
|
|
+ aa.setDes6(op.getDzfQuestionDetilDTOList().get(i).getDes6());
|
|
|
dzfQuestionDetilService.saveOrUpdate ( DzfQuestionDetilWrapper.INSTANCE.toEntity ( aa ));
|
|
|
|
|
|
|
|
@@ -179,18 +189,22 @@ public class DzfQuestionOpRecordController {
|
|
|
//办公室
|
|
|
if(userDTO.getRoleIds().equals("1910175386924417025")){
|
|
|
if(op.getDzfQuestionDetilDTOList().get(i).current.equals("0")){
|
|
|
+ q_detils_state="0";//问题附表用0
|
|
|
dzfQuestionOpRecordDTO.setOpType("3");
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("办结");
|
|
|
|
|
|
//修改副表的状态
|
|
|
DzfQuestionDetilDTO aa=dzfQuestionDetilService.findById ( op.getDzfQuestionDetilDTOList().get(i).getId() );
|
|
|
- aa.setStates("0");//问题办结;
|
|
|
+ aa.setStates(q_detils_state);//问题办结;
|
|
|
aa.setDes1("");
|
|
|
aa.setDes2("");
|
|
|
+ //附件放入附表
|
|
|
+ aa.setDes6(op.getDzfQuestionDetilDTOList().get(i).getDes6());
|
|
|
dzfQuestionDetilService.saveOrUpdate ( DzfQuestionDetilWrapper.INSTANCE.toEntity ( aa ));
|
|
|
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("1")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("9");
|
|
|
+ q_detils_state="9";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("交办");
|
|
|
|
|
|
//大走访办公室提交,将选择的交办单位带入到待办人中
|
|
@@ -201,6 +215,9 @@ public class DzfQuestionOpRecordController {
|
|
|
DzfQuestionDetilDTO aa=dzfQuestionDetilService.findById ( op.getDzfQuestionDetilDTOList().get(i).getId() );
|
|
|
aa.setDes1(op.getDzfQuestionDetilDTOList().get(i).checkUserList);
|
|
|
aa.setDes2(op.getDzfQuestionDetilDTOList().get(i).checkUserListName);
|
|
|
+ aa.setStates(q_detils_state);
|
|
|
+ //附件放入附表
|
|
|
+ aa.setDes6(op.getDzfQuestionDetilDTOList().get(i).getDes6());
|
|
|
dzfQuestionDetilService.saveOrUpdate ( DzfQuestionDetilWrapper.INSTANCE.toEntity ( aa ));
|
|
|
|
|
|
|
|
@@ -217,13 +234,15 @@ public class DzfQuestionOpRecordController {
|
|
|
//不办结的情况下都没有待办人
|
|
|
dzfQuestionOpRecordDTO.setDes3("");
|
|
|
dzfQuestionOpRecordDTO.setDes4("");
|
|
|
+ //取附表
|
|
|
+ DzfQuestionDetilDTO aa=dzfQuestionDetilService.findById ( op.getDzfQuestionDetilDTOList().get(i).getId() );
|
|
|
|
|
|
if(op.getDzfQuestionDetilDTOList().get(i).current.equals("0")){
|
|
|
+ q_detils_state="0";//问题附表用0
|
|
|
dzfQuestionOpRecordDTO.setOpType("3");
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("办结");
|
|
|
|
|
|
//修改副表的状态(删除问题表中的 待办人)
|
|
|
- DzfQuestionDetilDTO aa=dzfQuestionDetilService.findById ( op.getDzfQuestionDetilDTOList().get(i).getId() );
|
|
|
String olduser=aa.getDes1()+",";
|
|
|
String oldusern=aa.getDes2()+",";
|
|
|
String newuser=olduser.replaceFirst(userDTO.getLoginName()+",","");
|
|
@@ -238,24 +257,38 @@ public class DzfQuestionOpRecordController {
|
|
|
}
|
|
|
aa.setDes1(newuser);
|
|
|
aa.setDes2(newusern);
|
|
|
- dzfQuestionDetilService.saveOrUpdate ( DzfQuestionDetilWrapper.INSTANCE.toEntity ( aa ));
|
|
|
+ aa.setStates(q_detils_state);
|
|
|
|
|
|
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("1")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("5");
|
|
|
+ q_detils_state="5";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("正在办理");
|
|
|
+ aa.setStates(q_detils_state);
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("2")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("6");
|
|
|
+ q_detils_state="6";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("难以化解");
|
|
|
+ aa.setStates(q_detils_state);
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("3")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("7");
|
|
|
+ q_detils_state="7";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("持续跟踪");
|
|
|
+ aa.setStates(q_detils_state);
|
|
|
}else if(op.getDzfQuestionDetilDTOList().get(i).current.equals("4")){
|
|
|
- dzfQuestionOpRecordDTO.setOpType("8");
|
|
|
+ q_detils_state="8";
|
|
|
+ dzfQuestionOpRecordDTO.setOpType(q_detils_state);
|
|
|
dzfQuestionOpRecordDTO.setOpTypeName("提请会办");
|
|
|
+ aa.setStates(q_detils_state);
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ //附件放入附表
|
|
|
+ aa.setDes6(op.getDzfQuestionDetilDTOList().get(i).getDes6());
|
|
|
+ dzfQuestionDetilService.saveOrUpdate ( DzfQuestionDetilWrapper.INSTANCE.toEntity ( aa ));
|
|
|
+
|
|
|
//设置其他默认值
|
|
|
dzfQuestionOpRecordDTO.setRoleName("交办单位");
|
|
|
dzfQuestionOpRecordDTO.setDes1(userDTO.getName());//单位名称
|