menu_dishes menu_dishes_base crby fix
This commit is contained in:
parent
9a2a6db3a6
commit
b4c1cfbc6e
|
|
@ -86,14 +86,14 @@ public class MenuDishesDTO {
|
||||||
|
|
||||||
@TableField(value = "crby", fill = FieldFill.INSERT)
|
@TableField(value = "crby", fill = FieldFill.INSERT)
|
||||||
@ApiModelProperty("创建人")
|
@ApiModelProperty("创建人")
|
||||||
private String crby;
|
private String createBy;
|
||||||
@ApiModelProperty("创建时间")
|
@ApiModelProperty("创建时间")
|
||||||
private LocalDateTime crtime;
|
private LocalDateTime createTime;
|
||||||
@TableField(value = "upby", fill = FieldFill.UPDATE)
|
@TableField(value = "upby", fill = FieldFill.UPDATE)
|
||||||
@ApiModelProperty("更新人")
|
@ApiModelProperty("更新人")
|
||||||
private String upby;
|
private String updateBy;
|
||||||
@ApiModelProperty("更新时间")
|
@ApiModelProperty("更新时间")
|
||||||
private LocalDateTime uptime;
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
@ApiModelProperty("功效")
|
@ApiModelProperty("功效")
|
||||||
private Integer effectId;
|
private Integer effectId;
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ public class MenuDishesServiceImpl implements IMenuDishesService {
|
||||||
}
|
}
|
||||||
Long dishesId = Id.next();
|
Long dishesId = Id.next();
|
||||||
Long baseDishesId = Id.next();
|
Long baseDishesId = Id.next();
|
||||||
menuDishesDTO.setCrby(SecurityUtils.getUserId()+"");
|
menuDishesDTO.setCreateBy(SecurityUtils.getUsername());
|
||||||
//添加基础主表信息
|
//添加基础主表信息
|
||||||
menuDishesDTO.setBaseDishesId(baseDishesId+"");
|
menuDishesDTO.setBaseDishesId(baseDishesId+"");
|
||||||
menuDishesDTO.setDishesId(dishesId+"");
|
menuDishesDTO.setDishesId(dishesId+"");
|
||||||
|
|
@ -197,17 +197,19 @@ public class MenuDishesServiceImpl implements IMenuDishesService {
|
||||||
//首字母转小写
|
//首字母转小写
|
||||||
public static String toLowerCaseFirstOne(String s)
|
public static String toLowerCaseFirstOne(String s)
|
||||||
{
|
{
|
||||||
if(Character.isLowerCase(s.charAt(0)))
|
if(Character.isLowerCase(s.charAt(0))) {
|
||||||
return s;
|
return s;
|
||||||
else
|
} else {
|
||||||
return (new StringBuilder()).append(Character.toLowerCase(s.charAt(0))).append(s.substring(1)).toString();
|
return (new StringBuilder()).append(Character.toLowerCase(s.charAt(0))).append(s.substring(1)).toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//首字母转大写
|
//首字母转大写
|
||||||
public static String toUpperCaseFirstOne(String s) {
|
public static String toUpperCaseFirstOne(String s) {
|
||||||
if (Character.isUpperCase(s.charAt(0)))
|
if (Character.isUpperCase(s.charAt(0))) {
|
||||||
return s;
|
return s;
|
||||||
else
|
} else {
|
||||||
return (new StringBuilder()).append(Character.toUpperCase(s.charAt(0))).append(s.substring(1)).toString();
|
return (new StringBuilder()).append(Character.toUpperCase(s.charAt(0))).append(s.substring(1)).toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -371,12 +371,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="baseDishesId != null">base_dishes_id,</if>
|
<if test="baseDishesId != null">base_dishes_id,</if>
|
||||||
<if test="dishesName != null">dishes_name,</if>
|
<if test="dishesName != null">dishes_name,</if>
|
||||||
<if test="crby != null">crby,</if>
|
<if test="createBy != null">create_by,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test=" baseDishesId!= null">#{baseDishesId},</if>
|
<if test=" baseDishesId!= null">#{baseDishesId},</if>
|
||||||
<if test=" dishesName!= null">#{dishesName},</if>
|
<if test=" dishesName!= null">#{dishesName},</if>
|
||||||
<if test="crby != null">#{crby},</if>
|
<if test="createBy != null">#{createBy},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
@ -401,7 +401,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="styleId != null">style_id,</if>
|
<if test="styleId != null">style_id,</if>
|
||||||
<if test="cookId != null">cook_id,</if>
|
<if test="cookId != null">cook_id,</if>
|
||||||
<if test="classifyId != null">classify_id,</if>
|
<if test="classifyId != null">classify_id,</if>
|
||||||
<if test="crby != null">create_by,</if>
|
<if test="createBy != null">create_by,</if>
|
||||||
<if test="customId != null">custom_id,</if>
|
<if test="customId != null">custom_id,</if>
|
||||||
|
|
||||||
</trim>
|
</trim>
|
||||||
|
|
@ -424,7 +424,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="styleId != null">#{styleId},</if>
|
<if test="styleId != null">#{styleId},</if>
|
||||||
<if test="cookId != null">#{cookId},</if>
|
<if test="cookId != null">#{cookId},</if>
|
||||||
<if test="classifyId != null">#{classifyId},</if>
|
<if test="classifyId != null">#{classifyId},</if>
|
||||||
<if test="crby != null">#{crby},</if>
|
<if test="createBy != null">#{createBy},</if>
|
||||||
<if test="customId != null">#{customId},</if>
|
<if test="customId != null">#{customId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue