Commit dc032a5f by liu_xiaoxu

FTP执行上传文件后保存在日志表

parent 80dc72d4
......@@ -15,4 +15,5 @@ public interface RycjDao {
int insertRycj(Rycj rycj);
Rycj selectByPrimaryKey(String taskid);
int updateByPrimaryKey(Rycj Rycj);
int insertLog(Rycj rycj);
}
......@@ -78,6 +78,7 @@ public class RycjServiceImpl implements RycjService {
bool = true;
}
}
rycjDao.insertLog(rycj);
}catch (Exception e){
System.out.print("增加或更新失败"+e.getMessage());
}
......
......@@ -131,4 +131,44 @@
</if>
)
</insert>
<insert id="insertLog" parameterType="com.founder.model.Rycj">
INSERT INTO SYS_LOG_JCCJ_XXBS (
TASKID,
USERID,
STATUS_CODE,
ZXJGDM,
DJSJ
)VALUES (
<if test="taskid != null">
#{taskid},
</if>
<if test="taskid == null">
NULL ,
</if>
<if test="user_id != null">
#{user_id},
</if>
<if test="user_id == null">
NULL ,
</if>
<if test="status_code != null">
#{status_code},
</if>
<if test="status_code == null">
NULL,
</if>
<if test="zxjgdm != null">
#{zxjgm},
</if>
<if test="zxjgdm == null">
NULL,
</if>
<if test="rycj_jlsj != null">
#{rycj_jlsj}
</if>
<if test="rycj_jlsj == null">
NULL
</if>
)
</insert>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment