kangwei:安环处置点表结构与相关代码
正在显示
10 个修改的文件
包含
452 行增加
和
12 行删除
... | @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType; | ... | @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType; |
6 | import com.baomidou.mybatisplus.annotation.TableId; | 6 | import com.baomidou.mybatisplus.annotation.TableId; |
7 | import com.baomidou.mybatisplus.annotation.TableName; | 7 | import com.baomidou.mybatisplus.annotation.TableName; |
8 | import com.baomidou.mybatisplus.annotation.TableField; | 8 | import com.baomidou.mybatisplus.annotation.TableField; |
9 | import com.skua.core.aspect.annotation.Dict; | ||
9 | import io.swagger.annotations.ApiModel; | 10 | import io.swagger.annotations.ApiModel; |
10 | import io.swagger.annotations.ApiModelProperty; | 11 | import io.swagger.annotations.ApiModelProperty; |
11 | import lombok.Data; | 12 | import lombok.Data; |
... | @@ -29,17 +30,18 @@ public class AjhWasteSolidContract { | ... | @@ -29,17 +30,18 @@ public class AjhWasteSolidContract { |
29 | @TableId(type = IdType.ID_WORKER_STR) | 30 | @TableId(type = IdType.ID_WORKER_STR) |
30 | @ApiModelProperty(value = "报警ID 主键") | 31 | @ApiModelProperty(value = "报警ID 主键") |
31 | private String id; | 32 | private String id; |
32 | /**处理单位*/ | 33 | |
33 | @Excel(name = "处理单位", width = 15) | 34 | @Excel(name = "水厂编号", width = 15) |
34 | @ApiModelProperty(value = "水厂编号") | 35 | @ApiModelProperty(value = "水厂编号") |
35 | private String departId; | 36 | private String departId; |
36 | /**水厂名称*/ | 37 | /**水厂名称*/ |
37 | @Excel(name = "水厂名称", width = 15) | 38 | @Excel(name = "水厂名称", width = 15) |
38 | @ApiModelProperty(value = "水厂名称") | 39 | @ApiModelProperty(value = "水厂名称") |
39 | private String departName; | 40 | private String departName; |
40 | /**处理单位*/ | 41 | |
41 | @Excel(name = "处理单位", width = 15) | 42 | @Excel(name = "处理单位", width = 15) |
42 | @ApiModelProperty(value = "处理单位") | 43 | @ApiModelProperty(value = "处理单位") |
44 | @Dict(dictTable = "ajh_safe_handle_point", dicCode="id", dicText = "company_name") | ||
43 | private String handleDepartName; | 45 | private String handleDepartName; |
44 | /**合同签订时间*/ | 46 | /**合同签订时间*/ |
45 | @Excel(name = "合同签订时间", width = 15) | 47 | @Excel(name = "合同签订时间", width = 15) | ... | ... |
... | @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType; | ... | @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType; |
6 | import com.baomidou.mybatisplus.annotation.TableId; | 6 | import com.baomidou.mybatisplus.annotation.TableId; |
7 | import com.baomidou.mybatisplus.annotation.TableName; | 7 | import com.baomidou.mybatisplus.annotation.TableName; |
8 | import com.baomidou.mybatisplus.annotation.TableField; | 8 | import com.baomidou.mybatisplus.annotation.TableField; |
9 | import com.skua.core.aspect.annotation.Dict; | ||
9 | import io.swagger.annotations.ApiModel; | 10 | import io.swagger.annotations.ApiModel; |
10 | import io.swagger.annotations.ApiModelProperty; | 11 | import io.swagger.annotations.ApiModelProperty; |
11 | import lombok.Data; | 12 | import lombok.Data; |
... | @@ -29,17 +30,19 @@ public class AjhWasteSolidTransport { | ... | @@ -29,17 +30,19 @@ public class AjhWasteSolidTransport { |
29 | @TableId(type = IdType.ID_WORKER_STR) | 30 | @TableId(type = IdType.ID_WORKER_STR) |
30 | @ApiModelProperty(value = "报警ID 主键") | 31 | @ApiModelProperty(value = "报警ID 主键") |
31 | private String id; | 32 | private String id; |
32 | /**处理单位*/ | 33 | |
33 | @Excel(name = "处理单位", width = 15) | 34 | @Excel(name = "水厂编号", width = 15) |
34 | @ApiModelProperty(value = "处理单位") | 35 | @ApiModelProperty(value = "水厂编号") |
36 | |||
35 | private String departId; | 37 | private String departId; |
36 | /**水厂名称*/ | 38 | /**水厂名称*/ |
37 | @Excel(name = "水厂名称", width = 15) | 39 | @Excel(name = "水厂名称", width = 15) |
38 | @ApiModelProperty(value = "水厂名称") | 40 | @ApiModelProperty(value = "水厂名称") |
39 | private String departName; | 41 | private String departName; |
40 | /**处理单位*/ | 42 | |
41 | @Excel(name = "处理单位", width = 15) | 43 | @Excel(name = "处理单位", width = 15) |
42 | @ApiModelProperty(value = "处理单位") | 44 | @ApiModelProperty(value = "处理单位") |
45 | @Dict(dictTable = "ajh_safe_handle_point", dicCode="id", dicText = "company_name") | ||
43 | private String handleDepartName; | 46 | private String handleDepartName; |
44 | /**车牌号*/ | 47 | /**车牌号*/ |
45 | @Excel(name = "车牌号", width = 15) | 48 | @Excel(name = "车牌号", width = 15) | ... | ... |
... | @@ -74,14 +74,14 @@ public class PurchaseContractController { | ... | @@ -74,14 +74,14 @@ public class PurchaseContractController { |
74 | Page<ERPPurchaseContract> page = new Page<ERPPurchaseContract>(pageNo, pageSize); | 74 | Page<ERPPurchaseContract> page = new Page<ERPPurchaseContract>(pageNo, pageSize); |
75 | 75 | ||
76 | // 需要添加条件判断 | 76 | // 需要添加条件判断 |
77 | /*if(StringUtils.isEmpty(purchaseContract.getStatus())){ | 77 | if(StringUtils.isEmpty(purchaseContract.getStatus())){ |
78 | queryWrapper.gt("status" , "0");// >0 | 78 | queryWrapper.gt("status" , "0");// >0 |
79 | queryWrapper.ne("status" , "2"); // 不等于2 | 79 | queryWrapper.ne("status" , "2"); // 不等于2 |
80 | }*/ | 80 | } |
81 | //启用状态:=0 | 81 | //启用状态:=0 |
82 | /*if(StringUtils.isEmpty(purchaseContract.getUseFlag())){ | 82 | if(StringUtils.isEmpty(purchaseContract.getUseFlag())){ |
83 | queryWrapper.eq("use_flag","0"); | 83 | queryWrapper.eq("use_flag","0"); |
84 | }*/ | 84 | } |
85 | IPage<ERPPurchaseContract> pageList = purchaseContractService.page(page, queryWrapper); | 85 | IPage<ERPPurchaseContract> pageList = purchaseContractService.page(page, queryWrapper); |
86 | result.setSuccess(true); | 86 | result.setSuccess(true); |
87 | result.setResult(pageList); | 87 | result.setResult(pageList); |
... | @@ -228,6 +228,9 @@ public class PurchaseContractController { | ... | @@ -228,6 +228,9 @@ public class PurchaseContractController { |
228 | if(purchaseContract==null) { | 228 | if(purchaseContract==null) { |
229 | result.error500("未找到对应实体"); | 229 | result.error500("未找到对应实体"); |
230 | }else { | 230 | }else { |
231 | if("1".equals(purchaseContract.getUseFlag())){ | ||
232 | result.error500("合同状态是:[未启用],不能提交审核!"); | ||
233 | }else{ | ||
231 | purchaseContract.setStatus("1"); | 234 | purchaseContract.setStatus("1"); |
232 | purchaseContract.setApplyUser(BaseContextHandler.getUserId()); | 235 | purchaseContract.setApplyUser(BaseContextHandler.getUserId()); |
233 | purchaseContract.setApplyTime(DateUtils.now()); | 236 | purchaseContract.setApplyTime(DateUtils.now()); |
... | @@ -235,6 +238,8 @@ public class PurchaseContractController { | ... | @@ -235,6 +238,8 @@ public class PurchaseContractController { |
235 | result.setResult(purchaseContract); | 238 | result.setResult(purchaseContract); |
236 | result.setSuccess(true); | 239 | result.setSuccess(true); |
237 | } | 240 | } |
241 | |||
242 | } | ||
238 | return result; | 243 | return result; |
239 | } | 244 | } |
240 | @AutoLog(value = "erp统购合同-审批") | 245 | @AutoLog(value = "erp统购合同-审批") | ... | ... |
sk-module-biz/src/main/java/com/skua/modules/safe/controller/SafeHandlePointController.java
0 → 100644
1 | package com.skua.modules.safe.controller; | ||
2 | |||
3 | import java.util.Arrays; | ||
4 | import java.util.List; | ||
5 | import java.util.Map; | ||
6 | import java.io.IOException; | ||
7 | import java.io.UnsupportedEncodingException; | ||
8 | import java.net.URLDecoder; | ||
9 | import javax.servlet.http.HttpServletRequest; | ||
10 | import javax.servlet.http.HttpServletResponse; | ||
11 | import com.skua.core.api.vo.Result; | ||
12 | import com.skua.core.aspect.annotation.AutoLog; | ||
13 | import com.skua.core.query.QueryGenerator; | ||
14 | import com.skua.core.util.ConvertUtils; | ||
15 | import com.skua.modules.safe.entity.SafeHandlePoint; | ||
16 | import com.skua.modules.safe.service.ISafeHandlePointService; | ||
17 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | ||
18 | import com.baomidou.mybatisplus.core.metadata.IPage; | ||
19 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
20 | import lombok.extern.slf4j.Slf4j; | ||
21 | |||
22 | import org.jeecgframework.poi.excel.ExcelImportUtil; | ||
23 | import org.jeecgframework.poi.excel.def.NormalExcelConstants; | ||
24 | import org.jeecgframework.poi.excel.entity.ExportParams; | ||
25 | import org.jeecgframework.poi.excel.entity.ImportParams; | ||
26 | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; | ||
27 | |||
28 | import org.springframework.beans.factory.annotation.Autowired; | ||
29 | import org.springframework.web.bind.annotation.*; | ||
30 | import org.springframework.web.multipart.MultipartFile; | ||
31 | import org.springframework.web.multipart.MultipartHttpServletRequest; | ||
32 | import org.springframework.web.servlet.ModelAndView; | ||
33 | import com.alibaba.fastjson.JSON; | ||
34 | import io.swagger.annotations.Api; | ||
35 | import io.swagger.annotations.ApiOperation; | ||
36 | |||
37 | /** | ||
38 | * <pre> | ||
39 | * 安环处置点 | ||
40 | * </pre> | ||
41 | * @author 开发者姓名 | ||
42 | * @version V0.1, 开发时间 | ||
43 | */ | ||
44 | @Slf4j | ||
45 | @Api(tags="安环处置点") | ||
46 | @RestController("webSafeHandlePointController") | ||
47 | @RequestMapping("/web/safe/safeHandlePoint") | ||
48 | public class SafeHandlePointController { | ||
49 | @Autowired | ||
50 | private ISafeHandlePointService safeHandlePointService; | ||
51 | |||
52 | /** | ||
53 | * <pre> | ||
54 | * 分页列表查询 | ||
55 | * </pre> | ||
56 | * @param safeHandlePoint | ||
57 | * @param pageNo | ||
58 | * @param pageSize | ||
59 | * @param req | ||
60 | * @return | ||
61 | * @author 开发者姓名, 开发时间 | ||
62 | * @Description: TODO(这里描述这个方法的需求变更情况) | ||
63 | */ | ||
64 | |||
65 | @AutoLog(value = "安环处置点-分页列表查询") | ||
66 | @ApiOperation(value="安环处置点-分页列表查询", notes="安环处置点-分页列表查询") | ||
67 | @GetMapping(value = "/page") | ||
68 | public Result<IPage<SafeHandlePoint>> queryPageList(SafeHandlePoint safeHandlePoint, | ||
69 | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, | ||
70 | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, | ||
71 | HttpServletRequest req) { | ||
72 | Result<IPage<SafeHandlePoint>> result = new Result<IPage<SafeHandlePoint>>(); | ||
73 | QueryWrapper<SafeHandlePoint> queryWrapper = QueryGenerator.initQueryWrapper(safeHandlePoint, req.getParameterMap()); | ||
74 | Page<SafeHandlePoint> page = new Page<SafeHandlePoint>(pageNo, pageSize); | ||
75 | queryWrapper.orderByDesc("create_time"); | ||
76 | IPage<SafeHandlePoint> pageList = safeHandlePointService.page(page, queryWrapper); | ||
77 | result.setSuccess(true); | ||
78 | result.setResult(pageList); | ||
79 | return result; | ||
80 | } | ||
81 | |||
82 | @AutoLog(value = "安环处置点-列表查询") | ||
83 | @ApiOperation(value="安环处置点-列表查询", notes="安环处置点-列表查询") | ||
84 | @GetMapping(value = "/list") | ||
85 | public Result<List<SafeHandlePoint>> queryList(SafeHandlePoint safeHandlePoint, HttpServletRequest req) { | ||
86 | Result<List<SafeHandlePoint>> result = new Result<>(); | ||
87 | QueryWrapper<SafeHandlePoint> queryWrapper = QueryGenerator.initQueryWrapper(safeHandlePoint, req.getParameterMap()); | ||
88 | queryWrapper.orderByDesc("create_time"); | ||
89 | List<SafeHandlePoint> list = safeHandlePointService.list(queryWrapper); | ||
90 | result.setSuccess(true); | ||
91 | result.setResult(list); | ||
92 | return result; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <pre> | ||
97 | * 添加 | ||
98 | * </pre> | ||
99 | * @param safeHandlePoint | ||
100 | * @return | ||
101 | * @author 开发者姓名, 开发时间 | ||
102 | * @Description: TODO(这里描述这个方法的需求变更情况) | ||
103 | */ | ||
104 | @AutoLog(value = "安环处置点-添加") | ||
105 | @ApiOperation(value="安环处置点-添加", notes="安环处置点-添加") | ||
106 | @PostMapping(value = "/add") | ||
107 | public Result<SafeHandlePoint> add(@RequestBody SafeHandlePoint safeHandlePoint) { | ||
108 | Result<SafeHandlePoint> result = new Result<SafeHandlePoint>(); | ||
109 | try { | ||
110 | safeHandlePointService.save(safeHandlePoint); | ||
111 | result.success("添加成功!"); | ||
112 | } catch (Exception e) { | ||
113 | log.error(e.getMessage(),e); | ||
114 | result.error500("操作失败"); | ||
115 | } | ||
116 | return result; | ||
117 | } | ||
118 | |||
119 | |||
120 | //relatedContracts 关联合同 | ||
121 | /** | ||
122 | * <pre> | ||
123 | * 编辑 | ||
124 | * </pre> | ||
125 | * @param safeHandlePoint | ||
126 | * @return | ||
127 | * @author 开发者姓名, 开发时间 | ||
128 | * @Description: TODO(这里描述这个方法的需求变更情况) | ||
129 | */ | ||
130 | @AutoLog(value = "安环处置点-编辑") | ||
131 | @ApiOperation(value="安环处置点-编辑", notes="安环处置点-编辑") | ||
132 | @PutMapping(value = "/edit") | ||
133 | public Result<SafeHandlePoint> edit(@RequestBody SafeHandlePoint safeHandlePoint) { | ||
134 | Result<SafeHandlePoint> result = new Result<SafeHandlePoint>(); | ||
135 | SafeHandlePoint safeHandlePointEntity = safeHandlePointService.getById(safeHandlePoint.getId()); | ||
136 | if(safeHandlePointEntity==null) { | ||
137 | result.error500("未找到对应实体"); | ||
138 | }else { | ||
139 | boolean ok = safeHandlePointService.updateById(safeHandlePoint); | ||
140 | //TODO 返回false说明什么? | ||
141 | if(ok) { | ||
142 | result.success("修改成功!"); | ||
143 | } | ||
144 | } | ||
145 | |||
146 | return result; | ||
147 | } | ||
148 | /** | ||
149 | * <pre> | ||
150 | * 通过id删除 | ||
151 | * </pre> | ||
152 | * @param id | ||
153 | * @return | ||
154 | * @author 开发者姓名, 开发时间 | ||
155 | * @Description: TODO(这里描述这个方法的需求变更情况) | ||
156 | */ | ||
157 | @AutoLog(value = "安环处置点-通过id删除") | ||
158 | @ApiOperation(value="安环处置点-通过id删除", notes="安环处置点-通过id删除") | ||
159 | @DeleteMapping(value = "/delete") | ||
160 | public Result<?> delete(@RequestParam(name="id",required=true) String id) { | ||
161 | try { | ||
162 | safeHandlePointService.removeById(id); | ||
163 | } catch (Exception e) { | ||
164 | log.error("删除失败",e.getMessage()); | ||
165 | return Result.error("删除失败!"); | ||
166 | } | ||
167 | return Result.ok("删除成功!"); | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <pre> | ||
172 | * 批量删除 | ||
173 | * </pre> | ||
174 | * @param ids | ||
175 | * @return | ||
176 | * @author 开发者姓名, 开发时间 | ||
177 | * @Description: TODO(这里描述这个方法的需求变更情况) | ||
178 | */ | ||
179 | @AutoLog(value = "安环处置点-批量删除") | ||
180 | @ApiOperation(value="安环处置点-批量删除", notes="安环处置点-批量删除") | ||
181 | @DeleteMapping(value = "/deleteBatch") | ||
182 | public Result<SafeHandlePoint> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | ||
183 | Result<SafeHandlePoint> result = new Result<SafeHandlePoint>(); | ||
184 | if(ids==null || "".equals(ids.trim())) { | ||
185 | result.error500("参数不识别!"); | ||
186 | }else { | ||
187 | this.safeHandlePointService.removeByIds(Arrays.asList(ids.split(","))); | ||
188 | result.success("删除成功!"); | ||
189 | } | ||
190 | return result; | ||
191 | } | ||
192 | /** | ||
193 | * <pre> | ||
194 | * 通过id查询 | ||
195 | * </pre> | ||
196 | * @param id | ||
197 | * @return | ||
198 | * @author 开发者姓名, 开发时间 | ||
199 | * @Description: TODO(这里描述这个方法的需求变更情况) | ||
200 | */ | ||
201 | @AutoLog(value = "安环处置点-通过id查询") | ||
202 | @ApiOperation(value="安环处置点-通过id查询", notes="安环处置点-通过id查询") | ||
203 | @GetMapping(value = "/queryById") | ||
204 | public Result<SafeHandlePoint> queryById(@RequestParam(name="id",required=true) String id) { | ||
205 | Result<SafeHandlePoint> result = new Result<SafeHandlePoint>(); | ||
206 | SafeHandlePoint safeHandlePoint = safeHandlePointService.getById(id); | ||
207 | if(safeHandlePoint==null) { | ||
208 | result.error500("未找到对应实体"); | ||
209 | }else { | ||
210 | result.setResult(safeHandlePoint); | ||
211 | result.setSuccess(true); | ||
212 | } | ||
213 | return result; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <pre> | ||
218 | * 导出excel | ||
219 | * </pre> | ||
220 | * @param request | ||
221 | * @param response | ||
222 | * @return | ||
223 | * @author 开发者姓名, 开发时间 | ||
224 | * @Description: TODO(这里描述这个方法的需求变更情况) | ||
225 | */ | ||
226 | |||
227 | @RequestMapping(value = "/exportXls") | ||
228 | public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) { | ||
229 | // Step.1 组装查询条件 | ||
230 | QueryWrapper<SafeHandlePoint> queryWrapper = null; | ||
231 | try { | ||
232 | String paramsStr = request.getParameter("paramsStr"); | ||
233 | if (ConvertUtils.isNotEmpty(paramsStr)) { | ||
234 | String deString = URLDecoder.decode(paramsStr, "UTF-8"); | ||
235 | SafeHandlePoint safeHandlePoint = JSON.parseObject(deString, SafeHandlePoint.class); | ||
236 | queryWrapper = QueryGenerator.initQueryWrapper(safeHandlePoint, request.getParameterMap()); | ||
237 | } | ||
238 | } catch (UnsupportedEncodingException e) { | ||
239 | e.printStackTrace(); | ||
240 | } | ||
241 | |||
242 | //Step.2 AutoPoi 导出Excel | ||
243 | ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); | ||
244 | List<SafeHandlePoint> pageList = safeHandlePointService.list(queryWrapper); | ||
245 | //导出文件名称 | ||
246 | mv.addObject(NormalExcelConstants.FILE_NAME, "安环处置点列表"); | ||
247 | mv.addObject(NormalExcelConstants.CLASS, SafeHandlePoint.class); | ||
248 | mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("安环处置点列表数据", "导出人:Jeecg", "导出信息")); | ||
249 | mv.addObject(NormalExcelConstants.DATA_LIST, pageList); | ||
250 | return mv; | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * <pre> | ||
255 | * 通过excel导入数据 | ||
256 | * </pre> | ||
257 | * @param request | ||
258 | * @param response | ||
259 | * @return | ||
260 | * @author 开发者姓名, 开发时间 | ||
261 | * @Description: TODO(这里描述这个方法的需求变更情况) | ||
262 | */ | ||
263 | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) | ||
264 | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { | ||
265 | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; | ||
266 | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); | ||
267 | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { | ||
268 | MultipartFile file = entity.getValue();// 获取上传文件对象 | ||
269 | ImportParams params = new ImportParams(); | ||
270 | params.setTitleRows(2); | ||
271 | params.setHeadRows(1); | ||
272 | params.setNeedSave(true); | ||
273 | try { | ||
274 | List<SafeHandlePoint> listSafeHandlePoints = ExcelImportUtil.importExcel(file.getInputStream(), SafeHandlePoint.class, params); | ||
275 | safeHandlePointService.saveBatch(listSafeHandlePoints); | ||
276 | return Result.ok("文件导入成功!数据行数:" + listSafeHandlePoints.size()); | ||
277 | } catch (Exception e) { | ||
278 | log.error(e.getMessage(),e); | ||
279 | return Result.error("文件导入失败:"+e.getMessage()); | ||
280 | } finally { | ||
281 | try { | ||
282 | file.getInputStream().close(); | ||
283 | } catch (IOException e) { | ||
284 | e.printStackTrace(); | ||
285 | } | ||
286 | } | ||
287 | } | ||
288 | return Result.ok("文件导入失败!"); | ||
289 | } | ||
290 | |||
291 | } |
1 | package com.skua.modules.safe.entity; | ||
2 | |||
3 | import java.util.Date; | ||
4 | import com.baomidou.mybatisplus.annotation.IdType; | ||
5 | import com.baomidou.mybatisplus.annotation.TableId; | ||
6 | import com.baomidou.mybatisplus.annotation.TableName; | ||
7 | import com.skua.core.aspect.annotation.Dict; | ||
8 | import io.swagger.annotations.ApiModel; | ||
9 | import io.swagger.annotations.ApiModelProperty; | ||
10 | import lombok.Data; | ||
11 | import lombok.EqualsAndHashCode; | ||
12 | import lombok.experimental.Accessors; | ||
13 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
14 | import org.springframework.format.annotation.DateTimeFormat; | ||
15 | import org.jeecgframework.poi.excel.annotation.Excel; | ||
16 | |||
17 | /** | ||
18 | * 安环处置点 | ||
19 | */ | ||
20 | @Data | ||
21 | @TableName("ajh_safe_handle_point") | ||
22 | @EqualsAndHashCode(callSuper = false) | ||
23 | @Accessors(chain = true) | ||
24 | @ApiModel(value="ajh_safe_handle_point对象", description="安环处置点") | ||
25 | public class SafeHandlePoint { | ||
26 | |||
27 | /**id*/ | ||
28 | @TableId(type = IdType.ID_WORKER_STR) | ||
29 | @ApiModelProperty(value = "id") | ||
30 | private String id; | ||
31 | /**公司名称*/ | ||
32 | @Excel(name = "公司名称", width = 15) | ||
33 | @ApiModelProperty(value = "公司名称") | ||
34 | private String companyName; | ||
35 | /**简称*/ | ||
36 | @Excel(name = "简称", width = 15) | ||
37 | @ApiModelProperty(value = "简称") | ||
38 | private String nameAbbr; | ||
39 | /**处置方式*/ | ||
40 | @Excel(name = "处置方式", width = 15) | ||
41 | @ApiModelProperty(value = "处置方式") | ||
42 | @Dict(dicCode = "safe_handle_type") | ||
43 | private String handleType; | ||
44 | /**日处理能力*/ | ||
45 | @Excel(name = "日处理能力", width = 15) | ||
46 | @ApiModelProperty(value = "日处理能力") | ||
47 | private String dayHandleCapacity; | ||
48 | /**合作状态*/ | ||
49 | @Excel(name = "合作状态", width = 15) | ||
50 | @ApiModelProperty(value = "合作状态") | ||
51 | @Dict(dicCode = "cooperate_status") | ||
52 | private String status; | ||
53 | /**地址*/ | ||
54 | @Excel(name = "地址", width = 15) | ||
55 | @ApiModelProperty(value = "地址") | ||
56 | private String address; | ||
57 | /**附件*/ | ||
58 | @Excel(name = "附件", width = 15) | ||
59 | @ApiModelProperty(value = "附件") | ||
60 | private String filePath; | ||
61 | /**录入全国信息系统:0 是 1否*/ | ||
62 | @Excel(name = "录入全国信息系统:0 是 1否", width = 15) | ||
63 | @ApiModelProperty(value = "录入全国信息系统:0 是 1否") | ||
64 | private Integer enterSystem; | ||
65 | /**关联合同集合*/ | ||
66 | @Excel(name = "关联合同集合", width = 15) | ||
67 | @ApiModelProperty(value = "关联合同集合") | ||
68 | private String contractIds; | ||
69 | /**0未删除1删除*/ | ||
70 | @Excel(name = "0未删除1删除", width = 15) | ||
71 | @ApiModelProperty(value = "0未删除1删除") | ||
72 | private Integer delFlag; | ||
73 | /**createTime*/ | ||
74 | @Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss") | ||
75 | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | ||
76 | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | ||
77 | @ApiModelProperty(value = "createTime") | ||
78 | private Date createTime; | ||
79 | /**创建人*/ | ||
80 | @Excel(name = "创建人", width = 15) | ||
81 | @ApiModelProperty(value = "创建人") | ||
82 | private String createBy; | ||
83 | /**updateBy*/ | ||
84 | @Excel(name = "updateBy", width = 15) | ||
85 | @ApiModelProperty(value = "updateBy") | ||
86 | private String updateBy; | ||
87 | /**updateTime*/ | ||
88 | @Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss") | ||
89 | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | ||
90 | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | ||
91 | @ApiModelProperty(value = "updateTime") | ||
92 | private Date updateTime; | ||
93 | } |
1 | package com.skua.modules.safe.mapper; | ||
2 | |||
3 | import java.util.List; | ||
4 | |||
5 | import org.apache.ibatis.annotations.Param; | ||
6 | import com.skua.modules.safe.entity.SafeHandlePoint; | ||
7 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
8 | |||
9 | /** | ||
10 | * 安环处置点 | ||
11 | */ | ||
12 | public interface SafeHandlePointMapper extends BaseMapper<SafeHandlePoint> { | ||
13 | |||
14 | } |
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | <mapper namespace="com.skua.modules.safe.mapper.SafeHandlePointMapper"> | ||
4 | |||
5 | </mapper> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
sk-module-biz/src/main/java/com/skua/modules/safe/service/impl/SafeHandlePointServiceImpl.java
0 → 100644
1 | package com.skua.modules.safe.service.impl; | ||
2 | |||
3 | import com.skua.modules.safe.entity.SafeHandlePoint; | ||
4 | import com.skua.modules.safe.mapper.SafeHandlePointMapper; | ||
5 | import com.skua.modules.safe.service.ISafeHandlePointService; | ||
6 | import org.springframework.stereotype.Service; | ||
7 | |||
8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
9 | |||
10 | /** | ||
11 | * 安环处置点 | ||
12 | */ | ||
13 | @Service | ||
14 | public class SafeHandlePointServiceImpl extends ServiceImpl<SafeHandlePointMapper, SafeHandlePoint> implements ISafeHandlePointService { | ||
15 | |||
16 | } |
... | @@ -133,7 +133,7 @@ mybatis-plus: | ... | @@ -133,7 +133,7 @@ mybatis-plus: |
133 | configuration: | 133 | configuration: |
134 | call-setters-on-nulls: true | 134 | call-setters-on-nulls: true |
135 | # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 | 135 | # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 |
136 | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl | 136 | #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
137 | #数矿专用配置 | 137 | #数矿专用配置 |
138 | skua: | 138 | skua: |
139 | web-url: http://192.168.100.29:3000 | 139 | web-url: http://192.168.100.29:3000 | ... | ... |
-
请 注册 或 登录 后发表评论