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