| New file |
| | |
| | | package com.java110.dto.chargeMachineFactory; |
| | | |
| | | import com.java110.dto.PageDto; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @ClassName FloorDto |
| | | * @Description 充电桩厂家数据层封装 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 8:52 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | public class ChargeMachineFactoryDto extends PageDto implements Serializable { |
| | | |
| | | private String factoryId; |
| | | private String factoryName; |
| | | private String remark; |
| | | private String beanImpl; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getFactoryId() { |
| | | return factoryId; |
| | | } |
| | | public void setFactoryId(String factoryId) { |
| | | this.factoryId = factoryId; |
| | | } |
| | | public String getFactoryName() { |
| | | return factoryName; |
| | | } |
| | | public void setFactoryName(String factoryName) { |
| | | this.factoryName = factoryName; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getBeanImpl() { |
| | | return beanImpl; |
| | | } |
| | | public void setBeanImpl(String beanImpl) { |
| | | this.beanImpl = beanImpl; |
| | | } |
| | | |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.dto.chargeMachineFactorySpec; |
| | | |
| | | import com.java110.dto.PageDto; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @ClassName FloorDto |
| | | * @Description 充电桩厂家参数数据层封装 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 8:52 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | public class ChargeMachineFactorySpecDto extends PageDto implements Serializable { |
| | | |
| | | private String specId; |
| | | private String specName; |
| | | private String factoryId; |
| | | private String remark; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getSpecId() { |
| | | return specId; |
| | | } |
| | | public void setSpecId(String specId) { |
| | | this.specId = specId; |
| | | } |
| | | public String getSpecName() { |
| | | return specName; |
| | | } |
| | | public void setSpecName(String specName) { |
| | | this.specName = specName; |
| | | } |
| | | public String getFactoryId() { |
| | | return factoryId; |
| | | } |
| | | public void setFactoryId(String factoryId) { |
| | | this.factoryId = factoryId; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.dto.chargeMachineSpec; |
| | | |
| | | import com.java110.dto.PageDto; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @ClassName FloorDto |
| | | * @Description 充电桩参数数据层封装 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 8:52 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | public class ChargeMachineSpecDto extends PageDto implements Serializable { |
| | | |
| | | private String specId; |
| | | private String cmsId; |
| | | private String machineId; |
| | | private String specName; |
| | | private String specValue; |
| | | private String communityId; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getSpecId() { |
| | | return specId; |
| | | } |
| | | public void setSpecId(String specId) { |
| | | this.specId = specId; |
| | | } |
| | | public String getCmsId() { |
| | | return cmsId; |
| | | } |
| | | public void setCmsId(String cmsId) { |
| | | this.cmsId = cmsId; |
| | | } |
| | | public String getMachineId() { |
| | | return machineId; |
| | | } |
| | | public void setMachineId(String machineId) { |
| | | this.machineId = machineId; |
| | | } |
| | | public String getSpecName() { |
| | | return specName; |
| | | } |
| | | public void setSpecName(String specName) { |
| | | this.specName = specName; |
| | | } |
| | | public String getSpecValue() { |
| | | return specValue; |
| | | } |
| | | public void setSpecValue(String specValue) { |
| | | this.specValue = specValue; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.po.chargeMachineFactory; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-03-07 23:53:12 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | public class ChargeMachineFactoryPo implements Serializable { |
| | | |
| | | private String factoryId; |
| | | private String factoryName; |
| | | private String remark; |
| | | private String statusCd = "0"; |
| | | private String beanImpl; |
| | | public String getFactoryId() { |
| | | return factoryId; |
| | | } |
| | | public void setFactoryId(String factoryId) { |
| | | this.factoryId = factoryId; |
| | | } |
| | | public String getFactoryName() { |
| | | return factoryName; |
| | | } |
| | | public void setFactoryName(String factoryName) { |
| | | this.factoryName = factoryName; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getBeanImpl() { |
| | | return beanImpl; |
| | | } |
| | | public void setBeanImpl(String beanImpl) { |
| | | this.beanImpl = beanImpl; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.po.chargeMachineFactorySpec; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-03-08 00:00:22 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | public class ChargeMachineFactorySpecPo implements Serializable { |
| | | |
| | | private String specId; |
| | | private String specName; |
| | | private String factoryId; |
| | | private String statusCd = "0"; |
| | | private String remark; |
| | | public String getSpecId() { |
| | | return specId; |
| | | } |
| | | public void setSpecId(String specId) { |
| | | this.specId = specId; |
| | | } |
| | | public String getSpecName() { |
| | | return specName; |
| | | } |
| | | public void setSpecName(String specName) { |
| | | this.specName = specName; |
| | | } |
| | | public String getFactoryId() { |
| | | return factoryId; |
| | | } |
| | | public void setFactoryId(String factoryId) { |
| | | this.factoryId = factoryId; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.po.chargeMachineSpec; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-03-08 00:03:34 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | public class ChargeMachineSpecPo implements Serializable { |
| | | |
| | | private String specId; |
| | | private String cmsId; |
| | | private String machineId; |
| | | private String specName; |
| | | private String specValue; |
| | | private String statusCd = "0"; |
| | | private String communityId; |
| | | public String getSpecId() { |
| | | return specId; |
| | | } |
| | | public void setSpecId(String specId) { |
| | | this.specId = specId; |
| | | } |
| | | public String getCmsId() { |
| | | return cmsId; |
| | | } |
| | | public void setCmsId(String cmsId) { |
| | | this.cmsId = cmsId; |
| | | } |
| | | public String getMachineId() { |
| | | return machineId; |
| | | } |
| | | public void setMachineId(String machineId) { |
| | | this.machineId = machineId; |
| | | } |
| | | public String getSpecName() { |
| | | return specName; |
| | | } |
| | | public void setSpecName(String specName) { |
| | | this.specName = specName; |
| | | } |
| | | public String getSpecValue() { |
| | | return specValue; |
| | | } |
| | | public void setSpecValue(String specValue) { |
| | | this.specValue = specValue; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="chargeMachineFactorySpecV1ServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存充电桩厂家参数信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveChargeMachineFactorySpecInfo" parameterType="Map"> |
| | | insert into charge_machine_factory_spec( |
| | | spec_id,spec_name,factory_id,remark |
| | | ) values ( |
| | | #{specId},#{specName},#{factoryId},#{remark} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询充电桩厂家参数信息 add by wuxw 2018-07-03 --> |
| | | <select id="getChargeMachineFactorySpecInfo" parameterType="Map" resultType="Map"> |
| | | select t.spec_id,t.spec_id specId,t.spec_name,t.spec_name specName,t.factory_id,t.factory_id factoryId,t.status_cd,t.status_cd statusCd,t.remark |
| | | from charge_machine_factory_spec t |
| | | where 1 =1 |
| | | <if test="specId !=null and specId != ''"> |
| | | and t.spec_id= #{specId} |
| | | </if> |
| | | <if test="specName !=null and specName != ''"> |
| | | and t.spec_name= #{specName} |
| | | </if> |
| | | <if test="factoryId !=null and factoryId != ''"> |
| | | and t.factory_id= #{factoryId} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 修改充电桩厂家参数信息 add by wuxw 2018-07-03 --> |
| | | <update id="updateChargeMachineFactorySpecInfo" parameterType="Map"> |
| | | update charge_machine_factory_spec t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="specName !=null and specName != ''"> |
| | | , t.spec_name= #{specName} |
| | | </if> |
| | | <if test="factoryId !=null and factoryId != ''"> |
| | | , t.factory_id= #{factoryId} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | where 1=1 <if test="specId !=null and specId != ''"> |
| | | and t.spec_id= #{specId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询充电桩厂家参数数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryChargeMachineFactorySpecsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from charge_machine_factory_spec t |
| | | where 1 =1 |
| | | <if test="specId !=null and specId != ''"> |
| | | and t.spec_id= #{specId} |
| | | </if> |
| | | <if test="specName !=null and specName != ''"> |
| | | and t.spec_name= #{specName} |
| | | </if> |
| | | <if test="factoryId !=null and factoryId != ''"> |
| | | and t.factory_id= #{factoryId} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="chargeMachineFactoryV1ServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存充电桩厂家信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveChargeMachineFactoryInfo" parameterType="Map"> |
| | | insert into charge_machine_factory( |
| | | factory_id,factory_name,remark,bean_impl |
| | | ) values ( |
| | | #{factoryId},#{factoryName},#{remark},#{beanImpl} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询充电桩厂家信息 add by wuxw 2018-07-03 --> |
| | | <select id="getChargeMachineFactoryInfo" parameterType="Map" resultType="Map"> |
| | | select t.factory_id,t.factory_id factoryId,t.factory_name,t.factory_name factoryName,t.remark,t.status_cd,t.status_cd statusCd,t.bean_impl,t.bean_impl beanImpl |
| | | from charge_machine_factory t |
| | | where 1 =1 |
| | | <if test="factoryId !=null and factoryId != ''"> |
| | | and t.factory_id= #{factoryId} |
| | | </if> |
| | | <if test="factoryName !=null and factoryName != ''"> |
| | | and t.factory_name= #{factoryName} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="beanImpl !=null and beanImpl != ''"> |
| | | and t.bean_impl= #{beanImpl} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 修改充电桩厂家信息 add by wuxw 2018-07-03 --> |
| | | <update id="updateChargeMachineFactoryInfo" parameterType="Map"> |
| | | update charge_machine_factory t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="factoryName !=null and factoryName != ''"> |
| | | , t.factory_name= #{factoryName} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | <if test="beanImpl !=null and beanImpl != ''"> |
| | | , t.bean_impl= #{beanImpl} |
| | | </if> |
| | | where 1=1 <if test="factoryId !=null and factoryId != ''"> |
| | | and t.factory_id= #{factoryId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询充电桩厂家数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryChargeMachineFactorysCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from charge_machine_factory t |
| | | where 1 =1 |
| | | <if test="factoryId !=null and factoryId != ''"> |
| | | and t.factory_id= #{factoryId} |
| | | </if> |
| | | <if test="factoryName !=null and factoryName != ''"> |
| | | and t.factory_name= #{factoryName} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="beanImpl !=null and beanImpl != ''"> |
| | | and t.bean_impl= #{beanImpl} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="chargeMachineSpecV1ServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存充电桩参数信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveChargeMachineSpecInfo" parameterType="Map"> |
| | | insert into charge_machine_spec( |
| | | spec_id,cms_id,machine_id,spec_name,spec_value,community_id |
| | | ) values ( |
| | | #{specId},#{cmsId},#{machineId},#{specName},#{specValue},#{communityId} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询充电桩参数信息 add by wuxw 2018-07-03 --> |
| | | <select id="getChargeMachineSpecInfo" parameterType="Map" resultType="Map"> |
| | | select t.spec_id,t.spec_id specId,t.cms_id,t.cms_id cmsId,t.machine_id,t.machine_id machineId,t.spec_name,t.spec_name specName,t.spec_value,t.spec_value specValue,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId |
| | | from charge_machine_spec t |
| | | where 1 =1 |
| | | <if test="specId !=null and specId != ''"> |
| | | and t.spec_id= #{specId} |
| | | </if> |
| | | <if test="cmsId !=null and cmsId != ''"> |
| | | and t.cms_id= #{cmsId} |
| | | </if> |
| | | <if test="machineId !=null and machineId != ''"> |
| | | and t.machine_id= #{machineId} |
| | | </if> |
| | | <if test="specName !=null and specName != ''"> |
| | | and t.spec_name= #{specName} |
| | | </if> |
| | | <if test="specValue !=null and specValue != ''"> |
| | | and t.spec_value= #{specValue} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 修改充电桩参数信息 add by wuxw 2018-07-03 --> |
| | | <update id="updateChargeMachineSpecInfo" parameterType="Map"> |
| | | update charge_machine_spec t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="specId !=null and specId != ''"> |
| | | , t.spec_id= #{specId} |
| | | </if> |
| | | <if test="machineId !=null and machineId != ''"> |
| | | , t.machine_id= #{machineId} |
| | | </if> |
| | | <if test="specName !=null and specName != ''"> |
| | | , t.spec_name= #{specName} |
| | | </if> |
| | | <if test="specValue !=null and specValue != ''"> |
| | | , t.spec_value= #{specValue} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | where 1=1 <if test="cmsId !=null and cmsId != ''"> |
| | | and t.cms_id= #{cmsId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询充电桩参数数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryChargeMachineSpecsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from charge_machine_spec t |
| | | where 1 =1 |
| | | <if test="specId !=null and specId != ''"> |
| | | and t.spec_id= #{specId} |
| | | </if> |
| | | <if test="cmsId !=null and cmsId != ''"> |
| | | and t.cms_id= #{cmsId} |
| | | </if> |
| | | <if test="machineId !=null and machineId != ''"> |
| | | and t.machine_id= #{machineId} |
| | | </if> |
| | | <if test="specName !=null and specName != ''"> |
| | | and t.spec_name= #{specName} |
| | | </if> |
| | | <if test="specValue !=null and specValue != ''"> |
| | | and t.spec_value= #{specValue} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.intf.common; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.chargeMachineFactorySpec.ChargeMachineFactorySpecDto; |
| | | import com.java110.po.chargeMachineFactorySpec.ChargeMachineFactorySpecPo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用 |
| | | * add by 吴学文 at 2023-03-08 00:00:22 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @FeignClient(name = "common-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/chargeMachineFactorySpecV1Api") |
| | | public interface IChargeMachineFactorySpecV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveChargeMachineFactorySpec", method = RequestMethod.POST) |
| | | public int saveChargeMachineFactorySpec(@RequestBody ChargeMachineFactorySpecPo chargeMachineFactorySpecPo); |
| | | |
| | | @RequestMapping(value = "/updateChargeMachineFactorySpec", method = RequestMethod.POST) |
| | | public int updateChargeMachineFactorySpec(@RequestBody ChargeMachineFactorySpecPo chargeMachineFactorySpecPo); |
| | | |
| | | @RequestMapping(value = "/deleteChargeMachineFactorySpec", method = RequestMethod.POST) |
| | | public int deleteChargeMachineFactorySpec(@RequestBody ChargeMachineFactorySpecPo chargeMachineFactorySpecPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param chargeMachineFactorySpecDto 数据对象分享 |
| | | * @return ChargeMachineFactorySpecDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryChargeMachineFactorySpecs", method = RequestMethod.POST) |
| | | List<ChargeMachineFactorySpecDto> queryChargeMachineFactorySpecs(@RequestBody ChargeMachineFactorySpecDto chargeMachineFactorySpecDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param chargeMachineFactorySpecDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryChargeMachineFactorySpecsCount", method = RequestMethod.POST) |
| | | int queryChargeMachineFactorySpecsCount(@RequestBody ChargeMachineFactorySpecDto chargeMachineFactorySpecDto); |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.intf.common; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.chargeMachineFactory.ChargeMachineFactoryDto; |
| | | import com.java110.po.chargeMachineFactory.ChargeMachineFactoryPo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用 |
| | | * add by 吴学文 at 2023-03-07 23:53:12 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @FeignClient(name = "common-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/chargeMachineFactoryV1Api") |
| | | public interface IChargeMachineFactoryV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveChargeMachineFactory", method = RequestMethod.POST) |
| | | public int saveChargeMachineFactory(@RequestBody ChargeMachineFactoryPo chargeMachineFactoryPo); |
| | | |
| | | @RequestMapping(value = "/updateChargeMachineFactory", method = RequestMethod.POST) |
| | | public int updateChargeMachineFactory(@RequestBody ChargeMachineFactoryPo chargeMachineFactoryPo); |
| | | |
| | | @RequestMapping(value = "/deleteChargeMachineFactory", method = RequestMethod.POST) |
| | | public int deleteChargeMachineFactory(@RequestBody ChargeMachineFactoryPo chargeMachineFactoryPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param chargeMachineFactoryDto 数据对象分享 |
| | | * @return ChargeMachineFactoryDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryChargeMachineFactorys", method = RequestMethod.POST) |
| | | List<ChargeMachineFactoryDto> queryChargeMachineFactorys(@RequestBody ChargeMachineFactoryDto chargeMachineFactoryDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param chargeMachineFactoryDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryChargeMachineFactorysCount", method = RequestMethod.POST) |
| | | int queryChargeMachineFactorysCount(@RequestBody ChargeMachineFactoryDto chargeMachineFactoryDto); |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.intf.common; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.chargeMachineSpec.ChargeMachineSpecDto; |
| | | import com.java110.po.chargeMachineSpec.ChargeMachineSpecPo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用 |
| | | * add by 吴学文 at 2023-03-08 00:03:34 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @FeignClient(name = "common-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/chargeMachineSpecV1Api") |
| | | public interface IChargeMachineSpecV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveChargeMachineSpec", method = RequestMethod.POST) |
| | | public int saveChargeMachineSpec(@RequestBody ChargeMachineSpecPo chargeMachineSpecPo); |
| | | |
| | | @RequestMapping(value = "/updateChargeMachineSpec", method = RequestMethod.POST) |
| | | public int updateChargeMachineSpec(@RequestBody ChargeMachineSpecPo chargeMachineSpecPo); |
| | | |
| | | @RequestMapping(value = "/deleteChargeMachineSpec", method = RequestMethod.POST) |
| | | public int deleteChargeMachineSpec(@RequestBody ChargeMachineSpecPo chargeMachineSpecPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param chargeMachineSpecDto 数据对象分享 |
| | | * @return ChargeMachineSpecDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryChargeMachineSpecs", method = RequestMethod.POST) |
| | | List<ChargeMachineSpecDto> queryChargeMachineSpecs(@RequestBody ChargeMachineSpecDto chargeMachineSpecDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param chargeMachineSpecDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryChargeMachineSpecsCount", method = RequestMethod.POST) |
| | | int queryChargeMachineSpecsCount(@RequestBody ChargeMachineSpecDto chargeMachineSpecDto); |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.cmd.chargeMachine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.common.IChargeMachineFactoryV1InnerServiceSMO; |
| | | import com.java110.po.chargeMachineFactory.ChargeMachineFactoryPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | /** |
| | | * 类表述:删除 |
| | | * 服务编码:chargeMachineFactory.deleteChargeMachineFactory |
| | | * 请求路劲:/app/chargeMachineFactory.DeleteChargeMachineFactory |
| | | * add by 吴学文 at 2023-03-07 23:53:12 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "chargeMachine.deleteChargeMachineFactory") |
| | | public class DeleteChargeMachineFactoryCmd extends Cmd { |
| | | private static Logger logger = LoggerFactory.getLogger(DeleteChargeMachineFactoryCmd.class); |
| | | |
| | | @Autowired |
| | | private IChargeMachineFactoryV1InnerServiceSMO chargeMachineFactoryV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "factoryId", "factoryId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ChargeMachineFactoryPo chargeMachineFactoryPo = BeanConvertUtil.covertBean(reqJson, ChargeMachineFactoryPo.class); |
| | | int flag = chargeMachineFactoryV1InnerServiceSMOImpl.deleteChargeMachineFactory(chargeMachineFactoryPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("删除数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.cmd.chargeMachine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.common.IChargeMachineSpecV1InnerServiceSMO; |
| | | import com.java110.po.chargeMachineSpec.ChargeMachineSpecPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | /** |
| | | * 类表述:删除 |
| | | * 服务编码:chargeMachineSpec.deleteChargeMachineSpec |
| | | * 请求路劲:/app/chargeMachineSpec.DeleteChargeMachineSpec |
| | | * add by 吴学文 at 2023-03-08 00:03:34 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "chargeMachine.deleteChargeMachineSpec") |
| | | public class DeleteChargeMachineSpecCmd extends Cmd { |
| | | private static Logger logger = LoggerFactory.getLogger(DeleteChargeMachineSpecCmd.class); |
| | | |
| | | @Autowired |
| | | private IChargeMachineSpecV1InnerServiceSMO chargeMachineSpecV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "cmsId", "cmsId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ChargeMachineSpecPo chargeMachineSpecPo = BeanConvertUtil.covertBean(reqJson, ChargeMachineSpecPo.class); |
| | | int flag = chargeMachineSpecV1InnerServiceSMOImpl.deleteChargeMachineSpec(chargeMachineSpecPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("删除数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.cmd.chargeMachine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.common.IChargeMachineFactoryV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.java110.dto.chargeMachineFactory.ChargeMachineFactoryDto; |
| | | import java.util.List; |
| | | import java.util.ArrayList; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:chargeMachineFactory.listChargeMachineFactory |
| | | * 请求路劲:/app/chargeMachineFactory.ListChargeMachineFactory |
| | | * add by 吴学文 at 2023-03-07 23:53:12 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "chargeMachine.listChargeMachineFactory") |
| | | public class ListChargeMachineFactoryCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListChargeMachineFactoryCmd.class); |
| | | @Autowired |
| | | private IChargeMachineFactoryV1InnerServiceSMO chargeMachineFactoryV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "查询小区ID"); |
| | | } |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ChargeMachineFactoryDto chargeMachineFactoryDto = BeanConvertUtil.covertBean(reqJson, ChargeMachineFactoryDto.class); |
| | | |
| | | int count = chargeMachineFactoryV1InnerServiceSMOImpl.queryChargeMachineFactorysCount(chargeMachineFactoryDto); |
| | | |
| | | List<ChargeMachineFactoryDto> chargeMachineFactoryDtos = null; |
| | | |
| | | if (count > 0) { |
| | | chargeMachineFactoryDtos = chargeMachineFactoryV1InnerServiceSMOImpl.queryChargeMachineFactorys(chargeMachineFactoryDto); |
| | | } else { |
| | | chargeMachineFactoryDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, chargeMachineFactoryDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | cmdDataFlowContext.setResponseEntity(responseEntity); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.cmd.chargeMachine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.common.IChargeMachineSpecV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.java110.dto.chargeMachineSpec.ChargeMachineSpecDto; |
| | | |
| | | import java.util.List; |
| | | import java.util.ArrayList; |
| | | |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:chargeMachineSpec.listChargeMachineSpec |
| | | * 请求路劲:/app/chargeMachineSpec.ListChargeMachineSpec |
| | | * add by 吴学文 at 2023-03-08 00:03:34 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "chargeMachine.listChargeMachineSpec") |
| | | public class ListChargeMachineSpecCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListChargeMachineSpecCmd.class); |
| | | @Autowired |
| | | private IChargeMachineSpecV1InnerServiceSMO chargeMachineSpecV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "查询小区ID"); |
| | | } |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ChargeMachineSpecDto chargeMachineSpecDto = BeanConvertUtil.covertBean(reqJson, ChargeMachineSpecDto.class); |
| | | |
| | | int count = chargeMachineSpecV1InnerServiceSMOImpl.queryChargeMachineSpecsCount(chargeMachineSpecDto); |
| | | |
| | | List<ChargeMachineSpecDto> chargeMachineSpecDtos = null; |
| | | |
| | | if (count > 0) { |
| | | chargeMachineSpecDtos = chargeMachineSpecV1InnerServiceSMOImpl.queryChargeMachineSpecs(chargeMachineSpecDto); |
| | | } else { |
| | | chargeMachineSpecDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, chargeMachineSpecDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | cmdDataFlowContext.setResponseEntity(responseEntity); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.cmd.chargeMachine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.common.IChargeMachineFactoryV1InnerServiceSMO; |
| | | import com.java110.po.chargeMachineFactory.ChargeMachineFactoryPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | | * 服务编码:chargeMachineFactory.saveChargeMachineFactory |
| | | * 请求路劲:/app/chargeMachineFactory.SaveChargeMachineFactory |
| | | * add by 吴学文 at 2023-03-07 23:53:12 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "chargeMachine.saveChargeMachineFactory") |
| | | public class SaveChargeMachineFactoryCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveChargeMachineFactoryCmd.class); |
| | | |
| | | public static final String CODE_PREFIX_ID = "10"; |
| | | |
| | | @Autowired |
| | | private IChargeMachineFactoryV1InnerServiceSMO chargeMachineFactoryV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "factoryName", "请求报文中未包含factoryName"); |
| | | Assert.hasKeyAndValue(reqJson, "beanImpl", "请求报文中未包含beanImpl"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ChargeMachineFactoryPo chargeMachineFactoryPo = BeanConvertUtil.covertBean(reqJson, ChargeMachineFactoryPo.class); |
| | | chargeMachineFactoryPo.setFactoryId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | int flag = chargeMachineFactoryV1InnerServiceSMOImpl.saveChargeMachineFactory(chargeMachineFactoryPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("保存数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.cmd.chargeMachine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.common.IChargeMachineSpecV1InnerServiceSMO; |
| | | import com.java110.po.chargeMachineSpec.ChargeMachineSpecPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | | * 服务编码:chargeMachineSpec.saveChargeMachineSpec |
| | | * 请求路劲:/app/chargeMachineSpec.SaveChargeMachineSpec |
| | | * add by 吴学文 at 2023-03-08 00:03:34 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "chargeMachine.saveChargeMachineSpec") |
| | | public class SaveChargeMachineSpecCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveChargeMachineSpecCmd.class); |
| | | |
| | | public static final String CODE_PREFIX_ID = "10"; |
| | | |
| | | @Autowired |
| | | private IChargeMachineSpecV1InnerServiceSMO chargeMachineSpecV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "machineId", "请求报文中未包含machineId"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "specId", "请求报文中未包含specId"); |
| | | Assert.hasKeyAndValue(reqJson, "specName", "请求报文中未包含specName"); |
| | | Assert.hasKeyAndValue(reqJson, "specValue", "请求报文中未包含specValue"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ChargeMachineSpecPo chargeMachineSpecPo = BeanConvertUtil.covertBean(reqJson, ChargeMachineSpecPo.class); |
| | | chargeMachineSpecPo.setCmsId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | int flag = chargeMachineSpecV1InnerServiceSMOImpl.saveChargeMachineSpec(chargeMachineSpecPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("保存数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.cmd.chargeMachine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.common.IChargeMachineFactoryV1InnerServiceSMO; |
| | | import com.java110.po.chargeMachineFactory.ChargeMachineFactoryPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | |
| | | /** |
| | | * 类表述:更新 |
| | | * 服务编码:chargeMachineFactory.updateChargeMachineFactory |
| | | * 请求路劲:/app/chargeMachineFactory.UpdateChargeMachineFactory |
| | | * add by 吴学文 at 2023-03-07 23:53:12 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "chargeMachine.updateChargeMachineFactory") |
| | | public class UpdateChargeMachineFactoryCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(UpdateChargeMachineFactoryCmd.class); |
| | | |
| | | |
| | | @Autowired |
| | | private IChargeMachineFactoryV1InnerServiceSMO chargeMachineFactoryV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "factoryId", "factoryId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ChargeMachineFactoryPo chargeMachineFactoryPo = BeanConvertUtil.covertBean(reqJson, ChargeMachineFactoryPo.class); |
| | | int flag = chargeMachineFactoryV1InnerServiceSMOImpl.updateChargeMachineFactory(chargeMachineFactoryPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("更新数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.cmd.chargeMachine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.common.IChargeMachineSpecV1InnerServiceSMO; |
| | | import com.java110.po.chargeMachineSpec.ChargeMachineSpecPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | |
| | | /** |
| | | * 类表述:更新 |
| | | * 服务编码:chargeMachineSpec.updateChargeMachineSpec |
| | | * 请求路劲:/app/chargeMachineSpec.UpdateChargeMachineSpec |
| | | * add by 吴学文 at 2023-03-08 00:03:34 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "chargeMachine.updateChargeMachineSpec") |
| | | public class UpdateChargeMachineSpecCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(UpdateChargeMachineSpecCmd.class); |
| | | |
| | | |
| | | @Autowired |
| | | private IChargeMachineSpecV1InnerServiceSMO chargeMachineSpecV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "cmsId", "cmsId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ChargeMachineSpecPo chargeMachineSpecPo = BeanConvertUtil.covertBean(reqJson, ChargeMachineSpecPo.class); |
| | | int flag = chargeMachineSpecV1InnerServiceSMOImpl.updateChargeMachineSpec(chargeMachineSpecPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("更新数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.entity.merchant.BoMerchant; |
| | | import com.java110.entity.merchant.BoMerchantAttr; |
| | | import com.java110.entity.merchant.Merchant; |
| | | import com.java110.entity.merchant.MerchantAttr; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-08 00:00:22 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | public interface IChargeMachineFactorySpecV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 充电桩厂家参数信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveChargeMachineFactorySpecInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询充电桩厂家参数信息(instance过程) |
| | | * 根据bId 查询充电桩厂家参数信息 |
| | | * @param info bId 信息 |
| | | * @return 充电桩厂家参数信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getChargeMachineFactorySpecInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改充电桩厂家参数信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateChargeMachineFactorySpecInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询充电桩厂家参数总数 |
| | | * |
| | | * @param info 充电桩厂家参数信息 |
| | | * @return 充电桩厂家参数数量 |
| | | */ |
| | | int queryChargeMachineFactorySpecsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.entity.merchant.BoMerchant; |
| | | import com.java110.entity.merchant.BoMerchantAttr; |
| | | import com.java110.entity.merchant.Merchant; |
| | | import com.java110.entity.merchant.MerchantAttr; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-07 23:53:12 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | public interface IChargeMachineFactoryV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 充电桩厂家信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveChargeMachineFactoryInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询充电桩厂家信息(instance过程) |
| | | * 根据bId 查询充电桩厂家信息 |
| | | * @param info bId 信息 |
| | | * @return 充电桩厂家信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getChargeMachineFactoryInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改充电桩厂家信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateChargeMachineFactoryInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询充电桩厂家总数 |
| | | * |
| | | * @param info 充电桩厂家信息 |
| | | * @return 充电桩厂家数量 |
| | | */ |
| | | int queryChargeMachineFactorysCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.entity.merchant.BoMerchant; |
| | | import com.java110.entity.merchant.BoMerchantAttr; |
| | | import com.java110.entity.merchant.Merchant; |
| | | import com.java110.entity.merchant.MerchantAttr; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-08 00:03:34 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | public interface IChargeMachineSpecV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 充电桩参数信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveChargeMachineSpecInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询充电桩参数信息(instance过程) |
| | | * 根据bId 查询充电桩参数信息 |
| | | * @param info bId 信息 |
| | | * @return 充电桩参数信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getChargeMachineSpecInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改充电桩参数信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateChargeMachineSpecInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询充电桩参数总数 |
| | | * |
| | | * @param info 充电桩参数信息 |
| | | * @return 充电桩参数数量 |
| | | */ |
| | | int queryChargeMachineSpecsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.dao.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.core.base.dao.BaseServiceDao; |
| | | import com.java110.common.dao.IChargeMachineFactorySpecV1ServiceDao; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-08 00:00:22 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Service("chargeMachineFactorySpecV1ServiceDaoImpl") |
| | | public class ChargeMachineFactorySpecV1ServiceDaoImpl extends BaseServiceDao implements IChargeMachineFactorySpecV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ChargeMachineFactorySpecV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存充电桩厂家参数信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveChargeMachineFactorySpecInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveChargeMachineFactorySpecInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("chargeMachineFactorySpecV1ServiceDaoImpl.saveChargeMachineFactorySpecInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询充电桩厂家参数信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getChargeMachineFactorySpecInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getChargeMachineFactorySpecInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessChargeMachineFactorySpecInfos = sqlSessionTemplate.selectList("chargeMachineFactorySpecV1ServiceDaoImpl.getChargeMachineFactorySpecInfo",info); |
| | | |
| | | return businessChargeMachineFactorySpecInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改充电桩厂家参数信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateChargeMachineFactorySpecInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateChargeMachineFactorySpecInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("chargeMachineFactorySpecV1ServiceDaoImpl.updateChargeMachineFactorySpecInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询充电桩厂家参数数量 |
| | | * @param info 充电桩厂家参数信息 |
| | | * @return 充电桩厂家参数数量 |
| | | */ |
| | | @Override |
| | | public int queryChargeMachineFactorySpecsCount(Map info) { |
| | | logger.debug("查询 queryChargeMachineFactorySpecsCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessChargeMachineFactorySpecInfos = sqlSessionTemplate.selectList("chargeMachineFactorySpecV1ServiceDaoImpl.queryChargeMachineFactorySpecsCount", info); |
| | | if (businessChargeMachineFactorySpecInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessChargeMachineFactorySpecInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.dao.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.core.base.dao.BaseServiceDao; |
| | | import com.java110.common.dao.IChargeMachineFactoryV1ServiceDao; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-07 23:53:12 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Service("chargeMachineFactoryV1ServiceDaoImpl") |
| | | public class ChargeMachineFactoryV1ServiceDaoImpl extends BaseServiceDao implements IChargeMachineFactoryV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ChargeMachineFactoryV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存充电桩厂家信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveChargeMachineFactoryInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveChargeMachineFactoryInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("chargeMachineFactoryV1ServiceDaoImpl.saveChargeMachineFactoryInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询充电桩厂家信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getChargeMachineFactoryInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getChargeMachineFactoryInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessChargeMachineFactoryInfos = sqlSessionTemplate.selectList("chargeMachineFactoryV1ServiceDaoImpl.getChargeMachineFactoryInfo",info); |
| | | |
| | | return businessChargeMachineFactoryInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改充电桩厂家信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateChargeMachineFactoryInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateChargeMachineFactoryInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("chargeMachineFactoryV1ServiceDaoImpl.updateChargeMachineFactoryInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询充电桩厂家数量 |
| | | * @param info 充电桩厂家信息 |
| | | * @return 充电桩厂家数量 |
| | | */ |
| | | @Override |
| | | public int queryChargeMachineFactorysCount(Map info) { |
| | | logger.debug("查询 queryChargeMachineFactorysCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessChargeMachineFactoryInfos = sqlSessionTemplate.selectList("chargeMachineFactoryV1ServiceDaoImpl.queryChargeMachineFactorysCount", info); |
| | | if (businessChargeMachineFactoryInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessChargeMachineFactoryInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.dao.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.core.base.dao.BaseServiceDao; |
| | | import com.java110.common.dao.IChargeMachineSpecV1ServiceDao; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-08 00:03:34 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Service("chargeMachineSpecV1ServiceDaoImpl") |
| | | public class ChargeMachineSpecV1ServiceDaoImpl extends BaseServiceDao implements IChargeMachineSpecV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ChargeMachineSpecV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存充电桩参数信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveChargeMachineSpecInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveChargeMachineSpecInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("chargeMachineSpecV1ServiceDaoImpl.saveChargeMachineSpecInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询充电桩参数信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getChargeMachineSpecInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getChargeMachineSpecInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessChargeMachineSpecInfos = sqlSessionTemplate.selectList("chargeMachineSpecV1ServiceDaoImpl.getChargeMachineSpecInfo",info); |
| | | |
| | | return businessChargeMachineSpecInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改充电桩参数信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateChargeMachineSpecInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateChargeMachineSpecInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("chargeMachineSpecV1ServiceDaoImpl.updateChargeMachineSpecInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询充电桩参数数量 |
| | | * @param info 充电桩参数信息 |
| | | * @return 充电桩参数数量 |
| | | */ |
| | | @Override |
| | | public int queryChargeMachineSpecsCount(Map info) { |
| | | logger.debug("查询 queryChargeMachineSpecsCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessChargeMachineSpecInfos = sqlSessionTemplate.selectList("chargeMachineSpecV1ServiceDaoImpl.queryChargeMachineSpecsCount", info); |
| | | if (businessChargeMachineSpecInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessChargeMachineSpecInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.smo.impl; |
| | | |
| | | |
| | | import com.java110.common.dao.IChargeMachineFactorySpecV1ServiceDao; |
| | | import com.java110.intf.common.IChargeMachineFactorySpecV1InnerServiceSMO; |
| | | import com.java110.dto.chargeMachineFactorySpec.ChargeMachineFactorySpecDto; |
| | | import com.java110.po.chargeMachineFactorySpec.ChargeMachineFactorySpecPo; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.dto.PageDto; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用 |
| | | * add by 吴学文 at 2023-03-08 00:00:22 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @RestController |
| | | public class ChargeMachineFactorySpecV1InnerServiceSMOImpl extends BaseServiceSMO implements IChargeMachineFactorySpecV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IChargeMachineFactorySpecV1ServiceDao chargeMachineFactorySpecV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveChargeMachineFactorySpec(@RequestBody ChargeMachineFactorySpecPo chargeMachineFactorySpecPo) { |
| | | int saveFlag = chargeMachineFactorySpecV1ServiceDaoImpl.saveChargeMachineFactorySpecInfo(BeanConvertUtil.beanCovertMap(chargeMachineFactorySpecPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateChargeMachineFactorySpec(@RequestBody ChargeMachineFactorySpecPo chargeMachineFactorySpecPo) { |
| | | int saveFlag = chargeMachineFactorySpecV1ServiceDaoImpl.updateChargeMachineFactorySpecInfo(BeanConvertUtil.beanCovertMap(chargeMachineFactorySpecPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteChargeMachineFactorySpec(@RequestBody ChargeMachineFactorySpecPo chargeMachineFactorySpecPo) { |
| | | chargeMachineFactorySpecPo.setStatusCd("1"); |
| | | int saveFlag = chargeMachineFactorySpecV1ServiceDaoImpl.updateChargeMachineFactorySpecInfo(BeanConvertUtil.beanCovertMap(chargeMachineFactorySpecPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ChargeMachineFactorySpecDto> queryChargeMachineFactorySpecs(@RequestBody ChargeMachineFactorySpecDto chargeMachineFactorySpecDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = chargeMachineFactorySpecDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | chargeMachineFactorySpecDto.setPage((page - 1) * chargeMachineFactorySpecDto.getRow()); |
| | | } |
| | | |
| | | List<ChargeMachineFactorySpecDto> chargeMachineFactorySpecs = BeanConvertUtil.covertBeanList(chargeMachineFactorySpecV1ServiceDaoImpl.getChargeMachineFactorySpecInfo(BeanConvertUtil.beanCovertMap(chargeMachineFactorySpecDto)), ChargeMachineFactorySpecDto.class); |
| | | |
| | | return chargeMachineFactorySpecs; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryChargeMachineFactorySpecsCount(@RequestBody ChargeMachineFactorySpecDto chargeMachineFactorySpecDto) { |
| | | return chargeMachineFactorySpecV1ServiceDaoImpl.queryChargeMachineFactorySpecsCount(BeanConvertUtil.beanCovertMap(chargeMachineFactorySpecDto)); } |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.smo.impl; |
| | | |
| | | |
| | | import com.java110.common.dao.IChargeMachineFactoryV1ServiceDao; |
| | | import com.java110.intf.common.IChargeMachineFactoryV1InnerServiceSMO; |
| | | import com.java110.dto.chargeMachineFactory.ChargeMachineFactoryDto; |
| | | import com.java110.po.chargeMachineFactory.ChargeMachineFactoryPo; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.dto.PageDto; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用 |
| | | * add by 吴学文 at 2023-03-07 23:53:12 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @RestController |
| | | public class ChargeMachineFactoryV1InnerServiceSMOImpl extends BaseServiceSMO implements IChargeMachineFactoryV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IChargeMachineFactoryV1ServiceDao chargeMachineFactoryV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveChargeMachineFactory(@RequestBody ChargeMachineFactoryPo chargeMachineFactoryPo) { |
| | | int saveFlag = chargeMachineFactoryV1ServiceDaoImpl.saveChargeMachineFactoryInfo(BeanConvertUtil.beanCovertMap(chargeMachineFactoryPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateChargeMachineFactory(@RequestBody ChargeMachineFactoryPo chargeMachineFactoryPo) { |
| | | int saveFlag = chargeMachineFactoryV1ServiceDaoImpl.updateChargeMachineFactoryInfo(BeanConvertUtil.beanCovertMap(chargeMachineFactoryPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteChargeMachineFactory(@RequestBody ChargeMachineFactoryPo chargeMachineFactoryPo) { |
| | | chargeMachineFactoryPo.setStatusCd("1"); |
| | | int saveFlag = chargeMachineFactoryV1ServiceDaoImpl.updateChargeMachineFactoryInfo(BeanConvertUtil.beanCovertMap(chargeMachineFactoryPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ChargeMachineFactoryDto> queryChargeMachineFactorys(@RequestBody ChargeMachineFactoryDto chargeMachineFactoryDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = chargeMachineFactoryDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | chargeMachineFactoryDto.setPage((page - 1) * chargeMachineFactoryDto.getRow()); |
| | | } |
| | | |
| | | List<ChargeMachineFactoryDto> chargeMachineFactorys = BeanConvertUtil.covertBeanList(chargeMachineFactoryV1ServiceDaoImpl.getChargeMachineFactoryInfo(BeanConvertUtil.beanCovertMap(chargeMachineFactoryDto)), ChargeMachineFactoryDto.class); |
| | | |
| | | return chargeMachineFactorys; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryChargeMachineFactorysCount(@RequestBody ChargeMachineFactoryDto chargeMachineFactoryDto) { |
| | | return chargeMachineFactoryV1ServiceDaoImpl.queryChargeMachineFactorysCount(BeanConvertUtil.beanCovertMap(chargeMachineFactoryDto)); } |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright 2017-2020 吴学文 and java110 team. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.common.smo.impl; |
| | | |
| | | |
| | | import com.java110.common.dao.IChargeMachineSpecV1ServiceDao; |
| | | import com.java110.intf.common.IChargeMachineSpecV1InnerServiceSMO; |
| | | import com.java110.dto.chargeMachineSpec.ChargeMachineSpecDto; |
| | | import com.java110.po.chargeMachineSpec.ChargeMachineSpecPo; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.dto.PageDto; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用 |
| | | * add by 吴学文 at 2023-03-08 00:03:34 mail: 928255095@qq.com |
| | | * open source address: https://gitee.com/wuxw7/MicroCommunity |
| | | * 官网:http://www.homecommunity.cn |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @RestController |
| | | public class ChargeMachineSpecV1InnerServiceSMOImpl extends BaseServiceSMO implements IChargeMachineSpecV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IChargeMachineSpecV1ServiceDao chargeMachineSpecV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveChargeMachineSpec(@RequestBody ChargeMachineSpecPo chargeMachineSpecPo) { |
| | | int saveFlag = chargeMachineSpecV1ServiceDaoImpl.saveChargeMachineSpecInfo(BeanConvertUtil.beanCovertMap(chargeMachineSpecPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateChargeMachineSpec(@RequestBody ChargeMachineSpecPo chargeMachineSpecPo) { |
| | | int saveFlag = chargeMachineSpecV1ServiceDaoImpl.updateChargeMachineSpecInfo(BeanConvertUtil.beanCovertMap(chargeMachineSpecPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteChargeMachineSpec(@RequestBody ChargeMachineSpecPo chargeMachineSpecPo) { |
| | | chargeMachineSpecPo.setStatusCd("1"); |
| | | int saveFlag = chargeMachineSpecV1ServiceDaoImpl.updateChargeMachineSpecInfo(BeanConvertUtil.beanCovertMap(chargeMachineSpecPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ChargeMachineSpecDto> queryChargeMachineSpecs(@RequestBody ChargeMachineSpecDto chargeMachineSpecDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = chargeMachineSpecDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | chargeMachineSpecDto.setPage((page - 1) * chargeMachineSpecDto.getRow()); |
| | | } |
| | | |
| | | List<ChargeMachineSpecDto> chargeMachineSpecs = BeanConvertUtil.covertBeanList(chargeMachineSpecV1ServiceDaoImpl.getChargeMachineSpecInfo(BeanConvertUtil.beanCovertMap(chargeMachineSpecDto)), ChargeMachineSpecDto.class); |
| | | |
| | | return chargeMachineSpecs; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryChargeMachineSpecsCount(@RequestBody ChargeMachineSpecDto chargeMachineSpecDto) { |
| | | return chargeMachineSpecV1ServiceDaoImpl.queryChargeMachineSpecsCount(BeanConvertUtil.beanCovertMap(chargeMachineSpecDto)); } |
| | | |
| | | } |