fix:材料校验提交

dev
wangxy 12 months ago
parent ddff2f4308
commit cc9be8dabc

@ -43,7 +43,7 @@ public class ScoreInfoManager {
LoginUser loginUser = SecurityUtils.getLoginUser(); LoginUser loginUser = SecurityUtils.getLoginUser();
RewScoreInfo rewScoreInfo = Convert.convert(RewScoreInfo.class, scoreInfo); RewScoreInfo rewScoreInfo = Convert.convert(RewScoreInfo.class, scoreInfo);
rewScoreInfo.setCreateId(loginUser.getUserId()); rewScoreInfo.setCreateId(loginUser.getUserId());
if(StringUtils.isNotEmpty(scoreInfo.getId())){ if(StringUtils.isNotEmpty(scoreInfo.getScoreId())){
rewScoreInfo.setUpdateTime(new Date()); rewScoreInfo.setUpdateTime(new Date());
rewScoreInfo.setUpdateBy(loginUser.getUsername()); rewScoreInfo.setUpdateBy(loginUser.getUsername());
}else{ }else{

@ -25,7 +25,7 @@ public class RewScoreInfo extends BaseEntity {
* *
*/ */
@TableId(type = IdType.ASSIGN_UUID) @TableId(type = IdType.ASSIGN_UUID)
private String id; private String scoreId;
/** /**
* *

@ -17,7 +17,7 @@ public class ScoreInfoSaveDTO implements Serializable {
/** /**
* *
*/ */
private String id; private String scoreId;
/** /**
* *

@ -5,7 +5,7 @@
<mapper namespace="com.hyp.system.mapper.RewScoreInfoMapper"> <mapper namespace="com.hyp.system.mapper.RewScoreInfoMapper">
<resultMap id="BaseResultMap" type="com.hyp.system.domain.RewScoreInfo"> <resultMap id="BaseResultMap" type="com.hyp.system.domain.RewScoreInfo">
<id property="id" column="id" jdbcType="VARCHAR"/> <id property="scoreId" column="score_id" jdbcType="VARCHAR"/>
<result property="score" column="score" jdbcType="VARCHAR"/> <result property="score" column="score" jdbcType="VARCHAR"/>
<result property="applyId" column="apply_id" jdbcType="VARCHAR"/> <result property="applyId" column="apply_id" jdbcType="VARCHAR"/>
<result property="createId" column="create_id" jdbcType="INTEGER"/> <result property="createId" column="create_id" jdbcType="INTEGER"/>
@ -17,7 +17,7 @@
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id,score,apply_id, score_id,score,apply_id,
create_id,create_by,create_time, create_id,create_by,create_time,
update_by,update_time,remark update_by,update_time,remark
</sql> </sql>

Loading…
Cancel
Save