Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
a1d92952
Commit
a1d92952
authored
May 21, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
2a3e6623
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
117 additions
and
3 deletions
+117
-3
IndustryController.java
.../java/pwc/taxtech/atms/controller/IndustryController.java
+26
-0
ModelConfigurationController.java
...taxtech/atms/controller/ModelConfigurationController.java
+28
-0
IndustryMapper.java
...pi/src/main/java/pwc/taxtech/atms/dao/IndustryMapper.java
+3
-0
ModelConfigurationService.java
...a/pwc/taxtech/atms/service/ModelConfigurationService.java
+9
-0
ProjectIndustryService.java
...java/pwc/taxtech/atms/service/ProjectIndustryService.java
+9
-0
AbstractService.java
...n/java/pwc/taxtech/atms/service/impl/AbstractService.java
+3
-0
ModelConfigurationServiceImpl.java
...tech/atms/service/impl/ModelConfigurationServiceImpl.java
+18
-0
ProjectIndustryServiceImpl.java
...taxtech/atms/service/impl/ProjectIndustryServiceImpl.java
+17
-0
IndustryMapper.xml
...rc/main/resources/pwc/taxtech/atms/dao/IndustryMapper.xml
+0
-0
ModelConfigMapper.xml
...main/resources/pwc/taxtech/atms/dao/ModelConfigMapper.xml
+4
-3
basicData.json
...b/src/main/webapp/app-resources/i18n/zh-CN/basicData.json
+0
-0
systemConfiguration.json
.../webapp/app-resources/i18n/zh-CN/systemConfiguration.json
+0
-0
vat.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/vat.json
+0
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/IndustryController.java
0 → 100644
View file @
a1d92952
package
pwc
.
taxtech
.
atms
.
controller
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
pwc.taxtech.atms.entitiy.Industry
;
import
pwc.taxtech.atms.service.ProjectIndustryService
;
@RestController
@RequestMapping
(
value
=
"api/v1/industry"
)
public
class
IndustryController
{
@Autowired
ProjectIndustryService
projectIndustryService
;
@RequestMapping
(
value
=
"getAllAvailableIndustry"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
List
<
Industry
>
GetAllAvailableIndustry
()
{
return
projectIndustryService
.
GetAllAvailableIndustry
();
}
}
atms-api/src/main/java/pwc/taxtech/atms/controller/ModelConfigurationController.java
0 → 100644
View file @
a1d92952
package
pwc
.
taxtech
.
atms
.
controller
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
pwc.taxtech.atms.dto.ModelProfileDto
;
import
pwc.taxtech.atms.service.ModelConfigurationService
;
@RestController
@RequestMapping
(
value
=
"api/v1/modelConfiguration"
)
public
class
ModelConfigurationController
{
@Autowired
ModelConfigurationService
modelConfigurationService
;
@RequestMapping
(
value
=
"model/byIndustry"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
List
<
ModelProfileDto
>
GetModelListByIndustry
(
@RequestParam
String
industryID
,
@RequestParam
String
serviceTypeID
)
{
return
modelConfigurationService
.
GetModelListByIndustry
(
serviceTypeID
,
industryID
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/dao/IndustryMapper.java
View file @
a1d92952
...
...
@@ -105,4 +105,6 @@ public interface IndustryMapper extends MyMapper {
* @mbg.generated
*/
int
updateByPrimaryKey
(
Industry
record
);
List
<
Industry
>
GetAllAvailableIndustry
();
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/service/ModelConfigurationService.java
0 → 100644
View file @
a1d92952
package
pwc
.
taxtech
.
atms
.
service
;
import
java.util.List
;
import
pwc.taxtech.atms.dto.ModelProfileDto
;
public
interface
ModelConfigurationService
{
List
<
ModelProfileDto
>
GetModelListByIndustry
(
String
serviceTypeID
,
String
industryID
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/ProjectIndustryService.java
0 → 100644
View file @
a1d92952
package
pwc
.
taxtech
.
atms
.
service
;
import
java.util.List
;
import
pwc.taxtech.atms.entitiy.Industry
;
public
interface
ProjectIndustryService
{
List
<
Industry
>
GetAllAvailableIndustry
();
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AbstractService.java
View file @
a1d92952
...
...
@@ -24,6 +24,7 @@ import pwc.taxtech.atms.dao.KeyValueConfigMapper;
import
pwc.taxtech.atms.dao.KeyValueReferenceMapper
;
import
pwc.taxtech.atms.dao.MailQueueMapper
;
import
pwc.taxtech.atms.dao.MenuMapper
;
import
pwc.taxtech.atms.dao.ModelConfigMapper
;
import
pwc.taxtech.atms.dao.MyStatisticAttributeMapper
;
import
pwc.taxtech.atms.dao.MyUserMapper
;
import
pwc.taxtech.atms.dao.OperationLogBasicDataMapper
;
...
...
@@ -156,4 +157,6 @@ public class AbstractService {
protected
KeyValueConfigMapper
keyValueConfigMapper
;
@Autowired
protected
KeyValueReferenceMapper
keyValueReferenceMapper
;
@Autowired
protected
ModelConfigMapper
modelConfigMapper
;
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/ModelConfigurationServiceImpl.java
0 → 100644
View file @
a1d92952
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.dto.ModelProfileDto
;
import
pwc.taxtech.atms.service.ModelConfigurationService
;
@Service
public
class
ModelConfigurationServiceImpl
extends
AbstractService
implements
ModelConfigurationService
{
@Override
public
List
<
ModelProfileDto
>
GetModelListByIndustry
(
String
serviceTypeID
,
String
industryID
)
{
return
modelConfigMapper
.
GetModelListByIndustry
(
serviceTypeID
,
industryID
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/ProjectIndustryServiceImpl.java
0 → 100644
View file @
a1d92952
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.entitiy.Industry
;
import
pwc.taxtech.atms.service.ProjectIndustryService
;
@Service
public
class
ProjectIndustryServiceImpl
extends
AbstractService
implements
ProjectIndustryService
{
@Override
public
List
<
Industry
>
GetAllAvailableIndustry
()
{
return
industryMapper
.
GetAllAvailableIndustry
();
}
}
atms-api/src/main/resources/pwc/taxtech/atms/dao/IndustryMapper.xml
View file @
a1d92952
This diff is collapsed.
Click to expand it.
atms-api/src/main/resources/pwc/taxtech/atms/dao/ModelConfigMapper.xml
View file @
a1d92952
...
...
@@ -293,7 +293,7 @@
<result
column=
"ServiceTypeID"
jdbcType=
"VARCHAR"
property=
"ServiceTypeID"
/>
<result
column=
"ServiceTypeName"
jdbcType=
"VARCHAR"
property=
"ServiceTypeName"
/>
</resultMap>
<s
ql
id=
"GetModelListByIndustry"
parameterType=
"map"
resultMap=
"GetModelListByIndustryResult"
>
<s
elect
id=
"GetModelListByIndustry"
parameterType=
"map"
resultMap=
"GetModelListByIndustryResult"
>
SELECT
m.ID,
m.Name,
...
...
@@ -326,7 +326,7 @@
ServiceType st ON msc.ServiceTypeID = st.ID
JOIN
Industry i ON org.IndustryID = i.ID
WHERE org.IndustryID=#{industryID
} and st.ID = #{serviceTypeID
}
WHERE org.IndustryID=#{industryID
,jdbcType=VARCHAR} and st.ID = #{serviceTypeID,jdbcType=VARCHAR
}
ORDER BY m.code
</s
ql
>
</s
elect
>
</mapper>
\ No newline at end of file
atms-web/src/main/webapp/app-resources/i18n/zh-CN/basicData.json
View file @
a1d92952
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app-resources/i18n/zh-CN/systemConfiguration.json
View file @
a1d92952
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app-resources/i18n/zh-CN/vat.json
View file @
a1d92952
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment