Commit 89329db59b76ba67973a0a9f27767976f7fbe8f6
1 parent
beb3886b
Exists in
dev
基础信息-金额
Showing
7 changed files
with
1229 additions
and
0 deletions
Show diff stats
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/controller/McBasicMoneyController.java
0 → 100644
@@ -0,0 +1,191 @@ | @@ -0,0 +1,191 @@ | ||
1 | +package com.chinagas.modules.schsf.controller; | ||
2 | + | ||
3 | +import com.alibaba.excel.EasyExcel; | ||
4 | +import com.alibaba.excel.util.MapUtils; | ||
5 | +import com.alibaba.fastjson2.JSON; | ||
6 | +import com.alibaba.nacos.common.utils.CollectionUtils; | ||
7 | +import com.chinagas.common.core.domain.AjaxResult; | ||
8 | +import com.chinagas.common.core.web.controller.BaseController; | ||
9 | +import com.chinagas.common.core.web.page.TableDataInfo; | ||
10 | +import com.chinagas.common.log.annotation.Log; | ||
11 | +import com.chinagas.common.log.enums.BusinessType; | ||
12 | +import com.chinagas.common.security.annotation.RequirePermission; | ||
13 | +import com.chinagas.modules.schsf.domain.McBasicMoney; | ||
14 | +import com.chinagas.modules.schsf.domain.vo.McBasicMoneyVo; | ||
15 | +import com.chinagas.modules.schsf.service.IMcBasicMoneyService; | ||
16 | +import org.apache.commons.lang3.StringUtils; | ||
17 | +import org.springframework.beans.factory.annotation.Autowired; | ||
18 | +import org.springframework.web.bind.annotation.*; | ||
19 | +import org.springframework.web.multipart.MultipartFile; | ||
20 | + | ||
21 | +import javax.servlet.http.HttpServletResponse; | ||
22 | +import java.io.IOException; | ||
23 | +import java.io.InputStream; | ||
24 | +import java.net.URLEncoder; | ||
25 | +import java.sql.SQLIntegrityConstraintViolationException; | ||
26 | +import java.util.List; | ||
27 | +import java.util.Map; | ||
28 | +import java.util.Set; | ||
29 | +import java.util.stream.Collectors; | ||
30 | + | ||
31 | + | ||
32 | +/** | ||
33 | + * 基础数据-金额Controller | ||
34 | + * | ||
35 | + * @author lidwd | ||
36 | + * @date 2024-05-23 | ||
37 | + */ | ||
38 | +@RestController | ||
39 | +@RequestMapping("/mcBasicMoney") | ||
40 | +public class McBasicMoneyController extends BaseController { | ||
41 | + @Autowired | ||
42 | + private IMcBasicMoneyService mcBasicMoneyService; | ||
43 | + | ||
44 | + /** | ||
45 | + * 查询基础数据-金额列表 | ||
46 | + */ | ||
47 | + @RequirePermission("schsf:mcBasicMoney:list") | ||
48 | + @GetMapping("/list") | ||
49 | + public TableDataInfo list(McBasicMoneyVo mcBasicMoneyVo) { | ||
50 | + startPage(); | ||
51 | + List<McBasicMoney> list = mcBasicMoneyService.selectMcBasicMoneyList(mcBasicMoneyVo); | ||
52 | + return getDataTable(list); | ||
53 | + } | ||
54 | + | ||
55 | + | ||
56 | + /** | ||
57 | + * 导入基础数据-金额数据 | ||
58 | + * | ||
59 | + * @param file | ||
60 | + * @return | ||
61 | + */ | ||
62 | + @RequirePermission("schsf:mcBasicMoney:importData") | ||
63 | + @PostMapping("/importData") | ||
64 | + public AjaxResult importData(MultipartFile file) { | ||
65 | + if (file.isEmpty()) { | ||
66 | + throw new RuntimeException("文件不能为空"); | ||
67 | + } | ||
68 | + if (!"xls,xlsx".contains(file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".") + 1, file.getOriginalFilename().length()))) { | ||
69 | + throw new RuntimeException("只支持excel文件上传"); | ||
70 | + } | ||
71 | + //限制文件5M | ||
72 | + if (file.getSize() > 5000 * 1024) { | ||
73 | + throw new RuntimeException("文件大小不得超过5M"); | ||
74 | + } | ||
75 | + try { | ||
76 | + // 获取文件的输入流 | ||
77 | + InputStream inputStream = file.getInputStream(); | ||
78 | + List<McBasicMoney> list = EasyExcel.read(inputStream) //调用read方法 | ||
79 | + // 注册自定义监听器,字段校验可以在监听器内实现 | ||
80 | + .head(McBasicMoney.class) // 对应导入的实体类 | ||
81 | + .sheet(0) // 导入数据的sheet页编号,0代表第一个sheet页,如果不填,则会导入所有sheet页的数据 | ||
82 | + .headRowNumber(4) // 列表头行数,1代表列表头有1行,第二行开始为数据行 | ||
83 | + .doReadSync(); // 开始读Excel,返回一个List<T>集合,继续后续入库操作 | ||
84 | + | ||
85 | + // 检验重复数据 | ||
86 | + Map<String, List<McBasicMoney>> collect = list.stream().collect(Collectors.groupingBy(o -> | ||
87 | + o.getRegionName() + | ||
88 | + o.getGroupName() + | ||
89 | + o.getCompanyName() + | ||
90 | + o.getCompanyCode() | ||
91 | + )); | ||
92 | + Set<String> strings = collect.keySet(); | ||
93 | + if (strings.size() < list.size()) { | ||
94 | + throw new RuntimeException("表格中存在重复的数据"); | ||
95 | + } | ||
96 | + // 插入数据库 | ||
97 | + if (CollectionUtils.isNotEmpty(list)) { | ||
98 | + for (McBasicMoney mcBasicCmty : list) { | ||
99 | + mcBasicMoneyService.insertMcBasicMoney(mcBasicCmty); | ||
100 | + System.out.println(list); | ||
101 | + } | ||
102 | + } | ||
103 | + } catch (Exception e) { | ||
104 | + Throwable cause = e.getCause(); | ||
105 | + if (cause instanceof SQLIntegrityConstraintViolationException) { | ||
106 | + String errMsg = (cause).getMessage(); | ||
107 | + if (StringUtils.isNotEmpty(errMsg) && errMsg.contains("uniq_address")) { | ||
108 | + // 找到第一个引号的索引 | ||
109 | + int startIndex = errMsg.indexOf("\'"); | ||
110 | + // 找到第二个引号的索引 | ||
111 | + int endIndex = errMsg.indexOf("\'", startIndex + 1); | ||
112 | + // 提取引号之间的内容 | ||
113 | + String content = errMsg.substring(startIndex + 1, endIndex); | ||
114 | + throw new RuntimeException("系统中存在相同信息: " + content); | ||
115 | + } | ||
116 | + } | ||
117 | + throw new RuntimeException(e); | ||
118 | + } | ||
119 | + return AjaxResult.success("数据导入成功"); | ||
120 | + } | ||
121 | + | ||
122 | + | ||
123 | + /** | ||
124 | + * 导出基础数据-金额列表 | ||
125 | + */ | ||
126 | + @RequirePermission("schsf:mcBasicMoney:export") | ||
127 | + @Log(title = "基础数据-金额", businessType = BusinessType.EXPORT) | ||
128 | + @PostMapping("/export") | ||
129 | + public void export(HttpServletResponse response, McBasicMoneyVo mcBasicMoneyVo) throws IOException { | ||
130 | + List<McBasicMoney> list = mcBasicMoneyService.selectMcBasicMoneyList(mcBasicMoneyVo); | ||
131 | + try { | ||
132 | + response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); | ||
133 | + response.setCharacterEncoding("utf-8"); | ||
134 | + // 这里URLEncoder.encode可以防止中文乱码 当然和easyexcel没有关系 | ||
135 | + String fileName = URLEncoder.encode("基础数据-金额", "UTF-8").replaceAll("\\+", "%20"); | ||
136 | + response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx"); | ||
137 | + // 这里需要设置不关闭流 | ||
138 | + EasyExcel.write(response.getOutputStream(), McBasicMoney.class).autoCloseStream(Boolean.FALSE).sheet("客户信息列表") | ||
139 | + .doWrite(list); | ||
140 | + } catch (Exception e) { | ||
141 | + // 重置response | ||
142 | + e.printStackTrace(); | ||
143 | + response.reset(); | ||
144 | + response.setContentType("application/json"); | ||
145 | + response.setCharacterEncoding("utf-8"); | ||
146 | + Map<String, String> map = MapUtils.newHashMap(); | ||
147 | + map.put("status", "failure"); | ||
148 | + map.put("message", "下载文件失败" + e.getMessage()); | ||
149 | + response.getWriter().println(JSON.toJSONString(map)); | ||
150 | + } | ||
151 | + } | ||
152 | + | ||
153 | + /** | ||
154 | + * 获取基础数据-金额详细信息 | ||
155 | + */ | ||
156 | + @RequirePermission("schsf:mcBasicMoney:query") | ||
157 | + @GetMapping(value = "/{id}") | ||
158 | + public AjaxResult getInfo(@PathVariable("id") Long id) { | ||
159 | + return AjaxResult.success(mcBasicMoneyService.selectMcBasicMoneyById(id)); | ||
160 | + } | ||
161 | + | ||
162 | + /** | ||
163 | + * 新增基础数据-金额 | ||
164 | + */ | ||
165 | + @RequirePermission("schsf:mcBasicMoney:add") | ||
166 | + @Log(title = "基础数据-金额", businessType = BusinessType.INSERT) | ||
167 | + @PostMapping | ||
168 | + public AjaxResult add(@RequestBody McBasicMoney mcBasicMoney) { | ||
169 | + return toAjax(mcBasicMoneyService.insertMcBasicMoney(mcBasicMoney)); | ||
170 | + } | ||
171 | + | ||
172 | + /** | ||
173 | + * 修改基础数据-金额 | ||
174 | + */ | ||
175 | + @RequirePermission("schsf:mcBasicMoney:edit") | ||
176 | + @Log(title = "基础数据-金额", businessType = BusinessType.UPDATE) | ||
177 | + @PutMapping | ||
178 | + public AjaxResult edit(@RequestBody McBasicMoney mcBasicMoney) { | ||
179 | + return toAjax(mcBasicMoneyService.updateMcBasicMoney(mcBasicMoney)); | ||
180 | + } | ||
181 | + | ||
182 | + /** | ||
183 | + * 删除基础数据-金额 | ||
184 | + */ | ||
185 | + @RequirePermission("schsf:mcBasicMoney:remove") | ||
186 | + @Log(title = "基础数据-金额", businessType = BusinessType.DELETE) | ||
187 | + @DeleteMapping("/{ids}") | ||
188 | + public AjaxResult remove(@PathVariable Long[] ids) { | ||
189 | + return toAjax(mcBasicMoneyService.deleteMcBasicMoneyByIds(ids)); | ||
190 | + } | ||
191 | +} |
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/domain/McBasicMoney.java
0 → 100644
@@ -0,0 +1,522 @@ | @@ -0,0 +1,522 @@ | ||
1 | +package com.chinagas.modules.schsf.domain; | ||
2 | + | ||
3 | +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; | ||
4 | +import com.alibaba.excel.annotation.ExcelProperty; | ||
5 | +import com.chinagas.common.core.web.domain.BaseEntity; | ||
6 | +import org.apache.commons.lang3.builder.ToStringBuilder; | ||
7 | +import org.apache.commons.lang3.builder.ToStringStyle; | ||
8 | + | ||
9 | +import java.math.BigDecimal; | ||
10 | + | ||
11 | +/** | ||
12 | + * 基础数据-金额对象 mc_basic_money | ||
13 | + * | ||
14 | + * @author lidwd | ||
15 | + * @date 2024-05-23 | ||
16 | + */ | ||
17 | +@ExcelIgnoreUnannotated | ||
18 | +public class McBasicMoney extends BaseEntity | ||
19 | +{ | ||
20 | + private static final long serialVersionUID = 1L; | ||
21 | + | ||
22 | + /** 主键id */ | ||
23 | + private Long id; | ||
24 | + | ||
25 | + /** 财年 */ | ||
26 | + @ExcelProperty(index = 0,value = "财年") | ||
27 | + private Long fiscalYear; | ||
28 | + | ||
29 | + /** 区域名称 */ | ||
30 | + @ExcelProperty(index = 1,value = "区域名称") | ||
31 | + private String regionName; | ||
32 | + | ||
33 | + /** 集团名称 */ | ||
34 | + @ExcelProperty(index = 2,value = "集团名称") | ||
35 | + private String groupName; | ||
36 | + | ||
37 | + /** 公司名称 */ | ||
38 | + @ExcelProperty(index = 3,value = "公司名称") | ||
39 | + private String companyName; | ||
40 | + | ||
41 | + /** 公司代码 */ | ||
42 | + @ExcelProperty(index = 4,value = "公司代码") | ||
43 | + private String companyCode; | ||
44 | + | ||
45 | + /** 省 */ | ||
46 | + @ExcelProperty(index = 5,value = "省") | ||
47 | + private String province; | ||
48 | + | ||
49 | + /** 市 */ | ||
50 | + @ExcelProperty(index = 6,value = "市") | ||
51 | + private String city; | ||
52 | + | ||
53 | + /** 区 */ | ||
54 | + @ExcelProperty(index = 7,value = "区") | ||
55 | + private String district; | ||
56 | + | ||
57 | + /** 街道 */ | ||
58 | + @ExcelProperty(index = 8,value = "街道") | ||
59 | + private String street; | ||
60 | + | ||
61 | + /** 村(小区) */ | ||
62 | + @ExcelProperty(index = 9,value = "村(小区)") | ||
63 | + private String vlgOrCmty; | ||
64 | + | ||
65 | + /** 负责人 */ | ||
66 | + @ExcelProperty(index = 10,value = "负责人") | ||
67 | + private String respPerson; | ||
68 | + | ||
69 | + /** 城乡分类 */ | ||
70 | + @ExcelProperty(index = 11,value = "城乡分类") | ||
71 | + private String urbRurCls; | ||
72 | + | ||
73 | + /** 财务确认预算数-财年初财务确认往年应收 */ | ||
74 | + @ExcelProperty(index = 12,value = "财务确认预算数-财年初财务确认往年应收") | ||
75 | + private BigDecimal budgConfPrev; | ||
76 | + | ||
77 | + /** 财务确认预算数-本年新增 */ | ||
78 | + @ExcelProperty(index = 13,value = "财务确认预算数-本年新增") | ||
79 | + private BigDecimal budgConfNew; | ||
80 | + | ||
81 | + /** 财务确认预算数-总预算金额 */ | ||
82 | + @ExcelProperty(index = 14,value = "财务确认预算数-总预算金额") | ||
83 | + private BigDecimal budgTotal; | ||
84 | + | ||
85 | + /** 季度目标(到公司四个季度)已收费户数 */ | ||
86 | + @ExcelProperty(index = 15,value = "季度目标(到公司四个季度)已收费户数") | ||
87 | + private BigDecimal quarterlyTarget; | ||
88 | + | ||
89 | + /** 纳入政府补贴金额-已收费户数 */ | ||
90 | + @ExcelProperty(index = 16,value = "纳入政府补贴金额-已收费户数") | ||
91 | + private BigDecimal cnyGsgCharged; | ||
92 | + | ||
93 | + /** 纳入政府补贴金额-未收费户数 */ | ||
94 | + @ExcelProperty(index = 17,value = "纳入政府补贴金额-未收费户数") | ||
95 | + private BigDecimal cnyGsgUncharged; | ||
96 | + | ||
97 | + /** 纳入政府补贴金额-合计 */ | ||
98 | + @ExcelProperty(index = 18,value = "纳入政府补贴金额-合计") | ||
99 | + private BigDecimal cnyGsgTotal; | ||
100 | + | ||
101 | + /** 市场化收费金额 - 本年新增金额 - 全款户数 */ | ||
102 | + @ExcelProperty(index = 19,value = "市场化收费金额 - 本年新增金额 - 全款户数") | ||
103 | + private BigDecimal cnyYrFull; | ||
104 | + | ||
105 | + /** 市场化收费金额 - 本年新增金额 - 分期户数 */ | ||
106 | + @ExcelProperty(index = 20,value = "市场化收费金额 - 本年新增金额 - 分期户数") | ||
107 | + private BigDecimal cnyYrInstal; | ||
108 | + | ||
109 | + /** 往年应收金额-已收费户数-全款户数 */ | ||
110 | + @ExcelProperty(index = 21,value = "往年应收金额-已收费户数-全款户数") | ||
111 | + private BigDecimal cnyPrevFull; | ||
112 | + | ||
113 | + /** 往年应收金额-已收费户数-分期/定金户数 */ | ||
114 | + @ExcelProperty(index = 22,value = "往年应收金额-已收费户数-分期/定金户数") | ||
115 | + private BigDecimal cnyPrevInstall; | ||
116 | + | ||
117 | + /** 评价指标-市场化累计回款 */ | ||
118 | + @ExcelProperty(index = 23,value = "评价指标-市场化累计回款") | ||
119 | + private BigDecimal cnyMarketCumr; | ||
120 | + | ||
121 | + /** 评价指标-财年累计回款 */ | ||
122 | + @ExcelProperty(index = 24,value = "评价指标-财年累计回款") | ||
123 | + private BigDecimal cnyFyCumReturn; | ||
124 | + | ||
125 | + /** 评价指标-全款累计回款 */ | ||
126 | + @ExcelProperty(index = 25,value = "评价指标-全款累计回款") | ||
127 | + private BigDecimal cnyFpCumReturn; | ||
128 | + | ||
129 | + /** 评价指标-分期累计回款 */ | ||
130 | + @ExcelProperty(index = 26,value = "评价指标-分期累计回款") | ||
131 | + private BigDecimal cnyInstCumReturn; | ||
132 | + | ||
133 | + /** 评价指标-本年新增累计回款 */ | ||
134 | + @ExcelProperty(index = 27,value = "评价指标-本年新增累计回款") | ||
135 | + private BigDecimal cnyNewCumReturn; | ||
136 | + | ||
137 | + /** 评价指标-往年应收累计回款 */ | ||
138 | + @ExcelProperty(index = 28,value = "评价指标-往年应收累计回款") | ||
139 | + private BigDecimal cnyRcvblsCumReturn; | ||
140 | + | ||
141 | + /** 评价指标-预算完成率 */ | ||
142 | + @ExcelProperty(index = 29,value = "评价指标-预算完成率") | ||
143 | + private BigDecimal cnyBdgtCmplRate; | ||
144 | + | ||
145 | + /** 评价指标-应收账款完成率 */ | ||
146 | + @ExcelProperty(index = 30,value = "评价指标-应收账款完成率") | ||
147 | + private BigDecimal cnyRcvblsCmplRate; | ||
148 | + | ||
149 | + /** 评价指标-本年新增完成率 */ | ||
150 | + @ExcelProperty(index = 31,value = "评价指标-本年新增完成率") | ||
151 | + private BigDecimal cnyCynCmplRate; | ||
152 | + | ||
153 | + /** 评价指标-阶段性目标完成率 */ | ||
154 | + @ExcelProperty(index = 32,value = "评价指标-阶段性目标完成率") | ||
155 | + private BigDecimal cnyPtCmplRate; | ||
156 | + | ||
157 | + /** 删除标志(0:未删除,1:已删除) */ | ||
158 | + @ExcelProperty(value = "删除标志") | ||
159 | + private String defFlag; | ||
160 | + | ||
161 | + public void setId(Long id) | ||
162 | + { | ||
163 | + this.id = id; | ||
164 | + } | ||
165 | + | ||
166 | + public Long getId() | ||
167 | + { | ||
168 | + return id; | ||
169 | + } | ||
170 | + public void setFiscalYear(Long fiscalYear) | ||
171 | + { | ||
172 | + this.fiscalYear = fiscalYear; | ||
173 | + } | ||
174 | + | ||
175 | + public Long getFiscalYear() | ||
176 | + { | ||
177 | + return fiscalYear; | ||
178 | + } | ||
179 | + public void setRegionName(String regionName) | ||
180 | + { | ||
181 | + this.regionName = regionName; | ||
182 | + } | ||
183 | + | ||
184 | + public String getRegionName() | ||
185 | + { | ||
186 | + return regionName; | ||
187 | + } | ||
188 | + public void setGroupName(String groupName) | ||
189 | + { | ||
190 | + this.groupName = groupName; | ||
191 | + } | ||
192 | + | ||
193 | + public String getGroupName() | ||
194 | + { | ||
195 | + return groupName; | ||
196 | + } | ||
197 | + public void setCompanyName(String companyName) | ||
198 | + { | ||
199 | + this.companyName = companyName; | ||
200 | + } | ||
201 | + | ||
202 | + public String getCompanyName() | ||
203 | + { | ||
204 | + return companyName; | ||
205 | + } | ||
206 | + public void setCompanyCode(String companyCode) | ||
207 | + { | ||
208 | + this.companyCode = companyCode; | ||
209 | + } | ||
210 | + | ||
211 | + public String getCompanyCode() | ||
212 | + { | ||
213 | + return companyCode; | ||
214 | + } | ||
215 | + public void setProvince(String province) | ||
216 | + { | ||
217 | + this.province = province; | ||
218 | + } | ||
219 | + | ||
220 | + public String getProvince() | ||
221 | + { | ||
222 | + return province; | ||
223 | + } | ||
224 | + public void setCity(String city) | ||
225 | + { | ||
226 | + this.city = city; | ||
227 | + } | ||
228 | + | ||
229 | + public String getCity() | ||
230 | + { | ||
231 | + return city; | ||
232 | + } | ||
233 | + public void setDistrict(String district) | ||
234 | + { | ||
235 | + this.district = district; | ||
236 | + } | ||
237 | + | ||
238 | + public String getDistrict() | ||
239 | + { | ||
240 | + return district; | ||
241 | + } | ||
242 | + public void setStreet(String street) | ||
243 | + { | ||
244 | + this.street = street; | ||
245 | + } | ||
246 | + | ||
247 | + public String getStreet() | ||
248 | + { | ||
249 | + return street; | ||
250 | + } | ||
251 | + public void setVlgOrCmty(String vlgOrCmty) | ||
252 | + { | ||
253 | + this.vlgOrCmty = vlgOrCmty; | ||
254 | + } | ||
255 | + | ||
256 | + public String getVlgOrCmty() | ||
257 | + { | ||
258 | + return vlgOrCmty; | ||
259 | + } | ||
260 | + public void setRespPerson(String respPerson) | ||
261 | + { | ||
262 | + this.respPerson = respPerson; | ||
263 | + } | ||
264 | + | ||
265 | + public String getRespPerson() | ||
266 | + { | ||
267 | + return respPerson; | ||
268 | + } | ||
269 | + public void setUrbRurCls(String urbRurCls) | ||
270 | + { | ||
271 | + this.urbRurCls = urbRurCls; | ||
272 | + } | ||
273 | + | ||
274 | + public String getUrbRurCls() | ||
275 | + { | ||
276 | + return urbRurCls; | ||
277 | + } | ||
278 | + public void setBudgConfPrev(BigDecimal budgConfPrev) | ||
279 | + { | ||
280 | + this.budgConfPrev = budgConfPrev; | ||
281 | + } | ||
282 | + | ||
283 | + public BigDecimal getBudgConfPrev() | ||
284 | + { | ||
285 | + return budgConfPrev; | ||
286 | + } | ||
287 | + public void setBudgConfNew(BigDecimal budgConfNew) | ||
288 | + { | ||
289 | + this.budgConfNew = budgConfNew; | ||
290 | + } | ||
291 | + | ||
292 | + public BigDecimal getBudgConfNew() | ||
293 | + { | ||
294 | + return budgConfNew; | ||
295 | + } | ||
296 | + public void setBudgTotal(BigDecimal budgTotal) | ||
297 | + { | ||
298 | + this.budgTotal = budgTotal; | ||
299 | + } | ||
300 | + | ||
301 | + public BigDecimal getBudgTotal() | ||
302 | + { | ||
303 | + return budgTotal; | ||
304 | + } | ||
305 | + public void setQuarterlyTarget(BigDecimal quarterlyTarget) | ||
306 | + { | ||
307 | + this.quarterlyTarget = quarterlyTarget; | ||
308 | + } | ||
309 | + | ||
310 | + public BigDecimal getQuarterlyTarget() | ||
311 | + { | ||
312 | + return quarterlyTarget; | ||
313 | + } | ||
314 | + public void setCnyGsgCharged(BigDecimal cnyGsgCharged) | ||
315 | + { | ||
316 | + this.cnyGsgCharged = cnyGsgCharged; | ||
317 | + } | ||
318 | + | ||
319 | + public BigDecimal getCnyGsgCharged() | ||
320 | + { | ||
321 | + return cnyGsgCharged; | ||
322 | + } | ||
323 | + public void setCnyGsgUncharged(BigDecimal cnyGsgUncharged) | ||
324 | + { | ||
325 | + this.cnyGsgUncharged = cnyGsgUncharged; | ||
326 | + } | ||
327 | + | ||
328 | + public BigDecimal getCnyGsgUncharged() | ||
329 | + { | ||
330 | + return cnyGsgUncharged; | ||
331 | + } | ||
332 | + public void setCnyGsgTotal(BigDecimal cnyGsgTotal) | ||
333 | + { | ||
334 | + this.cnyGsgTotal = cnyGsgTotal; | ||
335 | + } | ||
336 | + | ||
337 | + public BigDecimal getCnyGsgTotal() | ||
338 | + { | ||
339 | + return cnyGsgTotal; | ||
340 | + } | ||
341 | + public void setCnyYrFull(BigDecimal cnyYrFull) | ||
342 | + { | ||
343 | + this.cnyYrFull = cnyYrFull; | ||
344 | + } | ||
345 | + | ||
346 | + public BigDecimal getCnyYrFull() | ||
347 | + { | ||
348 | + return cnyYrFull; | ||
349 | + } | ||
350 | + public void setCnyYrInstal(BigDecimal cnyYrInstal) | ||
351 | + { | ||
352 | + this.cnyYrInstal = cnyYrInstal; | ||
353 | + } | ||
354 | + | ||
355 | + public BigDecimal getCnyYrInstal() | ||
356 | + { | ||
357 | + return cnyYrInstal; | ||
358 | + } | ||
359 | + public void setCnyPrevFull(BigDecimal cnyPrevFull) | ||
360 | + { | ||
361 | + this.cnyPrevFull = cnyPrevFull; | ||
362 | + } | ||
363 | + | ||
364 | + public BigDecimal getCnyPrevFull() | ||
365 | + { | ||
366 | + return cnyPrevFull; | ||
367 | + } | ||
368 | + public void setCnyPrevInstall(BigDecimal cnyPrevInstall) | ||
369 | + { | ||
370 | + this.cnyPrevInstall = cnyPrevInstall; | ||
371 | + } | ||
372 | + | ||
373 | + public BigDecimal getCnyPrevInstall() | ||
374 | + { | ||
375 | + return cnyPrevInstall; | ||
376 | + } | ||
377 | + public void setCnyMarketCumr(BigDecimal cnyMarketCumr) | ||
378 | + { | ||
379 | + this.cnyMarketCumr = cnyMarketCumr; | ||
380 | + } | ||
381 | + | ||
382 | + public BigDecimal getCnyMarketCumr() | ||
383 | + { | ||
384 | + return cnyMarketCumr; | ||
385 | + } | ||
386 | + public void setCnyFyCumReturn(BigDecimal cnyFyCumReturn) | ||
387 | + { | ||
388 | + this.cnyFyCumReturn = cnyFyCumReturn; | ||
389 | + } | ||
390 | + | ||
391 | + public BigDecimal getCnyFyCumReturn() | ||
392 | + { | ||
393 | + return cnyFyCumReturn; | ||
394 | + } | ||
395 | + public void setCnyFpCumReturn(BigDecimal cnyFpCumReturn) | ||
396 | + { | ||
397 | + this.cnyFpCumReturn = cnyFpCumReturn; | ||
398 | + } | ||
399 | + | ||
400 | + public BigDecimal getCnyFpCumReturn() | ||
401 | + { | ||
402 | + return cnyFpCumReturn; | ||
403 | + } | ||
404 | + public void setCnyInstCumReturn(BigDecimal cnyInstCumReturn) | ||
405 | + { | ||
406 | + this.cnyInstCumReturn = cnyInstCumReturn; | ||
407 | + } | ||
408 | + | ||
409 | + public BigDecimal getCnyInstCumReturn() | ||
410 | + { | ||
411 | + return cnyInstCumReturn; | ||
412 | + } | ||
413 | + public void setCnyNewCumReturn(BigDecimal cnyNewCumReturn) | ||
414 | + { | ||
415 | + this.cnyNewCumReturn = cnyNewCumReturn; | ||
416 | + } | ||
417 | + | ||
418 | + public BigDecimal getCnyNewCumReturn() | ||
419 | + { | ||
420 | + return cnyNewCumReturn; | ||
421 | + } | ||
422 | + public void setCnyRcvblsCumReturn(BigDecimal cnyRcvblsCumReturn) | ||
423 | + { | ||
424 | + this.cnyRcvblsCumReturn = cnyRcvblsCumReturn; | ||
425 | + } | ||
426 | + | ||
427 | + public BigDecimal getCnyRcvblsCumReturn() | ||
428 | + { | ||
429 | + return cnyRcvblsCumReturn; | ||
430 | + } | ||
431 | + public void setCnyBdgtCmplRate(BigDecimal cnyBdgtCmplRate) | ||
432 | + { | ||
433 | + this.cnyBdgtCmplRate = cnyBdgtCmplRate; | ||
434 | + } | ||
435 | + | ||
436 | + public BigDecimal getCnyBdgtCmplRate() | ||
437 | + { | ||
438 | + return cnyBdgtCmplRate; | ||
439 | + } | ||
440 | + public void setCnyRcvblsCmplRate(BigDecimal cnyRcvblsCmplRate) | ||
441 | + { | ||
442 | + this.cnyRcvblsCmplRate = cnyRcvblsCmplRate; | ||
443 | + } | ||
444 | + | ||
445 | + public BigDecimal getCnyRcvblsCmplRate() | ||
446 | + { | ||
447 | + return cnyRcvblsCmplRate; | ||
448 | + } | ||
449 | + public void setCnyCynCmplRate(BigDecimal cnyCynCmplRate) | ||
450 | + { | ||
451 | + this.cnyCynCmplRate = cnyCynCmplRate; | ||
452 | + } | ||
453 | + | ||
454 | + public BigDecimal getCnyCynCmplRate() | ||
455 | + { | ||
456 | + return cnyCynCmplRate; | ||
457 | + } | ||
458 | + public void setCnyPtCmplRate(BigDecimal cnyPtCmplRate) | ||
459 | + { | ||
460 | + this.cnyPtCmplRate = cnyPtCmplRate; | ||
461 | + } | ||
462 | + | ||
463 | + public BigDecimal getCnyPtCmplRate() | ||
464 | + { | ||
465 | + return cnyPtCmplRate; | ||
466 | + } | ||
467 | + public void setDefFlag(String defFlag) | ||
468 | + { | ||
469 | + this.defFlag = defFlag; | ||
470 | + } | ||
471 | + | ||
472 | + public String getDefFlag() | ||
473 | + { | ||
474 | + return defFlag; | ||
475 | + } | ||
476 | + | ||
477 | + @Override | ||
478 | + public String toString() { | ||
479 | + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||
480 | + .append("id", getId()) | ||
481 | + .append("fiscalYear", getFiscalYear()) | ||
482 | + .append("regionName", getRegionName()) | ||
483 | + .append("groupName", getGroupName()) | ||
484 | + .append("companyName", getCompanyName()) | ||
485 | + .append("companyCode", getCompanyCode()) | ||
486 | + .append("province", getProvince()) | ||
487 | + .append("city", getCity()) | ||
488 | + .append("district", getDistrict()) | ||
489 | + .append("street", getStreet()) | ||
490 | + .append("vlgOrCmty", getVlgOrCmty()) | ||
491 | + .append("respPerson", getRespPerson()) | ||
492 | + .append("urbRurCls", getUrbRurCls()) | ||
493 | + .append("budgConfPrev", getBudgConfPrev()) | ||
494 | + .append("budgConfNew", getBudgConfNew()) | ||
495 | + .append("budgTotal", getBudgTotal()) | ||
496 | + .append("quarterlyTarget", getQuarterlyTarget()) | ||
497 | + .append("cnyGsgCharged", getCnyGsgCharged()) | ||
498 | + .append("cnyGsgUncharged", getCnyGsgUncharged()) | ||
499 | + .append("cnyGsgTotal", getCnyGsgTotal()) | ||
500 | + .append("cnyYrFull", getCnyYrFull()) | ||
501 | + .append("cnyYrInstal", getCnyYrInstal()) | ||
502 | + .append("cnyPrevFull", getCnyPrevFull()) | ||
503 | + .append("cnyPrevInstall", getCnyPrevInstall()) | ||
504 | + .append("cnyMarketCumr", getCnyMarketCumr()) | ||
505 | + .append("cnyFyCumReturn", getCnyFyCumReturn()) | ||
506 | + .append("cnyFpCumReturn", getCnyFpCumReturn()) | ||
507 | + .append("cnyInstCumReturn", getCnyInstCumReturn()) | ||
508 | + .append("cnyNewCumReturn", getCnyNewCumReturn()) | ||
509 | + .append("cnyRcvblsCumReturn", getCnyRcvblsCumReturn()) | ||
510 | + .append("cnyBdgtCmplRate", getCnyBdgtCmplRate()) | ||
511 | + .append("cnyRcvblsCmplRate", getCnyRcvblsCmplRate()) | ||
512 | + .append("cnyCynCmplRate", getCnyCynCmplRate()) | ||
513 | + .append("cnyPtCmplRate", getCnyPtCmplRate()) | ||
514 | + .append("remark", getRemark()) | ||
515 | + .append("createTime", getCreateTime()) | ||
516 | + .append("createBy", getCreateBy()) | ||
517 | + .append("updateTime", getUpdateTime()) | ||
518 | + .append("updateBy", getUpdateBy()) | ||
519 | + .append("defFlag", getDefFlag()) | ||
520 | + .toString(); | ||
521 | + } | ||
522 | +} |
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/domain/vo/McBasicMoneyVo.java
0 → 100644
@@ -0,0 +1,27 @@ | @@ -0,0 +1,27 @@ | ||
1 | +package com.chinagas.modules.schsf.domain.vo; | ||
2 | + | ||
3 | +import com.chinagas.modules.schsf.domain.McBasicMoney; | ||
4 | + | ||
5 | +public class McBasicMoneyVo extends McBasicMoney { | ||
6 | + /** 开始财年 */ | ||
7 | + private Long startFiscalYear; | ||
8 | + | ||
9 | + /** 结束财年 */ | ||
10 | + private Long finishFiscalYear; | ||
11 | + | ||
12 | + public Long getStartFiscalYear() { | ||
13 | + return startFiscalYear; | ||
14 | + } | ||
15 | + | ||
16 | + public void setStartFiscalYear(Long startFiscalYear) { | ||
17 | + this.startFiscalYear = startFiscalYear; | ||
18 | + } | ||
19 | + | ||
20 | + public Long getFinishFiscalYear() { | ||
21 | + return finishFiscalYear; | ||
22 | + } | ||
23 | + | ||
24 | + public void setFinishFiscalYear(Long finishFiscalYear) { | ||
25 | + this.finishFiscalYear = finishFiscalYear; | ||
26 | + } | ||
27 | +} |
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/mapper/McBasicMoneyMapper.java
0 → 100644
@@ -0,0 +1,63 @@ | @@ -0,0 +1,63 @@ | ||
1 | +package com.chinagas.modules.schsf.mapper; | ||
2 | + | ||
3 | +import com.chinagas.modules.schsf.domain.McBasicMoney; | ||
4 | +import com.chinagas.modules.schsf.domain.vo.McBasicMoneyVo; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +/** | ||
9 | + * 基础数据-金额Mapper接口 | ||
10 | + * | ||
11 | + * @author lidwd | ||
12 | + * @date 2024-05-23 | ||
13 | + */ | ||
14 | +public interface McBasicMoneyMapper | ||
15 | +{ | ||
16 | + /** | ||
17 | + * 查询基础数据-金额 | ||
18 | + * | ||
19 | + * @param id 基础数据-金额主键 | ||
20 | + * @return 基础数据-金额 | ||
21 | + */ | ||
22 | + public McBasicMoney selectMcBasicMoneyById(Long id); | ||
23 | + | ||
24 | + /** | ||
25 | + * 查询基础数据-金额列表 | ||
26 | + * | ||
27 | + * @param mcBasicMoney 基础数据-金额 | ||
28 | + * @return 基础数据-金额集合 | ||
29 | + */ | ||
30 | + public List<McBasicMoney> selectMcBasicMoneyList(McBasicMoneyVo mcBasicMoney); | ||
31 | + | ||
32 | + /** | ||
33 | + * 新增基础数据-金额 | ||
34 | + * | ||
35 | + * @param mcBasicMoney 基础数据-金额 | ||
36 | + * @return 结果 | ||
37 | + */ | ||
38 | + public int insertMcBasicMoney(McBasicMoney mcBasicMoney); | ||
39 | + | ||
40 | + /** | ||
41 | + * 修改基础数据-金额 | ||
42 | + * | ||
43 | + * @param mcBasicMoney 基础数据-金额 | ||
44 | + * @return 结果 | ||
45 | + */ | ||
46 | + public int updateMcBasicMoney(McBasicMoney mcBasicMoney); | ||
47 | + | ||
48 | + /** | ||
49 | + * 删除基础数据-金额 | ||
50 | + * | ||
51 | + * @param id 基础数据-金额主键 | ||
52 | + * @return 结果 | ||
53 | + */ | ||
54 | + public int deleteMcBasicMoneyById(Long id); | ||
55 | + | ||
56 | + /** | ||
57 | + * 批量删除基础数据-金额 | ||
58 | + * | ||
59 | + * @param ids 需要删除的数据主键集合 | ||
60 | + * @return 结果 | ||
61 | + */ | ||
62 | + public int deleteMcBasicMoneyByIds(Long[] ids); | ||
63 | +} |
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/service/IMcBasicMoneyService.java
0 → 100644
@@ -0,0 +1,63 @@ | @@ -0,0 +1,63 @@ | ||
1 | +package com.chinagas.modules.schsf.service; | ||
2 | + | ||
3 | +import com.chinagas.modules.schsf.domain.McBasicMoney; | ||
4 | +import com.chinagas.modules.schsf.domain.vo.McBasicMoneyVo; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +/** | ||
9 | + * 基础数据-金额Service接口 | ||
10 | + * | ||
11 | + * @author lidwd | ||
12 | + * @date 2024-05-23 | ||
13 | + */ | ||
14 | +public interface IMcBasicMoneyService | ||
15 | +{ | ||
16 | + /** | ||
17 | + * 查询基础数据-金额 | ||
18 | + * | ||
19 | + * @param id 基础数据-金额主键 | ||
20 | + * @return 基础数据-金额 | ||
21 | + */ | ||
22 | + public McBasicMoney selectMcBasicMoneyById(Long id); | ||
23 | + | ||
24 | + /** | ||
25 | + * 查询基础数据-金额列表 | ||
26 | + * | ||
27 | + * @param mcBasicMoneyVo 基础数据-金额 | ||
28 | + * @return 基础数据-金额集合 | ||
29 | + */ | ||
30 | + public List<McBasicMoney> selectMcBasicMoneyList(McBasicMoneyVo mcBasicMoneyVo); | ||
31 | + | ||
32 | + /** | ||
33 | + * 新增基础数据-金额 | ||
34 | + * | ||
35 | + * @param mcBasicMoney 基础数据-金额 | ||
36 | + * @return 结果 | ||
37 | + */ | ||
38 | + public int insertMcBasicMoney(McBasicMoney mcBasicMoney); | ||
39 | + | ||
40 | + /** | ||
41 | + * 修改基础数据-金额 | ||
42 | + * | ||
43 | + * @param mcBasicMoney 基础数据-金额 | ||
44 | + * @return 结果 | ||
45 | + */ | ||
46 | + public int updateMcBasicMoney(McBasicMoney mcBasicMoney); | ||
47 | + | ||
48 | + /** | ||
49 | + * 批量删除基础数据-金额 | ||
50 | + * | ||
51 | + * @param ids 需要删除的基础数据-金额主键集合 | ||
52 | + * @return 结果 | ||
53 | + */ | ||
54 | + public int deleteMcBasicMoneyByIds(Long[] ids); | ||
55 | + | ||
56 | + /** | ||
57 | + * 删除基础数据-金额信息 | ||
58 | + * | ||
59 | + * @param id 基础数据-金额主键 | ||
60 | + * @return 结果 | ||
61 | + */ | ||
62 | + public int deleteMcBasicMoneyById(Long id); | ||
63 | +} |
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/service/impl/McBasicMoneyServiceImpl.java
0 → 100644
@@ -0,0 +1,104 @@ | @@ -0,0 +1,104 @@ | ||
1 | +package com.chinagas.modules.schsf.service.impl; | ||
2 | + | ||
3 | +import com.chinagas.common.core.utils.DateUtils; | ||
4 | +import com.chinagas.common.datascope.annotation.DataScope; | ||
5 | +import com.chinagas.common.security.utils.SecurityUtils; | ||
6 | +import com.chinagas.modules.schsf.domain.McBasicMoney; | ||
7 | +import com.chinagas.modules.schsf.domain.vo.McBasicMoneyVo; | ||
8 | +import com.chinagas.modules.schsf.mapper.McBasicMoneyMapper; | ||
9 | +import com.chinagas.modules.schsf.service.IMcBasicMoneyService; | ||
10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
11 | +import org.springframework.stereotype.Service; | ||
12 | + | ||
13 | +import java.util.List; | ||
14 | + | ||
15 | +/** | ||
16 | + * 基础数据-金额Service业务层处理 | ||
17 | + * | ||
18 | + * @author lidwd | ||
19 | + * @date 2024-05-23 | ||
20 | + */ | ||
21 | +@Service | ||
22 | +public class McBasicMoneyServiceImpl implements IMcBasicMoneyService | ||
23 | +{ | ||
24 | + @Autowired | ||
25 | + private McBasicMoneyMapper mcBasicMoneyMapper; | ||
26 | + | ||
27 | + /** | ||
28 | + * 查询基础数据-金额 | ||
29 | + * | ||
30 | + * @param id 基础数据-金额主键 | ||
31 | + * @return 基础数据-金额 | ||
32 | + */ | ||
33 | + @Override | ||
34 | + public McBasicMoney selectMcBasicMoneyById(Long id) | ||
35 | + { | ||
36 | + return mcBasicMoneyMapper.selectMcBasicMoneyById(id); | ||
37 | + } | ||
38 | + | ||
39 | + /** | ||
40 | + * 查询基础数据-金额列表 | ||
41 | + * | ||
42 | + * @param mcBasicMoneyVo 基础数据-金额 | ||
43 | + * @return 基础数据-金额 | ||
44 | + */ | ||
45 | + @DataScope(deptAlias = "d", userAlias = "u") | ||
46 | + @Override | ||
47 | + public List<McBasicMoney> selectMcBasicMoneyList(McBasicMoneyVo mcBasicMoneyVo) | ||
48 | + { | ||
49 | + return mcBasicMoneyMapper.selectMcBasicMoneyList(mcBasicMoneyVo); | ||
50 | + } | ||
51 | + | ||
52 | + /** | ||
53 | + * 新增基础数据-金额 | ||
54 | + * | ||
55 | + * @param mcBasicMoney 基础数据-金额 | ||
56 | + * @return 结果 | ||
57 | + */ | ||
58 | + @Override | ||
59 | + public int insertMcBasicMoney(McBasicMoney mcBasicMoney) | ||
60 | + { | ||
61 | + mcBasicMoney.setCreateTime(DateUtils.getNowLocal()); | ||
62 | + mcBasicMoney.setCreateBy(SecurityUtils.getUserId().toString()); | ||
63 | + mcBasicMoney.setUpdateTime(DateUtils.getNowLocal()); | ||
64 | + mcBasicMoney.setUpdateBy(SecurityUtils.getUserId().toString()); | ||
65 | + return mcBasicMoneyMapper.insertMcBasicMoney(mcBasicMoney); | ||
66 | + } | ||
67 | + | ||
68 | + /** | ||
69 | + * 修改基础数据-金额 | ||
70 | + * | ||
71 | + * @param mcBasicMoney 基础数据-金额 | ||
72 | + * @return 结果 | ||
73 | + */ | ||
74 | + @Override | ||
75 | + public int updateMcBasicMoney(McBasicMoney mcBasicMoney) | ||
76 | + { | ||
77 | + mcBasicMoney.setUpdateTime(DateUtils.getNowLocal()); | ||
78 | + return mcBasicMoneyMapper.updateMcBasicMoney(mcBasicMoney); | ||
79 | + } | ||
80 | + | ||
81 | + /** | ||
82 | + * 批量删除基础数据-金额 | ||
83 | + * | ||
84 | + * @param ids 需要删除的基础数据-金额主键 | ||
85 | + * @return 结果 | ||
86 | + */ | ||
87 | + @Override | ||
88 | + public int deleteMcBasicMoneyByIds(Long[] ids) | ||
89 | + { | ||
90 | + return mcBasicMoneyMapper.deleteMcBasicMoneyByIds(ids); | ||
91 | + } | ||
92 | + | ||
93 | + /** | ||
94 | + * 删除基础数据-金额信息 | ||
95 | + * | ||
96 | + * @param id 基础数据-金额主键 | ||
97 | + * @return 结果 | ||
98 | + */ | ||
99 | + @Override | ||
100 | + public int deleteMcBasicMoneyById(Long id) | ||
101 | + { | ||
102 | + return mcBasicMoneyMapper.deleteMcBasicMoneyById(id); | ||
103 | + } | ||
104 | +} |
zr-cloud/zr-modules/zr-schsf/src/main/resources/mapper/McBasicMoneyMapper.xml
0 → 100644
@@ -0,0 +1,259 @@ | @@ -0,0 +1,259 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
2 | +<!DOCTYPE mapper | ||
3 | +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
4 | +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
5 | +<mapper namespace="com.chinagas.modules.schsf.mapper.McBasicMoneyMapper"> | ||
6 | + | ||
7 | + <resultMap type="com.chinagas.modules.schsf.domain.McBasicMoney" id="McBasicMoneyResult"> | ||
8 | + <result property="id" column="id" /> | ||
9 | + <result property="fiscalYear" column="fiscal_year" /> | ||
10 | + <result property="regionName" column="region_name" /> | ||
11 | + <result property="groupName" column="group_name" /> | ||
12 | + <result property="companyName" column="company_name" /> | ||
13 | + <result property="companyCode" column="company_code" /> | ||
14 | + <result property="province" column="province" /> | ||
15 | + <result property="city" column="city" /> | ||
16 | + <result property="district" column="district" /> | ||
17 | + <result property="street" column="street" /> | ||
18 | + <result property="vlgOrCmty" column="vlg_or_cmty" /> | ||
19 | + <result property="respPerson" column="resp_person" /> | ||
20 | + <result property="urbRurCls" column="urb_rur_cls" /> | ||
21 | + <result property="budgConfPrev" column="budg_conf_prev" /> | ||
22 | + <result property="budgConfNew" column="budg_conf_new" /> | ||
23 | + <result property="budgTotal" column="budg_total" /> | ||
24 | + <result property="quarterlyTarget" column="quarterly_target" /> | ||
25 | + <result property="cnyGsgCharged" column="cny_gsg_charged" /> | ||
26 | + <result property="cnyGsgUncharged" column="cny_gsg_uncharged" /> | ||
27 | + <result property="cnyGsgTotal" column="cny_gsg_total" /> | ||
28 | + <result property="cnyYrFull" column="cny_yr_full" /> | ||
29 | + <result property="cnyYrInstal" column="cny_yr_instal" /> | ||
30 | + <result property="cnyPrevFull" column="cny_prev_full" /> | ||
31 | + <result property="cnyPrevInstall" column="cny_prev_install" /> | ||
32 | + <result property="cnyMarketCumr" column="cny_market_cumr" /> | ||
33 | + <result property="cnyFyCumReturn" column="cny_fy_cum_return" /> | ||
34 | + <result property="cnyFpCumReturn" column="cny_fp_cum_return" /> | ||
35 | + <result property="cnyInstCumReturn" column="cny_inst_cum_return" /> | ||
36 | + <result property="cnyNewCumReturn" column="cny_new_cum_return" /> | ||
37 | + <result property="cnyRcvblsCumReturn" column="cny_rcvbls_cum_return" /> | ||
38 | + <result property="cnyBdgtCmplRate" column="cny_bdgt_cmpl_rate" /> | ||
39 | + <result property="cnyRcvblsCmplRate" column="cny_rcvbls_cmpl_rate" /> | ||
40 | + <result property="cnyCynCmplRate" column="cny_cyn_cmpl_rate" /> | ||
41 | + <result property="cnyPtCmplRate" column="cny_pt_cmpl_rate" /> | ||
42 | + <result property="remark" column="remark" /> | ||
43 | + <result property="createTime" column="create_time" /> | ||
44 | + <result property="createBy" column="create_by" /> | ||
45 | + <result property="updateTime" column="update_time" /> | ||
46 | + <result property="updateBy" column="update_by" /> | ||
47 | + <result property="defFlag" column="def_flag" /> | ||
48 | + </resultMap> | ||
49 | + | ||
50 | + <sql id="selectMcBasicMoneyVo"> | ||
51 | + select t.id, t.fiscal_year, t.region_name, t.group_name, t.company_name, t.company_code, t.province, | ||
52 | + t.city, t.district, t.street, t.vlg_or_cmty, t.resp_person, t.urb_rur_cls, t.budg_conf_prev, | ||
53 | + t.budg_conf_new, t.budg_total, t.quarterly_target, t.cny_gsg_charged, t.cny_gsg_uncharged, | ||
54 | + t.cny_gsg_total, t.cny_yr_full, t.cny_yr_instal, t.cny_prev_full, | ||
55 | + t.cny_prev_install, t.cny_market_cumr, t.cny_fy_cum_return, | ||
56 | + t.cny_fp_cum_return, t.cny_inst_cum_return, t.cny_new_cum_return, | ||
57 | + t.cny_rcvbls_cum_return, t.cny_bdgt_cmpl_rate, | ||
58 | + t.cny_rcvbls_cmpl_rate, t.cny_cyn_cmpl_rate, | ||
59 | + t.cny_pt_cmpl_rate, t.remark, t.create_time, t.create_by, | ||
60 | + t.update_time, t.update_by, t.def_flag | ||
61 | + from mc_basic_money t | ||
62 | + left join sys_user u on u.user_id = t.create_by | ||
63 | + left join sys_dept d on d.dept_id = t.company_code | ||
64 | + </sql> | ||
65 | + | ||
66 | + <select id="selectMcBasicMoneyList" parameterType="com.chinagas.modules.schsf.domain.vo.McBasicMoneyVo" resultMap="McBasicMoneyResult"> | ||
67 | + <include refid="selectMcBasicMoneyVo"/> | ||
68 | + <where> | ||
69 | + <if test="fiscalYear != null "> and t.fiscal_year = #{fiscalYear}</if> | ||
70 | + <if test="regionName != null and regionName != ''"> and t.region_name like concat('%', #{regionName}, '%')</if> | ||
71 | + <if test="groupName != null and groupName != ''"> and t.group_name like concat('%', #{groupName}, '%')</if> | ||
72 | + <if test="companyName != null and companyName != ''"> and t.company_name like concat('%', #{companyName}, '%')</if> | ||
73 | + <if test="companyCode != null and companyCode != ''"> and t.company_code = #{companyCode}</if> | ||
74 | + <if test="province != null and province != ''"> and t.province = #{province}</if> | ||
75 | + <if test="city != null and city != ''"> and t.city = #{city}</if> | ||
76 | + <if test="district != null and district != ''"> and t.district = #{district}</if> | ||
77 | + <if test="street != null and street != ''"> and t.street = #{street}</if> | ||
78 | + <if test="vlgOrCmty != null and vlgOrCmty != ''"> and t.vlg_or_cmty = #{vlgOrCmty}</if> | ||
79 | + <if test="respPerson != null and respPerson != ''"> and t.resp_person = #{respPerson}</if> | ||
80 | + <if test="urbRurCls != null and urbRurCls != ''"> and t.urb_rur_cls = #{urbRurCls}</if> | ||
81 | + <if test="budgConfPrev != null "> and t.budg_conf_prev = #{budgConfPrev}</if> | ||
82 | + <if test="budgConfNew != null "> and t.budg_conf_new = #{budgConfNew}</if> | ||
83 | + <if test="budgTotal != null "> and t.budg_total = #{budgTotal}</if> | ||
84 | + <if test="quarterlyTarget != null "> and t.quarterly_target = #{quarterlyTarget}</if> | ||
85 | + <if test="cnyGsgCharged != null "> and t.cny_gsg_charged = #{cnyGsgCharged}</if> | ||
86 | + <if test="cnyGsgUncharged != null "> and t.cny_gsg_uncharged = #{cnyGsgUncharged}</if> | ||
87 | + <if test="cnyGsgTotal != null "> and t.cny_gsg_total = #{cnyGsgTotal}</if> | ||
88 | + <if test="cnyYrFull != null "> and t.cny_yr_full = #{cnyYrFull}</if> | ||
89 | + <if test="cnyYrInstal != null "> and t.cny_yr_instal = #{cnyYrInstal}</if> | ||
90 | + <if test="cnyPrevFull != null "> and t.cny_prev_full = #{cnyPrevFull}</if> | ||
91 | + <if test="cnyPrevInstall != null "> and t.cny_prev_install = #{cnyPrevInstall}</if> | ||
92 | + <if test="cnyMarketCumr != null "> and t.cny_market_cumr = #{cnyMarketCumr}</if> | ||
93 | + <if test="cnyFyCumReturn != null "> and t.cny_fy_cum_return = #{cnyFyCumReturn}</if> | ||
94 | + <if test="cnyFpCumReturn != null "> and t.cny_fp_cum_return = #{cnyFpCumReturn}</if> | ||
95 | + <if test="cnyInstCumReturn != null "> and t.cny_inst_cum_return = #{cnyInstCumReturn}</if> | ||
96 | + <if test="cnyNewCumReturn != null "> and t.cny_new_cum_return = #{cnyNewCumReturn}</if> | ||
97 | + <if test="cnyRcvblsCumReturn != null "> and t.cny_rcvbls_cum_return = #{cnyRcvblsCumReturn}</if> | ||
98 | + <if test="cnyBdgtCmplRate != null "> and t.cny_bdgt_cmpl_rate = #{cnyBdgtCmplRate}</if> | ||
99 | + <if test="cnyRcvblsCmplRate != null "> and t.cny_rcvbls_cmpl_rate = #{cnyRcvblsCmplRate}</if> | ||
100 | + <if test="cnyCynCmplRate != null "> and t.cny_cyn_cmpl_rate = #{cnyCynCmplRate}</if> | ||
101 | + <if test="cnyPtCmplRate != null "> and t.cny_pt_cmpl_rate = #{cnyPtCmplRate}</if> | ||
102 | + <if test="defFlag != null and defFlag != ''"> and t.def_flag = #{defFlag}</if> | ||
103 | + <if test="startFiscalYear != null and startFiscalYear != ''"> and t.fiscal_year >= #{startFiscalYear}</if> | ||
104 | + <if test="finishFiscalYear != null and finishFiscalYear != ''"> and t.fiscal_year <= #{finishFiscalYear}</if> | ||
105 | + <!-- 数据范围过滤 --> | ||
106 | + ${params.dataScope} | ||
107 | + </where> | ||
108 | + </select> | ||
109 | + | ||
110 | + <select id="selectMcBasicMoneyById" parameterType="Long" resultMap="McBasicMoneyResult"> | ||
111 | + <include refid="selectMcBasicMoneyVo"/> | ||
112 | + where id = #{id} | ||
113 | + </select> | ||
114 | + | ||
115 | + <insert id="insertMcBasicMoney" parameterType="com.chinagas.modules.schsf.domain.McBasicMoney"> | ||
116 | + insert into mc_basic_money | ||
117 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
118 | + <if test="id != null">id,</if> | ||
119 | + <if test="fiscalYear != null">fiscal_year,</if> | ||
120 | + <if test="regionName != null and regionName != ''">region_name,</if> | ||
121 | + <if test="groupName != null and groupName != ''">group_name,</if> | ||
122 | + <if test="companyName != null and companyName != ''">company_name,</if> | ||
123 | + <if test="companyCode != null and companyCode != ''">company_code,</if> | ||
124 | + <if test="province != null">province,</if> | ||
125 | + <if test="city != null">city,</if> | ||
126 | + <if test="district != null">district,</if> | ||
127 | + <if test="street != null">street,</if> | ||
128 | + <if test="vlgOrCmty != null">vlg_or_cmty,</if> | ||
129 | + <if test="respPerson != null">resp_person,</if> | ||
130 | + <if test="urbRurCls != null">urb_rur_cls,</if> | ||
131 | + <if test="budgConfPrev != null">budg_conf_prev,</if> | ||
132 | + <if test="budgConfNew != null">budg_conf_new,</if> | ||
133 | + <if test="budgTotal != null">budg_total,</if> | ||
134 | + <if test="quarterlyTarget != null">quarterly_target,</if> | ||
135 | + <if test="cnyGsgCharged != null">cny_gsg_charged,</if> | ||
136 | + <if test="cnyGsgUncharged != null">cny_gsg_uncharged,</if> | ||
137 | + <if test="cnyGsgTotal != null">cny_gsg_total,</if> | ||
138 | + <if test="cnyYrFull != null">cny_yr_full,</if> | ||
139 | + <if test="cnyYrInstal != null">cny_yr_instal,</if> | ||
140 | + <if test="cnyPrevFull != null">cny_prev_full,</if> | ||
141 | + <if test="cnyPrevInstall != null">cny_prev_install,</if> | ||
142 | + <if test="cnyMarketCumr != null">cny_market_cumr,</if> | ||
143 | + <if test="cnyFyCumReturn != null">cny_fy_cum_return,</if> | ||
144 | + <if test="cnyFpCumReturn != null">cny_fp_cum_return,</if> | ||
145 | + <if test="cnyInstCumReturn != null">cny_inst_cum_return,</if> | ||
146 | + <if test="cnyNewCumReturn != null">cny_new_cum_return,</if> | ||
147 | + <if test="cnyRcvblsCumReturn != null">cny_rcvbls_cum_return,</if> | ||
148 | + <if test="cnyBdgtCmplRate != null">cny_bdgt_cmpl_rate,</if> | ||
149 | + <if test="cnyRcvblsCmplRate != null">cny_rcvbls_cmpl_rate,</if> | ||
150 | + <if test="cnyCynCmplRate != null">cny_cyn_cmpl_rate,</if> | ||
151 | + <if test="cnyPtCmplRate != null">cny_pt_cmpl_rate,</if> | ||
152 | + <if test="remark != null">remark,</if> | ||
153 | + <if test="createTime != null">create_time,</if> | ||
154 | + <if test="createBy != null and createBy != ''">create_by,</if> | ||
155 | + <if test="updateTime != null">update_time,</if> | ||
156 | + <if test="updateBy != null and updateBy != ''">update_by,</if> | ||
157 | + <if test="defFlag != null and defFlag != ''">def_flag,</if> | ||
158 | + </trim> | ||
159 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
160 | + <if test="id != null">#{id},</if> | ||
161 | + <if test="fiscalYear != null">#{fiscalYear},</if> | ||
162 | + <if test="regionName != null and regionName != ''">#{regionName},</if> | ||
163 | + <if test="groupName != null and groupName != ''">#{groupName},</if> | ||
164 | + <if test="companyName != null and companyName != ''">#{companyName},</if> | ||
165 | + <if test="companyCode != null and companyCode != ''">#{companyCode},</if> | ||
166 | + <if test="province != null">#{province},</if> | ||
167 | + <if test="city != null">#{city},</if> | ||
168 | + <if test="district != null">#{district},</if> | ||
169 | + <if test="street != null">#{street},</if> | ||
170 | + <if test="vlgOrCmty != null">#{vlgOrCmty},</if> | ||
171 | + <if test="respPerson != null">#{respPerson},</if> | ||
172 | + <if test="urbRurCls != null">#{urbRurCls},</if> | ||
173 | + <if test="budgConfPrev != null">#{budgConfPrev},</if> | ||
174 | + <if test="budgConfNew != null">#{budgConfNew},</if> | ||
175 | + <if test="budgTotal != null">#{budgTotal},</if> | ||
176 | + <if test="quarterlyTarget != null">#{quarterlyTarget},</if> | ||
177 | + <if test="cnyGsgCharged != null">#{cnyGsgCharged},</if> | ||
178 | + <if test="cnyGsgUncharged != null">#{cnyGsgUncharged},</if> | ||
179 | + <if test="cnyGsgTotal != null">#{cnyGsgTotal},</if> | ||
180 | + <if test="cnyYrFull != null">#{cnyYrFull},</if> | ||
181 | + <if test="cnyYrInstal != null">#{cnyYrInstal},</if> | ||
182 | + <if test="cnyPrevFull != null">#{cnyPrevFull},</if> | ||
183 | + <if test="cnyPrevInstall != null">#{cnyPrevInstall},</if> | ||
184 | + <if test="cnyMarketCumr != null">#{cnyMarketCumr},</if> | ||
185 | + <if test="cnyFyCumReturn != null">#{cnyFyCumReturn},</if> | ||
186 | + <if test="cnyFpCumReturn != null">#{cnyFpCumReturn},</if> | ||
187 | + <if test="cnyInstCumReturn != null">#{cnyInstCumReturn},</if> | ||
188 | + <if test="cnyNewCumReturn != null">#{cnyNewCumReturn},</if> | ||
189 | + <if test="cnyRcvblsCumReturn != null">#{cnyRcvblsCumReturn},</if> | ||
190 | + <if test="cnyBdgtCmplRate != null">#{cnyBdgtCmplRate},</if> | ||
191 | + <if test="cnyRcvblsCmplRate != null">#{cnyRcvblsCmplRate},</if> | ||
192 | + <if test="cnyCynCmplRate != null">#{cnyCynCmplRate},</if> | ||
193 | + <if test="cnyPtCmplRate != null">#{cnyPtCmplRate},</if> | ||
194 | + <if test="remark != null">#{remark},</if> | ||
195 | + <if test="createTime != null">#{createTime},</if> | ||
196 | + <if test="createBy != null and createBy != ''">#{createBy},</if> | ||
197 | + <if test="updateTime != null">#{updateTime},</if> | ||
198 | + <if test="updateBy != null and updateBy != ''">#{updateBy},</if> | ||
199 | + <if test="defFlag != null and defFlag != ''">#{defFlag},</if> | ||
200 | + </trim> | ||
201 | + </insert> | ||
202 | + | ||
203 | + <update id="updateMcBasicMoney" parameterType="com.chinagas.modules.schsf.domain.McBasicMoney"> | ||
204 | + update mc_basic_money | ||
205 | + <trim prefix="SET" suffixOverrides=","> | ||
206 | + <if test="fiscalYear != null">fiscal_year = #{fiscalYear},</if> | ||
207 | + <if test="regionName != null and regionName != ''">region_name = #{regionName},</if> | ||
208 | + <if test="groupName != null and groupName != ''">group_name = #{groupName},</if> | ||
209 | + <if test="companyName != null and companyName != ''">company_name = #{companyName},</if> | ||
210 | + <if test="companyCode != null and companyCode != ''">company_code = #{companyCode},</if> | ||
211 | + <if test="province != null">province = #{province},</if> | ||
212 | + <if test="city != null">city = #{city},</if> | ||
213 | + <if test="district != null">district = #{district},</if> | ||
214 | + <if test="street != null">street = #{street},</if> | ||
215 | + <if test="vlgOrCmty != null">vlg_or_cmty = #{vlgOrCmty},</if> | ||
216 | + <if test="respPerson != null">resp_person = #{respPerson},</if> | ||
217 | + <if test="urbRurCls != null">urb_rur_cls = #{urbRurCls},</if> | ||
218 | + <if test="budgConfPrev != null">budg_conf_prev = #{budgConfPrev},</if> | ||
219 | + <if test="budgConfNew != null">budg_conf_new = #{budgConfNew},</if> | ||
220 | + <if test="budgTotal != null">budg_total = #{budgTotal},</if> | ||
221 | + <if test="quarterlyTarget != null">quarterly_target = #{quarterlyTarget},</if> | ||
222 | + <if test="cnyGsgCharged != null">cny_gsg_charged = #{cnyGsgCharged},</if> | ||
223 | + <if test="cnyGsgUncharged != null">cny_gsg_uncharged = #{cnyGsgUncharged},</if> | ||
224 | + <if test="cnyGsgTotal != null">cny_gsg_total = #{cnyGsgTotal},</if> | ||
225 | + <if test="cnyYrFull != null">cny_yr_full = #{cnyYrFull},</if> | ||
226 | + <if test="cnyYrInstal != null">cny_yr_instal = #{cnyYrInstal},</if> | ||
227 | + <if test="cnyPrevFull != null">cny_prev_full = #{cnyPrevFull},</if> | ||
228 | + <if test="cnyPrevInstall != null">cny_prev_install = #{cnyPrevInstall},</if> | ||
229 | + <if test="cnyMarketCumr != null">cny_market_cumr = #{cnyMarketCumr},</if> | ||
230 | + <if test="cnyFyCumReturn != null">cny_fy_cum_return = #{cnyFyCumReturn},</if> | ||
231 | + <if test="cnyFpCumReturn != null">cny_fp_cum_return = #{cnyFpCumReturn},</if> | ||
232 | + <if test="cnyInstCumReturn != null">cny_inst_cum_return = #{cnyInstCumReturn},</if> | ||
233 | + <if test="cnyNewCumReturn != null">cny_new_cum_return = #{cnyNewCumReturn},</if> | ||
234 | + <if test="cnyRcvblsCumReturn != null">cny_rcvbls_cum_return = #{cnyRcvblsCumReturn},</if> | ||
235 | + <if test="cnyBdgtCmplRate != null">cny_bdgt_cmpl_rate = #{cnyBdgtCmplRate},</if> | ||
236 | + <if test="cnyRcvblsCmplRate != null">cny_rcvbls_cmpl_rate = #{cnyRcvblsCmplRate},</if> | ||
237 | + <if test="cnyCynCmplRate != null">cny_cyn_cmpl_rate = #{cnyCynCmplRate},</if> | ||
238 | + <if test="cnyPtCmplRate != null">cny_pt_cmpl_rate = #{cnyPtCmplRate},</if> | ||
239 | + <if test="remark != null">remark = #{remark},</if> | ||
240 | + <if test="createTime != null">create_time = #{createTime},</if> | ||
241 | + <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> | ||
242 | + <if test="updateTime != null">update_time = #{updateTime},</if> | ||
243 | + <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||
244 | + <if test="defFlag != null and defFlag != ''">def_flag = #{defFlag},</if> | ||
245 | + </trim> | ||
246 | + where id = #{id} | ||
247 | + </update> | ||
248 | + | ||
249 | + <delete id="deleteMcBasicMoneyById" parameterType="Long"> | ||
250 | + delete from mc_basic_money where id = #{id} | ||
251 | + </delete> | ||
252 | + | ||
253 | + <delete id="deleteMcBasicMoneyByIds" parameterType="String"> | ||
254 | + delete from mc_basic_money where id in | ||
255 | + <foreach item="id" collection="array" open="(" separator="," close=")"> | ||
256 | + #{id} | ||
257 | + </foreach> | ||
258 | + </delete> | ||
259 | +</mapper> |