/** * 方法功能: deleteByPrimaryKey * 方法描述: 根据id删除客户基本信息 * 日期: 2018-08-03 */ public Result deleteJobDetailByPrimaryKey(Context context) { String id = context.getString("id"); jobDetailService.deleteByPrimaryKey(id); return Result.success("删除成功!"); }
int deleteByPrimaryKey(String id);
@Override public int deleteByPrimaryKey(String id) { return jobDetailMapper.deleteByPrimaryKey(id); }
int deleteByPrimaryKey(String id);
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> DELETE FROM batch_job_detail WHERE id = #{id,jdbcType=VARCHAR} </delete>
注意要删对表 删对数据库