Commit c01fdc3c by zhengxj

finish 修正updateby,createby数据类型 on 20190409 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19422 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 60e63c96
......@@ -116,6 +116,14 @@
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
......
......@@ -51,7 +51,7 @@ import com.glsx.usercenter.utils.ShiroUtil;
*
*/
@RestController
@RequestMapping("/organization")
@RequestMapping("/organization")
public class OrganizationController extends BaseController{
......@@ -103,7 +103,7 @@ public class OrganizationController extends BaseController{
public ResultObject add( SysOrganization sysOrganization) {
Integer userId=ShiroUtil.getUserId();
sysOrganization.setCreateTime(new Date());
sysOrganization.setCreateBy(ShiroUtil.getUsername());
sysOrganization.setCreateBy(userId);
if(sysOrganization.getOrgType()==null){
sysOrganization.setOrgType((byte)1);
}
......@@ -143,4 +143,6 @@ public class OrganizationController extends BaseController{
return new ResultObject(ResultCodeEnum.SUCCESS.getCode() , ResultCodeEnum.SUCCESS.getMsg(),sysOrganization);
}
}
......@@ -30,9 +30,9 @@ public class SysMenu {
private String remark;
private String updateBy;
private Integer updateBy;
private String createBy;
private Integer createBy;
private Byte label;
......@@ -167,20 +167,20 @@ public class SysMenu {
this.remark = remark == null ? null : remark.trim();
}
public String getUpdateBy() {
public Integer getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
public void setUpdateBy(Integer updateBy) {
this.updateBy = updateBy;
}
public String getCreateBy() {
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
public Byte getLabel() {
......
......@@ -945,62 +945,62 @@ public class SysMenuExample {
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
public Criteria andUpdateByEqualTo(Integer value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
public Criteria andUpdateByNotEqualTo(Integer value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
public Criteria andUpdateByGreaterThan(Integer value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
public Criteria andUpdateByGreaterThanOrEqualTo(Integer value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
public Criteria andUpdateByLessThan(Integer value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
public Criteria andUpdateByLessThanOrEqualTo(Integer value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
public Criteria andUpdateByLike(Integer value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
public Criteria andUpdateByNotLike(Integer value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
public Criteria andUpdateByIn(List<Integer> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
public Criteria andUpdateByNotIn(List<Integer> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
public Criteria andUpdateByBetween(Integer value1, Integer value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
public Criteria andUpdateByNotBetween(Integer value1, Integer value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
......@@ -1015,62 +1015,62 @@ public class SysMenuExample {
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
public Criteria andCreateByEqualTo(Integer value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
public Criteria andCreateByNotEqualTo(Integer value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
public Criteria andCreateByGreaterThan(Integer value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
public Criteria andCreateByGreaterThanOrEqualTo(Integer value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
public Criteria andCreateByLessThan(Integer value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
public Criteria andCreateByLessThanOrEqualTo(Integer value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
public Criteria andCreateByLike(Integer value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
public Criteria andCreateByNotLike(Integer value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
public Criteria andCreateByIn(List<Integer> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
public Criteria andCreateByNotIn(List<Integer> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
public Criteria andCreateByBetween(Integer value1, Integer value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
public Criteria andCreateByNotBetween(Integer value1, Integer value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
......
......@@ -25,9 +25,9 @@ public class SysOrganization {
private String remark;
private String updateBy;
private Integer updateBy;
private String createBy;
private Integer createBy;
private Byte label;
......@@ -129,20 +129,20 @@ public class SysOrganization {
this.remark = remark == null ? null : remark.trim();
}
public String getUpdateBy() {
public Integer getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
public void setUpdateBy(Integer updateBy) {
this.updateBy = updateBy ;
}
public String getCreateBy() {
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
public void setCreateBy(Integer createBy) {
this.createBy = createBy ;
}
public Byte getLabel() {
......
......@@ -675,62 +675,62 @@ public class SysOrganizationExample {
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
public Criteria andUpdateByEqualTo(Integer value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
public Criteria andUpdateByNotEqualTo(Integer value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
public Criteria andUpdateByGreaterThan(Integer value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
public Criteria andUpdateByGreaterThanOrEqualTo(Integer value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
public Criteria andUpdateByLessThan(Integer value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
public Criteria andUpdateByLessThanOrEqualTo(Integer value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
public Criteria andUpdateByLike(Integer value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
public Criteria andUpdateByNotLike(Integer value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
public Criteria andUpdateByIn(List<Integer> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
public Criteria andUpdateByNotIn(List<Integer> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
public Criteria andUpdateByBetween(Integer value1, Integer value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
public Criteria andUpdateByNotBetween(Integer value1, Integer value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
......@@ -745,62 +745,62 @@ public class SysOrganizationExample {
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
public Criteria andCreateByEqualTo(Integer value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
public Criteria andCreateByNotEqualTo(Integer value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
public Criteria andCreateByGreaterThan(Integer value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
public Criteria andCreateByGreaterThanOrEqualTo(Integer value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
public Criteria andCreateByLessThan(Integer value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
public Criteria andCreateByLessThanOrEqualTo(Integer value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
public Criteria andCreateByLike(Integer value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
public Criteria andCreateByNotLike(Integer value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
public Criteria andCreateByIn(List<Integer> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
public Criteria andCreateByNotIn(List<Integer> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
public Criteria andCreateByBetween(Integer value1, Integer value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
public Criteria andCreateByNotBetween(Integer value1, Integer value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
......
......@@ -15,8 +15,8 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="update_by" jdbcType="INTEGER" property="updateBy" />
<result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="label" jdbcType="TINYINT" property="label" />
<result column="menu_group" jdbcType="VARCHAR" property="menuGroup" />
<result column="func_type" jdbcType="VARCHAR" property="funcType" />
......@@ -94,7 +94,7 @@
#{rightDes,jdbcType=VARCHAR}, #{requestAdd,jdbcType=VARCHAR}, #{menuStatus,jdbcType=TINYINT},
#{menuType,jdbcType=TINYINT}, #{menuIcon,jdbcType=VARCHAR}, #{isShow,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{label,jdbcType=TINYINT},
#{updateBy,jdbcType=INTEGER}, #{createBy,jdbcType=INTEGER}, #{label,jdbcType=TINYINT},
#{menuGroup,jdbcType=VARCHAR}, #{funcType,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.menu.SysMenu">
......@@ -193,10 +193,10 @@
#{remark,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=INTEGER},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
#{createBy,jdbcType=INTEGER},
</if>
<if test="label != null">
#{label,jdbcType=TINYINT},
......@@ -249,10 +249,10 @@
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="label != null">
label = #{label,jdbcType=TINYINT},
......@@ -280,8 +280,8 @@
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=INTEGER},
label = #{label,jdbcType=TINYINT},
menu_group = #{menuGroup,jdbcType=VARCHAR},
func_type = #{funcType,jdbcType=VARCHAR}
......
......@@ -11,8 +11,8 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
<result column="create_by" jdbcType="VARCHAR" property="createBy"/>
<result column="update_by" jdbcType="INTEGER" property="updateBy"/>
<result column="create_by" jdbcType="INTEGER" property="createBy"/>
<result column="label" jdbcType="TINYINT" property="label"/>
<result column="org_group" jdbcType="VARCHAR" property="orgGroup"/>
</resultMap>
......@@ -87,8 +87,8 @@
)
values (#{parentId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{orgStatus,jdbcType=TINYINT},
#{orgType,jdbcType=TINYINT}, #{sort,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{label,jdbcType=TINYINT}, #{orgGroup,jdbcType=VARCHAR}
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{updateBy,jdbcType=INTEGER},
#{createBy,jdbcType=INTEGER}, #{label,jdbcType=TINYINT}, #{orgGroup,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.menu.SysOrganization">
......@@ -160,10 +160,10 @@
#{remark,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=INTEGER},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
#{createBy,jdbcType=INTEGER},
</if>
<if test="label != null">
#{label,jdbcType=TINYINT},
......@@ -201,10 +201,10 @@
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="label != null">
label = #{label,jdbcType=TINYINT},
......@@ -225,8 +225,8 @@
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=INTEGER},
label = #{label,jdbcType=TINYINT},
org_group = #{orgGroup,jdbcType=VARCHAR}
WHERE id = #{id,jdbcType=INTEGER}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!