java110 лет назад: 5
Родитель
Сommit
1ec78ab928
18 измененных файлов с 970 добавлено и 80 удалено
  1. 90 0
      java110-bean/src/main/java/com/java110/dto/systemGoldSetting/SystemGoldSettingDto.java
  2. 67 0
      java110-bean/src/main/java/com/java110/po/systemGoldSetting/SystemGoldSettingPo.java
  3. 124 0
      java110-db/src/main/resources/mapper/acct/SystemGoldSettingServiceDaoImplMapper.xml
  4. 21 19
      java110-generator/src/main/resources/newBack/template_1.json
  5. 44 61
      java110-generator/src/main/resources/web/template_1.json
  6. 53 0
      java110-interface/src/main/java/com/java110/intf/acct/ISystemGoldSettingInnerServiceSMO.java
  7. 111 0
      service-acct/src/main/java/com/java110/acct/api/SystemGoldSettingApi.java
  8. 17 0
      service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/IDeleteSystemGoldSettingBMO.java
  9. 16 0
      service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/IGetSystemGoldSettingBMO.java
  10. 17 0
      service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/ISaveSystemGoldSettingBMO.java
  11. 17 0
      service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/IUpdateSystemGoldSettingBMO.java
  12. 34 0
      service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/impl/DeleteSystemGoldSettingBMOImpl.java
  13. 44 0
      service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/impl/GetSystemGoldSettingBMOImpl.java
  14. 38 0
      service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/impl/SaveSystemGoldSettingBMOImpl.java
  15. 34 0
      service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/impl/UpdateSystemGoldSettingBMOImpl.java
  16. 61 0
      service-acct/src/main/java/com/java110/acct/dao/ISystemGoldSettingServiceDao.java
  17. 98 0
      service-acct/src/main/java/com/java110/acct/dao/impl/SystemGoldSettingServiceDaoImpl.java
  18. 84 0
      service-acct/src/main/java/com/java110/acct/smo/impl/SystemGoldSettingInnerServiceSMOImpl.java

+ 90 - 0
java110-bean/src/main/java/com/java110/dto/systemGoldSetting/SystemGoldSettingDto.java

@@ -0,0 +1,90 @@
+package com.java110.dto.systemGoldSetting;
+
+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 SystemGoldSettingDto extends PageDto implements Serializable {
+
+    private String buyPrice;
+private String goldName;
+private String goldType;
+private String validity;
+private String state;
+private String usePrice;
+private String settingId;
+
+
+    private Date createTime;
+
+    private String statusCd = "0";
+
+
+    public String getBuyPrice() {
+        return buyPrice;
+    }
+public void setBuyPrice(String buyPrice) {
+        this.buyPrice = buyPrice;
+    }
+public String getGoldName() {
+        return goldName;
+    }
+public void setGoldName(String goldName) {
+        this.goldName = goldName;
+    }
+public String getGoldType() {
+        return goldType;
+    }
+public void setGoldType(String goldType) {
+        this.goldType = goldType;
+    }
+public String getValidity() {
+        return validity;
+    }
+public void setValidity(String validity) {
+        this.validity = validity;
+    }
+public String getState() {
+        return state;
+    }
+public void setState(String state) {
+        this.state = state;
+    }
+public String getUsePrice() {
+        return usePrice;
+    }
+public void setUsePrice(String usePrice) {
+        this.usePrice = usePrice;
+    }
+public String getSettingId() {
+        return settingId;
+    }
+public void setSettingId(String settingId) {
+        this.settingId = settingId;
+    }
+
+
+    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;
+    }
+}

+ 67 - 0
java110-bean/src/main/java/com/java110/po/systemGoldSetting/SystemGoldSettingPo.java

@@ -0,0 +1,67 @@
+package com.java110.po.systemGoldSetting;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class SystemGoldSettingPo implements Serializable {
+
+    private String buyPrice;
+private String goldName;
+private String statusCd = "0";
+private String goldType;
+private String validity;
+private String state;
+private String usePrice;
+private String settingId;
+public String getBuyPrice() {
+        return buyPrice;
+    }
+public void setBuyPrice(String buyPrice) {
+        this.buyPrice = buyPrice;
+    }
+public String getGoldName() {
+        return goldName;
+    }
+public void setGoldName(String goldName) {
+        this.goldName = goldName;
+    }
+public String getStatusCd() {
+        return statusCd;
+    }
+public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+public String getGoldType() {
+        return goldType;
+    }
+public void setGoldType(String goldType) {
+        this.goldType = goldType;
+    }
+public String getValidity() {
+        return validity;
+    }
+public void setValidity(String validity) {
+        this.validity = validity;
+    }
+public String getState() {
+        return state;
+    }
+public void setState(String state) {
+        this.state = state;
+    }
+public String getUsePrice() {
+        return usePrice;
+    }
+public void setUsePrice(String usePrice) {
+        this.usePrice = usePrice;
+    }
+public String getSettingId() {
+        return settingId;
+    }
+public void setSettingId(String settingId) {
+        this.settingId = settingId;
+    }
+
+
+
+}

+ 124 - 0
java110-db/src/main/resources/mapper/acct/SystemGoldSettingServiceDaoImplMapper.xml

@@ -0,0 +1,124 @@
+<?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="systemGoldSettingServiceDaoImpl">
+
+
+
+
+
+    <!-- 保存金币设置信息 add by wuxw 2018-07-03 -->
+    <insert id="saveSystemGoldSettingInfo" parameterType="Map">
+        insert into system_gold_setting(
+buy_price,gold_name,gold_type,validity,state,use_price,setting_id
+) values (
+#{buyPrice},#{goldName},#{goldType},#{validity},#{state},#{usePrice},#{settingId}
+)
+    </insert>
+
+
+
+    <!-- 查询金币设置信息 add by wuxw 2018-07-03 -->
+    <select id="getSystemGoldSettingInfo" parameterType="Map" resultType="Map">
+        select  t.buy_price,t.buy_price buyPrice,t.gold_name,t.gold_name goldName,t.status_cd,t.status_cd statusCd,t.gold_type,t.gold_type goldType,t.validity,t.state,t.use_price,t.use_price usePrice,t.setting_id,t.setting_id settingId 
+from system_gold_setting t 
+where 1 =1 
+<if test="buyPrice !=null and buyPrice != ''">
+   and t.buy_price= #{buyPrice}
+</if> 
+<if test="goldName !=null and goldName != ''">
+   and t.gold_name= #{goldName}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="goldType !=null and goldType != ''">
+   and t.gold_type= #{goldType}
+</if> 
+<if test="validity !=null and validity != ''">
+   and t.validity= #{validity}
+</if> 
+<if test="state !=null and state != ''">
+   and t.state= #{state}
+</if> 
+<if test="usePrice !=null and usePrice != ''">
+   and t.use_price= #{usePrice}
+</if> 
+<if test="settingId !=null and settingId != ''">
+   and t.setting_id= #{settingId}
+</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="updateSystemGoldSettingInfo" parameterType="Map">
+        update  system_gold_setting t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if> 
+<if test="buyPrice !=null and buyPrice != ''">
+, t.buy_price= #{buyPrice}
+</if> 
+<if test="goldName !=null and goldName != ''">
+, t.gold_name= #{goldName}
+</if> 
+<if test="goldType !=null and goldType != ''">
+, t.gold_type= #{goldType}
+</if> 
+<if test="validity !=null and validity != ''">
+, t.validity= #{validity}
+</if> 
+<if test="state !=null and state != ''">
+, t.state= #{state}
+</if> 
+<if test="usePrice !=null and usePrice != ''">
+, t.use_price= #{usePrice}
+</if> 
+ where 1=1 <if test="settingId !=null and settingId != ''">
+and t.setting_id= #{settingId}
+</if> 
+
+    </update>
+
+    <!-- 查询金币设置数量 add by wuxw 2018-07-03 -->
+     <select id="querySystemGoldSettingsCount" parameterType="Map" resultType="Map">
+        select  count(1) count 
+from system_gold_setting t 
+where 1 =1 
+<if test="buyPrice !=null and buyPrice != ''">
+   and t.buy_price= #{buyPrice}
+</if> 
+<if test="goldName !=null and goldName != ''">
+   and t.gold_name= #{goldName}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="goldType !=null and goldType != ''">
+   and t.gold_type= #{goldType}
+</if> 
+<if test="validity !=null and validity != ''">
+   and t.validity= #{validity}
+</if> 
+<if test="state !=null and state != ''">
+   and t.state= #{state}
+</if> 
+<if test="usePrice !=null and usePrice != ''">
+   and t.use_price= #{usePrice}
+</if> 
+<if test="settingId !=null and settingId != ''">
+   and t.setting_id= #{settingId}
+</if> 
+
+
+     </select>
+
+</mapper>

+ 21 - 19
java110-generator/src/main/resources/newBack/template_1.json

@@ -1,32 +1,34 @@
 {
   "autoMove": true,
-  "id": "detailId",
-  "name": "shopVipAccountDetail",
-  "desc": "会员账户交易",
-  "shareParam": "shopId",
-  "shareColumn": "shop_id",
+  "id": "settingId",
+  "name": "systemGoldSetting",
+  "desc": "金币设置",
+  "shareParam": "settingId",
+  "shareColumn": "settingId",
   "shareName": "acct",
-  "tableName": "shop_vip_account_detail",
+  "tableName": "system_gold_setting",
   "param": {
-    "detailId": "detail_id",
-    "vipAcctId": "vip_acct_id",
-    "detailType": "detail_type",
-    "relAcctId": "rel_acct_id",
-    "amount": "amount",
-    "shopId": "shop_id",
-    "storeId": "store_id",
-    "orderId": "order_id",
-    "remark": "remark",
+    "settingId": "setting_id",
+    "goldName": "gold_name",
+    "goldType": "gold_type",
+    "buyPrice": "buy_price",
+    "usePrice": "use_price",
+    "validity": "validity",
+    "state": "state",
     "statusCd": "status_cd"
   },
   "required": [
     {
-      "code": "vipAcctId",
-      "msg": "会员不能为空"
+      "code": "buyPrice",
+      "msg": "购买价不能为空"
     },
     {
-      "code": "amount",
-      "msg": "金额不能为空"
+      "code": "usePrice",
+      "msg": "使用价不能为空"
+    },
+    {
+      "code": "validity",
+      "msg": "有效期不能为空"
     }
   ]
 }

+ 44 - 61
java110-generator/src/main/resources/web/template_1.json

@@ -1,111 +1,94 @@
 {
-  "templateName":"活动",
-  "templateCode":"activities",
-  "templateKey":"activitiesId",
-  "templateKeyName":"活动ID",
-  "searchCode": "title",
-  "searchName": "活动标题",
+  "templateName":"金币设置",
+  "templateCode":"systemGoldSetting",
+  "templateKey":"settingId",
+  "templateKeyName":"设置ID",
+  "searchCode": "settingId",
+  "searchName": "设置ID",
+  "directories": "admin",
   "conditions": [
     {
       "name": "活动标题",
       "inputType": "input",
       "code": "title",
       "whereCondition": "equal"
-    },
-    {
-      "name": "活动类型",
-      "inputType": "select",
-      "selectValue":"10001,10002",
-      "selectValueName":"小区文化,其他",
-      "code": "typeCd",
-      "whereCondition": "equal"
-    },
-    {
-      "name": "员工名称",
-      "inputType": "input",
-      "code": "userName",
-      "whereCondition": "equal"
-    },
-    {
-      "name": "活动ID",
-      "inputType": "input",
-      "code": "activitiesId",
-      "whereCondition": "equal"
     }
   ],
   "columns":[
     {
-      "code":"title",
-      "cnCode":"活动标题",
-      "desc":"必填,请填写业活动标题",
+      "code":"goldName",
+      "cnCode":"名称",
+      "desc":"必填,请填写名称",
       "required":true,
       "hasDefaultValue":false,
       "inputType":"input",
       "limit":"maxin",
-      "limitParam":"1,200",
-      "limitErrInfo":"活动标题不能超过200位",
+      "limitParam":"1,64",
+      "limitErrInfo":"名称不能超过64位",
       "show": true
     },
     {
-      "code": "typeCd",
-      "cnCode":"活动类型",
-      "desc":"必填,请选择活动类型",
+      "code": "goldType",
+      "cnCode":"类型",
+      "desc":"必填,请选择类型",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "select",
-      "selectValue":"10001,10002",
-      "selectValueName":"小区文化,其他",
+      "selectValue":"1001",
+      "selectValueName":"普通金币",
       "limit":"num",
       "limitParam":"",
-      "limitErrInfo":"活动类型格式错误",
+      "limitErrInfo":"类型格式错误",
       "show": true
     },
     {
-      "code": "headerImg",
-      "cnCode":"头部照片",
-      "desc":"必填,请选择头部照片",
+      "code": "buyPrice",
+      "cnCode":"购买价格",
+      "desc":"必填,请填写购买金币价格",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"maxin",
-      "limitParam":"1,200",
-      "limitErrInfo":"头部照片格式错误",
+      "limit":"money",
+      "limitParam":"",
+      "limitErrInfo":"购买价格格式错误",
       "show": true
     },
     {
-      "code": "context",
-      "cnCode":"活动内容",
-      "desc":"必填,请填写活动内容",
+      "code": "usePrice",
+      "cnCode":"使用价格",
+      "desc":"必填,请填写使用价格",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"maxin",
-      "limitParam":"1,4000",
-      "limitErrInfo":"活动内容太长",
+      "limit":"money",
+      "limitParam":"",
+      "limitErrInfo":"使用价格格式错误",
       "show": true
     },
     {
-      "code": "startTime",
-      "cnCode":"开始时间",
-      "desc":"必填,请选择开始时间",
+      "code": "validity",
+      "cnCode":"有效期",
+      "desc":"必填,请填写有效期",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"date",
+      "limit":"num",
       "limitParam":"",
-      "limitErrInfo":"开始时间格式错误",
+      "limitErrInfo":"有效期必须为整数",
       "show": true
     },
     {
-      "code": "endTime",
-      "cnCode":"结束时间",
-      "desc":"必填,请选择结束时间",
+      "code": "state",
+      "cnCode":"状态",
+      "desc":"必填,请选择状态",
       "required":true,
       "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"date",
-      "limitParam":"",
-      "limitErrInfo":"结束时间格式错误",
+      "inputType": "select",
+      "selectValue":"001,002",
+      "selectValueName":"启用,停用",
+      "limit":"maxLength",
+      "limitParam":"12",
+      "limitErrInfo":"状态格式错误",
       "show": true
     }
   ]

+ 53 - 0
java110-interface/src/main/java/com/java110/intf/acct/ISystemGoldSettingInnerServiceSMO.java

@@ -0,0 +1,53 @@
+package com.java110.intf.acct;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.systemGoldSetting.SystemGoldSettingDto;
+import com.java110.po.systemGoldSetting.SystemGoldSettingPo;
+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;
+
+/**
+ * @ClassName ISystemGoldSettingInnerServiceSMO
+ * @Description 金币设置接口类
+ * @Author wuxw
+ * @Date 2019/4/24 9:04
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+@FeignClient(name = "acct-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/systemGoldSettingApi")
+public interface ISystemGoldSettingInnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveSystemGoldSetting", method = RequestMethod.POST)
+    public int saveSystemGoldSetting(@RequestBody SystemGoldSettingPo systemGoldSettingPo);
+
+    @RequestMapping(value = "/updateSystemGoldSetting", method = RequestMethod.POST)
+    public int updateSystemGoldSetting(@RequestBody  SystemGoldSettingPo systemGoldSettingPo);
+
+    @RequestMapping(value = "/deleteSystemGoldSetting", method = RequestMethod.POST)
+    public int deleteSystemGoldSetting(@RequestBody  SystemGoldSettingPo systemGoldSettingPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param systemGoldSettingDto 数据对象分享
+     * @return SystemGoldSettingDto 对象数据
+     */
+    @RequestMapping(value = "/querySystemGoldSettings", method = RequestMethod.POST)
+    List<SystemGoldSettingDto> querySystemGoldSettings(@RequestBody SystemGoldSettingDto systemGoldSettingDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param systemGoldSettingDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/querySystemGoldSettingsCount", method = RequestMethod.POST)
+    int querySystemGoldSettingsCount(@RequestBody SystemGoldSettingDto systemGoldSettingDto);
+}

+ 111 - 0
service-acct/src/main/java/com/java110/acct/api/SystemGoldSettingApi.java

@@ -0,0 +1,111 @@
+package com.java110.acct.api;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.acct.bmo.systemGoldSetting.IDeleteSystemGoldSettingBMO;
+import com.java110.acct.bmo.systemGoldSetting.IGetSystemGoldSettingBMO;
+import com.java110.acct.bmo.systemGoldSetting.ISaveSystemGoldSettingBMO;
+import com.java110.acct.bmo.systemGoldSetting.IUpdateSystemGoldSettingBMO;
+import com.java110.dto.systemGoldSetting.SystemGoldSettingDto;
+import com.java110.po.systemGoldSetting.SystemGoldSettingPo;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+
+@RestController
+@RequestMapping(value = "/systemGoldSetting")
+public class SystemGoldSettingApi {
+
+    @Autowired
+    private ISaveSystemGoldSettingBMO saveSystemGoldSettingBMOImpl;
+    @Autowired
+    private IUpdateSystemGoldSettingBMO updateSystemGoldSettingBMOImpl;
+    @Autowired
+    private IDeleteSystemGoldSettingBMO deleteSystemGoldSettingBMOImpl;
+
+    @Autowired
+    private IGetSystemGoldSettingBMO getSystemGoldSettingBMOImpl;
+
+    /**
+     * 微信保存消息模板
+     *
+     * @param reqJson
+     * @return
+     * @serviceCode /systemGoldSetting/saveSystemGoldSetting
+     * @path /app/systemGoldSetting/saveSystemGoldSetting
+     */
+    @RequestMapping(value = "/saveSystemGoldSetting", method = RequestMethod.POST)
+    public ResponseEntity<String> saveSystemGoldSetting(@RequestBody JSONObject reqJson) {
+
+        Assert.hasKeyAndValue(reqJson, "buyPrice", "请求报文中未包含buyPrice");
+        Assert.hasKeyAndValue(reqJson, "usePrice", "请求报文中未包含usePrice");
+        Assert.hasKeyAndValue(reqJson, "validity", "请求报文中未包含validity");
+
+
+        SystemGoldSettingPo systemGoldSettingPo = BeanConvertUtil.covertBean(reqJson, SystemGoldSettingPo.class);
+        return saveSystemGoldSettingBMOImpl.save(systemGoldSettingPo);
+    }
+
+    /**
+     * 微信修改消息模板
+     *
+     * @param reqJson
+     * @return
+     * @serviceCode /systemGoldSetting/updateSystemGoldSetting
+     * @path /app/systemGoldSetting/updateSystemGoldSetting
+     */
+    @RequestMapping(value = "/updateSystemGoldSetting", method = RequestMethod.POST)
+    public ResponseEntity<String> updateSystemGoldSetting(@RequestBody JSONObject reqJson) {
+
+        Assert.hasKeyAndValue(reqJson, "buyPrice", "请求报文中未包含buyPrice");
+        Assert.hasKeyAndValue(reqJson, "usePrice", "请求报文中未包含usePrice");
+        Assert.hasKeyAndValue(reqJson, "validity", "请求报文中未包含validity");
+        Assert.hasKeyAndValue(reqJson, "settingId", "settingId不能为空");
+
+
+        SystemGoldSettingPo systemGoldSettingPo = BeanConvertUtil.covertBean(reqJson, SystemGoldSettingPo.class);
+        return updateSystemGoldSettingBMOImpl.update(systemGoldSettingPo);
+    }
+
+    /**
+     * 微信删除消息模板
+     *
+     * @param reqJson
+     * @return
+     * @serviceCode /systemGoldSetting/deleteSystemGoldSetting
+     * @path /app/systemGoldSetting/deleteSystemGoldSetting
+     */
+    @RequestMapping(value = "/deleteSystemGoldSetting", method = RequestMethod.POST)
+    public ResponseEntity<String> deleteSystemGoldSetting(@RequestBody JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空");
+
+        Assert.hasKeyAndValue(reqJson, "settingId", "settingId不能为空");
+
+
+        SystemGoldSettingPo systemGoldSettingPo = BeanConvertUtil.covertBean(reqJson, SystemGoldSettingPo.class);
+        return deleteSystemGoldSettingBMOImpl.delete(systemGoldSettingPo);
+    }
+
+    /**
+     * 微信删除消息模板
+     *
+     * @return
+     * @serviceCode /systemGoldSetting/querySystemGoldSetting
+     * @path /app/systemGoldSetting/querySystemGoldSetting
+     */
+    @RequestMapping(value = "/querySystemGoldSetting", method = RequestMethod.GET)
+    public ResponseEntity<String> querySystemGoldSetting(
+            @RequestParam(value = "page") int page,
+            @RequestParam(value = "row") int row) {
+        SystemGoldSettingDto systemGoldSettingDto = new SystemGoldSettingDto();
+        systemGoldSettingDto.setPage(page);
+        systemGoldSettingDto.setRow(row);
+        return getSystemGoldSettingBMOImpl.get(systemGoldSettingDto);
+    }
+}

+ 17 - 0
service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/IDeleteSystemGoldSettingBMO.java

@@ -0,0 +1,17 @@
+package com.java110.acct.bmo.systemGoldSetting;
+import com.java110.po.systemGoldSetting.SystemGoldSettingPo;
+import org.springframework.http.ResponseEntity;
+
+public interface IDeleteSystemGoldSettingBMO {
+
+
+    /**
+     * 修改金币设置
+     * add by wuxw
+     * @param systemGoldSettingPo
+     * @return
+     */
+    ResponseEntity<String> delete(SystemGoldSettingPo systemGoldSettingPo);
+
+
+}

+ 16 - 0
service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/IGetSystemGoldSettingBMO.java

@@ -0,0 +1,16 @@
+package com.java110.acct.bmo.systemGoldSetting;
+import com.java110.dto.systemGoldSetting.SystemGoldSettingDto;
+import org.springframework.http.ResponseEntity;
+public interface IGetSystemGoldSettingBMO {
+
+
+    /**
+     * 查询金币设置
+     * add by wuxw
+     * @param  systemGoldSettingDto
+     * @return
+     */
+    ResponseEntity<String> get(SystemGoldSettingDto systemGoldSettingDto);
+
+
+}

+ 17 - 0
service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/ISaveSystemGoldSettingBMO.java

@@ -0,0 +1,17 @@
+package com.java110.acct.bmo.systemGoldSetting;
+
+import com.java110.po.systemGoldSetting.SystemGoldSettingPo;
+import org.springframework.http.ResponseEntity;
+public interface ISaveSystemGoldSettingBMO {
+
+
+    /**
+     * 添加金币设置
+     * add by wuxw
+     * @param systemGoldSettingPo
+     * @return
+     */
+    ResponseEntity<String> save(SystemGoldSettingPo systemGoldSettingPo);
+
+
+}

+ 17 - 0
service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/IUpdateSystemGoldSettingBMO.java

@@ -0,0 +1,17 @@
+package com.java110.acct.bmo.systemGoldSetting;
+import com.java110.po.systemGoldSetting.SystemGoldSettingPo;
+import org.springframework.http.ResponseEntity;
+
+public interface IUpdateSystemGoldSettingBMO {
+
+
+    /**
+     * 修改金币设置
+     * add by wuxw
+     * @param systemGoldSettingPo
+     * @return
+     */
+    ResponseEntity<String> update(SystemGoldSettingPo systemGoldSettingPo);
+
+
+}

+ 34 - 0
service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/impl/DeleteSystemGoldSettingBMOImpl.java

@@ -0,0 +1,34 @@
+package com.java110.acct.bmo.systemGoldSetting.impl;
+
+import com.java110.acct.bmo.systemGoldSetting.IDeleteSystemGoldSettingBMO;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.intf.acct.ISystemGoldSettingInnerServiceSMO;
+import com.java110.po.systemGoldSetting.SystemGoldSettingPo;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Service;
+
+@Service("deleteSystemGoldSettingBMOImpl")
+public class DeleteSystemGoldSettingBMOImpl implements IDeleteSystemGoldSettingBMO {
+
+    @Autowired
+    private ISystemGoldSettingInnerServiceSMO systemGoldSettingInnerServiceSMOImpl;
+
+    /**
+     * @param systemGoldSettingPo 数据
+     * @return 订单服务能够接受的报文
+     */
+    @Java110Transactional
+    public ResponseEntity<String> delete(SystemGoldSettingPo systemGoldSettingPo) {
+
+        int flag = systemGoldSettingInnerServiceSMOImpl.deleteSystemGoldSetting(systemGoldSettingPo);
+
+        if (flag > 0) {
+            return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功");
+        }
+
+        return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败");
+    }
+
+}

+ 44 - 0
service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/impl/GetSystemGoldSettingBMOImpl.java

@@ -0,0 +1,44 @@
+package com.java110.acct.bmo.systemGoldSetting.impl;
+
+import com.java110.acct.bmo.systemGoldSetting.IGetSystemGoldSettingBMO;
+import com.java110.dto.systemGoldSetting.SystemGoldSettingDto;
+import com.java110.intf.acct.ISystemGoldSettingInnerServiceSMO;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Service;
+
+import java.util.ArrayList;
+import java.util.List;
+
+@Service("getSystemGoldSettingBMOImpl")
+public class GetSystemGoldSettingBMOImpl implements IGetSystemGoldSettingBMO {
+
+    @Autowired
+    private ISystemGoldSettingInnerServiceSMO systemGoldSettingInnerServiceSMOImpl;
+
+    /**
+     * @param systemGoldSettingDto
+     * @return 订单服务能够接受的报文
+     */
+    public ResponseEntity<String> get(SystemGoldSettingDto systemGoldSettingDto) {
+
+
+        int count = systemGoldSettingInnerServiceSMOImpl.querySystemGoldSettingsCount(systemGoldSettingDto);
+
+        List<SystemGoldSettingDto> systemGoldSettingDtos = null;
+        if (count > 0) {
+            systemGoldSettingDtos = systemGoldSettingInnerServiceSMOImpl.querySystemGoldSettings(systemGoldSettingDto);
+        } else {
+            systemGoldSettingDtos = new ArrayList<>();
+        }
+
+        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) systemGoldSettingDto.getRow()), count, systemGoldSettingDtos);
+
+        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+        return responseEntity;
+    }
+
+}

+ 38 - 0
service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/impl/SaveSystemGoldSettingBMOImpl.java

@@ -0,0 +1,38 @@
+package com.java110.acct.bmo.systemGoldSetting.impl;
+
+import com.java110.acct.bmo.systemGoldSetting.ISaveSystemGoldSettingBMO;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.acct.ISystemGoldSettingInnerServiceSMO;
+import com.java110.po.systemGoldSetting.SystemGoldSettingPo;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Service;
+
+@Service("saveSystemGoldSettingBMOImpl")
+public class SaveSystemGoldSettingBMOImpl implements ISaveSystemGoldSettingBMO {
+
+    @Autowired
+    private ISystemGoldSettingInnerServiceSMO systemGoldSettingInnerServiceSMOImpl;
+
+    /**
+     * 添加小区信息
+     *
+     * @param systemGoldSettingPo
+     * @return 订单服务能够接受的报文
+     */
+    @Java110Transactional
+    public ResponseEntity<String> save(SystemGoldSettingPo systemGoldSettingPo) {
+
+        systemGoldSettingPo.setSettingId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_settingId));
+        int flag = systemGoldSettingInnerServiceSMOImpl.saveSystemGoldSetting(systemGoldSettingPo);
+
+        if (flag > 0) {
+        return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功");
+        }
+
+        return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败");
+    }
+
+}

+ 34 - 0
service-acct/src/main/java/com/java110/acct/bmo/systemGoldSetting/impl/UpdateSystemGoldSettingBMOImpl.java

@@ -0,0 +1,34 @@
+package com.java110.acct.bmo.systemGoldSetting.impl;
+
+import com.java110.acct.bmo.systemGoldSetting.IUpdateSystemGoldSettingBMO;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.intf.acct.ISystemGoldSettingInnerServiceSMO;
+import com.java110.po.systemGoldSetting.SystemGoldSettingPo;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Service;
+
+@Service("updateSystemGoldSettingBMOImpl")
+public class UpdateSystemGoldSettingBMOImpl implements IUpdateSystemGoldSettingBMO {
+
+    @Autowired
+    private ISystemGoldSettingInnerServiceSMO systemGoldSettingInnerServiceSMOImpl;
+
+    /**
+     * @param systemGoldSettingPo
+     * @return 订单服务能够接受的报文
+     */
+    @Java110Transactional
+    public ResponseEntity<String> update(SystemGoldSettingPo systemGoldSettingPo) {
+
+        int flag = systemGoldSettingInnerServiceSMOImpl.updateSystemGoldSetting(systemGoldSettingPo);
+
+        if (flag > 0) {
+            return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功");
+        }
+
+        return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败");
+    }
+
+}

+ 61 - 0
service-acct/src/main/java/com/java110/acct/dao/ISystemGoldSettingServiceDao.java

@@ -0,0 +1,61 @@
+package com.java110.acct.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;
+
+/**
+ * 金币设置组件内部之间使用,没有给外围系统提供服务能力
+ * 金币设置服务接口类,要求全部以字符串传输,方便微服务化
+ * 新建客户,修改客户,删除客户,查询客户等功能
+ *
+ * Created by wuxw on 2016/12/27.
+ */
+public interface ISystemGoldSettingServiceDao {
+
+
+    /**
+     * 保存 金币设置信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    void saveSystemGoldSettingInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询金币设置信息(instance过程)
+     * 根据bId 查询金币设置信息
+     * @param info bId 信息
+     * @return 金币设置信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getSystemGoldSettingInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改金币设置信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    void updateSystemGoldSettingInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询金币设置总数
+     *
+     * @param info 金币设置信息
+     * @return 金币设置数量
+     */
+    int querySystemGoldSettingsCount(Map info);
+
+}

+ 98 - 0
service-acct/src/main/java/com/java110/acct/dao/impl/SystemGoldSettingServiceDaoImpl.java

@@ -0,0 +1,98 @@
+package com.java110.acct.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.acct.dao.ISystemGoldSettingServiceDao;
+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;
+
+/**
+ * 金币设置服务 与数据库交互
+ * Created by wuxw on 2017/4/5.
+ */
+@Service("systemGoldSettingServiceDaoImpl")
+//@Transactional
+public class SystemGoldSettingServiceDaoImpl extends BaseServiceDao implements ISystemGoldSettingServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(SystemGoldSettingServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存金币设置信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public void saveSystemGoldSettingInfo(Map info) throws DAOException {
+        logger.debug("保存金币设置信息Instance 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("systemGoldSettingServiceDaoImpl.saveSystemGoldSettingInfo",info);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存金币设置信息Instance数据失败:"+ JSONObject.toJSONString(info));
+        }
+    }
+
+
+    /**
+     * 查询金币设置信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getSystemGoldSettingInfo(Map info) throws DAOException {
+        logger.debug("查询金币设置信息 入参 info : {}",info);
+
+        List<Map> businessSystemGoldSettingInfos = sqlSessionTemplate.selectList("systemGoldSettingServiceDaoImpl.getSystemGoldSettingInfo",info);
+
+        return businessSystemGoldSettingInfos;
+    }
+
+
+    /**
+     * 修改金币设置信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public void updateSystemGoldSettingInfo(Map info) throws DAOException {
+        logger.debug("修改金币设置信息Instance 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("systemGoldSettingServiceDaoImpl.updateSystemGoldSettingInfo",info);
+
+        if(saveFlag < 1){
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改金币设置信息Instance数据失败:"+ JSONObject.toJSONString(info));
+        }
+    }
+
+     /**
+     * 查询金币设置数量
+     * @param info 金币设置信息
+     * @return 金币设置数量
+     */
+    @Override
+    public int querySystemGoldSettingsCount(Map info) {
+        logger.debug("查询金币设置数据 入参 info : {}",info);
+
+        List<Map> businessSystemGoldSettingInfos = sqlSessionTemplate.selectList("systemGoldSettingServiceDaoImpl.querySystemGoldSettingsCount", info);
+        if (businessSystemGoldSettingInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessSystemGoldSettingInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 84 - 0
service-acct/src/main/java/com/java110/acct/smo/impl/SystemGoldSettingInnerServiceSMOImpl.java

@@ -0,0 +1,84 @@
+package com.java110.acct.smo.impl;
+
+
+import com.java110.acct.dao.ISystemGoldSettingServiceDao;
+import com.java110.intf.acct.ISystemGoldSettingInnerServiceSMO;
+import com.java110.dto.systemGoldSetting.SystemGoldSettingDto;
+import com.java110.po.systemGoldSetting.SystemGoldSettingPo;
+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;
+
+/**
+ * @ClassName FloorInnerServiceSMOImpl
+ * @Description 金币设置内部服务实现类
+ * @Author wuxw
+ * @Date 2019/4/24 9:20
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+@RestController
+public class SystemGoldSettingInnerServiceSMOImpl extends BaseServiceSMO implements ISystemGoldSettingInnerServiceSMO {
+
+    @Autowired
+    private ISystemGoldSettingServiceDao systemGoldSettingServiceDaoImpl;
+
+
+    @Override
+    public int saveSystemGoldSetting(@RequestBody SystemGoldSettingPo systemGoldSettingPo) {
+        int saveFlag = 1;
+        systemGoldSettingServiceDaoImpl.saveSystemGoldSettingInfo(BeanConvertUtil.beanCovertMap(systemGoldSettingPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateSystemGoldSetting(@RequestBody  SystemGoldSettingPo systemGoldSettingPo) {
+        int saveFlag = 1;
+         systemGoldSettingServiceDaoImpl.updateSystemGoldSettingInfo(BeanConvertUtil.beanCovertMap(systemGoldSettingPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteSystemGoldSetting(@RequestBody  SystemGoldSettingPo systemGoldSettingPo) {
+        int saveFlag = 1;
+        systemGoldSettingPo.setStatusCd("1");
+        systemGoldSettingServiceDaoImpl.updateSystemGoldSettingInfo(BeanConvertUtil.beanCovertMap(systemGoldSettingPo));
+        return saveFlag;
+    }
+
+    @Override
+    public List<SystemGoldSettingDto> querySystemGoldSettings(@RequestBody  SystemGoldSettingDto systemGoldSettingDto) {
+
+        //校验是否传了 分页信息
+
+        int page = systemGoldSettingDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            systemGoldSettingDto.setPage((page - 1) * systemGoldSettingDto.getRow());
+        }
+
+        List<SystemGoldSettingDto> systemGoldSettings = BeanConvertUtil.covertBeanList(systemGoldSettingServiceDaoImpl.getSystemGoldSettingInfo(BeanConvertUtil.beanCovertMap(systemGoldSettingDto)), SystemGoldSettingDto.class);
+
+        return systemGoldSettings;
+    }
+
+
+    @Override
+    public int querySystemGoldSettingsCount(@RequestBody SystemGoldSettingDto systemGoldSettingDto) {
+        return systemGoldSettingServiceDaoImpl.querySystemGoldSettingsCount(BeanConvertUtil.beanCovertMap(systemGoldSettingDto));    }
+
+    public ISystemGoldSettingServiceDao getSystemGoldSettingServiceDaoImpl() {
+        return systemGoldSettingServiceDaoImpl;
+    }
+
+    public void setSystemGoldSettingServiceDaoImpl(ISystemGoldSettingServiceDao systemGoldSettingServiceDaoImpl) {
+        this.systemGoldSettingServiceDaoImpl = systemGoldSettingServiceDaoImpl;
+    }
+}