Kaynağa Gözat

Merge remote-tracking branch 'origin/master'

xiaoqiao 8 ay önce
ebeveyn
işleme
20481d50c1

+ 31 - 0
src/main/java/com/ghsc/partybuild/mapper/ShykPartytargetMapper.java

@@ -0,0 +1,31 @@
+package com.ghsc.partybuild.mapper;
+
+import com.ghsc.partybuild.model.ShykPartytarget;
+import com.ghsc.partybuild.model.ShykPartytargetExample;
+import com.ghsc.partybuild.model.ShykPartytargetKey;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface ShykPartytargetMapper {
+    long countByExample(ShykPartytargetExample example);
+
+    int deleteByExample(ShykPartytargetExample example);
+
+    int deleteByPrimaryKey(ShykPartytargetKey key);
+
+    int insert(ShykPartytarget record);
+
+    int insertSelective(ShykPartytarget record);
+
+    List<ShykPartytarget> selectByExample(ShykPartytargetExample example);
+
+    ShykPartytarget selectByPrimaryKey(ShykPartytargetKey key);
+
+    int updateByExampleSelective(@Param("record") ShykPartytarget record, @Param("example") ShykPartytargetExample example);
+
+    int updateByExample(@Param("record") ShykPartytarget record, @Param("example") ShykPartytargetExample example);
+
+    int updateByPrimaryKeySelective(ShykPartytarget record);
+
+    int updateByPrimaryKey(ShykPartytarget record);
+}

+ 55 - 0
src/main/java/com/ghsc/partybuild/model/ShykPartytarget.java

@@ -0,0 +1,55 @@
+package com.ghsc.partybuild.model;
+
+import java.util.Date;
+
+public class ShykPartytarget extends ShykPartytargetKey {
+    private Integer targettype;
+
+    private Date createtime;
+
+    private String createuserid;
+
+    private Date updatetime;
+
+    private String updateuserid;
+
+    public Integer getTargettype() {
+        return targettype;
+    }
+
+    public void setTargettype(Integer targettype) {
+        this.targettype = targettype;
+    }
+
+    public Date getCreatetime() {
+        return createtime;
+    }
+
+    public void setCreatetime(Date createtime) {
+        this.createtime = createtime;
+    }
+
+    public String getCreateuserid() {
+        return createuserid;
+    }
+
+    public void setCreateuserid(String createuserid) {
+        this.createuserid = createuserid == null ? null : createuserid.trim();
+    }
+
+    public Date getUpdatetime() {
+        return updatetime;
+    }
+
+    public void setUpdatetime(Date updatetime) {
+        this.updatetime = updatetime;
+    }
+
+    public String getUpdateuserid() {
+        return updateuserid;
+    }
+
+    public void setUpdateuserid(String updateuserid) {
+        this.updateuserid = updateuserid == null ? null : updateuserid.trim();
+    }
+}

+ 651 - 0
src/main/java/com/ghsc/partybuild/model/ShykPartytargetExample.java

@@ -0,0 +1,651 @@
+package com.ghsc.partybuild.model;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class ShykPartytargetExample {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    public ShykPartytargetExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andPartycodeIsNull() {
+            addCriterion("partyCode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeIsNotNull() {
+            addCriterion("partyCode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeEqualTo(String value) {
+            addCriterion("partyCode =", value, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeNotEqualTo(String value) {
+            addCriterion("partyCode <>", value, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeGreaterThan(String value) {
+            addCriterion("partyCode >", value, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeGreaterThanOrEqualTo(String value) {
+            addCriterion("partyCode >=", value, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeLessThan(String value) {
+            addCriterion("partyCode <", value, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeLessThanOrEqualTo(String value) {
+            addCriterion("partyCode <=", value, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeLike(String value) {
+            addCriterion("partyCode like", value, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeNotLike(String value) {
+            addCriterion("partyCode not like", value, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeIn(List<String> values) {
+            addCriterion("partyCode in", values, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeNotIn(List<String> values) {
+            addCriterion("partyCode not in", values, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeBetween(String value1, String value2) {
+            addCriterion("partyCode between", value1, value2, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartycodeNotBetween(String value1, String value2) {
+            addCriterion("partyCode not between", value1, value2, "partycode");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeIsNull() {
+            addCriterion("shykType is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeIsNotNull() {
+            addCriterion("shykType is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeEqualTo(Integer value) {
+            addCriterion("shykType =", value, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeNotEqualTo(Integer value) {
+            addCriterion("shykType <>", value, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeGreaterThan(Integer value) {
+            addCriterion("shykType >", value, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("shykType >=", value, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeLessThan(Integer value) {
+            addCriterion("shykType <", value, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeLessThanOrEqualTo(Integer value) {
+            addCriterion("shykType <=", value, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeIn(List<Integer> values) {
+            addCriterion("shykType in", values, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeNotIn(List<Integer> values) {
+            addCriterion("shykType not in", values, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeBetween(Integer value1, Integer value2) {
+            addCriterion("shykType between", value1, value2, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andShyktypeNotBetween(Integer value1, Integer value2) {
+            addCriterion("shykType not between", value1, value2, "shyktype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeIsNull() {
+            addCriterion("targetType is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeIsNotNull() {
+            addCriterion("targetType is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeEqualTo(Integer value) {
+            addCriterion("targetType =", value, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeNotEqualTo(Integer value) {
+            addCriterion("targetType <>", value, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeGreaterThan(Integer value) {
+            addCriterion("targetType >", value, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("targetType >=", value, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeLessThan(Integer value) {
+            addCriterion("targetType <", value, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeLessThanOrEqualTo(Integer value) {
+            addCriterion("targetType <=", value, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeIn(List<Integer> values) {
+            addCriterion("targetType in", values, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeNotIn(List<Integer> values) {
+            addCriterion("targetType not in", values, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeBetween(Integer value1, Integer value2) {
+            addCriterion("targetType between", value1, value2, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andTargettypeNotBetween(Integer value1, Integer value2) {
+            addCriterion("targetType not between", value1, value2, "targettype");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeIsNull() {
+            addCriterion("createTime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeIsNotNull() {
+            addCriterion("createTime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeEqualTo(Date value) {
+            addCriterion("createTime =", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotEqualTo(Date value) {
+            addCriterion("createTime <>", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThan(Date value) {
+            addCriterion("createTime >", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("createTime >=", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThan(Date value) {
+            addCriterion("createTime <", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
+            addCriterion("createTime <=", value, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeIn(List<Date> values) {
+            addCriterion("createTime in", values, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotIn(List<Date> values) {
+            addCriterion("createTime not in", values, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeBetween(Date value1, Date value2) {
+            addCriterion("createTime between", value1, value2, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
+            addCriterion("createTime not between", value1, value2, "createtime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridIsNull() {
+            addCriterion("createUserId is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridIsNotNull() {
+            addCriterion("createUserId is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridEqualTo(String value) {
+            addCriterion("createUserId =", value, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridNotEqualTo(String value) {
+            addCriterion("createUserId <>", value, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridGreaterThan(String value) {
+            addCriterion("createUserId >", value, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridGreaterThanOrEqualTo(String value) {
+            addCriterion("createUserId >=", value, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridLessThan(String value) {
+            addCriterion("createUserId <", value, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridLessThanOrEqualTo(String value) {
+            addCriterion("createUserId <=", value, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridLike(String value) {
+            addCriterion("createUserId like", value, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridNotLike(String value) {
+            addCriterion("createUserId not like", value, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridIn(List<String> values) {
+            addCriterion("createUserId in", values, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridNotIn(List<String> values) {
+            addCriterion("createUserId not in", values, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridBetween(String value1, String value2) {
+            addCriterion("createUserId between", value1, value2, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateuseridNotBetween(String value1, String value2) {
+            addCriterion("createUserId not between", value1, value2, "createuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNull() {
+            addCriterion("updateTime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNotNull() {
+            addCriterion("updateTime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeEqualTo(Date value) {
+            addCriterion("updateTime =", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotEqualTo(Date value) {
+            addCriterion("updateTime <>", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThan(Date value) {
+            addCriterion("updateTime >", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("updateTime >=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThan(Date value) {
+            addCriterion("updateTime <", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
+            addCriterion("updateTime <=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIn(List<Date> values) {
+            addCriterion("updateTime in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotIn(List<Date> values) {
+            addCriterion("updateTime not in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
+            addCriterion("updateTime between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
+            addCriterion("updateTime not between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridIsNull() {
+            addCriterion("updateUserId is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridIsNotNull() {
+            addCriterion("updateUserId is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridEqualTo(String value) {
+            addCriterion("updateUserId =", value, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridNotEqualTo(String value) {
+            addCriterion("updateUserId <>", value, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridGreaterThan(String value) {
+            addCriterion("updateUserId >", value, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridGreaterThanOrEqualTo(String value) {
+            addCriterion("updateUserId >=", value, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridLessThan(String value) {
+            addCriterion("updateUserId <", value, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridLessThanOrEqualTo(String value) {
+            addCriterion("updateUserId <=", value, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridLike(String value) {
+            addCriterion("updateUserId like", value, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridNotLike(String value) {
+            addCriterion("updateUserId not like", value, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridIn(List<String> values) {
+            addCriterion("updateUserId in", values, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridNotIn(List<String> values) {
+            addCriterion("updateUserId not in", values, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridBetween(String value1, String value2) {
+            addCriterion("updateUserId between", value1, value2, "updateuserid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateuseridNotBetween(String value1, String value2) {
+            addCriterion("updateUserId not between", value1, value2, "updateuserid");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 23 - 0
src/main/java/com/ghsc/partybuild/model/ShykPartytargetKey.java

@@ -0,0 +1,23 @@
+package com.ghsc.partybuild.model;
+
+public class ShykPartytargetKey {
+    private String partycode;
+
+    private Integer shyktype;
+
+    public String getPartycode() {
+        return partycode;
+    }
+
+    public void setPartycode(String partycode) {
+        this.partycode = partycode == null ? null : partycode.trim();
+    }
+
+    public Integer getShyktype() {
+        return shyktype;
+    }
+
+    public void setShyktype(Integer shyktype) {
+        this.shyktype = shyktype;
+    }
+}

+ 243 - 0
src/main/resources/mapping/ShykPartytargetMapper.xml

@@ -0,0 +1,243 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ghsc.partybuild.mapper.ShykPartytargetMapper">
+  <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.ShykPartytarget">
+    <id column="partyCode" jdbcType="VARCHAR" property="partycode" />
+    <id column="shykType" jdbcType="INTEGER" property="shyktype" />
+    <result column="targetType" jdbcType="INTEGER" property="targettype" />
+    <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
+    <result column="createUserId" jdbcType="VARCHAR" property="createuserid" />
+    <result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
+    <result column="updateUserId" jdbcType="VARCHAR" property="updateuserid" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    partyCode, shykType, targetType, createTime, createUserId, updateTime, updateUserId
+  </sql>
+  <select id="selectByExample" parameterType="com.ghsc.partybuild.model.ShykPartytargetExample" resultMap="BaseResultMap">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from shyk_partytarget
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="com.ghsc.partybuild.model.ShykPartytargetKey" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from shyk_partytarget
+    where partyCode = #{partycode,jdbcType=VARCHAR}
+      and shykType = #{shyktype,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="com.ghsc.partybuild.model.ShykPartytargetKey">
+    delete from shyk_partytarget
+    where partyCode = #{partycode,jdbcType=VARCHAR}
+      and shykType = #{shyktype,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.ShykPartytargetExample">
+    delete from shyk_partytarget
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.ghsc.partybuild.model.ShykPartytarget">
+    insert into shyk_partytarget (partyCode, shykType, targetType, 
+      createTime, createUserId, updateTime, 
+      updateUserId)
+    values (#{partycode,jdbcType=VARCHAR}, #{shyktype,jdbcType=INTEGER}, #{targettype,jdbcType=INTEGER}, 
+      #{createtime,jdbcType=TIMESTAMP}, #{createuserid,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, 
+      #{updateuserid,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.ShykPartytarget">
+    insert into shyk_partytarget
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="partycode != null">
+        partyCode,
+      </if>
+      <if test="shyktype != null">
+        shykType,
+      </if>
+      <if test="targettype != null">
+        targetType,
+      </if>
+      <if test="createtime != null">
+        createTime,
+      </if>
+      <if test="createuserid != null">
+        createUserId,
+      </if>
+      <if test="updatetime != null">
+        updateTime,
+      </if>
+      <if test="updateuserid != null">
+        updateUserId,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="partycode != null">
+        #{partycode,jdbcType=VARCHAR},
+      </if>
+      <if test="shyktype != null">
+        #{shyktype,jdbcType=INTEGER},
+      </if>
+      <if test="targettype != null">
+        #{targettype,jdbcType=INTEGER},
+      </if>
+      <if test="createtime != null">
+        #{createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createuserid != null">
+        #{createuserid,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null">
+        #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateuserid != null">
+        #{updateuserid,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.ghsc.partybuild.model.ShykPartytargetExample" resultType="java.lang.Long">
+    select count(*) from shyk_partytarget
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    update shyk_partytarget
+    <set>
+      <if test="record.partycode != null">
+        partyCode = #{record.partycode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.shyktype != null">
+        shykType = #{record.shyktype,jdbcType=INTEGER},
+      </if>
+      <if test="record.targettype != null">
+        targetType = #{record.targettype,jdbcType=INTEGER},
+      </if>
+      <if test="record.createtime != null">
+        createTime = #{record.createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.createuserid != null">
+        createUserId = #{record.createuserid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.updatetime != null">
+        updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.updateuserid != null">
+        updateUserId = #{record.updateuserid,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    update shyk_partytarget
+    set partyCode = #{record.partycode,jdbcType=VARCHAR},
+      shykType = #{record.shyktype,jdbcType=INTEGER},
+      targetType = #{record.targettype,jdbcType=INTEGER},
+      createTime = #{record.createtime,jdbcType=TIMESTAMP},
+      createUserId = #{record.createuserid,jdbcType=VARCHAR},
+      updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
+      updateUserId = #{record.updateuserid,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.ghsc.partybuild.model.ShykPartytarget">
+    update shyk_partytarget
+    <set>
+      <if test="targettype != null">
+        targetType = #{targettype,jdbcType=INTEGER},
+      </if>
+      <if test="createtime != null">
+        createTime = #{createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createuserid != null">
+        createUserId = #{createuserid,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null">
+        updateTime = #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateuserid != null">
+        updateUserId = #{updateuserid,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where partyCode = #{partycode,jdbcType=VARCHAR}
+      and shykType = #{shyktype,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.ShykPartytarget">
+    update shyk_partytarget
+    set targetType = #{targettype,jdbcType=INTEGER},
+      createTime = #{createtime,jdbcType=TIMESTAMP},
+      createUserId = #{createuserid,jdbcType=VARCHAR},
+      updateTime = #{updatetime,jdbcType=TIMESTAMP},
+      updateUserId = #{updateuserid,jdbcType=VARCHAR}
+    where partyCode = #{partycode,jdbcType=VARCHAR}
+      and shykType = #{shyktype,jdbcType=INTEGER}
+  </update>
+</mapper>