Browse Source

代码提交

sunqing 5 years ago
parent
commit
c2d458b6e0

+ 63 - 0
src/main/java/com/minpay/common/bean/TreeDto.java

@@ -0,0 +1,63 @@
+package com.minpay.common.bean;
+
+import java.util.List;
+
+public class TreeDto {
+
+	private String name;
+	private String level;
+	private String id;
+	private String alias;
+	private String spread;
+	private String superiorId;
+	private String superiorName;
+	private List<TreeDto> children;
+	public String getSuperiorId() {
+		return superiorId;
+	}
+	public void setSuperiorId(String superiorId) {
+		this.superiorId = superiorId;
+	}
+	public String getSuperiorName() {
+		return superiorName;
+	}
+	public void setSuperiorName(String superiorName) {
+		this.superiorName = superiorName;
+	}
+	public String getLevel() {
+		return level;
+	}
+	public void setLevel(String level) {
+		this.level = level;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	public String getId() {
+		return id;
+	}
+	public void setId(String id) {
+		this.id = id;
+	}
+	public String getAlias() {
+		return alias;
+	}
+	public void setAlias(String alias) {
+		this.alias = alias;
+	}
+	public String getSpread() {
+		return spread;
+	}
+	public void setSpread(String spread) {
+		this.spread = spread;
+	}
+	public List<TreeDto> getChildren() {
+		return children;
+	}
+	public void setChildren(List<TreeDto> children) {
+		this.children = children;
+	}
+}

+ 98 - 0
src/main/java/com/minpay/db/table/mapper/VmAccountMapper.java

@@ -0,0 +1,98 @@
+package com.minpay.db.table.mapper;
+
+import com.minpay.db.table.model.VmAccount;
+import com.minpay.db.table.model.VmAccountExample;
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface VmAccountMapper extends IMINMybatisEntityMapper<VmAccount, String, VmAccountExample> {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    int countByExample(VmAccountExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    int deleteByExample(VmAccountExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    int insert(VmAccount record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    int insertSelective(VmAccount record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    List<VmAccount> selectByExample(VmAccountExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    VmAccount selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    int updateByExampleSelective(@Param("record") VmAccount record, @Param("example") VmAccountExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    int updateByExample(@Param("record") VmAccount record, @Param("example") VmAccountExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKeySelective(VmAccount record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_account
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKey(VmAccount record);
+}

+ 98 - 0
src/main/java/com/minpay/db/table/mapper/VmCategoryInfMapper.java

@@ -0,0 +1,98 @@
+package com.minpay.db.table.mapper;
+
+import com.minpay.db.table.model.VmCategoryInf;
+import com.minpay.db.table.model.VmCategoryInfExample;
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface VmCategoryInfMapper extends IMINMybatisEntityMapper<VmCategoryInf, String, VmCategoryInfExample> {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    int countByExample(VmCategoryInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    int deleteByExample(VmCategoryInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    int insert(VmCategoryInf record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    int insertSelective(VmCategoryInf record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    List<VmCategoryInf> selectByExample(VmCategoryInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    VmCategoryInf selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    int updateByExampleSelective(@Param("record") VmCategoryInf record, @Param("example") VmCategoryInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    int updateByExample(@Param("record") VmCategoryInf record, @Param("example") VmCategoryInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKeySelective(VmCategoryInf record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_category_inf
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKey(VmCategoryInf record);
+}

+ 98 - 0
src/main/java/com/minpay/db/table/mapper/VmProductInfMapper.java

@@ -0,0 +1,98 @@
+package com.minpay.db.table.mapper;
+
+import com.minpay.db.table.model.VmProductInf;
+import com.minpay.db.table.model.VmProductInfExample;
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface VmProductInfMapper extends IMINMybatisEntityMapper<VmProductInf, String, VmProductInfExample> {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    int countByExample(VmProductInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    int deleteByExample(VmProductInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    int insert(VmProductInf record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    int insertSelective(VmProductInf record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    List<VmProductInf> selectByExample(VmProductInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    VmProductInf selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    int updateByExampleSelective(@Param("record") VmProductInf record, @Param("example") VmProductInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    int updateByExample(@Param("record") VmProductInf record, @Param("example") VmProductInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKeySelective(VmProductInf record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_product_inf
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKey(VmProductInf record);
+}

+ 98 - 0
src/main/java/com/minpay/db/table/mapper/VmTencentInfMapper.java

@@ -0,0 +1,98 @@
+package com.minpay.db.table.mapper;
+
+import com.minpay.db.table.model.VmTencentInf;
+import com.minpay.db.table.model.VmTencentInfExample;
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface VmTencentInfMapper extends IMINMybatisEntityMapper<VmTencentInf, String, VmTencentInfExample> {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    int countByExample(VmTencentInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    int deleteByExample(VmTencentInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    int insert(VmTencentInf record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    int insertSelective(VmTencentInf record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    List<VmTencentInf> selectByExample(VmTencentInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    VmTencentInf selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    int updateByExampleSelective(@Param("record") VmTencentInf record, @Param("example") VmTencentInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    int updateByExample(@Param("record") VmTencentInf record, @Param("example") VmTencentInfExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKeySelective(VmTencentInf record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_tencent_inf
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKey(VmTencentInf record);
+}

+ 389 - 0
src/main/java/com/minpay/db/table/model/VmAccount.java

@@ -0,0 +1,389 @@
+package com.minpay.db.table.model;
+
+import com.startup.minpay.frame.data.AbstractMINBean;
+
+public class VmAccount extends AbstractMINBean {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_ID
+     *
+     * @mbggenerated
+     */
+    private String id;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_CHANNEL
+     *
+     * @mbggenerated
+     */
+    private String channel;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_USRID
+     *
+     * @mbggenerated
+     */
+    private String usrid;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_TYPE
+     *
+     * @mbggenerated
+     */
+    private String type;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_NAME
+     *
+     * @mbggenerated
+     */
+    private String name;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_NUMBER
+     *
+     * @mbggenerated
+     */
+    private String number;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_AMT
+     *
+     * @mbggenerated
+     */
+    private String amt;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_AVA_AMT
+     *
+     * @mbggenerated
+     */
+    private String avaAmt;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    private String createUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    private String createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    private String modifyUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_account.ACT_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    private String modifyTime;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_ID
+     *
+     * @return the value of vm_account.ACT_ID
+     *
+     * @mbggenerated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_ID
+     *
+     * @param id the value for vm_account.ACT_ID
+     *
+     * @mbggenerated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_CHANNEL
+     *
+     * @return the value of vm_account.ACT_CHANNEL
+     *
+     * @mbggenerated
+     */
+    public String getChannel() {
+        return channel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_CHANNEL
+     *
+     * @param channel the value for vm_account.ACT_CHANNEL
+     *
+     * @mbggenerated
+     */
+    public void setChannel(String channel) {
+        this.channel = channel == null ? null : channel.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_USRID
+     *
+     * @return the value of vm_account.ACT_USRID
+     *
+     * @mbggenerated
+     */
+    public String getUsrid() {
+        return usrid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_USRID
+     *
+     * @param usrid the value for vm_account.ACT_USRID
+     *
+     * @mbggenerated
+     */
+    public void setUsrid(String usrid) {
+        this.usrid = usrid == null ? null : usrid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_TYPE
+     *
+     * @return the value of vm_account.ACT_TYPE
+     *
+     * @mbggenerated
+     */
+    public String getType() {
+        return type;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_TYPE
+     *
+     * @param type the value for vm_account.ACT_TYPE
+     *
+     * @mbggenerated
+     */
+    public void setType(String type) {
+        this.type = type == null ? null : type.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_NAME
+     *
+     * @return the value of vm_account.ACT_NAME
+     *
+     * @mbggenerated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_NAME
+     *
+     * @param name the value for vm_account.ACT_NAME
+     *
+     * @mbggenerated
+     */
+    public void setName(String name) {
+        this.name = name == null ? null : name.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_NUMBER
+     *
+     * @return the value of vm_account.ACT_NUMBER
+     *
+     * @mbggenerated
+     */
+    public String getNumber() {
+        return number;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_NUMBER
+     *
+     * @param number the value for vm_account.ACT_NUMBER
+     *
+     * @mbggenerated
+     */
+    public void setNumber(String number) {
+        this.number = number == null ? null : number.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_AMT
+     *
+     * @return the value of vm_account.ACT_AMT
+     *
+     * @mbggenerated
+     */
+    public String getAmt() {
+        return amt;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_AMT
+     *
+     * @param amt the value for vm_account.ACT_AMT
+     *
+     * @mbggenerated
+     */
+    public void setAmt(String amt) {
+        this.amt = amt == null ? null : amt.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_AVA_AMT
+     *
+     * @return the value of vm_account.ACT_AVA_AMT
+     *
+     * @mbggenerated
+     */
+    public String getAvaAmt() {
+        return avaAmt;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_AVA_AMT
+     *
+     * @param avaAmt the value for vm_account.ACT_AVA_AMT
+     *
+     * @mbggenerated
+     */
+    public void setAvaAmt(String avaAmt) {
+        this.avaAmt = avaAmt == null ? null : avaAmt.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_CREATE_USER
+     *
+     * @return the value of vm_account.ACT_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public String getCreateUser() {
+        return createUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_CREATE_USER
+     *
+     * @param createUser the value for vm_account.ACT_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public void setCreateUser(String createUser) {
+        this.createUser = createUser == null ? null : createUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_CREATE_TIME
+     *
+     * @return the value of vm_account.ACT_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_CREATE_TIME
+     *
+     * @param createTime the value for vm_account.ACT_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime == null ? null : createTime.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_MODIFY_USER
+     *
+     * @return the value of vm_account.ACT_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    public String getModifyUser() {
+        return modifyUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_MODIFY_USER
+     *
+     * @param modifyUser the value for vm_account.ACT_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    public void setModifyUser(String modifyUser) {
+        this.modifyUser = modifyUser == null ? null : modifyUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_account.ACT_MODIFY_TIME
+     *
+     * @return the value of vm_account.ACT_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    public String getModifyTime() {
+        return modifyTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_account.ACT_MODIFY_TIME
+     *
+     * @param modifyTime the value for vm_account.ACT_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    public void setModifyTime(String modifyTime) {
+        this.modifyTime = modifyTime == null ? null : modifyTime.trim();
+    }
+}

File diff suppressed because it is too large
+ 1217 - 0
src/main/java/com/minpay/db/table/model/VmAccountExample.java


+ 549 - 0
src/main/java/com/minpay/db/table/model/VmCategoryInf.java

@@ -0,0 +1,549 @@
+package com.minpay.db.table.model;
+
+import com.startup.minpay.frame.data.AbstractMINBean;
+
+public class VmCategoryInf extends AbstractMINBean {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_ID
+     *
+     * @mbggenerated
+     */
+    private String id;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_CHANNEL
+     *
+     * @mbggenerated
+     */
+    private String channel;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_NAME
+     *
+     * @mbggenerated
+     */
+    private String name;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_ALIAS
+     *
+     * @mbggenerated
+     */
+    private String alias;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_INITIAL
+     *
+     * @mbggenerated
+     */
+    private String initial;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_CODE
+     *
+     * @mbggenerated
+     */
+    private String code;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_PARENT_CODE
+     *
+     * @mbggenerated
+     */
+    private String parentCode;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_LEVEL
+     *
+     * @mbggenerated
+     */
+    private String level;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_SORT
+     *
+     * @mbggenerated
+     */
+    private String sort;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_CATEGORY_IMG
+     *
+     * @mbggenerated
+     */
+    private String categoryImg;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_CATEGORY_URL
+     *
+     * @mbggenerated
+     */
+    private String categoryUrl;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_STATE
+     *
+     * @mbggenerated
+     */
+    private String state;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_REMARKS
+     *
+     * @mbggenerated
+     */
+    private String remarks;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    private String createUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    private String createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    private String modifyUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_category_inf.VCI_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    private String modifyTime;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_ID
+     *
+     * @return the value of vm_category_inf.VCI_ID
+     *
+     * @mbggenerated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_ID
+     *
+     * @param id the value for vm_category_inf.VCI_ID
+     *
+     * @mbggenerated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_CHANNEL
+     *
+     * @return the value of vm_category_inf.VCI_CHANNEL
+     *
+     * @mbggenerated
+     */
+    public String getChannel() {
+        return channel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_CHANNEL
+     *
+     * @param channel the value for vm_category_inf.VCI_CHANNEL
+     *
+     * @mbggenerated
+     */
+    public void setChannel(String channel) {
+        this.channel = channel == null ? null : channel.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_NAME
+     *
+     * @return the value of vm_category_inf.VCI_NAME
+     *
+     * @mbggenerated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_NAME
+     *
+     * @param name the value for vm_category_inf.VCI_NAME
+     *
+     * @mbggenerated
+     */
+    public void setName(String name) {
+        this.name = name == null ? null : name.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_ALIAS
+     *
+     * @return the value of vm_category_inf.VCI_ALIAS
+     *
+     * @mbggenerated
+     */
+    public String getAlias() {
+        return alias;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_ALIAS
+     *
+     * @param alias the value for vm_category_inf.VCI_ALIAS
+     *
+     * @mbggenerated
+     */
+    public void setAlias(String alias) {
+        this.alias = alias == null ? null : alias.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_INITIAL
+     *
+     * @return the value of vm_category_inf.VCI_INITIAL
+     *
+     * @mbggenerated
+     */
+    public String getInitial() {
+        return initial;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_INITIAL
+     *
+     * @param initial the value for vm_category_inf.VCI_INITIAL
+     *
+     * @mbggenerated
+     */
+    public void setInitial(String initial) {
+        this.initial = initial == null ? null : initial.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_CODE
+     *
+     * @return the value of vm_category_inf.VCI_CODE
+     *
+     * @mbggenerated
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_CODE
+     *
+     * @param code the value for vm_category_inf.VCI_CODE
+     *
+     * @mbggenerated
+     */
+    public void setCode(String code) {
+        this.code = code == null ? null : code.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_PARENT_CODE
+     *
+     * @return the value of vm_category_inf.VCI_PARENT_CODE
+     *
+     * @mbggenerated
+     */
+    public String getParentCode() {
+        return parentCode;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_PARENT_CODE
+     *
+     * @param parentCode the value for vm_category_inf.VCI_PARENT_CODE
+     *
+     * @mbggenerated
+     */
+    public void setParentCode(String parentCode) {
+        this.parentCode = parentCode == null ? null : parentCode.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_LEVEL
+     *
+     * @return the value of vm_category_inf.VCI_LEVEL
+     *
+     * @mbggenerated
+     */
+    public String getLevel() {
+        return level;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_LEVEL
+     *
+     * @param level the value for vm_category_inf.VCI_LEVEL
+     *
+     * @mbggenerated
+     */
+    public void setLevel(String level) {
+        this.level = level == null ? null : level.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_SORT
+     *
+     * @return the value of vm_category_inf.VCI_SORT
+     *
+     * @mbggenerated
+     */
+    public String getSort() {
+        return sort;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_SORT
+     *
+     * @param sort the value for vm_category_inf.VCI_SORT
+     *
+     * @mbggenerated
+     */
+    public void setSort(String sort) {
+        this.sort = sort == null ? null : sort.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_CATEGORY_IMG
+     *
+     * @return the value of vm_category_inf.VCI_CATEGORY_IMG
+     *
+     * @mbggenerated
+     */
+    public String getCategoryImg() {
+        return categoryImg;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_CATEGORY_IMG
+     *
+     * @param categoryImg the value for vm_category_inf.VCI_CATEGORY_IMG
+     *
+     * @mbggenerated
+     */
+    public void setCategoryImg(String categoryImg) {
+        this.categoryImg = categoryImg == null ? null : categoryImg.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_CATEGORY_URL
+     *
+     * @return the value of vm_category_inf.VCI_CATEGORY_URL
+     *
+     * @mbggenerated
+     */
+    public String getCategoryUrl() {
+        return categoryUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_CATEGORY_URL
+     *
+     * @param categoryUrl the value for vm_category_inf.VCI_CATEGORY_URL
+     *
+     * @mbggenerated
+     */
+    public void setCategoryUrl(String categoryUrl) {
+        this.categoryUrl = categoryUrl == null ? null : categoryUrl.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_STATE
+     *
+     * @return the value of vm_category_inf.VCI_STATE
+     *
+     * @mbggenerated
+     */
+    public String getState() {
+        return state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_STATE
+     *
+     * @param state the value for vm_category_inf.VCI_STATE
+     *
+     * @mbggenerated
+     */
+    public void setState(String state) {
+        this.state = state == null ? null : state.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_REMARKS
+     *
+     * @return the value of vm_category_inf.VCI_REMARKS
+     *
+     * @mbggenerated
+     */
+    public String getRemarks() {
+        return remarks;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_REMARKS
+     *
+     * @param remarks the value for vm_category_inf.VCI_REMARKS
+     *
+     * @mbggenerated
+     */
+    public void setRemarks(String remarks) {
+        this.remarks = remarks == null ? null : remarks.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_CREATE_USER
+     *
+     * @return the value of vm_category_inf.VCI_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public String getCreateUser() {
+        return createUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_CREATE_USER
+     *
+     * @param createUser the value for vm_category_inf.VCI_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public void setCreateUser(String createUser) {
+        this.createUser = createUser == null ? null : createUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_CREATE_TIME
+     *
+     * @return the value of vm_category_inf.VCI_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_CREATE_TIME
+     *
+     * @param createTime the value for vm_category_inf.VCI_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime == null ? null : createTime.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_MODIFY_USER
+     *
+     * @return the value of vm_category_inf.VCI_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    public String getModifyUser() {
+        return modifyUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_MODIFY_USER
+     *
+     * @param modifyUser the value for vm_category_inf.VCI_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    public void setModifyUser(String modifyUser) {
+        this.modifyUser = modifyUser == null ? null : modifyUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_category_inf.VCI_MODIFY_TIME
+     *
+     * @return the value of vm_category_inf.VCI_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    public String getModifyTime() {
+        return modifyTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_category_inf.VCI_MODIFY_TIME
+     *
+     * @param modifyTime the value for vm_category_inf.VCI_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    public void setModifyTime(String modifyTime) {
+        this.modifyTime = modifyTime == null ? null : modifyTime.trim();
+    }
+}

File diff suppressed because it is too large
+ 1607 - 0
src/main/java/com/minpay/db/table/model/VmCategoryInfExample.java


+ 517 - 0
src/main/java/com/minpay/db/table/model/VmProductInf.java

@@ -0,0 +1,517 @@
+package com.minpay.db.table.model;
+
+import com.startup.minpay.frame.data.AbstractMINBean;
+
+public class VmProductInf extends AbstractMINBean {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_ID
+     *
+     * @mbggenerated
+     */
+    private String id;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_CHANNEL
+     *
+     * @mbggenerated
+     */
+    private String channel;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_NAME
+     *
+     * @mbggenerated
+     */
+    private String name;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_CATEGORY_ID
+     *
+     * @mbggenerated
+     */
+    private String categoryId;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_MASTER_MAP
+     *
+     * @mbggenerated
+     */
+    private String masterMap;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_FMPIC
+     *
+     * @mbggenerated
+     */
+    private String fmpic;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_PICLIST
+     *
+     * @mbggenerated
+     */
+    private String piclist;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_DESCRIBE
+     *
+     * @mbggenerated
+     */
+    private String describe;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_PRO_VEDIO
+     *
+     * @mbggenerated
+     */
+    private String proVedio;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_BRANCHID
+     *
+     * @mbggenerated
+     */
+    private String branchid;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_SORT
+     *
+     * @mbggenerated
+     */
+    private String sort;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_STATE
+     *
+     * @mbggenerated
+     */
+    private String state;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    private String createUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    private String createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    private String modifyUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_product_inf.PRT_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    private String modifyTime;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_ID
+     *
+     * @return the value of vm_product_inf.PRT_ID
+     *
+     * @mbggenerated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_ID
+     *
+     * @param id the value for vm_product_inf.PRT_ID
+     *
+     * @mbggenerated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_CHANNEL
+     *
+     * @return the value of vm_product_inf.PRT_CHANNEL
+     *
+     * @mbggenerated
+     */
+    public String getChannel() {
+        return channel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_CHANNEL
+     *
+     * @param channel the value for vm_product_inf.PRT_CHANNEL
+     *
+     * @mbggenerated
+     */
+    public void setChannel(String channel) {
+        this.channel = channel == null ? null : channel.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_NAME
+     *
+     * @return the value of vm_product_inf.PRT_NAME
+     *
+     * @mbggenerated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_NAME
+     *
+     * @param name the value for vm_product_inf.PRT_NAME
+     *
+     * @mbggenerated
+     */
+    public void setName(String name) {
+        this.name = name == null ? null : name.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_CATEGORY_ID
+     *
+     * @return the value of vm_product_inf.PRT_CATEGORY_ID
+     *
+     * @mbggenerated
+     */
+    public String getCategoryId() {
+        return categoryId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_CATEGORY_ID
+     *
+     * @param categoryId the value for vm_product_inf.PRT_CATEGORY_ID
+     *
+     * @mbggenerated
+     */
+    public void setCategoryId(String categoryId) {
+        this.categoryId = categoryId == null ? null : categoryId.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_MASTER_MAP
+     *
+     * @return the value of vm_product_inf.PRT_MASTER_MAP
+     *
+     * @mbggenerated
+     */
+    public String getMasterMap() {
+        return masterMap;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_MASTER_MAP
+     *
+     * @param masterMap the value for vm_product_inf.PRT_MASTER_MAP
+     *
+     * @mbggenerated
+     */
+    public void setMasterMap(String masterMap) {
+        this.masterMap = masterMap == null ? null : masterMap.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_FMPIC
+     *
+     * @return the value of vm_product_inf.PRT_FMPIC
+     *
+     * @mbggenerated
+     */
+    public String getFmpic() {
+        return fmpic;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_FMPIC
+     *
+     * @param fmpic the value for vm_product_inf.PRT_FMPIC
+     *
+     * @mbggenerated
+     */
+    public void setFmpic(String fmpic) {
+        this.fmpic = fmpic == null ? null : fmpic.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_PICLIST
+     *
+     * @return the value of vm_product_inf.PRT_PICLIST
+     *
+     * @mbggenerated
+     */
+    public String getPiclist() {
+        return piclist;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_PICLIST
+     *
+     * @param piclist the value for vm_product_inf.PRT_PICLIST
+     *
+     * @mbggenerated
+     */
+    public void setPiclist(String piclist) {
+        this.piclist = piclist == null ? null : piclist.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_DESCRIBE
+     *
+     * @return the value of vm_product_inf.PRT_DESCRIBE
+     *
+     * @mbggenerated
+     */
+    public String getDescribe() {
+        return describe;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_DESCRIBE
+     *
+     * @param describe the value for vm_product_inf.PRT_DESCRIBE
+     *
+     * @mbggenerated
+     */
+    public void setDescribe(String describe) {
+        this.describe = describe == null ? null : describe.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_PRO_VEDIO
+     *
+     * @return the value of vm_product_inf.PRT_PRO_VEDIO
+     *
+     * @mbggenerated
+     */
+    public String getProVedio() {
+        return proVedio;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_PRO_VEDIO
+     *
+     * @param proVedio the value for vm_product_inf.PRT_PRO_VEDIO
+     *
+     * @mbggenerated
+     */
+    public void setProVedio(String proVedio) {
+        this.proVedio = proVedio == null ? null : proVedio.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_BRANCHID
+     *
+     * @return the value of vm_product_inf.PRT_BRANCHID
+     *
+     * @mbggenerated
+     */
+    public String getBranchid() {
+        return branchid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_BRANCHID
+     *
+     * @param branchid the value for vm_product_inf.PRT_BRANCHID
+     *
+     * @mbggenerated
+     */
+    public void setBranchid(String branchid) {
+        this.branchid = branchid == null ? null : branchid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_SORT
+     *
+     * @return the value of vm_product_inf.PRT_SORT
+     *
+     * @mbggenerated
+     */
+    public String getSort() {
+        return sort;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_SORT
+     *
+     * @param sort the value for vm_product_inf.PRT_SORT
+     *
+     * @mbggenerated
+     */
+    public void setSort(String sort) {
+        this.sort = sort == null ? null : sort.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_STATE
+     *
+     * @return the value of vm_product_inf.PRT_STATE
+     *
+     * @mbggenerated
+     */
+    public String getState() {
+        return state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_STATE
+     *
+     * @param state the value for vm_product_inf.PRT_STATE
+     *
+     * @mbggenerated
+     */
+    public void setState(String state) {
+        this.state = state == null ? null : state.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_CREATE_USER
+     *
+     * @return the value of vm_product_inf.PRT_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public String getCreateUser() {
+        return createUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_CREATE_USER
+     *
+     * @param createUser the value for vm_product_inf.PRT_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public void setCreateUser(String createUser) {
+        this.createUser = createUser == null ? null : createUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_CREATE_TIME
+     *
+     * @return the value of vm_product_inf.PRT_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_CREATE_TIME
+     *
+     * @param createTime the value for vm_product_inf.PRT_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime == null ? null : createTime.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_MODIFY_USER
+     *
+     * @return the value of vm_product_inf.PRT_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    public String getModifyUser() {
+        return modifyUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_MODIFY_USER
+     *
+     * @param modifyUser the value for vm_product_inf.PRT_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    public void setModifyUser(String modifyUser) {
+        this.modifyUser = modifyUser == null ? null : modifyUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_product_inf.PRT_MODIFY_TIME
+     *
+     * @return the value of vm_product_inf.PRT_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    public String getModifyTime() {
+        return modifyTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_product_inf.PRT_MODIFY_TIME
+     *
+     * @param modifyTime the value for vm_product_inf.PRT_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    public void setModifyTime(String modifyTime) {
+        this.modifyTime = modifyTime == null ? null : modifyTime.trim();
+    }
+}

File diff suppressed because it is too large
+ 1529 - 0
src/main/java/com/minpay/db/table/model/VmProductInfExample.java


+ 421 - 0
src/main/java/com/minpay/db/table/model/VmTencentInf.java

@@ -0,0 +1,421 @@
+package com.minpay.db.table.model;
+
+import com.startup.minpay.frame.data.AbstractMINBean;
+
+public class VmTencentInf extends AbstractMINBean {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_ID
+     *
+     * @mbggenerated
+     */
+    private String id;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_CHANNEL
+     *
+     * @mbggenerated
+     */
+    private String channel;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_NAME
+     *
+     * @mbggenerated
+     */
+    private String name;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_VX_NUM
+     *
+     * @mbggenerated
+     */
+    private String vxNum;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_VX_ID
+     *
+     * @mbggenerated
+     */
+    private String vxId;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_APP_ID
+     *
+     * @mbggenerated
+     */
+    private String appId;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_APP_SECRET
+     *
+     * @mbggenerated
+     */
+    private String appSecret;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_USER_ID
+     *
+     * @mbggenerated
+     */
+    private String userId;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    private String createUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    private String createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    private String modifyUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    private String modifyTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_tencent_inf.VTI_STATUS
+     *
+     * @mbggenerated
+     */
+    private String status;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_ID
+     *
+     * @return the value of vm_tencent_inf.VTI_ID
+     *
+     * @mbggenerated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_ID
+     *
+     * @param id the value for vm_tencent_inf.VTI_ID
+     *
+     * @mbggenerated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_CHANNEL
+     *
+     * @return the value of vm_tencent_inf.VTI_CHANNEL
+     *
+     * @mbggenerated
+     */
+    public String getChannel() {
+        return channel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_CHANNEL
+     *
+     * @param channel the value for vm_tencent_inf.VTI_CHANNEL
+     *
+     * @mbggenerated
+     */
+    public void setChannel(String channel) {
+        this.channel = channel == null ? null : channel.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_NAME
+     *
+     * @return the value of vm_tencent_inf.VTI_NAME
+     *
+     * @mbggenerated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_NAME
+     *
+     * @param name the value for vm_tencent_inf.VTI_NAME
+     *
+     * @mbggenerated
+     */
+    public void setName(String name) {
+        this.name = name == null ? null : name.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_VX_NUM
+     *
+     * @return the value of vm_tencent_inf.VTI_VX_NUM
+     *
+     * @mbggenerated
+     */
+    public String getVxNum() {
+        return vxNum;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_VX_NUM
+     *
+     * @param vxNum the value for vm_tencent_inf.VTI_VX_NUM
+     *
+     * @mbggenerated
+     */
+    public void setVxNum(String vxNum) {
+        this.vxNum = vxNum == null ? null : vxNum.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_VX_ID
+     *
+     * @return the value of vm_tencent_inf.VTI_VX_ID
+     *
+     * @mbggenerated
+     */
+    public String getVxId() {
+        return vxId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_VX_ID
+     *
+     * @param vxId the value for vm_tencent_inf.VTI_VX_ID
+     *
+     * @mbggenerated
+     */
+    public void setVxId(String vxId) {
+        this.vxId = vxId == null ? null : vxId.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_APP_ID
+     *
+     * @return the value of vm_tencent_inf.VTI_APP_ID
+     *
+     * @mbggenerated
+     */
+    public String getAppId() {
+        return appId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_APP_ID
+     *
+     * @param appId the value for vm_tencent_inf.VTI_APP_ID
+     *
+     * @mbggenerated
+     */
+    public void setAppId(String appId) {
+        this.appId = appId == null ? null : appId.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_APP_SECRET
+     *
+     * @return the value of vm_tencent_inf.VTI_APP_SECRET
+     *
+     * @mbggenerated
+     */
+    public String getAppSecret() {
+        return appSecret;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_APP_SECRET
+     *
+     * @param appSecret the value for vm_tencent_inf.VTI_APP_SECRET
+     *
+     * @mbggenerated
+     */
+    public void setAppSecret(String appSecret) {
+        this.appSecret = appSecret == null ? null : appSecret.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_USER_ID
+     *
+     * @return the value of vm_tencent_inf.VTI_USER_ID
+     *
+     * @mbggenerated
+     */
+    public String getUserId() {
+        return userId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_USER_ID
+     *
+     * @param userId the value for vm_tencent_inf.VTI_USER_ID
+     *
+     * @mbggenerated
+     */
+    public void setUserId(String userId) {
+        this.userId = userId == null ? null : userId.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_CREATE_USER
+     *
+     * @return the value of vm_tencent_inf.VTI_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public String getCreateUser() {
+        return createUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_CREATE_USER
+     *
+     * @param createUser the value for vm_tencent_inf.VTI_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public void setCreateUser(String createUser) {
+        this.createUser = createUser == null ? null : createUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_CREATE_TIME
+     *
+     * @return the value of vm_tencent_inf.VTI_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_CREATE_TIME
+     *
+     * @param createTime the value for vm_tencent_inf.VTI_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime == null ? null : createTime.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_MODIFY_USER
+     *
+     * @return the value of vm_tencent_inf.VTI_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    public String getModifyUser() {
+        return modifyUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_MODIFY_USER
+     *
+     * @param modifyUser the value for vm_tencent_inf.VTI_MODIFY_USER
+     *
+     * @mbggenerated
+     */
+    public void setModifyUser(String modifyUser) {
+        this.modifyUser = modifyUser == null ? null : modifyUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_MODIFY_TIME
+     *
+     * @return the value of vm_tencent_inf.VTI_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    public String getModifyTime() {
+        return modifyTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_MODIFY_TIME
+     *
+     * @param modifyTime the value for vm_tencent_inf.VTI_MODIFY_TIME
+     *
+     * @mbggenerated
+     */
+    public void setModifyTime(String modifyTime) {
+        this.modifyTime = modifyTime == null ? null : modifyTime.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_tencent_inf.VTI_STATUS
+     *
+     * @return the value of vm_tencent_inf.VTI_STATUS
+     *
+     * @mbggenerated
+     */
+    public String getStatus() {
+        return status;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_tencent_inf.VTI_STATUS
+     *
+     * @param status the value for vm_tencent_inf.VTI_STATUS
+     *
+     * @mbggenerated
+     */
+    public void setStatus(String status) {
+        this.status = status == null ? null : status.trim();
+    }
+}

File diff suppressed because it is too large
+ 1295 - 0
src/main/java/com/minpay/db/table/model/VmTencentInfExample.java


+ 17 - 0
src/main/java/com/minpay/db/table/own/mapper/CategoryManageMapper.java

@@ -0,0 +1,17 @@
+package com.minpay.db.table.own.mapper;
+
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import com.startup.minpay.frame.jdbc.MINRowBounds;
+
+import java.util.List;
+import java.util.Map;
+
+
+public interface CategoryManageMapper extends IMINMybatisEntityMapper {
+	
+	/**查询类目列表*/
+	List<Map<String, Object>> queryCategoryList(Map<String, String> map, MINRowBounds rows);
+
+	/**查询分类--添加/修改商品选择时用*/
+	List<Map<String, String>> queryCategoryForProduct(Map<String, String> map, MINRowBounds rows);
+}

+ 27 - 0
src/main/java/com/minpay/db/table/own/mapper/ProductManageMapper.java

@@ -0,0 +1,27 @@
+package com.minpay.db.table.own.mapper;
+
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import com.startup.minpay.frame.jdbc.MINRowBounds;
+
+import java.util.List;
+import java.util.Map;
+
+public interface ProductManageMapper extends IMINMybatisEntityMapper {
+	
+	/**查看商品信息*/
+	List<Map<String, String>> queryProductInf(Map<String, String> map, MINRowBounds row);
+	
+	/**查看商品规格详情(依据商品主键)*/
+	List<Map<String,String>> querySpecByProid(Map<String, String> map);
+	
+	/** 查询正常状态下的商品,用于开启或修改团购*/
+	List<Map<String, String>> queryProductForGroup(Map<String, String> map, MINRowBounds row);
+	
+	/** 查看团购商品子信息*/
+	List<Map<String, String>> queryProductSku(Map<String, String> map);
+	
+	/** 查看团购商品详细规格参数*/
+	List<Map<String, String>> queryProduct(Map<String, String> map);
+	/**查看正常状态商品信息*/
+	List<Map<String, String>> queryProductz(Map<String, String> map, MINRowBounds rows);
+}

+ 12 - 0
src/main/java/com/minpay/db/table/own/mapper/TencentMapper.java

@@ -0,0 +1,12 @@
+package com.minpay.db.table.own.mapper;
+
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import com.startup.minpay.frame.jdbc.MINRowBounds;
+
+import java.util.List;
+import java.util.Map;
+
+public interface TencentMapper extends  IMINMybatisEntityMapper{
+	//公众号信息查询
+	List<Map<String, Object>> queryTencent(Map<String, String> params, MINRowBounds rows);
+}

+ 241 - 0
src/main/java/com/minpay/payManage/action/TencentManageAction.java

@@ -0,0 +1,241 @@
+package com.minpay.payManage.action;
+
+import com.minpay.common.bean.User;
+import com.minpay.common.format.IFormatService;
+import com.minpay.common.service.ILogService;
+import com.minpay.common.service.IPublicService;
+import com.minpay.common.util.DateUtil;
+import com.minpay.db.table.mapper.ImUserMapper;
+import com.minpay.db.table.mapper.VmTencentInfMapper;
+import com.minpay.db.table.model.ImUser;
+import com.minpay.db.table.model.VmTencentInf;
+import com.minpay.db.table.own.mapper.TencentMapper;
+import com.startup.minpay.frame.business.IMINAction;
+import com.startup.minpay.frame.business.res.MINActionResult;
+import com.startup.minpay.frame.constant.IMINBusinessConstant;
+import com.startup.minpay.frame.constant.IMINTransactionEnum;
+import com.startup.minpay.frame.data.format.MINCopyFormat;
+import com.startup.minpay.frame.exception.MINBusinessException;
+import com.startup.minpay.frame.jdbc.MINRowBounds;
+import com.startup.minpay.frame.service.base.IMINDataBaseService;
+import com.startup.minpay.frame.service.base.Service;
+import com.startup.minpay.frame.session.MINSession;
+import com.startup.minpay.frame.target.MINAction;
+import com.startup.minpay.frame.target.MINComponent;
+import com.startup.minpay.frame.target.MINParam;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 公众号管理
+ * 
+ * @author weijg
+ * 2020-08-25 23:15
+ */
+
+@MINComponent
+public class TencentManageAction implements IMINAction {
+
+	/** 公众号信息查询 */
+	public final static String TENCENTMANAGE_QUERY = "tencentManageQuery";
+
+	/** 添加公众号 */
+	public final static String ADD_TENCENT			= "addTencent";
+
+	/** 删除公众号 */
+	public final static String DELETE_TENCENT		= "deleteTencent";
+
+	/** 修改公众号 */
+	public final static String MODIFY_TENCENT 		= "modifyTencent";
+
+	/** 关联客户 */
+	public final static String ASSOCIATED_CUSTOMERS = "associatedCustomers";
+
+	/**
+	 * 公众号信息查询
+	 * @param session
+	 * @param tencentName        公众号名称
+	 * @param page
+	 * @param limit
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = TENCENTMANAGE_QUERY)
+	public MINActionResult tencentManageQuery(MINSession session,
+//			@MINParam(key = "userId") String userId,
+			@MINParam(key = "tencentName") String tencentName,
+			@MINParam(key = "state") String state,
+			@MINParam(key = "page", defaultValue = "1") int page,
+			@MINParam(key = "limit", defaultValue = "10") int limit) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		// 查询当前角色编号
+		User u = session.getUser();
+		String imUserId = u.getId();
+		ImUser user = Service.lookup(IMINDataBaseService.class).getMybatisMapper(ImUserMapper.class)
+				.selectByPrimaryKey(imUserId);
+
+		Map<String, String> params = new HashMap<String, String>();
+		params.put("tencentName", tencentName);
+		params.put("state", state);
+
+		MINRowBounds rows = new MINRowBounds(page, limit);
+		List<Map<String, Object>> tencentList = Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(TencentMapper.class).queryTencent(params, rows);
+		tencentList = new MINCopyFormat("{state:'stateDesc'}").format(tencentList);
+		tencentList = Service.lookup(IFormatService.class).formatEnum(tencentList, "{stateDesc:'TENCENT_STATE'}");
+
+		res.set(IMINBusinessConstant.F_PAGING_LAY, tencentList);
+		res.set(IMINBusinessConstant.F_PAGING_COUNT, rows.getMaxRows());
+
+		return res;
+	}
+
+
+	/**
+	 * 添加公众号
+	 * @param name
+	 * @param vxNum
+	 * @param vxId
+	 * @param appId
+	 * @param appSecret
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = ADD_TENCENT,transaction = IMINTransactionEnum.CMT)
+	public MINActionResult addTencent(
+			@MINParam(key = "name") String name,
+			@MINParam(key = "vxNum") String vxNum,
+			@MINParam(key = "vxId") String vxId,
+			@MINParam(key = "appId") String appId,
+			@MINParam(key = "appSecret") String appSecret,
+			MINSession session) throws MINBusinessException {
+
+		MINActionResult res = new MINActionResult();
+		//获取当前时间
+		String nowTime = DateUtil.getCurrentDateTimeString();
+		// 获取操作员信息
+		User user = session.getUser();
+		// 获取商品主键
+		String id = Service.lookup(IPublicService.class).getSequence("VM_TENCENT_ID");
+		VmTencentInf  vti = new VmTencentInf();
+		vti.setId(id); 							// 公众号id
+		vti.setName(name); 						// 公众号名称
+		vti.setChannel(user.getChannel()); 		// 渠道(V01:自助售货机)
+		vti.setVxNum(vxNum);					// 微信号
+		vti.setVxId(vxId);						// 微信原ID
+		vti.setAppId(appId);					// APPID(应用ID)
+		vti.setAppSecret(appSecret);			// AppSecret(应用秘钥)
+		vti.setCreateUser(user.getId()); 		// 创建人
+		vti.setCreateTime(nowTime); 			// 创建时间
+		vti.setModifyUser(user.getId());		//修改人
+		vti.setModifyTime(nowTime);				//修改时间
+		// 新增公众号信息,执行插入数据
+		Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmTencentInfMapper.class)
+				.insertSelective(vti);
+		// 记录操作日志
+		String logInfo = "操作员:" + user.getName() + "添加公众号,公众号编号:" + id;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+
+	/**
+	 * 修改公众号
+	 * @param id
+	 * @param name
+	 * @param vxNum
+	 * @param vxId
+	 * @param appId
+	 * @param appSecret
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = MODIFY_TENCENT, transaction = IMINTransactionEnum.CMT )
+	public MINActionResult modifyTencent(
+			@MINParam(key = "id")String id,
+			@MINParam(key = "name") String name,
+			@MINParam(key = "vxNum") String vxNum,
+			@MINParam(key = "vxId") String vxId,
+			@MINParam(key = "appId") String appId,
+			@MINParam(key = "appSecret") String appSecret,
+			MINSession session) throws MINBusinessException{
+
+		MINActionResult res = new MINActionResult();
+		//获取操作员信息
+		User user = session.getUser();
+		//获取当前时间
+		String dateTime = com.min.util.DateUtil.getCurrentDateTimeString();
+		VmTencentInf  vti = new VmTencentInf();
+		vti.setId(id); 					// 公众号id
+		vti.setName(name); 						// 公众号名称
+//		vti.setChannel(user.getChannel()); 		// 渠道(V01:自助售货机)
+		vti.setVxNum(vxNum);					// 微信号
+		vti.setVxId(vxId);						// 微信原ID
+		vti.setAppId(appId);					// APPID(应用ID)
+		vti.setAppSecret(appSecret);			// AppSecret(应用秘钥)
+		vti.setModifyUser(user.getId());		//修改人
+		vti.setModifyTime(dateTime);			//修改时间
+
+		//执行修改
+		Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmTencentInfMapper.class)
+				.updateByPrimaryKeySelective(vti);
+		//记录日志信息
+		String logInfo = "操作员:"+user.getName() +"修改类目,名称:"+ name +",编号: "+ id;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+
+	/**
+	 * 分类删除
+	 * @param id
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = DELETE_TENCENT, session = true)
+	public MINActionResult deleteTencent(
+			@MINParam(key = "id") String id,
+			MINSession session
+	) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		VmTencentInf ta = new VmTencentInf();
+		ta.setStatus("01"); //删除
+		ta.setId(id);
+		//更新数据
+		Service.lookup(IMINDataBaseService.class).updateByPrimaryKeySelective(VmTencentInfMapper.class, ta);
+		Service.lookup(ILogService.class).logging(session, "删除信息id:" + id);
+		return res;
+	}
+
+
+	@MINAction(value = ASSOCIATED_CUSTOMERS,transaction = IMINTransactionEnum.CMT)
+	public MINActionResult associatedCustomers(
+			@MINParam(key = "id") String id,
+			@MINParam(key = "vciId") String vciId,
+			MINSession session) throws MINBusinessException {
+
+		MINActionResult res = new MINActionResult();
+		//获取当前时间
+		String nowTime = DateUtil.getCurrentDateTimeString();
+		// 获取操作员信息
+		User user = session.getUser();
+		VmTencentInf  vti = new VmTencentInf();
+		vti.setId(id); 							// 公众号id
+		vti.setUserId(vciId); 					// 关联客户id
+		vti.setModifyUser(user.getId());		//修改人
+		vti.setModifyTime(nowTime);				//修改时间
+		// 新增公众号信息,执行插入数据
+		Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmTencentInfMapper.class)
+				.updateByPrimaryKeySelective(vti);
+		// 记录操作日志
+		String logInfo = "操作员:" + user.getName() + "公众号id"+ id +"关联客户,客户编号:" + vciId;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+}

+ 366 - 0
src/main/java/com/minpay/productManage/action/CategoryManageAction.java

@@ -0,0 +1,366 @@
+package com.minpay.productManage.action;
+
+import com.min.util.CommonUtil;
+import com.min.util.DateUtil;
+import com.minpay.common.bean.TreeDto;
+import com.minpay.common.bean.User;
+import com.minpay.common.constant.Constant;
+import com.minpay.common.exception.BusinessCodeException;
+import com.minpay.common.format.IFormatService;
+import com.minpay.common.service.ILogService;
+import com.minpay.common.service.IPublicService;
+import com.minpay.db.table.mapper.VmCategoryInfMapper;
+import com.minpay.db.table.model.VmCategoryInf;
+import com.minpay.db.table.model.VmCategoryInfExample;
+import com.minpay.db.table.own.mapper.CategoryManageMapper;
+import com.startup.minpay.frame.business.IMINAction;
+import com.startup.minpay.frame.business.res.MINActionResult;
+import com.startup.minpay.frame.constant.IMINBusinessConstant;
+import com.startup.minpay.frame.data.format.MINCopyFormat;
+import com.startup.minpay.frame.exception.MINBusinessException;
+import com.startup.minpay.frame.jdbc.MINRowBounds;
+import com.startup.minpay.frame.service.base.IMINDataBaseService;
+import com.startup.minpay.frame.service.base.Service;
+import com.startup.minpay.frame.session.MINSession;
+import com.startup.minpay.frame.target.MINAction;
+import com.startup.minpay.frame.target.MINComponent;
+import com.startup.minpay.frame.target.MINParam;
+import net.sf.json.JSONArray;
+import org.apache.commons.lang.StringUtils;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 类目管理
+ * @author PJL
+ *
+ */
+
+@MINComponent
+public class CategoryManageAction implements IMINAction{
+	
+	/** 查询类目列表 */
+	public final static String	QUERY_CATEGORY_LIST	= 	"queryCategoryList";
+	
+	/** 新增类目 */
+	public final static String  ADD_CATEGORY	=	"addCategory";
+	
+	/** 修改类目 */
+	public final static String  MODIFY_CATEGORY	=	"modifyCategory";
+
+	/** 查询类目树  */
+	public final static String	SELECT_CATEGORY_TREE	=	"selectCategoryTree";
+	
+	/**查询分类--添加/修改商品选择时用**/
+	public final static String QUERY_CATEGORY_FOR_PRODUCT = "queryCategoryForProduct";
+
+	/**删除分类**/
+	public final static String DELETE_CATEGORY_ID 		= "deleteCategoryId";
+	/**
+	 * 查询列表
+	 * @param level			类目级别
+	 * @param parentCode	父级类目
+	 * @param categoryName	类目名称
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = QUERY_CATEGORY_LIST )
+	public  MINActionResult queryCategoryList(
+			@MINParam(key = "level")String level,
+			@MINParam(key = "dates")String dates,
+			@MINParam(key = "state")String state,
+			@MINParam(key = "createUser")String createUser,
+			@MINParam(key = "categoryName")String categoryName,
+			@MINParam(key = "parentCode") String parentCode,
+			@MINParam(key = "page", defaultValue = "1") int page,
+			@MINParam(key = "limit", defaultValue = "5") int limit,
+			MINSession session) throws MINBusinessException{
+		//创建返回值对象
+		MINActionResult res = new MINActionResult();
+		//获取操作员信息
+		User user = session.getUser();
+		//创建分页对象
+		MINRowBounds rows = new MINRowBounds(page, limit);
+		//初始化查询条件
+		Map<String,String> map = new HashMap<String,String>();
+		map.put("state", state);				//类目状态
+		map.put("dates", dates);				//创建时间
+		map.put("createUser", createUser);		//创建人
+		map.put("categoryName", categoryName);	//类目名称
+		map.put("channel", user.getChannel());	//类目渠道
+		//执行查询
+		List<Map<String, Object>> list = Service.lookup(IMINDataBaseService.class)
+						.getMybatisMapper(CategoryManageMapper.class)
+						.queryCategoryList(map, rows);
+		//格式化时间和状态
+		list = Service.lookup(IFormatService.class).formatDateTime(list, "createTime","modifyTime");
+		list = new MINCopyFormat("{state:'stateDesc'}").format(list);
+			list = Service.lookup(IFormatService.class).formatEnum(list,"{stateDesc:'CATEGORY_STATE'}");
+		//返回数据
+		res.set(IMINBusinessConstant.F_PAGING_LAY, list);
+		res.set(IMINBusinessConstant.F_PAGING_COUNT, rows.getCount());
+		return res;
+	}
+	
+	/**
+	 * 新增类目
+	 * @param sort			类目排序
+	 * @param categoryName	类目名称
+	 * @param remarks		备注
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = ADD_CATEGORY )
+	public MINActionResult addCategory(
+			@MINParam(key = "sort")String sort,
+			@MINParam(key = "categoryName")String categoryName,
+			@MINParam(key = "remarks")String remarks,
+			MINSession session) throws MINBusinessException{
+		//创建返回值对象
+		MINActionResult res = new MINActionResult();
+		//获取操作员信息
+		User user = session.getUser();
+		//获取当前时间
+		String dateTime = DateUtil.getCurrentDateTimeString();
+//		//判断类目名称是否重复
+//		ZhCategoryInfExample examp = new ZhCategoryInfExample();
+//		examp.createCriteria().andNameEqualTo(categoryName);
+//		List<ZhCategoryInf> list = Service.lookup(IMINDataBaseService.class)
+//											.getMybatisMapper(ZhCategoryInfMapper.class)
+//											.selectByExample(examp);
+//		if(list.size() > 0){
+//			throw new BusinessCodeException("JINM0604");//该分类名称已经存在,请重新输入 
+//		}
+		//获取类目主键
+		String categoryId = Service.lookup(IPublicService.class).getSequence("VM_CATEGORY_ID");
+		VmCategoryInf inf = new VmCategoryInf();
+		inf.setId(categoryId);			//主键
+		inf.setCode(categoryId);		//code与id相同
+		inf.setName(categoryName);		//类目名称
+		//todo 	渠道(V01:自助售货机)
+		inf.setChannel("V01");//类目渠道
+		inf.setState("0");//默认--0正常
+		inf.setRemarks(remarks);		//备注
+		inf.setCreateUser(user.getId());//创建人
+		inf.setCreateTime(dateTime);	//创建时间
+		inf.setModifyUser(user.getId());//修改人
+		inf.setModifyTime(dateTime);	//修改时间
+		//执行添加类目
+		Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmCategoryInfMapper.class)
+				.insert(inf);
+		//记录日志
+		String logInfo = "操作员:"+user.getName() +"新增类目,名称:"+ categoryName +",编号:"+ categoryId;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+	
+	/**
+	 * 修改类目
+	 * @param categoryId	类目编号
+	 * @param sort			类目排序
+	 * @param categoryName	类目名称
+	 * @param alias			类目别名
+	 * @param initial		类目英文首字母
+	 * @param categoryState	类目状态
+	 * @param categoryImg	类目图片
+	 * @param remarks		备注
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = MODIFY_CATEGORY )
+	public MINActionResult modifyCategory(
+			@MINParam(key = "categoryId")String categoryId,
+			@MINParam(key = "sort")String sort,
+			@MINParam(key = "alias")String alias,
+			@MINParam(key = "initial")String initial,
+			@MINParam(key = "categoryImg")String categoryImg,
+			@MINParam(key = "categoryName")String categoryName,
+			@MINParam(key = "categoryState")String categoryState,
+			@MINParam(key = "remarks")String remarks,
+			MINSession session) throws MINBusinessException{
+		
+		MINActionResult res = new MINActionResult();
+		//获取操作员信息
+		User user = session.getUser();
+		//获取当前时间
+		String dateTime = DateUtil.getCurrentDateTimeString();
+//		//判断类目名称是否重复(排除本条数据)
+//		ZhCategoryInfExample examp = new ZhCategoryInfExample();
+//		examp.createCriteria().andNameEqualTo(categoryName).andIdNotEqualTo(categoryId);
+//		List<ZhCategoryInf> list = Service.lookup(IMINDataBaseService.class)
+//										.getMybatisMapper(ZhCategoryInfMapper.class)
+//										.selectByExample(examp);
+//		if(list.size() > 0){
+//			throw new BusinessCodeException("JINM0604");//该分类名称已经存在,请重新输入 
+//		}
+		VmCategoryInf inf = Service.lookup(IMINDataBaseService.class)
+									.getMybatisMapper(VmCategoryInfMapper.class)
+									.selectByPrimaryKey(categoryId);
+		if(inf == null){
+			throw new BusinessCodeException("JINM0127");//当前类目不存在
+		}		
+		inf.setId(categoryId);
+		if(!CommonUtil.isEmpty(categoryName)){
+			inf.setName(categoryName);		//类目名称
+		}
+		if(!CommonUtil.isEmpty(sort)){
+			inf.setSort(StringUtils.leftPad(String.valueOf(sort), 4 ,"0"));//类目排序
+		}
+		if(!CommonUtil.isEmpty(alias)){
+			inf.setAlias(alias);			//类目别名
+		}
+		if(!CommonUtil.isEmpty(categoryState)){
+			inf.setState(categoryState);	//默认--0正常
+		}
+		if(!CommonUtil.isEmpty(initial)){
+			inf.setInitial(initial);		//类目英文首字母
+		}
+			inf.setCategoryImg(categoryImg);//类目图片
+		if(!CommonUtil.isEmpty(remarks)){
+			inf.setRemarks(remarks);		//备注
+		}
+		inf.setModifyUser(user.getId());//修改人
+		inf.setModifyTime(dateTime);	//修改时间
+		//执行修改
+		Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmCategoryInfMapper.class)
+				.updateByPrimaryKeySelective(inf);
+		//记录日志信息
+		String logInfo = "操作员:"+user.getName() +"修改类目,名称:"+ categoryName +",编号: "+ categoryId;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+
+	/**
+	 * 类目管理-查询类目树
+	 * @param parentCode  	父级类目编号
+	 * @param level 		最底层树类目级别 
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = SELECT_CATEGORY_TREE )
+	public  MINActionResult selectCategoryTree(
+			@MINParam(key = "parentCode")String parentCode,
+			@MINParam(key = "level")String level,
+			MINSession session) throws MINBusinessException{
+		MINActionResult res = new MINActionResult();
+		//获取操作员信息
+		User user = session.getUser();
+		//默认查询一级类目
+		if(CommonUtil.isEmpty(parentCode)){
+			parentCode = "000";
+		}
+		if(CommonUtil.isEmpty(level)){
+			level = "3";
+		}
+		VmCategoryInfExample examp = new VmCategoryInfExample();
+		examp.createCriteria().andChannelEqualTo(user.getChannel()).andStateEqualTo("0").andLevelLessThanOrEqualTo(level);
+		examp.setOrderByClause("VCI_PARENT_CODE, VCI_LEVEL,VCI_SORT");
+		List<VmCategoryInf> list = Service.lookup(IMINDataBaseService.class).selectByExample(VmCategoryInfMapper.class, examp);
+		//list转为JSON
+		JSONArray json = JSONArray.fromObject(getNextTree(list, parentCode));
+		// 需要先放入缓存服务器,如果缓存服务器有,从缓存获取
+		res.set("categoryList", json);
+		return res;
+	}
+	
+	/**
+	 * 查询分类--添加/修改商品选择时用
+	 * @param level			分类级别
+	 * @param categoryName	分类名称
+	 * @param page
+	 * @param limit
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = QUERY_CATEGORY_FOR_PRODUCT)
+	public MINActionResult queryCategoryForProduct(
+			@MINParam(key = "level")String level,
+			@MINParam(key = "keyword")String keyword,
+			@MINParam(key = "categoryName")String categoryName,
+			@MINParam(key = "page", defaultValue = "1") int page,
+			@MINParam(key = "limit", defaultValue = "10") int limit,
+			MINSession session) throws MINBusinessException {
+			
+		MINActionResult res = new MINActionResult();
+		//获取用户信息
+		User user  = session.getUser();
+		//创建分页对象
+		MINRowBounds rows = new MINRowBounds(page, limit);
+		//初始化查询条件
+		Map<String, String> map = new HashMap<String, String>();
+		map.put("state","0");
+		map.put("channel", user.getChannel());
+		//默认查询3级类目
+//		if(CommonUtil.isEmpty(level)){
+//			level = "1";
+//		}
+//		map.put("level", level);
+		map.put("categoryName", keyword);
+		// map.put("categoryName", categoryName);
+		//执行查询
+		List<Map<String, String>> list = Service.lookup(IMINDataBaseService.class)
+												.getMybatisMapper(CategoryManageMapper.class)
+												.queryCategoryForProduct(map,rows);
+		// 设置返回值
+		res.set(IMINBusinessConstant.F_PAGING_LAY, list);
+		res.set(IMINBusinessConstant.F_PAGING_COUNT, rows.getCount());
+		return res;	
+	}
+	
+	private List<TreeDto> getNextTree(List<VmCategoryInf> plist, String partId) {
+		
+		List<TreeDto> rlist = new ArrayList<TreeDto>();
+		for(VmCategoryInf inf : plist) {
+			String nowPartId = inf.getParentCode();
+			
+			if(partId.equals(nowPartId)) {
+				TreeDto nowTree = new TreeDto();
+				if(!CommonUtil.isEmpty(inf.getAlias())){
+					nowTree.setAlias(inf.getAlias());
+				}else{
+					nowTree.setAlias(inf.getName());
+				}
+				nowTree.setLevel(inf.getLevel());
+				nowTree.setId(inf.getCode());
+				nowTree.setName(inf.getName());
+				nowTree.setSpread("true");//展开
+				nowTree.setChildren(getNextTree(plist, inf.getCode()));
+				rlist.add(nowTree);
+			}
+			else if(rlist.size() > 0) {
+				break;
+			}
+		}
+		return rlist;
+	}
+
+	/**
+	 * 分类删除
+	 * @param id
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = DELETE_CATEGORY_ID, session = true)
+	public MINActionResult deleteCategoryId(
+			@MINParam(key = "id") String id,
+			MINSession session
+	) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		//状态置为停用
+		String state = Constant.NEWS_STATUS_STOP;
+		VmCategoryInf ta = new VmCategoryInf();
+		ta.setState(state);
+		ta.setId(id);
+		//更新数据
+		Service.lookup(IMINDataBaseService.class).updateByPrimaryKeySelective(VmCategoryInfMapper.class, ta);
+		Service.lookup(ILogService.class).logging(session, "删除信息id:" + id);
+		return res;
+	}
+}

+ 385 - 0
src/main/java/com/minpay/productManage/action/ProductManageAction.java

@@ -0,0 +1,385 @@
+package com.minpay.productManage.action;
+
+import com.min.util.CommonUtil;
+import com.minpay.common.bean.User;
+import com.minpay.common.exception.BusinessCodeException;
+import com.minpay.common.format.IFormatService;
+import com.minpay.common.service.ILogService;
+import com.minpay.common.service.IPublicService;
+import com.minpay.common.util.DateUtil;
+import com.minpay.db.table.mapper.VmProductInfMapper;
+import com.minpay.db.table.model.VmProductInf;
+import com.minpay.db.table.own.mapper.ProductManageMapper;
+import com.startup.minpay.frame.business.IMINAction;
+import com.startup.minpay.frame.business.res.MINActionResult;
+import com.startup.minpay.frame.constant.IMINBusinessConstant;
+import com.startup.minpay.frame.constant.IMINTransactionEnum;
+import com.startup.minpay.frame.data.format.MINCopyFormat;
+import com.startup.minpay.frame.exception.MINBusinessException;
+import com.startup.minpay.frame.jdbc.MINRowBounds;
+import com.startup.minpay.frame.service.base.IMINDataBaseService;
+import com.startup.minpay.frame.service.base.Service;
+import com.startup.minpay.frame.session.MINSession;
+import com.startup.minpay.frame.target.MINAction;
+import com.startup.minpay.frame.target.MINComponent;
+import com.startup.minpay.frame.target.MINParam;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 商品管理
+ * @author pangjl
+ *  20190325
+ */
+@MINComponent
+public class ProductManageAction implements IMINAction {
+	
+	/**查看商品*/
+	public final static String QUERY_PRODUCT_INF = "queryProductInf";
+	/**查看正常状态商品*/
+	public final static String QUERY_PRODUCTZ = "queryProductz";
+	/**查看商品规格详情(依据商品主键)*/
+	public final static String QUERY_SPEC_BY_PROID = "querySpecByProid";
+	/** 添加商品*/
+	public final static String ADD_PRODUCT_INF = "addProductInf";
+	/** 修改商品*/
+	public final static String MODIFY_PRODUCT_INF = "modifyProductInf";
+	/** 更改商品状态*/
+	public final static String MODIFY_PRODUCT_STATE = "modifyProductState";
+	private boolean contains;
+	
+	
+	/**
+	 * 查看商品
+	 * @param name            	商品名称
+	 * @param brandName		  	品牌名称
+	 * @param model				商品型号
+	 * @param createUser		添加人
+	 * @param dates				添加时间
+	 * @param page
+	 * @param limit
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = QUERY_PRODUCT_INF)
+	public MINActionResult queryProductInf(
+			@MINParam(key = "name") String name,
+			@MINParam(key = "model") String model,
+			@MINParam(key = "dates")String dates,
+			@MINParam(key = "state") String state,
+			@MINParam(key = "brandName") String brandName,
+			@MINParam(key = "categoryId") String categoryId,
+			@MINParam(key = "categoryName") String categoryName,
+			@MINParam(key = "createUser") String createUser,
+			@MINParam(key = "page", defaultValue = "1") int page,
+			@MINParam(key = "limit", defaultValue = "3") int limit,
+			MINSession session) throws MINBusinessException {
+		
+		MINActionResult res = new MINActionResult();
+		User user = session.getUser();
+		Map<String, String> map = new HashMap<String, String>();
+		//按商品名称,商品品牌进行模糊查询
+		map.put("name", name);	//商品名称
+		map.put("state", state);//状态
+		map.put("model",model);
+		map.put("dates",dates);
+		map.put("brandName",brandName);
+		map.put("createUser",createUser);
+		map.put("channel", user.getChannel());//渠道号
+		map.put("category", categoryId);//分类
+		//验证操作员权限
+		if("00".equals(user.getIdentity())){
+			map.put("userId",user.getId());
+			map.put("roId","10000001");
+		}
+/*		if("10000002".equals(user.getRoleId())){
+			map.put("userId",user.getId());
+		}*/
+		//分页
+		MINRowBounds rows = new MINRowBounds(page, limit);
+		//执行查询
+		List<Map<String, String>> list = Service.lookup(IMINDataBaseService.class)
+												.getMybatisMapper(ProductManageMapper.class)
+												.queryProductInf(map, rows);
+		//格式化时间和状态
+		list = Service.lookup(IFormatService.class).formatDateTime(list, "createTime","modifyTime");
+		list = new MINCopyFormat("{history:'historyDesc',state:'stateDesc',source:'sourceDesc'}").format(list);
+		list = Service.lookup(IFormatService.class).formatEnum(list,"{historyDesc:'PRODUCT_HISTORY',stateDesc:'PRODUCT_STATE',sourceDesc:'PRODUCT_SOURCE'}");
+		//返回数据
+		res.set(IMINBusinessConstant.F_PAGING_LAY, list);
+		res.set(IMINBusinessConstant.F_PAGING_COUNT,rows.getMaxRows());
+		return res;
+	}
+	
+	/**
+	 * 添加商品
+	 * @param name			商品名称
+	 * @param categoryId	分类id
+	 * @param brandId		品牌id
+	 * @param number		商品数量
+	 * @param describe		商品描述
+	 * @param piclist		多图片
+	 * @param sort			排序
+	 * @param fmpic			封面图片    
+	 * @param unit			商品单位             
+	 * @param masterMap		商品主图         
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = ADD_PRODUCT_INF,transaction = IMINTransactionEnum.CMT)
+	public MINActionResult addProductInf(
+			@MINParam(key = "name") String name,
+			@MINParam(key = "categoryId") String categoryId, 
+			@MINParam(key = "brandId") String brandId, 
+			@MINParam(key = "number") String number, 
+			@MINParam(key = "describe") String describe,
+			@MINParam(key = "piclist") String piclist, 
+			@MINParam(key = "sort") String sort,
+			@MINParam(key = "address") String address,
+			@MINParam(key = "fmpic") String fmpic, 
+			@MINParam(key = "unit") String unit,
+			@MINParam(key = "masterMap") String masterMap,
+			@MINParam(key = "specIds") String specIds,
+			MINSession session) throws MINBusinessException {
+		
+		MINActionResult res = new MINActionResult();
+		//获取当前时间
+		String nowTime = DateUtil.getCurrentDateTimeString();
+		// 获取操作员信息
+		User user = session.getUser();
+		// 获取商品主键
+		String id = Service.lookup(IPublicService.class).getSequence("VM_PRODUCT_ID");
+		VmProductInf pro = new VmProductInf();
+		pro.setId(id); 							// 商品id
+		pro.setName(name); 						// 商品名称
+		pro.setDescribe(describe); 				// 商品描述
+		pro.setCategoryId(categoryId); 			// 分类id
+		pro.setFmpic(fmpic); 						// 封面图片
+		pro.setState("0"); 	// 默认状态正常
+		pro.setChannel(user.getChannel()); 		// 渠道号
+		pro.setMasterMap(masterMap);              	//商品主图
+		/*String piclist2 = piclist.substring(0, piclist.length() - 1);
+		String imgss[] = piclist2.split(",");*/
+/*		// 至少上传2张图片
+		if (imgss.length < 2) {
+			throw new MINBusinessException("至少上传2张图片");
+		}
+		// 最多上传3张图片
+		else if (imgss.length > 3) {
+			throw new MINBusinessException("至多上传3张图片");
+		}*/
+		pro.setPiclist(piclist); 					// 多图片
+		pro.setCreateUser(user.getId()); 			// 创建人
+		pro.setCreateTime(nowTime); 				// 创建时间
+		pro.setModifyUser(user.getId());			//修改人
+		pro.setModifyTime(nowTime);					//修改时间
+		// 新增商品信息,执行插入数据x
+		Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmProductInfMapper.class)
+				.insertSelective(pro);
+		// 记录操作日志
+		String logInfo = "操作员:" + user.getName() + "添加商品,商品编号:" + id;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+	
+	/**
+	 * 修改商品
+	 * @param id			商品编号
+	 * @param name			商品名称
+	 * @param categoryId	分类id
+	 * @param brandId		品牌id
+	 * @param number		商品数量
+	 * @param describe		商品描述
+	 * @param piclist		多图片
+	 * @param sort			排序
+	 * @param fmpic			封面图片    
+	 * @param masterMap		商品主图
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = MODIFY_PRODUCT_INF,transaction = IMINTransactionEnum.CMT)
+	public MINActionResult modifyProductInf(
+			@MINParam(key = "id") String id,
+			@MINParam(key = "name") String name,
+			@MINParam(key = "categoryId") String categoryId, 
+			@MINParam(key = "brandId") String brandId, 
+			@MINParam(key = "number") String number, 
+			@MINParam(key = "describe") String describe,
+			@MINParam(key = "piclist") String piclist, 
+			@MINParam(key = "sort") String sort,
+			@MINParam(key = "fmpic") String fmpic, 
+			@MINParam(key = "masterMap") String masterMap,
+			@MINParam(key = "specIds") String specIds,
+			MINSession session) throws MINBusinessException {
+		
+		MINActionResult res = new MINActionResult();
+		//获取当前时间
+		String nowTime = DateUtil.getCurrentDateTimeString();
+		// 获取操作员信息
+		User user = session.getUser();
+		// 获取要修改的商品信息
+		VmProductInf pro = Service.lookup(IMINDataBaseService.class)
+								.getMybatisMapper(VmProductInfMapper.class)
+								.selectByPrimaryKey(id);
+		if(pro == null) {
+			throw new BusinessCodeException("JINM0121");//商品信息异常
+		}
+		pro.setId(id); 							// 商品id
+		if(!CommonUtil.isEmpty(name)){
+			pro.setName(name); 					// 商品名称
+		}
+		if(!CommonUtil.isEmpty(describe)){
+			pro.setDescribe(describe); 			// 商品描述
+		}
+		if(!CommonUtil.isEmpty(categoryId)){
+			pro.setCategoryId(categoryId); 		// 分类id
+		}
+		if(!CommonUtil.isEmpty(fmpic)){
+			pro.setFmpic(fmpic); 				// 封面图片
+		}
+		if(!CommonUtil.isEmpty(masterMap)){
+			pro.setMasterMap(masterMap);        //商品主图
+		}
+		/*String piclist2 = piclist.substring(0, piclist.length() - 1);
+		String imgss[] = piclist2.split(",");*/
+		/*// 至少上传2张图片
+		if (imgss.length < 2) {
+			throw new MINBusinessException("至少上传2张图片");
+		}
+		// 最多上传3张图片
+		else if (imgss.length > 3) {
+			throw new MINBusinessException("至多上传3张图片");
+		}
+		if(!CommonUtil.isEmpty(piclist)){
+			pro.setPiclist(piclist); 				// 多图片
+		}*/
+		pro.setModifyUser(user.getId());			//修改人
+		pro.setModifyTime(nowTime);					//修改时间
+		// 修改商品信息,执行修改
+		Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmProductInfMapper.class)
+				.updateByPrimaryKeySelective(pro);
+		// 记录操作日志
+		String logInfo = "操作员:" + user.getName() + "修改商品,商品编号:" + id;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+	
+	
+	
+	/**
+	 * 更改商品状态
+	 * @param proId		商品Id
+	 * @param proState	商品状态
+	 * @param xiaoliang	商品销量
+	 * @param session
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = MODIFY_PRODUCT_STATE,transaction = IMINTransactionEnum.CMT)
+	public MINActionResult modifyProductState(
+			@MINParam(key = "proId") String proId, 
+			@MINParam(key = "proState") String proState, 
+			@MINParam(key = "xiaoliang") String xiaoliang, 
+			MINSession session) throws MINBusinessException {
+		MINActionResult res = new MINActionResult();
+		String nowTime = DateUtil.getCurrentDateTimeString();
+		// 获取操作员信息
+		User user = session.getUser();
+		// 获取渠道
+	    String channel = user.getChannel();
+	    VmProductInf proInf = Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmProductInfMapper.class).selectByPrimaryKey(proId);
+		if(proInf == null ){
+			throw new BusinessCodeException("JINM0123");//商品信息异常
+		}
+		proInf.setId(proId); 							// 商品id
+		//000-恢复,111-停售
+		if("000".equals(proState)){
+			proInf.setState("0"); 	// 商品状态:正常
+			proState = "0";
+		}else if("111".equals(proState)){
+			proInf.setState("1");//商品状态:停售
+			proState = "1";
+		}else if("222".equals(proState)){
+			proInf.setState("2");		//商品状态:删除
+			proState = "2";
+		}
+
+		proInf.setModifyUser(user.getId()); 			// 修改人
+		proInf.setModifyTime(nowTime); 					// 修改时间
+		// 执行修改
+		Service.lookup(IMINDataBaseService.class)
+				.getMybatisMapper(VmProductInfMapper.class)
+				.updateByPrimaryKeySelective(proInf);
+		// 记录操作日志
+		String logInfo = "操作员:" + user.getName() + "更改商品状态,商品编号:" + proId+",商品状态:"+proState;
+		Service.lookup(ILogService.class).logging(session, logInfo);
+		return res;
+	}
+	/**
+	 * 查看商品
+	 * @param name            	商品名称
+	 * @param brandName		  	品牌名称
+	 * @param model				商品型号
+	 * @param createUser		添加人
+	 * @param dates				添加时间
+	 * @param page
+	 * @param limit
+	 * @return
+	 * @throws MINBusinessException
+	 */
+	@MINAction(value = QUERY_PRODUCTZ)
+	public MINActionResult queryProductz(
+			@MINParam(key = "name") String name,
+			@MINParam(key = "model") String model,
+			@MINParam(key = "dates")String dates,
+			@MINParam(key = "state") String state,
+			@MINParam(key = "brandName") String brandName,
+			@MINParam(key = "categoryId") String categoryId,
+			@MINParam(key = "createUser") String createUser,
+			@MINParam(key = "page", defaultValue = "1") int page,
+			@MINParam(key = "limit", defaultValue = "3") int limit,
+			MINSession session) throws MINBusinessException {
+		
+		MINActionResult res = new MINActionResult();
+		User user = session.getUser();
+		Map<String, String> map = new HashMap<String, String>();
+		//按商品名称,商品品牌进行模糊查询
+		map.put("name", name);	//商品名称
+		map.put("state", state);//状态
+		map.put("model",model);
+		map.put("dates",dates);
+		map.put("brandName",brandName);
+		map.put("createUser",createUser);
+		map.put("channel", user.getChannel());//渠道号
+		map.put("category", categoryId);//分类
+		//验证操作员权限
+//		if("00".equals(user.getIdentity())){
+//			map.put("userId",user.getId());
+//		}
+/*		if("10000002".equals(user.getRoleId())){
+			map.put("userId",user.getId());
+		}*/
+		//分页
+		MINRowBounds rows = new MINRowBounds(page, limit);
+		//执行查询
+		List<Map<String, String>> list = Service.lookup(IMINDataBaseService.class)
+												.getMybatisMapper(ProductManageMapper.class)
+												.queryProductz(map, rows);
+		//格式化时间和状态
+		list = Service.lookup(IFormatService.class).formatDateTime(list, "createTime","modifyTime");
+		list = new MINCopyFormat("{history:'historyDesc',state:'stateDesc',source:'sourceDesc'}").format(list);
+		list = Service.lookup(IFormatService.class).formatEnum(list,"{historyDesc:'PRODUCT_HISTORY',stateDesc:'PRODUCT_STATE',sourceDesc:'PRODUCT_SOURCE'}");
+		//返回数据
+		res.set(IMINBusinessConstant.F_PAGING_LAY, list);
+		res.set(IMINBusinessConstant.F_PAGING_COUNT,rows.getMaxRows());
+		return res;
+	}
+	
+}