Commit 321b806f authored by 位宇华's avatar 位宇华

范各庄电--代码提交

parent d63a5e1e
...@@ -64,4 +64,20 @@ public class ConfigSaveController { ...@@ -64,4 +64,20 @@ public class ConfigSaveController {
map.forEach((k,v)-> salaryMapper.insertMap(k,v)); map.forEach((k,v)-> salaryMapper.insertMap(k,v));
} }
@PostMapping("/test/source")
public void source() {
Map<String,Object> map = new HashMap<>();
map.put("其他应收款-内部往来(销)","其他应收款");
map.put("其他应收款-内部往来(供)","其他应收款");
map.put("其他业务支出-转供电","其他业务成本");
map.put("应付职工薪酬-福利(宿舍)","制造费用-原煤");
map.put("应付职工薪酬-福利(食堂)","福利费");
map.put("销售费用-电力-电力","销售费用");
map.put("管理费用--电费","管理费用");
map.put("生产成本-洗煤-电力","基本生产-洗煤");
map.put("制造费用-原煤-电力","制造费用-原煤");
map.put("生产成本-原煤-电力","基本生产-原煤");
map.forEach((k,v)-> salaryMapper.insertSourceMap(k,v));
}
} }
...@@ -26,4 +26,5 @@ public class ImportExpenseSourceController { ...@@ -26,4 +26,5 @@ public class ImportExpenseSourceController {
public AjaxResult powerSource(@RequestParam("multipartFile")MultipartFile multipartFile) { public AjaxResult powerSource(@RequestParam("multipartFile")MultipartFile multipartFile) {
return importExpenseSourceService.save(multipartFile); return importExpenseSourceService.save(multipartFile);
} }
} }
package com.ruoyi.system.mapper; package com.ruoyi.system.mapper;
import com.ruoyi.system.model.power.PowerConvertSourceModel;
import com.ruoyi.system.model.power.PowerSourceModel; import com.ruoyi.system.model.power.PowerSourceModel;
import com.ruoyi.system.model.power.dao.PowerClassificationQueryDao; import com.ruoyi.system.model.power.dao.PowerClassificationQueryDao;
import com.ruoyi.system.model.power.dao.PowerControlDao; import com.ruoyi.system.model.power.dao.PowerControlDao;
...@@ -30,4 +31,8 @@ public interface PowerDisplayMapper { ...@@ -30,4 +31,8 @@ public interface PowerDisplayMapper {
List<ConfigModel> seletPowerConfig(); List<ConfigModel> seletPowerConfig();
List<PowerSourceModel> selectSource(@Param("number") String number); List<PowerSourceModel> selectSource(@Param("number") String number);
void deleteRepeat(@Param("month") String month,@Param("minId") String minId);
List<PowerConvertSourceModel> selectConvertSource(@Param("number") String number);
} }
...@@ -38,4 +38,6 @@ public interface SalaryMapper { ...@@ -38,4 +38,6 @@ public interface SalaryMapper {
void insertMap(@Param("k") String k, @Param("v") Object v); void insertMap(@Param("k") String k, @Param("v") Object v);
List<ConfigModel> getConfig(); List<ConfigModel> getConfig();
void insertSourceMap(@Param("k") String k, @Param("v") Object v);
} }
package com.ruoyi.system.model.power;
import java.io.Serializable;
public class PowerConvertSourceModel implements Serializable {
private String needConvertSource;
private String convertSourceName;
private String orgCode;
public String getNeedConvertSource() {
return needConvertSource;
}
public void setNeedConvertSource(String needConvertSource) {
this.needConvertSource = needConvertSource;
}
public String getConvertSourceName() {
return convertSourceName;
}
public void setConvertSourceName(String convertSourceName) {
this.convertSourceName = convertSourceName;
}
public String getOrgCode() {
return orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
package com.ruoyi.system.model.power;
import java.io.Serializable;
import java.math.BigDecimal;
public class SourceIndfoModel implements Serializable {
private String sourceName;
private String keyName;
private String valueName;
private BigDecimal unitPrice;
public String getKeyName() {
return keyName;
}
public void setKeyName(String keyName) {
this.keyName = keyName;
}
public String getValueName() {
return valueName;
}
public void setValueName(String valueName) {
this.valueName = valueName;
}
public String getSourceName() {
return sourceName;
}
public void setSourceName(String sourceName) {
this.sourceName = sourceName;
}
public BigDecimal getUnitPrice() {
return unitPrice;
}
public void setUnitPrice(BigDecimal unitPrice) {
this.unitPrice = unitPrice;
}
}
...@@ -111,4 +111,17 @@ ...@@ -111,4 +111,17 @@
from power_classification_query from power_classification_query
where mind_id = #{number} where mind_id = #{number}
</select> </select>
<delete id="deleteRepeat">
delete
from power_large_screen_display
where mind_id = #{minId}
and date_column = #{month}
</delete>
<select id="selectConvertSource" resultType="com.ruoyi.system.model.power.PowerConvertSourceModel">
select need_convert_source as needConvertSource,
convert_source as convertSourceName
from power_source_convert
where org_code = #{number}
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -203,6 +203,10 @@ ...@@ -203,6 +203,10 @@
INSERT INTO power_col_config (key_name, col_name) INSERT INTO power_col_config (key_name, col_name)
values (#{k}, #{v}) values (#{k}, #{v})
</insert> </insert>
<insert id="insertSourceMap">
INSERT INTO power_source_convert (need_convert_source, convert_source,org_code)
values (#{k}, #{v},'011701')
</insert>
<select id="getConfig" resultType="com.ruoyi.system.model.salary.ConfigModel"> <select id="getConfig" resultType="com.ruoyi.system.model.salary.ConfigModel">
select key_name as keyName, select key_name as keyName,
col_name as colName col_name as colName
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment