cgf
2025-09-02 4ce807bb99088dc6f41262046830fc872e772be4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.java110.fee.cmd.feeConfig;
 
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.Cmd;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.db.dao.impl.SecondaryFeeTypeCdGlImpl;
import com.java110.dto.PageDto;
import com.java110.dto.fee.FeeConfigDto;
import com.java110.po.fee.PayFeeConfigPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.utils.util.StringUtil;
import com.java110.vo.ResultVo;
import com.java110.vo.api.feeConfig.ApiFeeConfigDataVo;
import com.java110.vo.api.feeConfig.ApiFeeConfigVo;
import com.java110.vo.api.feeConfig.SecondaryFeeTypeCdGlVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
 
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
 
@Java110Cmd(serviceCode = "secondaryFeeTypeCdGl.list.show")
public class SecondaryFeeTypeCdGlApi extends Cmd {
 
    @Autowired
    private SecondaryFeeTypeCdGlImpl secondaryFeeTypeCdGlImpl;
 
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
 
    }
 
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
        String feeTypeCd = reqJson.getString("feeTypeCd");
        List<SecondaryFeeTypeCdGlVo> secondaryFeeTypeCdGlVos = secondaryFeeTypeCdGlImpl.listByFeeTypeCdShow(feeTypeCd);
        ResponseEntity<String> responseEntity = new ResponseEntity<String>(JSONObject.toJSONString(secondaryFeeTypeCdGlVos), HttpStatus.OK);
        cmdDataFlowContext.setResponseEntity(responseEntity);
    }
}