add export task mapper test

This commit is contained in:
Shaun Chyxion 2022-05-29 16:01:12 +08:00
parent 7d322ffe56
commit 4e8575d526
6 changed files with 44 additions and 6 deletions

@ -1 +1 @@
Subproject commit 5991f36ae60c1f7ed818f36f501c440bef527667
Subproject commit cf48c8867c81a24459ddcfffbd1ec4029b4fc95e

View File

@ -0,0 +1,11 @@
package com.pudonghot.ambition.crm.mapper;
import me.chyxion.tigon.mybatis.BaseMapper;
import com.pudonghot.ambition.crm.model.ExportTask;
/**
* @author Donghuang
* @date May 29, 2022 14:44:46
*/
public interface ExportTaskMapper extends BaseMapper<Long, ExportTask> {
}

View File

@ -0,0 +1,25 @@
package com.pudonghot.ambition.crm.mapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import me.chyxion.tigon.mybatis.Search;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
/**
* @author Donghuang
* @date May 29, 2022 14:44:58
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath*:spring/spring-*.xml")
public class ExportTaskMapperTest extends AbstractTransactionalJUnit4SpringContextTests {
@Autowired
private ExportTaskMapper mapper;
@Test
public void mapperTest() {
mapper.list(new Search()).size();
}
}

View File

@ -1,6 +1,6 @@
# MySQL
datasource.host=127.0.0.1
datasource.port=63306
datasource.database-name=ambition_crm_test
datasource.host=172.16.4.6
datasource.port=3306
datasource.database-name=ambition-crm
datasource.username=root
datasource.password=696@2^~)oZ@^#*Q
datasource.password=MySQL2b||!2b

View File

@ -26,6 +26,8 @@ public class CustomerProperty extends M3<String, String> {
*/
// public static final String TYPE_STATUS = "STATUS";
public enum Type {
@Deprecated
APPLICATION,
STATUS
}

View File

@ -119,7 +119,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>6.0.6</version>
<version>8.0.29</version>
</dependency>
<!-- javax -->
<dependency>