| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.AbstractServiceCmdListener; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.fee.FeeConfigDto; |
| | |
| | | import java.util.List; |
| | | |
| | | @Java110Cmd(serviceCode = "feeConfig.listFeeConfigs") |
| | | public class ListFeeConfigsCmd extends AbstractServiceCmdListener { |
| | | public class ListFeeConfigsCmd extends Cmd { |
| | | |
| | | @Autowired |
| | | private IFeeConfigInnerServiceSMO feeConfigInnerServiceSMOImpl; |
| | |
| | | |
| | | if (count > 0) { |
| | | feeConfigs = BeanConvertUtil.covertBeanList(feeConfigInnerServiceSMOImpl.queryFeeConfigs(feeConfigDto), ApiFeeConfigDataVo.class); |
| | | //处理 小数点后无效的0 |
| | | for(ApiFeeConfigDataVo feeConfig: feeConfigs){ |
| | | if (!StringUtil.isEmpty(feeConfig.getAdditionalAmount())){ |
| | | feeConfig.setAdditionalAmount(Double.parseDouble(feeConfig.getAdditionalAmount())+""); |
| | | } |
| | | |
| | | if (!StringUtil.isEmpty(feeConfig.getSquarePrice())){ |
| | | feeConfig.setSquarePrice(Double.parseDouble(feeConfig.getSquarePrice())+""); |
| | | } |
| | | } |
| | | } else { |
| | | feeConfigs = new ArrayList<>(); |
| | | } |