作者 王勇

添加了几个注释

@@ -77,6 +77,7 @@ public class DispatchNoteController { @@ -77,6 +77,7 @@ public class DispatchNoteController {
77 dispatchNote.setEndTime(endTime); 77 dispatchNote.setEndTime(endTime);
78 PageInfo pageInfo = dispatchNoteService.selectDispatchNoteList(dispatchNote, pageNum, pageSize); 78 PageInfo pageInfo = dispatchNoteService.selectDispatchNoteList(dispatchNote, pageNum, pageSize);
79 if (pageInfo.getTotal() > 0) { 79 if (pageInfo.getTotal() > 0) {
  80 + result.setCode("200");
80 result.setData(pageInfo); 81 result.setData(pageInfo);
81 result.setMsg("查询调度记录,成功"); 82 result.setMsg("查询调度记录,成功");
82 } else { 83 } else {
@@ -108,6 +109,7 @@ public class DispatchNoteController { @@ -108,6 +109,7 @@ public class DispatchNoteController {
108 } 109 }
109 int num = dispatchNoteService.deleteByPrimaryKey(dispatchNote.getId()); 110 int num = dispatchNoteService.deleteByPrimaryKey(dispatchNote.getId());
110 if (num > 0) { 111 if (num > 0) {
  112 + result.setCode("200");
111 result.setMsg("删除调度记录信息,成功"); 113 result.setMsg("删除调度记录信息,成功");
112 } else { 114 } else {
113 result.setCode("400"); 115 result.setCode("400");
@@ -124,6 +126,7 @@ public class DispatchNoteController { @@ -124,6 +126,7 @@ public class DispatchNoteController {
124 dispatchNote.setOperation("2"); 126 dispatchNote.setOperation("2");
125 int num = dispatchNoteService.updateByPrimaryKeySelective(dispatchNote); 127 int num = dispatchNoteService.updateByPrimaryKeySelective(dispatchNote);
126 if (num > 0) { 128 if (num > 0) {
  129 + result.setCode("200");
127 result.setMsg("修改调度记录信息,成功"); 130 result.setMsg("修改调度记录信息,成功");
128 } else { 131 } else {
129 result.setCode("400"); 132 result.setCode("400");
@@ -144,6 +147,7 @@ public class DispatchNoteController { @@ -144,6 +147,7 @@ public class DispatchNoteController {
144 dispatchNote.setOperation("1"); 147 dispatchNote.setOperation("1");
145 int num = dispatchNoteService.insertSelective(dispatchNote); 148 int num = dispatchNoteService.insertSelective(dispatchNote);
146 if (num > 0) { 149 if (num > 0) {
  150 + result.setCode("200");
147 result.setMsg("添加调度记录信息,成功"); 151 result.setMsg("添加调度记录信息,成功");
148 } else { 152 } else {
149 result.setCode("400"); 153 result.setCode("400");
@@ -21,25 +21,91 @@ public interface DispatchNoteMapper { @@ -21,25 +21,91 @@ public interface DispatchNoteMapper {
21 */ 21 */
22 List<DispatchNote> selectVehicleInfoList(@Param("dispatchNote") DispatchNote dispatchNote); 22 List<DispatchNote> selectVehicleInfoList(@Param("dispatchNote") DispatchNote dispatchNote);
23 23
  24 + /**
  25 + * 删除,根据主键
  26 + *
  27 + * @param id
  28 + * @return
  29 + */
24 int deleteByPrimaryKey(String id); 30 int deleteByPrimaryKey(String id);
25 31
  32 + /**
  33 + * 增加
  34 + *
  35 + * @param record
  36 + * @return
  37 + */
26 int insert(DispatchNote record); 38 int insert(DispatchNote record);
27 39
  40 + /**
  41 + * 增加或者更新
  42 + *
  43 + * @param record
  44 + * @return
  45 + */
28 int insertOrUpdate(DispatchNote record); 46 int insertOrUpdate(DispatchNote record);
29 47
  48 + /**
  49 + * 增加或者更新,选择性
  50 + *
  51 + * @param record
  52 + * @return
  53 + */
30 int insertOrUpdateSelective(DispatchNote record); 54 int insertOrUpdateSelective(DispatchNote record);
31 55
  56 + /**
  57 + * 插入(增加),选择性
  58 + *
  59 + * @param record
  60 + * @return
  61 + */
32 int insertSelective(DispatchNote record); 62 int insertSelective(DispatchNote record);
33 63
  64 + /**
  65 + * 根据主键查询
  66 + *
  67 + * @param id
  68 + * @return
  69 + */
34 DispatchNote selectByPrimaryKey(String id); 70 DispatchNote selectByPrimaryKey(String id);
35 71
  72 + /**
  73 + * 更新,选择性,根据主键
  74 + *
  75 + * @param record
  76 + * @return
  77 + */
36 int updateByPrimaryKeySelective(DispatchNote record); 78 int updateByPrimaryKeySelective(DispatchNote record);
37 79
  80 + /**
  81 + * 更新,根据主键
  82 + *
  83 + * @param record
  84 + * @return
  85 + */
38 int updateByPrimaryKey(DispatchNote record); 86 int updateByPrimaryKey(DispatchNote record);
39 87
  88 + /**
  89 + * 批量更新
  90 + *
  91 + * @param list
  92 + * @return
  93 + */
40 int updateBatch(List<DispatchNote> list); 94 int updateBatch(List<DispatchNote> list);
41 95
  96 + /**
  97 + * 批量更新,选择性
  98 + *
  99 + * @param list
  100 + * @return
  101 + */
42 int updateBatchSelective(List<DispatchNote> list); 102 int updateBatchSelective(List<DispatchNote> list);
43 103
  104 + /**
  105 + * 批量插入,选择性
  106 + *
  107 + * @param list
  108 + * @return
  109 + */
44 int batchInsert(@Param("list") List<DispatchNote> list); 110 int batchInsert(@Param("list") List<DispatchNote> list);
45 } 111 }