Преглед изворни кода

修改预警生成待办功能

shengyang000 пре 5 година
родитељ
комит
555c2b33b0

+ 1 - 1
src/main/java/com/unissoft/Swagger2Config.java

@@ -31,7 +31,7 @@ public class Swagger2Config {
31 31
     @Bean
32 32
     public Docket CreateRestApi() {
33 33
         return new Docket(DocumentationType.SWAGGER_2)
34
-                .host(swaggerHost)
34
+//                .host(swaggerHost)
35 35
                 .apiInfo(apiInfo())
36 36
                 .select()
37 37
                 .apis(RequestHandlerSelectors.basePackage("com.unissoft"))

+ 31 - 0
src/main/java/com/unissoft/feign/MessageFeign.java

@@ -0,0 +1,31 @@
1
+package com.unissoft.feign;
2
+
3
+import com.unissoft.MyConstant;
4
+import com.unissoft.dto.MessageVO;
5
+import com.unissoft.dto.SendNoticeVO;
6
+import com.unissoft.result.ResultView;
7
+import org.springframework.cloud.openfeign.FeignClient;
8
+import org.springframework.stereotype.Component;
9
+import org.springframework.web.bind.annotation.PostMapping;
10
+import org.springframework.web.bind.annotation.RequestBody;
11
+
12
+
13
+/**
14
+ * feign调用system-manage服务
15
+ */
16
+@FeignClient(value = MyConstant.CSC_SZLS_MESSAGE, fallback = MessageHystrix.class)
17
+@Component
18
+public interface MessageFeign {
19
+
20
+	@PostMapping("/sysNoticeUser/authority_button/sendNotice")
21
+	ResultView sendNotice(@RequestBody SendNoticeVO sendNoticeVO);
22
+
23
+	/**
24
+	 * 向用户发送信息
25
+	 * @param messageVO
26
+	 * @return
27
+	 */
28
+	@PostMapping("/sysMessage/authority/sendMessage")
29
+	ResultView sendMessage(@RequestBody MessageVO messageVO);
30
+
31
+}

+ 34 - 0
src/main/java/com/unissoft/feign/MessageHystrix.java

@@ -0,0 +1,34 @@
1
+package com.unissoft.feign;
2
+
3
+import com.unissoft.dto.MessageVO;
4
+import com.unissoft.dto.SendNoticeVO;
5
+import com.unissoft.result.ResultView;
6
+import org.slf4j.Logger;
7
+import org.slf4j.LoggerFactory;
8
+import org.springframework.stereotype.Component;
9
+
10
+
11
+/**
12
+ * 熔断器
13
+ */
14
+@Component
15
+public class MessageHystrix implements MessageFeign {
16
+
17
+    private final Logger logger = LoggerFactory.getLogger(MessageHystrix.class);
18
+
19
+    @Override
20
+    public ResultView sendNotice(SendNoticeVO sendNoticeVO) {
21
+        // TODO Auto-generated method stub
22
+		System.err.println("调用csc-szls-message(sendNotice方法)服务发送通知失败!");
23
+        logger.error("调用csc-szls-message(sendNotice方法)服务发送通知失败!");
24
+        return null;
25
+    }
26
+
27
+    @Override
28
+    public ResultView sendMessage(MessageVO messageVO) {
29
+        System.err.println("调用csc-szls-message(sendMessage方法)服务向用户发送信息失败!");
30
+        logger.error("调用csc-szls-message(sendMessage方法)服务向用户发送信息失败!");
31
+        return null;
32
+    }
33
+
34
+}

+ 2 - 0
src/main/java/com/unissoft/feign/SystemFeign.java

@@ -4,6 +4,7 @@ import com.unissoft.MyConstant;
4 4
 import com.unissoft.model.BasicsWarehouse;
5 5
 import com.unissoft.model.SysUserDTO;
6 6
 import org.springframework.cloud.openfeign.FeignClient;
7
+import org.springframework.stereotype.Component;
7 8
 import org.springframework.web.bind.annotation.GetMapping;
8 9
 import org.springframework.web.bind.annotation.PathVariable;
9 10
 import org.springframework.web.bind.annotation.RequestParam;
@@ -13,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestParam;
13 14
  * feign调用system-manage服务
14 15
  */
15 16
 @FeignClient(value = MyConstant.CSC_SZLS_UPMS_SYSTEM_MANAGE, fallback = SystemHystrix.class)
17
+@Component
16 18
 public interface SystemFeign {
17 19
 
18 20
 	@GetMapping(value = "/basicsWarehouse/authority/getByIdHouse")

+ 4 - 0
src/main/java/com/unissoft/mapper/ProcessAuditMapper.java

@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 4
 import com.unissoft.model.ProcessAudit;
5 5
 import org.springframework.stereotype.Repository;
6 6
 
7
+import java.util.List;
8
+
7 9
 /**
8 10
  * <p>
9 11
  *  Mapper 接口
@@ -15,4 +17,6 @@ import org.springframework.stereotype.Repository;
15 17
 @Repository
16 18
 public interface ProcessAuditMapper extends BaseMapper<ProcessAudit> {
17 19
 
20
+    List<ProcessAudit> getToBeDone(List<Integer> list);
21
+
18 22
 }

+ 12 - 0
src/main/java/com/unissoft/mapper/ProcessAuditMapper.xml

@@ -32,4 +32,16 @@
32 32
         id, main_id, sub_id, sub_data, audit_state, operation_time, type, house_id, depot_id, from_people, to_people, result, apply_people, audit_time, process_id, ongoing_step, apply_time, work_name, start_date, end_date, to_page
33 33
     </sql>
34 34
 
35
+    <select id="getToBeDone" parameterType="list" resultType="com.unissoft.model.ProcessAudit">
36
+        select
37
+        <include refid="Base_Column_List"/>
38
+        from process_audit pa
39
+        <where>
40
+            pa.audit_state = 0 and
41
+            <foreach item="item" collection="list" separator=" or " open="(" close=")" index="">
42
+                pa.id=#{item, jdbcType=NUMERIC}
43
+            </foreach>
44
+        </where>
45
+    </select>
46
+
35 47
 </mapper>

+ 15 - 3
src/main/java/com/unissoft/ventilation/controller/ProcessAuditController.java

@@ -3,6 +3,7 @@ package com.unissoft.ventilation.controller;
3 3
 
4 4
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5 5
 import com.unissoft.dto.ProcessToBeDone;
6
+import com.unissoft.dto.ToBeDoneCallbackVO;
6 7
 import com.unissoft.feign.SystemFeign;
7 8
 import com.unissoft.model.ProcessAudit;
8 9
 import com.unissoft.model.SysUserDTO;
@@ -155,8 +156,9 @@ public class ProcessAuditController {
155 156
      */
156 157
     @ApiOperation(value = "粮情生成待办事项", notes = "")
157 158
     @PostMapping("/toBeDone")
158
-    public void toBeDone(@RequestBody ProcessToBeDone processToBeDone) {
159
-		processAuditService.toBeDone(processToBeDone);
159
+    public List<ToBeDoneCallbackVO> toBeDone(@RequestBody ProcessToBeDone processToBeDone) {
160
+        List<ToBeDoneCallbackVO> result = processAuditService.toBeDone(processToBeDone);
161
+        return result;
160 162
     }
161 163
     
162 164
     
@@ -176,7 +178,6 @@ public class ProcessAuditController {
176 178
     /**
177 179
      * 根据用户id、流程类型(如科长每2周粮情检查的类型:xxxx1),按时间倒序查出待办流程,将最近日期的流程设成已办
178 180
        同时要存储具体办理时的时间,因为要计算该流程办理的周期(或计算逾期时间)
179
-     * @param id
180 181
      */
181 182
     @ApiOperation(value = "根据待办id,将流程设成已办", notes = "")
182 183
     @GetMapping("/haveDone/{userId}/{type}/{depotId}/{houseId}/{auditState}")
@@ -200,4 +201,15 @@ public class ProcessAuditController {
200 201
         SysUserDTO userById = systemFeign.getUserById(id);
201 202
         return ResultView.success(userById);
202 203
     }
204
+
205
+    /**
206
+     * 获取待办预警通知
207
+     */
208
+    @ApiOperation(value = "获取待办预警通知", notes = "")
209
+    @PostMapping("/getNotBeDoneNotice")
210
+    public List<Integer> getNotBeDoneNotice(String toBeDoneIds) {
211
+        List<Integer> result = processAuditService.getNotBeDoneNotice(toBeDoneIds);
212
+        return result;
213
+    }
214
+
203 215
 }

+ 4 - 1
src/main/java/com/unissoft/ventilation/service/ProcessAuditService.java

@@ -3,6 +3,8 @@ package com.unissoft.ventilation.service;
3 3
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4 4
 import com.baomidou.mybatisplus.extension.service.IService;
5 5
 import com.unissoft.dto.ProcessToBeDone;
6
+import com.unissoft.dto.SendNoticeVO;
7
+import com.unissoft.dto.ToBeDoneCallbackVO;
6 8
 import com.unissoft.model.ProcessAudit;
7 9
 import com.unissoft.result.PageParam;
8 10
 import org.json.JSONException;
@@ -40,10 +42,11 @@ public interface ProcessAuditService extends IService<ProcessAudit> {
40 42
 
41 43
 	Page<ProcessAudit> completeList(PageParam pageParam) throws JSONException;
42 44
 
43
-	void toBeDone(ProcessToBeDone processToBeDone);
45
+	List<ToBeDoneCallbackVO> toBeDone(ProcessToBeDone processToBeDone);
44 46
 
45 47
 	void haveDone(Integer id,Integer auditState);
46 48
 
47 49
 	void haveDone(Integer userId, String type, Integer depotId, Integer houseId,Integer auditState);
48 50
 
51
+	List<Integer> getNotBeDoneNotice(String toBeDoneIds);
49 52
 }

+ 117 - 32
src/main/java/com/unissoft/ventilation/service/impl/ProcessAuditServiceImpl.java

@@ -9,6 +9,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
9 9
 import com.google.common.collect.Maps;
10 10
 import com.unissoft.MyConstant;
11 11
 import com.unissoft.dto.ProcessToBeDone;
12
+import com.unissoft.dto.ToBeDoneCallbackVO;
13
+import com.unissoft.feign.MessageFeign;
12 14
 import com.unissoft.feign.SystemFeign;
13 15
 import com.unissoft.mapper.*;
14 16
 import com.unissoft.model.*;
@@ -59,6 +61,9 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
59 61
     private SystemFeign systemFeign;
60 62
 
61 63
     @Autowired
64
+    private MessageFeign messageFeign;
65
+
66
+    @Autowired
62 67
     private RestTemplate restTemplate;
63 68
 
64 69
 
@@ -154,15 +159,15 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
154 159
             }
155 160
 
156 161
             if (StringUtils.isNotBlank(object.optString("startTime")) || StringUtils.isNotBlank(object.optString("endTime"))) {
157
-                if(StringUtils.isNotBlank(object.optString("startTime")) && StringUtils.isNotBlank(object.optString("endTime")) &&
158
-                  object.optString("startTime").equals(object.optString("endTime"))){
159
-                     ew.apply("date_format(apply_time,'%Y-%m-%d')='"+object.optString("startTime")+"'" );
160
-                }else{
161
-                 ew.between("apply_time", object.optString("startTime"), object.optString("endTime"));
162
+                if (StringUtils.isNotBlank(object.optString("startTime")) && StringUtils.isNotBlank(object.optString("endTime")) &&
163
+                        object.optString("startTime").equals(object.optString("endTime"))) {
164
+                    ew.apply("date_format(apply_time,'%Y-%m-%d')='" + object.optString("startTime") + "'");
165
+                } else {
166
+                    ew.between("apply_time", object.optString("startTime"), object.optString("endTime"));
162 167
                 }
163 168
 
164 169
             }
165
-            
170
+
166 171
 
167 172
         }
168 173
 
@@ -329,7 +334,7 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
329 334
                 processAudit1.setApplyPeople(processAudit.getApplyPeople());
330 335
                 processAudit1.setProcessId(processAudit.getProcessId());
331 336
                 processAudit1.setApplyTime(processAudit.getApplyTime());
332
-                if(processAudit.getType().equals("tf")){
337
+                if (processAudit.getType().equals("tf")) {
333 338
                     processAudit1.setWorkName("机械通风申请");
334 339
                 }
335 340
                 processAuditMapper.insert(processAudit1);
@@ -518,7 +523,7 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
518 523
 
519 524
         if (pageInfo.getTotal() > 0) {
520 525
             for (ProcessAudit processAudit : pageInfo.getRecords()) {
521
-            	//根据仓房id获取仓房名称
526
+                //根据仓房id获取仓房名称
522 527
                 ResponseEntity<String> forEntity = restTemplate.getForEntity(MyConstant.SYSTEM_WAREHOUSE + processAudit.getHouseId(), String.class);
523 528
                 JSONObject jsonObject = JSON.parseObject(forEntity.getBody());
524 529
                 BasicsWarehouse ware = JSONObject.toJavaObject(jsonObject, BasicsWarehouse.class);
@@ -575,7 +580,7 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
575 580
         Page<ProcessAudit> pageInfo = processAuditMapper.selectPage(page, ew);
576 581
         if (pageInfo.getTotal() > 0) {
577 582
             for (ProcessAudit processAudit : pageInfo.getRecords()) {
578
-            	//根据仓房id获取仓房名称
583
+                //根据仓房id获取仓房名称
579 584
                 ResponseEntity<String> forEntity = restTemplate.getForEntity(MyConstant.SYSTEM_WAREHOUSE + processAudit.getHouseId(), String.class);
580 585
                 JSONObject jsonObject = JSON.parseObject(forEntity.getBody());
581 586
                 BasicsWarehouse ware = JSONObject.toJavaObject(jsonObject, BasicsWarehouse.class);
@@ -600,18 +605,24 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
600 605
     }
601 606
 
602 607
     @Override
603
-    public void toBeDone(ProcessToBeDone processToBeDone) {//systemFeign
608
+    public List<ToBeDoneCallbackVO> toBeDone(ProcessToBeDone processToBeDone) {
609
+        List<ToBeDoneCallbackVO> result = new ArrayList<>();
610
+
604 611
         String usersInfo = processToBeDone.getUsersInfo();
605
-        if(StringUtils.isNotEmpty(usersInfo)) {
612
+        if (StringUtils.isNotEmpty(usersInfo)) {
606 613
             String[] userInfoArr = usersInfo.split(",");
607
-            for(String userInfo : userInfoArr) {
614
+            for (String userInfo : userInfoArr) {
608 615
                 String[] temp = userInfo.split("\\|");
609 616
                 Integer userId = Integer.parseInt(temp[0]);
610 617
                 SysUserDTO user = systemFeign.getUserById(userId);
611 618
                 String storehouseIds = user.getStorehouseIds();
612
-                if(StringUtils.isNotEmpty(storehouseIds)) {
619
+                String storehouseNames = user.getStorehouseNames();
620
+                if (StringUtils.isNotEmpty(storehouseIds)) {
613 621
                     String[] houseIdArr = storehouseIds.split(",");
614
-                    for(String houseId : houseIdArr) {
622
+                    String[] houseNameArr = storehouseNames.split(",");
623
+                    for (int i = 0; i < houseIdArr.length; i++) {
624
+                        String houseId = houseIdArr[i];
625
+                        String houseName = houseNameArr[i];
615 626
                         ProcessToBeDoneVO toBeDoneVO = new ProcessToBeDoneVO();
616 627
                         toBeDoneVO.setTitle(processToBeDone.getTitle());
617 628
                         toBeDoneVO.setHouseId(Integer.parseInt(houseId));
@@ -622,15 +633,45 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
622 633
                         toBeDoneVO.setUserId(userId);
623 634
                         toBeDoneVO.setType(processToBeDone.getType());
624 635
                         //
625
-                        toBeDone(toBeDoneVO);
636
+                        ProcessAudit processAudit = toBeDone(toBeDoneVO);//生成待办数据
637
+                        //
638
+                        ToBeDoneCallbackVO toBeDoneCallbackVO = new ToBeDoneCallbackVO();
639
+                        toBeDoneCallbackVO.setToBeDoneId(processAudit.getId());
640
+                        toBeDoneCallbackVO.setUserId(userId);
641
+                        toBeDoneCallbackVO.setPersonnelName(user.getPersonnelName());
642
+                        toBeDoneCallbackVO.setDepotId(user.getDepotId());
643
+                        toBeDoneCallbackVO.setDepotName(user.getDepotName());
644
+                        toBeDoneCallbackVO.setHouseId(Integer.parseInt(houseId));
645
+                        toBeDoneCallbackVO.setHouseName(houseName);
646
+//                        toBeDoneCallbackVO.setTitle(processToBeDone.getTitle());
647
+
648
+                        result.add(toBeDoneCallbackVO);
626 649
                     }
627 650
                 }
628 651
             }
629 652
         }
630
-    }
631 653
 
654
+        return result;
655
+    }
632 656
 
633
-    private void toBeDone(ProcessToBeDoneVO processToBeDone) {
657
+//    private SendNoticeVO getSendNoticeVO(ProcessToBeDoneVO toBeDoneVO, SysUserDTO userDTO, String houseName) {
658
+//        SendNoticeVO vo = new SendNoticeVO();
659
+//        Map<Integer, String> users = new HashMap<>();
660
+//        users.put(userDTO.getUId(), userDTO.getUName());
661
+//        SysNoticeVO sysNoticeVO = new SysNoticeVO();
662
+//
663
+//        String content = toBeDoneVO.getTitle() + "-" + houseName + "-" + "待处理";
664
+//        sysNoticeVO.setContent(content);
665
+//        sysNoticeVO.setNoticeTime(new Date());
666
+//        sysNoticeVO.setNoticeType(10);
667
+//        sysNoticeVO.setOrgName(userDTO.getCompanyName());
668
+//
669
+//        vo.setUsers(users);
670
+//        vo.setSysNoticeVO(sysNoticeVO);
671
+//        return vo;
672
+//    }
673
+
674
+    private ProcessAudit toBeDone(ProcessToBeDoneVO processToBeDone) {
634 675
         // TODO Auto-generated method stub
635 676
         ProcessAudit processAudit = new ProcessAudit();
636 677
         if (null != processToBeDone) {
@@ -667,30 +708,31 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
667 708
             }
668 709
             processAuditMapper.insert(processAudit);
669 710
         }
711
+        return processAudit;
670 712
     }
671 713
 
672 714
 
673 715
     @Override
674
-    public void haveDone(Integer id,Integer auditState) {
716
+    public void haveDone(Integer id, Integer auditState) {
675 717
         // TODO Auto-generated method stub
676 718
         ProcessAudit processAudit = processAuditMapper.selectById(id);
677
-        if(null!=processAudit){
678
-        	if(processAudit.getAuditState().equals(4)){//已经处理完成 则不处理
679
-        		haveDone(processAudit.getApplyPeople(),processAudit.getType(),processAudit.getDepotId(),processAudit.getHouseId(),auditState);
680
-        	}else{
681
-        		processAudit.setAuditState(auditState);//设置状态
719
+        if (null != processAudit) {
720
+            if (processAudit.getAuditState().equals(4)) {//已经处理完成 则不处理
721
+                haveDone(processAudit.getApplyPeople(), processAudit.getType(), processAudit.getDepotId(), processAudit.getHouseId(), auditState);
722
+            } else {
723
+                processAudit.setAuditState(auditState);//设置状态
682 724
                 // 获得SimpleDateFormat类
683 725
                 SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
684 726
                 processAudit.setOperationTime(sf.format(new Date()));//具体办理时的时间
685 727
                 processAuditMapper.updateById(processAudit);
686
-        	}
728
+            }
687 729
         }
688
-        
730
+
689 731
     }
690 732
 
691 733
 
692 734
     @Override
693
-    public void haveDone(Integer userId, String type, Integer depotId, Integer houseId,Integer auditState) {
735
+    public void haveDone(Integer userId, String type, Integer depotId, Integer houseId, Integer auditState) {
694 736
         // TODO Auto-generated method stub
695 737
         //根据用户id、流程类型(如科长每2周粮情检查的类型:xxxx1),按时间倒序查出待办流程,将最近日期的流程设成已办
696 738
         //同时要存储具体办理时的时间,因为要计算该流程办理的周期(或计算逾期时间)
@@ -701,14 +743,57 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
701 743
         ew.eq("house_id", houseId);
702 744
         ew.orderByDesc("start_date");//根据时间倒叙
703 745
         List<ProcessAudit> auditList = processAuditMapper.selectList(ew);
704
-        if(auditList.size()>0){
705
-        	 auditList.get(0).setAuditState(auditState);//设置状态
706
-             // 获得SimpleDateFormat类
707
-             SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
708
-             auditList.get(0).setOperationTime(sf.format(new Date()));//具体办理时的时间
709
-             processAuditMapper.updateById(auditList.get(0));
746
+        if (auditList.size() > 0) {
747
+            auditList.get(0).setAuditState(auditState);//设置状态
748
+            // 获得SimpleDateFormat类
749
+            SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
750
+            auditList.get(0).setOperationTime(sf.format(new Date()));//具体办理时的时间
751
+            processAuditMapper.updateById(auditList.get(0));
752
+        }
753
+
754
+    }
755
+
756
+    @Override
757
+    public List<Integer> getNotBeDoneNotice(String toBeDoneIds) {
758
+        List<Integer> result = null;
759
+        if (StringUtils.isNotEmpty(toBeDoneIds)) {
760
+            String[] toBeDoneIdArr = toBeDoneIds.split(",");
761
+            List<ProcessAudit> toBeDone = processAuditMapper.getToBeDone(convertType(toBeDoneIdArr));
762
+            if (null != toBeDone && toBeDone.size() > 0) {
763
+                result = new ArrayList<>();
764
+                for(ProcessAudit processAudit : toBeDone) {
765
+                    result.add(processAudit.getId());
766
+                }
767
+            }
710 768
         }
769
+        return result;
770
+    }
711 771
 
772
+    private List<Integer> convertType(String[] stringArr) {
773
+        List<Integer> result = null;
774
+        if (null != stringArr && stringArr.length > 0) {
775
+            result = new ArrayList<>();
776
+            for (String str : stringArr) {
777
+                result.add(Integer.parseInt(str));
778
+            }
779
+        }
780
+        return result;
712 781
     }
713 782
 
783
+    private String getWarehouse(SysUserDTO user, Integer houseId) {
784
+        String storehouseIds = user.getStorehouseIds();
785
+        String storehouseNames = user.getStorehouseNames();
786
+        if (StringUtils.isNotEmpty(storehouseIds)) {
787
+            String[] storehouseIdArr = storehouseIds.split(",");
788
+            String[] storehouseNameArr = storehouseNames.split(",");
789
+            for (int i = 0; i < storehouseIdArr.length; i++) {
790
+                if (storehouseIdArr[i].equals(houseId + "")) {
791
+                    return storehouseNameArr[i];
792
+                }
793
+            }
794
+        }
795
+        return null;
796
+    }
797
+
798
+
714 799
 }

+ 0 - 81
src/main/java/com/unissoft/vo/ProcessToBeDoneVO.java

@@ -33,86 +33,5 @@ public class ProcessToBeDoneVO{
33 33
     private Integer userId;//待办人员ID
34 34
 
35 35
     private String type;//流程类型
36
-
37
-	public Integer getId() {
38
-		return id;
39
-	}
40
-
41
-	public void setId(Integer id) {
42
-		this.id = id;
43
-	}
44
-
45
-	public String getTitle() {
46
-		return title;
47
-	}
48
-
49
-	public void setTitle(String title) {
50
-		this.title = title;
51
-	}
52
-
53
-	public Integer getHouseId() {
54
-		return houseId;
55
-	}
56
-
57
-	public void setHouseId(Integer houseId) {
58
-		this.houseId = houseId;
59
-	}
60
-
61
-	public Integer getDepotId() {
62
-		return depotId;
63
-	}
64
-
65
-	public void setDepotId(Integer depotId) {
66
-		this.depotId = depotId;
67
-	}
68
-
69
-	public Date getStartDate() {
70
-		return startDate;
71
-	}
72
-
73
-	public void setStartDate(Date startDate) {
74
-		this.startDate = startDate;
75
-	}
76
-
77
-	public Date getEndDate() {
78
-		return endDate;
79
-	}
80
-
81
-	public void setEndDate(Date endDate) {
82
-		this.endDate = endDate;
83
-	}
84
-
85
-	public String getToPage() {
86
-		return toPage;
87
-	}
88
-
89
-	public void setToPage(String toPage) {
90
-		this.toPage = toPage;
91
-	}
92
-
93
-	public Integer getUserId() {
94
-		return userId;
95
-	}
96
-
97
-	public void setUserId(Integer userId) {
98
-		this.userId = userId;
99
-	}
100
-
101
-	public String getType() {
102
-		return type;
103
-	}
104
-
105
-	public void setType(String type) {
106
-		this.type = type;
107
-	}
108
-
109
-	@Override
110
-	public String toString() {
111
-		return "ProcessToBeDoneVO [id=" + id + ", title=" + title + ", houseId=" + houseId + ", depotId=" + depotId
112
-				+ ", startDate=" + startDate + ", endDate=" + endDate + ", toPage=" + toPage + ", userId=" + userId
113
-				+ ", type=" + type + "]";
114
-	}
115
-    
116
-    
117 36
     
118 37
 }