新增业务接收数据接口
Showing
20 changed files
with
202 additions
and
86 deletions
... | @@ -27,6 +27,14 @@ public class SysDictController { | ... | @@ -27,6 +27,14 @@ public class SysDictController { |
27 | @Autowired | 27 | @Autowired |
28 | SysDictService sysDictService; | 28 | SysDictService sysDictService; |
29 | 29 | ||
30 | |||
31 | @ApiOperation("根据复机编码查询子集编码和名称") | ||
32 | @GetMapping ("getSysDictChildByParentCode") | ||
33 | public Result getSysDictChildByParentCode(@ApiParam("父级编码") @RequestParam String dcode) { | ||
34 | return sysDictService.getSysDictChildByParentCode(dcode); | ||
35 | } | ||
36 | |||
37 | |||
30 | @ApiOperation("获取字典表父级集合") | 38 | @ApiOperation("获取字典表父级集合") |
31 | @PostMapping("getSysDictParent") | 39 | @PostMapping("getSysDictParent") |
32 | public Result<PageInfo<GetSysDictParentVo>> getSysDictParent(@RequestBody SysDictVo request) { | 40 | public Result<PageInfo<GetSysDictParentVo>> getSysDictParent(@RequestBody SysDictVo request) { | ... | ... |
... | @@ -73,4 +73,6 @@ public interface SysDictMapper { | ... | @@ -73,4 +73,6 @@ public interface SysDictMapper { |
73 | List<SysDict> selectAll(); | 73 | List<SysDict> selectAll(); |
74 | 74 | ||
75 | int deleteByTypeId(@Param("typeid") String typeid); | 75 | int deleteByTypeId(@Param("typeid") String typeid); |
76 | |||
77 | List<SysDict> getSysDictChildByParentCode(@Param("dcode") String dcode); | ||
76 | } | 78 | } | ... | ... |
1 | package com.pashanhoo.dictionary.service; | 1 | package com.pashanhoo.dictionary.service; |
2 | 2 | ||
3 | import com.github.pagehelper.PageInfo; | 3 | import com.github.pagehelper.PageInfo; |
4 | import com.pashanhoo.common.Result; | ||
4 | import com.pashanhoo.dictionary.model.dto.SysDict; | 5 | import com.pashanhoo.dictionary.model.dto.SysDict; |
5 | import com.pashanhoo.dictionary.model.vo.EditDictVo; | 6 | import com.pashanhoo.dictionary.model.vo.EditDictVo; |
6 | import com.pashanhoo.dictionary.model.vo.GetSysDictParentVo; | 7 | import com.pashanhoo.dictionary.model.vo.GetSysDictParentVo; |
... | @@ -100,4 +101,11 @@ public interface SysDictService { | ... | @@ -100,4 +101,11 @@ public interface SysDictService { |
100 | */ | 101 | */ |
101 | List<SysDict> selectAll(); | 102 | List<SysDict> selectAll(); |
102 | 103 | ||
104 | /** | ||
105 | * 根据复机编码查询子集编码和名称 | ||
106 | * @param dcode | ||
107 | * @return | ||
108 | */ | ||
109 | Result getSysDictChildByParentCode(String dcode); | ||
110 | |||
103 | } | 111 | } | ... | ... |
... | @@ -2,6 +2,7 @@ package com.pashanhoo.dictionary.service.impl; | ... | @@ -2,6 +2,7 @@ package com.pashanhoo.dictionary.service.impl; |
2 | 2 | ||
3 | import com.github.pagehelper.PageHelper; | 3 | import com.github.pagehelper.PageHelper; |
4 | import com.github.pagehelper.PageInfo; | 4 | import com.github.pagehelper.PageInfo; |
5 | import com.pashanhoo.common.Result; | ||
5 | import com.pashanhoo.dictionary.dao.SysDictMapper; | 6 | import com.pashanhoo.dictionary.dao.SysDictMapper; |
6 | import com.pashanhoo.dictionary.model.dto.SysDict; | 7 | import com.pashanhoo.dictionary.model.dto.SysDict; |
7 | import com.pashanhoo.dictionary.model.vo.EditDictVo; | 8 | import com.pashanhoo.dictionary.model.vo.EditDictVo; |
... | @@ -165,6 +166,12 @@ public class SysDictServiceImpl implements SysDictService { | ... | @@ -165,6 +166,12 @@ public class SysDictServiceImpl implements SysDictService { |
165 | return sysDictMapper.selectAll(); | 166 | return sysDictMapper.selectAll(); |
166 | } | 167 | } |
167 | 168 | ||
169 | @Override | ||
170 | public Result getSysDictChildByParentCode(String dcode) { | ||
171 | List<SysDict> list=sysDictMapper.getSysDictChildByParentCode(dcode); | ||
172 | return Result.ok(list); | ||
173 | } | ||
174 | |||
168 | 175 | ||
169 | private List<SysDict> getAllSysDict(List<SysDict> dicts, List<SysDict> result) { | 176 | private List<SysDict> getAllSysDict(List<SysDict> dicts, List<SysDict> result) { |
170 | 177 | ... | ... |
... | @@ -57,8 +57,8 @@ public class DgLendDO implements Serializable { | ... | @@ -57,8 +57,8 @@ public class DgLendDO implements Serializable { |
57 | /** | 57 | /** |
58 | * 借阅日期 | 58 | * 借阅日期 |
59 | */ | 59 | */ |
60 | @TableField("JYRQ") | 60 | @TableField("QSSJ") |
61 | private Date jyrq; | 61 | private Date qssj; |
62 | 62 | ||
63 | /** | 63 | /** |
64 | * 归还日期 | 64 | * 归还日期 |
... | @@ -73,10 +73,10 @@ public class DgLendDO implements Serializable { | ... | @@ -73,10 +73,10 @@ public class DgLendDO implements Serializable { |
73 | private String pzr; | 73 | private String pzr; |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * 借阅期限 | 76 | * 借阅截止日期 |
77 | */ | 77 | */ |
78 | @TableField("JYQX") | 78 | @TableField("JZRQ") |
79 | private String jyqx; | 79 | private Date jzrq; |
80 | 80 | ||
81 | /** | 81 | /** |
82 | * 借出理由 | 82 | * 借出理由 | ... | ... |
... | @@ -72,10 +72,10 @@ public class DgLendDetailVO implements Serializable { | ... | @@ -72,10 +72,10 @@ public class DgLendDetailVO implements Serializable { |
72 | @ApiModelProperty(name = "ghr", value = "归还人") | 72 | @ApiModelProperty(name = "ghr", value = "归还人") |
73 | private String ghr; | 73 | private String ghr; |
74 | /** | 74 | /** |
75 | * 归还时间 | 75 | * 归还日期 |
76 | */ | 76 | */ |
77 | @ApiModelProperty(name = "ghsj", value = "归还时间") | 77 | @ApiModelProperty(name = "ghrq", value = "归还日期") |
78 | private String ghsj; | 78 | private String ghrq; |
79 | /** | 79 | /** |
80 | * 借阅状态 | 80 | * 借阅状态 |
81 | */ | 81 | */ | ... | ... |
... | @@ -144,6 +144,15 @@ public class DgReceiveDO implements Serializable { | ... | @@ -144,6 +144,15 @@ public class DgReceiveDO implements Serializable { |
144 | */ | 144 | */ |
145 | @TableField("STATE") | 145 | @TableField("STATE") |
146 | private String state; | 146 | private String state; |
147 | 147 | /** | |
148 | * 登记业务编码 | ||
149 | */ | ||
150 | @TableField("DJYWBM") | ||
151 | private String djywbm; | ||
152 | /** | ||
153 | * 登记业务名称 | ||
154 | */ | ||
155 | @TableField("DJYWMC") | ||
156 | private String djywmc; | ||
148 | 157 | ||
149 | } | 158 | } | ... | ... |
... | @@ -144,6 +144,15 @@ public class DgReceiveSearchRequest extends PageInfo implements Serializable { | ... | @@ -144,6 +144,15 @@ public class DgReceiveSearchRequest extends PageInfo implements Serializable { |
144 | */ | 144 | */ |
145 | @ApiModelProperty(name = "state", value = "整理状态(0:待处理,1:已归档)") | 145 | @ApiModelProperty(name = "state", value = "整理状态(0:待处理,1:已归档)") |
146 | private String state; | 146 | private String state; |
147 | 147 | /** | |
148 | * 登记业务编码 | ||
149 | */ | ||
150 | @ApiModelProperty(name = "djywbm", value = "登记业务编码") | ||
151 | private String djywbm; | ||
152 | /** | ||
153 | * 登记业务名称 | ||
154 | */ | ||
155 | @ApiModelProperty(name = "djywmc", value = "登记业务名称") | ||
156 | private String djywmc; | ||
148 | 157 | ||
149 | } | 158 | } | ... | ... |
... | @@ -44,5 +44,5 @@ public interface DgReceiveService extends IService<DgReceiveDO> { | ... | @@ -44,5 +44,5 @@ public interface DgReceiveService extends IService<DgReceiveDO> { |
44 | * @param request | 44 | * @param request |
45 | * @return | 45 | * @return |
46 | */ | 46 | */ |
47 | Page searchDgReceiveList(DgReceiveSearchRequest request); | 47 | Result searchDgReceiveList(DgReceiveSearchRequest request); |
48 | } | 48 | } | ... | ... |
... | @@ -19,10 +19,7 @@ import com.pashanhoo.business.service.DgBusinessService; | ... | @@ -19,10 +19,7 @@ import com.pashanhoo.business.service.DgBusinessService; |
19 | import com.pashanhoo.common.Result; | 19 | import com.pashanhoo.common.Result; |
20 | import com.pashanhoo.receive.entity.DgReceiveConverter; | 20 | import com.pashanhoo.receive.entity.DgReceiveConverter; |
21 | import com.pashanhoo.receive.entity.DgReceiveDO; | 21 | import com.pashanhoo.receive.entity.DgReceiveDO; |
22 | import com.pashanhoo.receive.entity.vo.AddDgReceiveRequest; | 22 | import com.pashanhoo.receive.entity.vo.*; |
23 | import com.pashanhoo.receive.entity.vo.DgReceiveDetailVO; | ||
24 | import com.pashanhoo.receive.entity.vo.UpdateDgReceiveRequest; | ||
25 | import com.pashanhoo.receive.entity.vo.DgReceiveSearchRequest; | ||
26 | import com.pashanhoo.receive.mapper.DgReceiveMapper; | 23 | import com.pashanhoo.receive.mapper.DgReceiveMapper; |
27 | import com.pashanhoo.receive.service.DgReceiveService; | 24 | import com.pashanhoo.receive.service.DgReceiveService; |
28 | import com.pashanhoo.receiverelation.entity.DgReceiveRelationConverter; | 25 | import com.pashanhoo.receiverelation.entity.DgReceiveRelationConverter; |
... | @@ -191,17 +188,16 @@ public class DgReceiveServiceImpl extends ServiceImpl<DgReceiveMapper, DgReceive | ... | @@ -191,17 +188,16 @@ public class DgReceiveServiceImpl extends ServiceImpl<DgReceiveMapper, DgReceive |
191 | * @return | 188 | * @return |
192 | */ | 189 | */ |
193 | @Override | 190 | @Override |
194 | public Page searchDgReceiveList(DgReceiveSearchRequest request) { | 191 | public Result searchDgReceiveList(DgReceiveSearchRequest request) { |
195 | Page<DgReceiveDO> pageParam = new Page<DgReceiveDO>(request.getCurrentPage(), request.getPageSize()); | 192 | Page<DgReceiveDO> pageParam = new Page<DgReceiveDO>(request.getCurrentPage(), request.getPageSize()); |
196 | QueryWrapper<DgReceiveDO> wrapper = new QueryWrapper<>(); | 193 | QueryWrapper<DgReceiveDO> wrapper = new QueryWrapper<>(); |
197 | //设置默认排序 | 194 | wrapper.eq(request.getYwh()!=null && !"".equals(request.getYwh()),"YWH",request.getYwh()); |
198 | wrapper = "desc".equals(request.getSortOrder()) ? wrapper.orderByDesc(request.getSortField()) : wrapper.orderByAsc(request.getSortField()); | 195 | wrapper.eq(request.getDjywbm()!=null && !"".equals(request.getDjywbm()),"DJYWBM",request.getDjywbm()); |
199 | 196 | wrapper.eq(request.getDjlx()!=null && !"".equals(request.getDjlx()),"DJLX",request.getDjlx()); | |
200 | //TODO 根据当前情况设置wrapper条件 | 197 | wrapper.eq(request.getYwlyjbm()!=null && !"".equals(request.getYwlyjbm()),"YWLYJBM",request.getYwlyjbm()); |
201 | |||
202 | Page page = this.page(pageParam, wrapper); | 198 | Page page = this.page(pageParam, wrapper); |
203 | //将查询出来的DO List转为 ListVO List并重新设置到page对象中,并返回page对象 | 199 | List<DgReceiveListVO> list=dgreceiveConverter.doList2ListVOList(page.getRecords()); |
204 | return page.setRecords(dgreceiveConverter.doList2ListVOList(page.getRecords())); | 200 | return Result.ok(list); |
205 | } | 201 | } |
206 | 202 | ||
207 | } | 203 | } | ... | ... |
... | @@ -13,4 +13,7 @@ import com.pashanhoo.receiverelation.entity.DgReceiveRelationDO; | ... | @@ -13,4 +13,7 @@ import com.pashanhoo.receiverelation.entity.DgReceiveRelationDO; |
13 | */ | 13 | */ |
14 | public interface DgReceiveRelationMapper extends BaseMapper<DgReceiveRelationDO> { | 14 | public interface DgReceiveRelationMapper extends BaseMapper<DgReceiveRelationDO> { |
15 | 15 | ||
16 | |||
17 | |||
18 | |||
16 | } | 19 | } | ... | ... |
... | @@ -65,8 +65,7 @@ public class DgArchivesReplenishController { | ... | @@ -65,8 +65,7 @@ public class DgArchivesReplenishController { |
65 | @PostMapping("search") | 65 | @PostMapping("search") |
66 | @ApiOperation(value = "根据条件进行列表查询") | 66 | @ApiOperation(value = "根据条件进行列表查询") |
67 | public Result searchDgArchivesReplenishList(@RequestBody DgArchivesReplenishSearchRequest request) { | 67 | public Result searchDgArchivesReplenishList(@RequestBody DgArchivesReplenishSearchRequest request) { |
68 | //TODO 默认排序条件设置 | 68 | |
69 | request.defaultFillPageProp("",""); | 69 | return dgarchivesreplenishService.searchDgArchivesReplenishList(request); |
70 | return Result.ok(dgarchivesreplenishService.searchDgArchivesReplenishList(request)); | ||
71 | } | 70 | } |
72 | } | 71 | } | ... | ... |
... | @@ -18,46 +18,72 @@ import lombok.EqualsAndHashCode; | ... | @@ -18,46 +18,72 @@ import lombok.EqualsAndHashCode; |
18 | @Data | 18 | @Data |
19 | @EqualsAndHashCode(callSuper = false) | 19 | @EqualsAndHashCode(callSuper = false) |
20 | @ApiModel(value="档案补录信息列表VO") | 20 | @ApiModel(value="档案补录信息列表VO") |
21 | //TODO 该类属性暂时是完整的全部属性,需进行个性化的增删 | 21 | |
22 | public class DgArchivesReplenishListVO implements Serializable { | 22 | public class DgArchivesReplenishListVO implements Serializable { |
23 | 23 | ||
24 | private static final long serialVersionUID = 1L; | 24 | private static final long serialVersionUID = 1L; |
25 | 25 | ||
26 | /** | 26 | /** |
27 | * 修改标识码 | 27 | * 补录标识码 |
28 | */ | 28 | */ |
29 | @ApiModelProperty(name = "bsmModify", value = "修改标识码") | 29 | @ApiModelProperty(name = "bsm_modify", value = "补录标识码") |
30 | private String bsmModify; | 30 | private String bsm_modify; |
31 | 31 | ||
32 | /** | 32 | /** |
33 | * 档案标识码 | 33 | * 补录时间 |
34 | */ | 34 | */ |
35 | @ApiModelProperty(name = "bsmArchives", value = "档案标识码") | 35 | @ApiModelProperty(name = "xgsj", value = "补录时间") |
36 | private String bsmArchives; | 36 | private Date xgsj; |
37 | 37 | ||
38 | /** | 38 | /** |
39 | * 原档案信息 | 39 | * 补录人 |
40 | */ | 40 | */ |
41 | @ApiModelProperty(name = "blbh", value = "原档案信息") | 41 | @ApiModelProperty(name = "xgr", value = "补录人") |
42 | private String blbh; | 42 | private String xgr; |
43 | |||
44 | /** | 43 | /** |
45 | * 修改时间 | 44 | * 业务类型名称 |
46 | */ | 45 | */ |
47 | @ApiModelProperty(name = "xgsj", value = "修改时间") | 46 | @ApiModelProperty(name = "djjgmc", value = "业务类型名称") |
48 | private Date xgsj; | 47 | private String djjgmc; |
49 | |||
50 | /** | 48 | /** |
51 | * 修改人 | 49 | * 登记类型 |
52 | */ | 50 | */ |
53 | @ApiModelProperty(name = "xgr", value = "修改人") | 51 | @ApiModelProperty(name = "djlx", value = "登记类型") |
54 | private String xgr; | 52 | private String djlx; |
55 | |||
56 | /** | 53 | /** |
57 | * 备注 | 54 | * 档案号 |
58 | */ | 55 | */ |
59 | @ApiModelProperty(name = "bz", value = "备注") | 56 | @ApiModelProperty(name = "ajh", value = "档案号") |
60 | private String bz; | 57 | private String ajh; |
61 | 58 | /** | |
59 | * 业务号 | ||
60 | */ | ||
61 | @ApiModelProperty(name = "ywh", value = "业务号") | ||
62 | private String ywh; | ||
63 | /** | ||
64 | * 不动产单元号 | ||
65 | */ | ||
66 | @ApiModelProperty(name = "bdcdyh", value = "不动产单元号") | ||
67 | private String bdcdyh; | ||
68 | /** | ||
69 | * 权利人 | ||
70 | */ | ||
71 | @ApiModelProperty(name = "qlr", value = "权利人") | ||
72 | private String qlr; | ||
73 | /** | ||
74 | * 义务人 | ||
75 | */ | ||
76 | @ApiModelProperty(name = "ywr", value = "义务人") | ||
77 | private String ywr; | ||
78 | /** | ||
79 | * 不动产证件号码 | ||
80 | */ | ||
81 | @ApiModelProperty(name = "bdcqzh", value = "不动产证件号码") | ||
82 | private String bdcqzh; | ||
83 | /** | ||
84 | * 不动产单元号数量 | ||
85 | */ | ||
86 | @ApiModelProperty(name = "bdcdy_num", value = "不动产单元号数量") | ||
87 | private String bdcdy_num; | ||
62 | 88 | ||
63 | } | 89 | } | ... | ... |
... | @@ -19,39 +19,42 @@ import com.pashanhoo.common.PageInfo; | ... | @@ -19,39 +19,42 @@ import com.pashanhoo.common.PageInfo; |
19 | @Data | 19 | @Data |
20 | @EqualsAndHashCode(callSuper = false) | 20 | @EqualsAndHashCode(callSuper = false) |
21 | @ApiModel(value="档案补录信息列表查询请求实体") | 21 | @ApiModel(value="档案补录信息列表查询请求实体") |
22 | //TODO 初始查询条件是全部,需要根据情况自行删减 | ||
23 | public class DgArchivesReplenishSearchRequest extends PageInfo implements Serializable { | 22 | public class DgArchivesReplenishSearchRequest extends PageInfo implements Serializable { |
24 | 23 | ||
25 | private static final long serialVersionUID = 1L; | 24 | private static final long serialVersionUID = 1L; |
26 | 25 | ||
27 | /** | 26 | /** |
28 | * 修改标识码 | 27 | * 业务号 |
29 | */ | 28 | */ |
30 | @ApiModelProperty(name = "bsmModify", value = "修改标识码") | 29 | @ApiModelProperty(name = "ywh", value = "业务号") |
31 | private String bsmModify; | 30 | private String ywh; |
32 | 31 | ||
33 | /** | 32 | /** |
34 | * 档案标识码 | 33 | * 登记业务编码 |
35 | */ | 34 | */ |
36 | @ApiModelProperty(name = "bsmArchives", value = "档案标识码") | 35 | @ApiModelProperty(name = "djywbm", value = "登记业务编码") |
37 | private String bsmArchives; | 36 | private String djywbm; |
38 | 37 | /** | |
38 | * 登记业务名称 | ||
39 | */ | ||
40 | @ApiModelProperty(name = "djywmc", value = "登记业务名称") | ||
41 | private String djywmc; | ||
39 | /** | 42 | /** |
40 | * 原档案信息 | 43 | * 登记类型 |
41 | */ | 44 | */ |
42 | @ApiModelProperty(name = "blbh", value = "原档案信息") | 45 | @ApiModelProperty(name = "djlx", value = "登记类型") |
43 | private String blbh; | 46 | private String djlx; |
44 | 47 | ||
45 | /** | 48 | /** |
46 | * 修改时间 | 49 | * 补录时间 |
47 | */ | 50 | */ |
48 | @ApiModelProperty(name = "xgsj", value = "修改时间") | 51 | @ApiModelProperty(name = "xgsj", value = "补录时间") |
49 | private Date xgsj; | 52 | private Date xgsj; |
50 | 53 | ||
51 | /** | 54 | /** |
52 | * 修改人 | 55 | *补录人 |
53 | */ | 56 | */ |
54 | @ApiModelProperty(name = "xgr", value = "修改人") | 57 | @ApiModelProperty(name = "xgr", value = "补录人") |
55 | private String xgr; | 58 | private String xgr; |
56 | 59 | ||
57 | /** | 60 | /** | ... | ... |
... | @@ -3,6 +3,10 @@ package com.pashanhoo.replenish.mapper; | ... | @@ -3,6 +3,10 @@ package com.pashanhoo.replenish.mapper; |
3 | 3 | ||
4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
5 | import com.pashanhoo.replenish.entity.DgArchivesReplenishDO; | 5 | import com.pashanhoo.replenish.entity.DgArchivesReplenishDO; |
6 | import com.pashanhoo.replenish.entity.vo.DgArchivesReplenishListVO; | ||
7 | import com.pashanhoo.replenish.entity.vo.DgArchivesReplenishSearchRequest; | ||
8 | |||
9 | import java.util.List; | ||
6 | 10 | ||
7 | /** | 11 | /** |
8 | * <p> | 12 | * <p> |
... | @@ -14,4 +18,6 @@ import com.pashanhoo.replenish.entity.DgArchivesReplenishDO; | ... | @@ -14,4 +18,6 @@ import com.pashanhoo.replenish.entity.DgArchivesReplenishDO; |
14 | */ | 18 | */ |
15 | public interface DgArchivesReplenishMapper extends BaseMapper<DgArchivesReplenishDO> { | 19 | public interface DgArchivesReplenishMapper extends BaseMapper<DgArchivesReplenishDO> { |
16 | 20 | ||
21 | List<DgArchivesReplenishListVO> search(DgArchivesReplenishSearchRequest searchRequest); | ||
22 | |||
17 | } | 23 | } | ... | ... |
... | @@ -3,6 +3,7 @@ package com.pashanhoo.replenish.service; | ... | @@ -3,6 +3,7 @@ package com.pashanhoo.replenish.service; |
3 | 3 | ||
4 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 4 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
5 | import com.baomidou.mybatisplus.extension.service.IService; | 5 | import com.baomidou.mybatisplus.extension.service.IService; |
6 | import com.pashanhoo.common.Result; | ||
6 | import com.pashanhoo.replenish.entity.*; | 7 | import com.pashanhoo.replenish.entity.*; |
7 | import com.pashanhoo.replenish.entity.vo.AddDgArchivesReplenishRequest; | 8 | import com.pashanhoo.replenish.entity.vo.AddDgArchivesReplenishRequest; |
8 | import com.pashanhoo.replenish.entity.vo.DgArchivesReplenishDetailVO; | 9 | import com.pashanhoo.replenish.entity.vo.DgArchivesReplenishDetailVO; |
... | @@ -44,5 +45,5 @@ public interface DgArchivesReplenishService extends IService<DgArchivesReplenish | ... | @@ -44,5 +45,5 @@ public interface DgArchivesReplenishService extends IService<DgArchivesReplenish |
44 | * @param request | 45 | * @param request |
45 | * @return | 46 | * @return |
46 | */ | 47 | */ |
47 | Page searchDgArchivesReplenishList(DgArchivesReplenishSearchRequest request); | 48 | Result searchDgArchivesReplenishList(DgArchivesReplenishSearchRequest request); |
48 | } | 49 | } | ... | ... |
... | @@ -2,18 +2,18 @@ package com.pashanhoo.replenish.service.impl; | ... | @@ -2,18 +2,18 @@ package com.pashanhoo.replenish.service.impl; |
2 | 2 | ||
3 | 3 | ||
4 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 4 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
5 | import com.pashanhoo.replenish.entity.*; | 5 | import com.github.pagehelper.PageHelper; |
6 | import com.pashanhoo.replenish.entity.vo.AddDgArchivesReplenishRequest; | 6 | import com.github.pagehelper.PageInfo; |
7 | import com.pashanhoo.replenish.entity.vo.DgArchivesReplenishDetailVO; | 7 | import com.pashanhoo.common.Result; |
8 | import com.pashanhoo.replenish.entity.vo.DgArchivesReplenishSearchRequest; | 8 | import com.pashanhoo.replenish.entity.DgArchivesReplenishConverter; |
9 | import com.pashanhoo.replenish.entity.vo.UpdateDgArchivesReplenishRequest; | 9 | import com.pashanhoo.replenish.entity.DgArchivesReplenishDO; |
10 | import com.pashanhoo.replenish.entity.vo.*; | ||
10 | import com.pashanhoo.replenish.mapper.DgArchivesReplenishMapper; | 11 | import com.pashanhoo.replenish.mapper.DgArchivesReplenishMapper; |
11 | import com.pashanhoo.replenish.service.DgArchivesReplenishService; | 12 | import com.pashanhoo.replenish.service.DgArchivesReplenishService; |
12 | import org.springframework.beans.factory.annotation.Autowired; | 13 | import org.springframework.beans.factory.annotation.Autowired; |
13 | import org.springframework.stereotype.Service; | 14 | import org.springframework.stereotype.Service; |
14 | 15 | ||
15 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 16 | import java.util.List; |
16 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | ||
17 | 17 | ||
18 | /** | 18 | /** |
19 | * <p> | 19 | * <p> |
... | @@ -71,17 +71,11 @@ public class DgArchivesReplenishServiceImpl extends ServiceImpl<DgArchivesReplen | ... | @@ -71,17 +71,11 @@ public class DgArchivesReplenishServiceImpl extends ServiceImpl<DgArchivesReplen |
71 | * @return | 71 | * @return |
72 | */ | 72 | */ |
73 | @Override | 73 | @Override |
74 | public Page searchDgArchivesReplenishList(DgArchivesReplenishSearchRequest request) { | 74 | public Result searchDgArchivesReplenishList(DgArchivesReplenishSearchRequest request) { |
75 | Page<DgArchivesReplenishDO> pageParam = new Page<DgArchivesReplenishDO>(request.getCurrentPage(), request.getPageSize()); | 75 | PageHelper.startPage(request.getCurrentPage(), request.getPageSize()); |
76 | QueryWrapper<DgArchivesReplenishDO> wrapper = new QueryWrapper<>(); | 76 | List<DgArchivesReplenishListVO> list= dgarchivesreplenishMapper.search(request); |
77 | //设置默认排序 | 77 | PageInfo<DgArchivesReplenishListVO> pageInfo = new PageInfo<DgArchivesReplenishListVO>(list); |
78 | wrapper = "desc".equals(request.getSortOrder()) ? wrapper.orderByDesc(request.getSortField()) : wrapper.orderByAsc(request.getSortField()); | 78 | return Result.ok(pageInfo); |
79 | |||
80 | //TODO 根据当前情况设置wrapper条件 | ||
81 | |||
82 | Page page = this.page(pageParam, wrapper); | ||
83 | //将查询出来的DO List转为 ListVO List并重新设置到page对象中,并返回page对象 | ||
84 | return page.setRecords(dgarchivesreplenishConverter.doList2ListVOList(page.getRecords())); | ||
85 | } | 79 | } |
86 | 80 | ||
87 | } | 81 | } | ... | ... |
... | @@ -11,9 +11,47 @@ | ... | @@ -11,9 +11,47 @@ |
11 | <result column="XGR" property="xgr" /> | 11 | <result column="XGR" property="xgr" /> |
12 | <result column="BZ" property="bz" /> | 12 | <result column="BZ" property="bz" /> |
13 | </resultMap> | 13 | </resultMap> |
14 | <!-- 通用查询映射结果 --> | ||
15 | <resultMap id="SearchResultMap" type="com.pashanhoo.replenish.entity.vo.DgArchivesReplenishListVO"> | ||
16 | <id column="BSM_MODIFY" property="bsm_modify" /> | ||
17 | <result column="XGSJ" property="xgsj" /> | ||
18 | <result column="XGR" property="xgr" /> | ||
19 | <result column="DJLX" property="djlx" /> | ||
20 | <result column="DJJGMC" property="djjgmc" /> | ||
21 | <result column="AJH" property="ajh" /> | ||
22 | <result column="YWH" property="ywh" /> | ||
23 | <result column="BDCDYH" property="bdcdyh" /> | ||
24 | <result column="QLR" property="qlr" /> | ||
25 | <result column="YWR" property="ywr" /> | ||
26 | <result column="BDCQZH" property="bdcqzh" /> | ||
27 | <result column="BDCDY_NUM" property="bdcdy_num" /> | ||
28 | </resultMap> | ||
14 | 29 | ||
15 | <!-- 通用查询结果列 --> | 30 | <!-- 通用查询结果列 --> |
16 | <sql id="Base_Column_List"> | 31 | <sql id="Base_Column_List"> |
17 | BSM_MODIFY, BSM_ARCHIVES, BLBH, XGSJ, XGR, BZ | 32 | BSM_MODIFY, BSM_ARCHIVES, BLBH, XGSJ, XGR, BZ |
18 | </sql> | 33 | </sql> |
34 | <select id="search" resultMap="SearchResultMap"> | ||
35 | select a.bsm_modify,a.xgsj,a.xgr,b.djlx,b.djjgmc,d.ajh,b.ywh,c.bdcdyh,c.qlr,c.ywr,c.BDCQZH,count(1) over(partition by c.bdcdyh) bdcdy_num | ||
36 | from dg_archives_replenish a, dg_business b, dg_bdcdy c,dg_archives d | ||
37 | where a.bsm_archives = d.bsm_archives | ||
38 | and a.bsm_archives=d.bsm_archives | ||
39 | and c.bsm_archives=d.bsm_archives | ||
40 | <if test="ywh != null and ywh!='' "> | ||
41 | and b.ywh=#{ywh,jdbcType=VARCHAR} | ||
42 | </if> | ||
43 | <if test="djjgbm != null and djjgbm!='' "> | ||
44 | and b.djjgbm=#{djjgbm,jdbcType=VARCHAR} | ||
45 | </if> | ||
46 | <if test="djlx != null and djlx!='' "> | ||
47 | and b.djlx=#{djlx,jdbcType=VARCHAR} | ||
48 | </if> | ||
49 | <if test="xgr != null and xgr!='' "> | ||
50 | and a.xgr=#{xgr,jdbcType=VARCHAR} | ||
51 | </if> | ||
52 | <if test="xgsj != null and xgsj!='' "> | ||
53 | and a.xgsj=#{xgsj,jdbcType=VARCHAR} | ||
54 | </if> | ||
55 | |||
56 | </select> | ||
19 | </mapper> | 57 | </mapper> | ... | ... |
... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
14 | <result column="QSSJ" property="qssj" /> | 14 | <result column="QSSJ" property="qssj" /> |
15 | <result column="JZRQ" property="jzrq" /> | 15 | <result column="JZRQ" property="jzrq" /> |
16 | <result column="GHR" property="ghr" /> | 16 | <result column="GHR" property="ghr" /> |
17 | <result column="GHSJ" property="ghsj" /> | 17 | <result column="GHRQ" property="ghrq" /> |
18 | <result column="JYZT" property="jyzt" /> | 18 | <result column="JYZT" property="jyzt" /> |
19 | <result column="DA_NUM" property="da_num" /> | 19 | <result column="DA_NUM" property="da_num" /> |
20 | </resultMap> | 20 | </resultMap> |
... | @@ -59,7 +59,7 @@ | ... | @@ -59,7 +59,7 @@ |
59 | </resultMap> | 59 | </resultMap> |
60 | <!-- 通用查询结果列 --> | 60 | <!-- 通用查询结果列 --> |
61 | <sql id="Base_Column_List"> | 61 | <sql id="Base_Column_List"> |
62 | BSM_LEND, JYR, JYDW, LXDW, TXDZ, JYRQ, GHRQ, PZR, JYQX, JCLY, LYMD, BZ, PZSJ | 62 | BSM_LEND, JYR, JYDW, LXDW, TXDZ, JYRQ, GHRQ, PZR, JZRQ, JCLY, LYMD, BZ, PZSJ |
63 | </sql> | 63 | </sql> |
64 | <update id="updateArchivesStatus"> | 64 | <update id="updateArchivesStatus"> |
65 | update dg_archives b | 65 | update dg_archives b |
... | @@ -106,7 +106,7 @@ | ... | @@ -106,7 +106,7 @@ |
106 | a.qssj, | 106 | a.qssj, |
107 | a.jzrq, | 107 | a.jzrq, |
108 | a.ghr, | 108 | a.ghr, |
109 | a.ghsj, | 109 | a.ghrq, |
110 | a.jyzt | 110 | a.jyzt |
111 | from dg_lend a, dg_archives b,dg_lend_catalog c,dg_bdcdy e,dg_business f | 111 | from dg_lend a, dg_archives b,dg_lend_catalog c,dg_bdcdy e,dg_business f |
112 | where b.BSM_ARCHIVES=c.BSM_ARCHIVES | 112 | where b.BSM_ARCHIVES=c.BSM_ARCHIVES | ... | ... |
... | @@ -267,6 +267,13 @@ | ... | @@ -267,6 +267,13 @@ |
267 | select * | 267 | select * |
268 | from SYS_DICT | 268 | from SYS_DICT |
269 | </select> | 269 | </select> |
270 | <select id="getSysDictChildByParentCode" resultType="com.pashanhoo.dictionary.model.dto.SysDict"> | ||
271 | select dcode,dname | ||
272 | from sys_dict t where parentid =(select dictid from sys_dict where dcode = #{dcode,jdbcType=VARCHAR} ) | ||
273 | CONNECT by PRIOR t.dictid = t.parentid | ||
274 | start with dcode = #{dcode,jdbcType=VARCHAR} | ||
275 | ORDER siblings BY t.sort | ||
276 | </select> | ||
270 | 277 | ||
271 | <delete id="deleteByTypeId"> | 278 | <delete id="deleteByTypeId"> |
272 | delete from SYS_DICT where TYPEID = #{typeid,jdbcType=VARCHAR} and PARENTID is not null | 279 | delete from SYS_DICT where TYPEID = #{typeid,jdbcType=VARCHAR} and PARENTID is not null | ... | ... |
-
Please register or sign in to post a comment