liutong3 преди 5 години
родител
ревизия
b5448c0e95

+ 2 - 2
ipu-db-example/src/test/java/com/ai/ipu/example/db/IpuDatabaseExample.java

@ -75,11 +75,11 @@ public class IpuDatabaseExample {
75 75
     * 条件更新
76 76
     */
77 77
    @Test
78
    public void testUpdateString_typeById() throws Exception {
78
    public void testUpdateStringTypeById() throws Exception {
79 79
        int pk = 1;
80 80
        System.out.println(service.selectById(pk));
81 81
        System.out.println("--------------------");
82
        System.out.println(service.updateString_typeById(pk, "测试修改"));
82
        System.out.println(service.updateStringTypeById(pk, "测试修改"));
83 83
        System.out.println("--------------------");
84 84
        System.out.println(service.selectById(pk));
85 85
    }

+ 1 - 1
ipu-db-example/src/test/java/com/ai/ipu/example/db/dao/IpuDbDemoDao.java

@ -77,7 +77,7 @@ public class IpuDbDemoDao extends AbstractBizDao {
77 77
        return dao.executeDelete(sql, param);
78 78
    }
79 79
80
    public int updateString_typeById(int id, String value) throws Exception {
80
    public int updateStringTypeById(int id, String value) throws Exception {
81 81
        String sql = "update ipu_db_demo set string_type = #{string_type} where pk = #{pk}";
82 82
        Map<String, Object> param = new HashMap<String, Object>();
83 83
        param.put("pk", id);

+ 2 - 2
ipu-db-example/src/test/java/com/ai/ipu/example/db/service/IpuDbDemoService.java

@ -38,7 +38,7 @@ public class IpuDbDemoService {
38 38
        return dao.deleteById(id);
39 39
    }
40 40
41
    public int updateString_typeById(int id, String value) throws Exception {
42
        return dao.updateString_typeById(id, value);
41
    public int updateStringTypeById(int id, String value) throws Exception {
42
        return dao.updateStringTypeById(id, value);
43 43
    }
44 44
}